News » Linux
Reset your MySQL root password
Making your webcam act as a security camera with zoneminder
Logitech QuickCam Messenger with Skype on Linux
I finally got my webcam to work on skype (sort of). I have a Logitech QuickCam Messenger (046d:08da), which is a v4l2 (video4linux v2) device. Skype only (still) works with v4l version 1. Thus “Houston, we’ve got a problem”!
I almost solved the puzzle.
Joining movie parts is easy with mencoder
NX Server on Ubuntu Hardy
andLinux brings almost any linux application to windows
Linux is better than window$, there, I've said it. On some rare occassions, you still need to run windows and I've tried several options in the past: vmware, qemu, virtualbox... All of them had their backdraws. Most of them just being slow. The latest I've tested is andLinux, and I must say, this one has impressed me the most. You're able to run almost any linux application, directly in windows. You're still running a linux distro (ubuntu) in the background as a windows service and although you need to share your files between the host and the guest, you're actually running the linux application within the windows desktop. All the others I've tested ran those application on the guest desktop. Here is a screenshot, illustrating my point:
Ubuntu shutdown problem
Some other linux blogs
http://blog.linuxoss.com/
http://linuxhelp.blogspot.com/
http://vertito.blogspot.com/
Play dvd iso image with xine
xine “dvd://path/to/your/file.iso”Even handier would be to have that command in your context popup (by right-click'ing the file). To have that in KDE, open up the directory "~/.kde/share/apps/konqueror/servicemenus/" and make a xine_iso.desktop file with the following content.
[Desktop Entry] ServiceTypes=application/x-iso Actions=Xine ISO [Desktop Action Xine ISO] Encoding=UTF-8 Exec=xine &qout;dvd://%U&qout; Icon=exec MimeType=application/x-iso Name=Play DVD ISO with xineNow right-click an iso image file and look under "Actions"
Enjoy the movie!
More help on editing context menu's can be found at: http://legroom.net/2007/04/20/adding-custom-actions-kde-context-menus
Mediawiki shows Method not Implemented
Kuroo failed to start
After updating my desktop (Gentoo), I was unable to startup kuroo. As usual, a post on the Gentoo Forumsprovided me with the needed answer:
rm ~/.kde/share/config/session/kuroo* rm ~/.kde/share/config/kuroorc su -c 'cp /var/cache/kuroo/backup ~/KurooBackup -rf' su -c 'rm -rf /var/cache/kuroo'
Link shell extension for ntfs junctions
ISPConfig on Gentoo
Archive mail with imapsync on Courier-IMAP
I've been looking for a way to archive my mail and keep it readable from my email client. I work with evolution on a local Courier-IMAP server, running on my server.
Finally found it through imapsync. This one program is able to login your IMAP account, parse through your IMAP folder and move mail to another IMAP account if it matches certain criteria. I wanted to move mail that's older than 1 year. So I made an extra IMAP account 'archive' and had imapsync move my old mail items there.
The command looks as follows:
imapsync --host1 mail.olympus.home --user1 james@mail.olympus.home --passfile1 /etc/courier/mailarchive/james --authmech1 LOGIN --host2 mail.olympus.home --user2 archive@mail.olympus.home --passfile2 /etc/courier/mailarchive/archive --authmech2 LOGIN --minage 365 --syncinternaldates --syncacls -nofoldersizes --delete --expunge --expunge1
Only when running this the second time, it expunges the moved mail from the source account. Further it got stuck on one mail message (with a 108 Mb attachment) ending the process with "Out of memory". I moved that message manually, before running imapsync again.
And adding this command to my crontab makes mail archiving easy. I still have to watch out for concurrent IMAP access, but setting the cron entry on moment when I'm not working, solves that problem for me as well.
Imapsync can be found at http://www.linux-france.org/prj/.
Fetching your gmail messages through POP3 SSL with fetchmail
eix and layman
eix is a indexing tool for Gentoo's portage or as they call it a "Small utility for searching ebuilds with indexing for fast results"
layman is a portage overlay manager, adding extra (custom or user) ebuilds to the ones of Gentoo.
Now wouldn't it be nice if those two can work together, making it possible to search and index the added overlays.Well, by default it doesn't. It looks like eix can't understand layman's entry :
source /usr/portage/local/layman/make.conf
To fix this, have layman add the overlay entries directly into /etc/make.conf by changing the make_conf entry in /etc/layman/layman.cfg like this
make_conf : /etc/make.conf
Now your update-eix will find the newly added overlays and start indexing them. Happy searching!
PyTelemeter Ebuild
restart service with mtimes differ
When restarting Apache on Gentoo I was getting messages like these :
/etc/init.d/apache2 restart * Re-caching dependency info (mtimes differ)... * Stopping apache2 ... [ ok ] * Re-caching dependency info (mtimes differ)... * Re-caching dependency info (mtimes differ)... * Re-caching dependency info (mtimes differ)... * Re-caching dependency info (mtimes differ)... * Starting apache2 ...
It took only a little while to find out that a simple command like
/etc/init.d/depscan.sh --update
solved the problem for me.
Speeding up portage with cdb
Installing Fedora Core 4 further
http://www.fedorafaq.org/
http://home.gagme.com/greg/linux/fc4-tips.php
http://stanton-finley.net/fedora_core_4_installation_notes.html
VirtualHosts on Apache
I have a little apache server running on my desktop to test out stuff. Every web developer does have one.
I have configured mine to use virtual hosts. In my local DNS (another machine), I pointed all subdomains of my desktop to my desktop as well. An example: subdomain.desktop.mydomain.home is pointing at my desktop (desktop.mydomain.home).
Now I can have my apache on my desktop treat subdomains of itself as seperate websites, with the use of VirtualHosts. This has always worked very well, untill today. Something must have changed in the parsing of the config. This is no longer valid, it seems:
<virtualhost>
DocumentRoot /var/www/subdomain/htdocs
ServerName subdomain.desktop.mydomain.home
<directory var="" www="" subdomain="" htdocs="">
AllowOverride All
Options FollowSymLinks
Order allow,deny
Allow from All
</directory>
RewriteEngine On
RewriteOptions inherit
</virtualhost>
I had to put the values of DocumentRoot and ServerName between quotes before I got them to work again, like this:
<virtualhost>
DocumentRoot "/var/www/subdomain/htdocs"
ServerName "subdomain.desktop.mydomain.home"
<directory var="" www="" subdomain="" htdocs="">
AllowOverride All
Options FollowSymLinks
Order allow,deny
Allow from All
</directory>
RewriteEngine On
RewriteOptions inherit
</virtualhost>Hope this helps...

