Entries Tagged 'Linux' ↓
September 6th, 2011 — Linux

In ubuntu 11.04 I had an icon at ~/.icons/Humanity/status/22/gtk-paste.svg so I would get a nice systray icon for ClipIt. But ClipIt changed something so now I had to cp the gtk-paste.svg to:
~/.icons/hicolor/scalable/apps/clipit-trayicon.svg
Then logout/login and I had a nice trayicon! Long live clipboard managers. I _really_ wouldn’t want to miss them!
August 18th, 2011 — Linux, PHP
No apt-getting on Hardy
CODE:
-
cd ~/
-
mkdir php
-
cd php
-
apt-get source php5
-
cd php5-*/ext/pcntl
-
phpize
-
./configure
-
make
-
no=`phpize | grep "Zend Module Api No" | cut -d : -f2 | awk '{gsub(/^ +| +$/,"")}1'`
-
cp modules/pcntl.so /usr/lib/php5/$no/
-
echo "extension=pcntl.so"> /etc/php5/conf.d/pcntl.ini
August 9th, 2011 — Linux, python
I was messing around with some python script to test a spamassassin install. It checks al the mail in the spam folder an see if it is marked as spam. Then it goes through the mail in ham/ and see if it passes as not-spam.
So I'm developing it on my local computer but I wanted to test it on a remote server. Well, actually not that remote because I can touch it from where I'm sitting but that's not the point
The point was that I needed something to keep the remote version of the sourcecode in sync with the local source. Google to the rescue and I found lsyncd.
A nice little tool to sync two directories with rsync. Too bad it didn't support transfers only via sftp because freebsd (the remote server) doesn't come with rsync installed. So I had to install that also
Yeah, tough job....
CODE:
-
cd /usr/ports/net/rsync
-
make config
-
make install
Then on the local machine:
CODE:
-
lsyncd --no-daemon --delay 1 ~/Workspaces/spamassassin-test/ beastie:~/spamassassin-test/
You have to specify the remote directory or else it will wipe you home folder as I discovered...
After this was done I could go on developing.
May 6th, 2011 — Linux
Met onze super-stabiele connectie op het kantoor wil rsync er nog wel eens uitklappen. Dus als je dan 's ochtends kijkt hoe ver 'ie is kom je er achter dat rsync gestopt is. Daarom een rrsync. Gebasseerd op deze link: http://blog.iangreenleaf.com/2009/03/rsync-and-retrying-until-we-get-it.html maar iets beter gemaakt zodat het rsync commando er niet hard in staat:
(Misschien dat de indent niet helemaal goed is)
CODE:
-
#!/bin/bash
-
-
### ABOUT
-
### Runs rsync, retrying on errors up to a maximum number of tries.
-
### Simply edit the rsync line in the script to whatever parameters you need.
-
-
# Trap interrupts and exit instead of continuing the loop
-
trap "echo Exited!; exit;" SIGINT SIGTERM
-
-
MAX_RETRIES=50
-
i=0
-
# Set the initial return value to failure
-
false
-
-
while [ $? -ne 0 -a $i -lt $MAX_RETRIES ]
-
do
-
i=$(($i+1))
-
`which rsync` $*
-
done
-
-
if [ $i -eq $MAX_RETRIES ]
-
then
-
echo "Hit maximum number of retries, giving up."
-
fi
April 18th, 2011 — Linux
December 20th, 2010 — Linux
CODE:
-
sudo add-apt-repository ppa:banshee-team/banshee-unstable
-
sudo aptitude install banshee
-
rm ~/.cache/indicators/sound/familiar-players-db.keyfile
And don't forget to enable the soundmenu plugin in banshee!
October 18th, 2010 — development, Linux
I got an error when building the 2.32 version for ubuntu. Some packages once where installed but got removed. But they still had the status rc.
So I purged them with the help of this blog.
I compiled evolution with the help of a Makefile that I downloaded.
I had to add the "maverick" distro and install some additional packages such as:
- gobject-introspection
- autopoint
- libgdata-dev
I removed the evolution-exchange plugin.
The master branch of gweather required gtk3 so I changed that to: gnome-2.30 (or something)
I had to apply a patch to solve a build error.
Bottom of this post: http://www.mail-archive.com/evolution-hackers@gnome.org/msg03863.html
http://www.mail-archive.com/evolution-list@gnome.org/msg15575.html
September 25th, 2010 — Linux
CODE:
-
[global]
-
security = ads
-
realm = LAB.EXAMPLE.COM
-
password server = 10.0.0.1
-
# note that workgroup is the 'short' domain name
-
workgroup = LAB
-
# winbind separator = +
-
idmap uid = 10000-20000
-
idmap gid = 10000-20000
-
winbind enum users = yes
-
winbind enum groups = yes
-
template homedir = /home/%D/%U
-
template shell = /bin/bash
-
client use spnego = yes
-
client ntlmv2 auth = yes
-
encrypt passwords = yes
-
winbind use default domain = yes
-
restrict anonymous = 2
-
-
security = ads
-
realm = TIM-ONLINE.NL
-
password server = 10.76.122.21
-
workgroup = TIM-ONLINE
-
idmap uid = 10000-20000
-
idmap gid = 10000-20000
-
winbind enum users = yes
-
winbind enum groups = yes
-
template homedir = /home/%D/%U
-
template shell = /bin/bash
-
client use spnego = yes
-
client ntlmv2 auth = yes
-
encrypt passwords = yes
-
winbind use default domain = yes
-
winbind use default domain = yes
-
winbind refresh tickets = yes
-
-
netbios name = concepts
-
netbiosname = concepts
-
-
#Vista compatibliyy
-
client schannel = Auto
-
server schannel = Auto
-
-
sudo /etc/init.d/winbind stop
-
sudo /etc/init.d/smbd restart
-
sudo /etc/init.d/winbind start
-
-
net ads join -U administrator
-
-
/etc/init.d/winbind restart
-
-
wbinfo -u
-
wbinfo -g
-
-
file: /etc/pam.d/common-session
-
-
session required pam_unix.so
-
session required pam_mkhomedir.so umask=0022 skel=/etc/skel
March 27th, 2010 — Linux
March 7th, 2010 — Linux
I got a MCE remote and wanted to use it with my Antecct Fusion case. It has a remote of it's own but it uses a stick for navigating and that really doesn't work.
I found a great post about how to use the mce remote.
I only had to modprobe the lirc_imon module with some parameter (lirc_imon ir_protocol=1) and change the xbmc configuration. After that it worked perfectly!
Only my xbox 360 is right next to my media pc. So when I press a button my xbox 360 start
I tried to disable the ir censor of my xbox but I couldn't find and option. So I covered it with some tape