Entries Tagged 'Linux' ↓

ClipIt clipboard manager trayicon under Ubuntu 11.10

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!

Install pcntl (pcntl_fork) on Ubuntu Hardy

No apt-getting on Hardy :(

CODE:
  1. cd ~/
  2. mkdir php
  3. cd php
  4. apt-get source php5
  5. cd php5-*/ext/pcntl
  6. phpize
  7. ./configure
  8. make
  9. no=`phpize | grep "Zend Module Api No" | cut -d : -f2 | awk '{gsub(/^ +| +$/,"")}1'`
  10. cp modules/pcntl.so /usr/lib/php5/$no/
  11. echo "extension=pcntl.so"> /etc/php5/conf.d/pcntl.ini

Lsyncd

FreeBSD rsync configI 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:
  1. cd /usr/ports/net/rsync
  2. make config
  3. make install

Then on the local machine:

CODE:
  1. 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.

rsync retry (rrsync)

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:
  1. #!/bin/bash
  2.  
  3. ### ABOUT
  4. ### Runs rsync, retrying on errors up to a maximum number of tries.
  5. ### Simply edit the rsync line in the script to whatever parameters you need.
  6.  
  7. # Trap interrupts and exit instead of continuing the loop
  8. trap "echo Exited!; exit;" SIGINT SIGTERM
  9.  
  10. MAX_RETRIES=50
  11. i=0
  12. # Set the initial return value to failure
  13. false
  14.  
  15. while [ $? -ne 0 -a $i -lt $MAX_RETRIES ]
  16. do
  17. i=$(($i+1))
  18. `which rsync` $*
  19. done
  20.  
  21. if [ $i -eq $MAX_RETRIES ]
  22. then
  23. echo "Hit maximum number of retries, giving up."
  24. fi

Linux printer drivers for the Dell 1710n

Voila: http://www.cups.org/ppd.php?L483+I80+T+Q

Installing banshee + removing rhythmbox from the soundmenu

CODE:
  1. sudo add-apt-repository ppa:banshee-team/banshee-unstable
  2. sudo aptitude install banshee
  3. rm ~/.cache/indicators/sound/familiar-players-db.keyfile

And don't forget to enable the soundmenu plugin in banshee!

Removing packages marked rc

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

Don’t wat to type any explanation

CODE:
  1. [global]
  2. security = ads
  3. realm = LAB.EXAMPLE.COM
  4. password server = 10.0.0.1
  5. # note that workgroup is the 'short' domain name
  6. workgroup = LAB
  7. #       winbind separator = +
  8. idmap uid = 10000-20000
  9. idmap gid = 10000-20000
  10. winbind enum users = yes
  11. winbind enum groups = yes
  12. template homedir = /home/%D/%U
  13. template shell = /bin/bash
  14. client use spnego = yes
  15. client ntlmv2 auth = yes
  16. encrypt passwords = yes
  17. winbind use default domain = yes
  18. restrict anonymous = 2
  19.  
  20. security = ads
  21. realm = TIM-ONLINE.NL
  22. password server = 10.76.122.21
  23. workgroup = TIM-ONLINE
  24. idmap uid = 10000-20000
  25. idmap gid = 10000-20000
  26. winbind enum users = yes
  27. winbind enum groups = yes
  28. template homedir = /home/%D/%U
  29. template shell = /bin/bash
  30. client use spnego = yes
  31. client ntlmv2 auth = yes
  32. encrypt passwords = yes
  33. winbind use default domain = yes
  34. winbind use default domain = yes
  35. winbind refresh tickets = yes
  36.  
  37. netbios name = concepts
  38. netbiosname = concepts
  39.  
  40. #Vista compatibliyy
  41. client schannel = Auto
  42. server schannel = Auto
  43.  
  44. sudo /etc/init.d/winbind stop
  45. sudo /etc/init.d/smbd restart
  46. sudo /etc/init.d/winbind start
  47.  
  48. net ads join -U administrator
  49.  
  50. /etc/init.d/winbind restart
  51.  
  52. wbinfo -u
  53. wbinfo -g
  54.  
  55. file: /etc/pam.d/common-session
  56.  
  57. session required pam_unix.so
  58. session required pam_mkhomedir.so umask=0022 skel=/etc/skel

installing non-free-codecs in Ubuntu “Lucid Lynx” 10.04

A very nice article about installing the non-free-codes (wmv, wma, et cetera) in 10.04!

Using a MCE remote with an Antec Veris Fusion case

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 :P