Linux How to
How to Crop Multiple images in the same manner
by lpilinuxblog on May.24, 2010, under Linux How to
Sometimes you’ll want to crop the same area from multiple images (think of taking the contents of the same window from a load of screenshots). Of course, you could fire up your favourite image editor to select and crop over and over, but, as usual, there is a better way. This short tutorial describes an efficient way to do this for a theoretically infinite amount of images.
Difficulty: Basic – Medium
Note: I strongly recommend making a backup of the images you’re using for this tutorial before messing with them. Some actions in this tutorial will overwrite the image files, so if you make a mistake you may lose valuable data.
BOFH Scripts
by lpilinuxblog on May.23, 2010, under Linux How to
After not writing for a little while (I call it writers block, you can call it lazy) I decided to do what any Linux Geek would do. I searched two different distributions software repositories for excuses. Fedora and Debian had quite different but interesting outputs.
Fedora’s came up with QLandkarte GT which is a GPS tool that replaces .
QLandkarte GT is the ultimate outdoor aficionado’s tool for GPS maps in GeoTiff format as well as Garmin’s img vector map format. Additional it is the PC side frontend to QLandkarte M, a moving map application for mobile devices. And it fills the gap Garmin leaves in refusing to support Linux. QLandkarte GT is the proof that writing portable applications for Unix, Windows and
BOFH Scripts
by lpilinuxblog on May.23, 2010, under Linux How to
After not writing for a little while (I call it writers block, you can call it lazy) I decided to do what any Linux Geek would do. I searched two different distributions software repositories for excuses. Fedora and Debian had quite different but interesting outputs.
Fedora’s came up with QLandkarte GT which is a GPS tool that replaces .
QLandkarte GT is the ultimate outdoor aficionado’s tool for GPS maps in GeoTiff format as well as Garmin’s img vector map format. Additional it is the PC side frontend to QLandkarte M, a moving map application for mobile devices. And it fills the gap Garmin leaves in refusing to support Linux. QLandkarte GT is the proof that writing portable applications for Unix, Windows and
How to Install Adobe AIR in Ubantu?
by lpilinuxblog on Apr.27, 2010, under Linux How to
1. Download the BIN file from the below location. (~ 13 MB)
2. Save the file in Home Folder i.e. Places ==> Home Folder
3. Run the below mentioned code on terminal
chmod +x AdobeAIRInstaller.bin
4. Now run another command as well:
sudo ./AdobeAIRInstaller.bin
5. Now complete the installation of the AIR application.
Download Adobe AIR for Linux (Select Linux and Click on Download)
How to Determine the Source of Shell Input?
by lpilinuxblog on Apr.10, 2010, under Linux How to
After a bit of pondering I came up with two solutions: the stat command and using information from the proc file system.
The first solution uses the stat command to determine what type of file is connected to standard input. First we find out what is connected to standard input:
stdin=”$(ls -l /dev/fd/0)”
stdin=”${stdin/*-> /}”
The file /dev/fd/0 is the standard input, which is a symbolic link. So we use ls to get the file it’s linked to. Then we remove everything that matches *-> from the front of the value, that leaves us with the linked to file.
How to Install VLC Media Player in Ubantu?
by lpilinuxblog on Apr.10, 2010, under Linux How to
Graphical way
Open Synaptic (System -> Administration -> Synaptic Package Manager). In Settings -> Repositories, make sure you have a “multiverse” repository activated.
Search for vlc and install it. You should also install vlc-plugin-pulse, mozilla-plugin-vlc (and libdvdcss2).
If you are interrested in streaming or transcoding, you should also install libavcodec-extra-52.
Command line way
You need to check that a “multiverse” mirror is listed in your /etc/apt/sources.list.
% sudo apt-get update
% sudo apt-get install vlc vlc-plugin-pulse mozilla-plugin-vlc
How to Instal Suhosin PHP 5 Protection Security Patch – Red Hat EL5 / CentOS EL5 Linux
by lpilinuxblog on Apr.10, 2010, under Linux How to
Download latest version of Suhosin, enter:
# cd /opt
# wget http://download.suhosin.org/suhosin-0.9.27.tgz
Make sure you have php-devel installed:
# yum install php-devel
Compile Suhosin under PHP 5 and RHEL / CentOS EL5 Linux
Type the following commands:
# tar -zxvf suhosin-0.9.27.tgz
# cd suhosin-0.9.27
# phpize
#./configure
# make
# make install
Configure Suhosin
Type the following command to create Suhosin configuration file:
# echo ‘extension=suhosin.so’ > /etc/php.d/suhosin.ini
Restart web server
Type the following command to restart httpd:
# service httpd restart
If you are using lighttpd, enter:
How to Install GRUB on the other Disk
by lpilinuxblog on Apr.10, 2010, under Linux How to
After adding a new disk to your raid chain it’s a good idea to make it bootable as well by installing grub on MBR. When boot drive in your raid array becomes faulty all you’ve to do is to power off your machine, substitute your faulty drive and boot your computer again. If you’ve properly set bios boot sequence to iterate between primary, secondary, … you can boot your raid array again, second or third HD makes the boot because you’ve installed grub on it, pretty easy and straightforward, this contributes to have a bulletproof system.
Experiments with Gtalk and Gtalk Cheat Sheet
by lpilinuxblog on Apr.05, 2010, under Linux How to
1. Use multiple identities on Google Talk
Want to run Google Talk with multiple Gmail identities? If you have several Google Gmail accounts you also may want to run multiple instances of Google Talk This is especially important for families that share a single PC. Basically, to have “Google Polygamy” you need to run Google Talk with the following switch: /nomutex
* Right-click on the desktop
* Select New -> Shortcut
* Paste the following into the Address box:
“C:\program files\google\google talk\googletalk.exe” /nomutex
How to Secure SSH and SSL Services?
by lpilinuxblog on Apr.05, 2010, under Linux How to
* If you want/have a ( ssh/ssl based ) secure “login” server …
o You should have different passwd for each service and servers
o You should NOT run telnet, use ssh securely instead
o You should NOT run ftp, use scp securely instead
o You should NOT run pop3/imap, use secure pop3s/imaps instead
o You should NOT run ppp, put it on a different server…
o You should NOT run dhcp, put it on a different server…
o You should NOT run wireless, put it on a different server…