linux poison RSS
linux poison Email

How to Temporarily Switch Languages for One Application Only on Linux

To run a single application in another language (that has already been installed), use one of the following commands:

LANG=de_DE application to start any standard X application or GNOME application in German. For other languages, use the appropriate language code. Get a list of all language codes available using the locale -av command.

KDE_LANG=de application to start any KDE application in German. For other languages, use the appropriate language code.
Read more

Performance tuning Linux Kernel with swappiness parameter

The swappiness parameter controls the tendency of the kernel to move processes out of physical memory and onto the swap disk. Because disks are much slower than RAM, this can lead to slower response times for system and applications if processes are too aggressively moved out of memory.

swappiness can have a value of between 0 and 100

swappiness=0 tells the kernel to avoid swapping processes out of physical memory for as long as possible
swappiness=100 tells the kernel to aggressively swap processes out of physical memory and move them to swap cache

The default setting in Linux is swappiness=60. Reducing the default value of swappiness will probably improve overall performance for a typical desktop installation. A value of swappiness=10 is recommended, but feel free to experiment.

To check the swappiness value use command: cat /proc/sys/vm/swappiness

To make a change permanent, edit the configuration file with your favorite editor:

vi /etc/sysctl.conf
and add following parameter to the end of the file like so:
Save the file and reboot.

Still, there are users who insist that, for example, a system backup should never force OpenOffice out to disk. They don't care how quickly a system maintenance application runs at 3:00 in the morning, but they care a lot about how the system responds when they are at the keyboard. This wish was expressed repeatedly until Andrew Morton exclaimed:
I'm gonna stick my fingers in my ears and sing "la la la" until people tell me "I set swappiness to zero and it didn't do what I wanted it to do.
Read more

How to mount samba share on Linux client

Samba can be used to allow connectivity between Linux and Windows. Samba can be used to share printers, share directories, connect to an windows domain, and many other useful features.

In order to mount your samba share to your Linux client open up the /etc/fstab file and insert the following line into this file

// /mnt/samba cifs credentials=/etc/accessfile 0 0

Now create a new file: /etc/accessfile with following contents
Save the above file and restart your Linux client (or type command mount -a), after restart you should now able to access the share content from the samba server under /mnt/samba directory.

This is preferred over having passwords in plaintext in a shared file, such as /etc/fstab. Be sure to protect any credentials file properly and also note that there should not be any extra space in this file.

It there are any space in this credentials file you might get the following error on trying to mount the file system
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page ( mount.cifs)
Read more

Block / Remove Internet Advertisements (Ads) using BFilter on Linux

BFilter is a filtering web proxy.

BFilter was originally intended for removing banner ads only, but since then its capabilities have been greatly extended. Unlike most of the similar tools, it doesn't rely on blacklists (although it does support them). The problem with blacklists is that advertisers are always one step ahead. You see an ad slip through, you update your blacklist, and in case it didn't help, you add a new entry yourself, here BFilter would detect ads heuristically, much like modern anti-virus software manages to detect many viruses unknown to it.

  * HTTP/0.9 - HTTP/1.1, WebDAV support.
  * Persistent connections (HTTP/1.1 only).
  * Pipelining (HTTP/1.1 only).
  * HTTP compression.
  * Forwarding to another proxy (HTTP and SOCKS proxies).
  * A built-in javascript engine.
  * Heuristic Flash analyzer.
  * Ability to apply regular expressions to a page.
  * Blacklists, white-lists, hint lists.
  * All processing is done on the fly. It doesn't load the whole page before processing.

Download Linux autopackage for BFilter UI - here
Make it executable and execute it using command: ./bfilter-gui-1.1.4.x86.package

Using  BFilter:
Using BFilter is very simple, go to terminal and type command: bfilter-gui to open up the application, here you can notice the bfilter icon in the system try, right click on the icon and select the configuration of type - Basic, Advance, Forwarding and Filter

Below example show the "Forwarding" setting for bfilter where Squid proxy server (cache server) sits between bfilter and Internet

After Bfilter configuration you also need to configure your web browser to point to Bfilter.

There are other ways to block Internet Advertisements:
Block Ads by using squid and Ad Zapper
Block Ads / Malware / Spyware using hosts file (Windows / Linux)
Read more

How to view and download lyrics for various Music Players on Linux - OSD Lyrics

OSD Lyrics is an application for downloading and showing up the lyric while you play your media on following supported media players.

Media Player Support
OSD Lyrics communicates with music players through IPC.
OSD Lyrics currently supports following media players: 
 * Amarok 1.4 (use --enable-amarok1 to compile)
 * Amarok 2.0
 * Audacious
 * Banshee
 * Rhythmbox
 * Exaile

OSD Lyrics can download lyrics from following web sites:
 * Sogou
 * Qianqian 

Ubuntu 9.10 or later
Go to terminal and type following command to install osd-lyrics:
sudo add-apt-repository ppa:osd-lyrics/ppa
sudo apt-get update
sudo apt-get install osdlyrics
Go to terminal and type following command to install osd-lyrics:
su -c 'wget -P /etc/yum.repos.d/'
yum makecache
yum install osd-lyrics
or you can install osd-lyrics directly using rpm command
Download the osd-lyrics rpm file from here and install it using following command
rpm -ivh osd-lyrics-0.3.20100330-1.fc12.i686.rpm

Read more

Workign with Package Repositories in OpenSuSe - zypper

Zypper is a command line tool for installing and updating packages. It is especially useful to accomplish remote software management tasks or to manage software from shell scripts.

To list all repositories known to the system, use the command: zypper repos
The result will look similar to the following output:

Adding Repositories:
To add a repository use command:  zypper addrepo URI Alias
URI can either be an Internet repository, a directory, or a CD or DVD. The Alias is a shorthand and unique identifier of the repository.
# zypper addrepo vlc
Adding repository 'vlc' [done]
Repository 'vlc' successfully added
Enabled: Yes
Autorefresh: No
Removing Repositories:
Use following command to remove any repository
# zypper removerepo vlc
Removing repository 'vlc' [done]
Repository 'vlc' has been removed.
Modifying Repositories
To Enable repository use following command:
# zypper mr -d 15
Repository 'vlc' has been sucessfully disabled.
To Disable repository use following command:
# zypper mr -e 15
Repository 'vlc' has been sucessfully enabled.
Refreshing Repositories:
After adding of a repository or when a repository becomes out of date, it needs to be refreshed. This mean downloading package metadata from it and preprocessing the data into .solv cache for quick reading.
# zypper refresh
Retrieving repository 'KDE:KDE4:Community' metadata [done]
Building repository 'KDE:KDE4:Community' cache [done]
New repository or package signing key received:
Key ID: 27C070176F88BB2F
Key Name: KDE OBS Project
Key Fingerprint: 4E8E6DE2961F3083EAC5008627C070176F88BB2F
Repository: KDE:KDE4:Factory:Desktop
Read more

How to convert between packages (deb, rpm, tgz) using alien on Linux

alien is a program that converts between Redhat rpm, Debian deb, Stampede slp, Slackware tgz, and Solaris pkg file formats. If you want to use a package from another linux distribution than the one you have installed on your system, you can use alien to convert it to your preferred package format and install it. It also supports LSB packages

Alien should not be used to replace important system packages, like init, libc, or other things that are essential for the functioning of your system. Many of these packages are set up differently by the different distributions, and packages from the different distributions cannot be used interchangeably. In general, if you can't remove a package without breaking your system, don't try to replace it with an alien version.

Ubuntu user can install alien using following command: apt-get install alien
OpenSuSe user can install alien using "1-click" installer - here
Fedora user can install alien using command: yum install alien

Convert the package.rpm into a package.deb
alien --to-deb package.rpm

Convert the package.deb into a package.rpm
alien --to-rpm package.deb

Convert the package.rpm into a package.deb (converting to a .deb package is default, so you need not specify --to-deb), and install the generated package.
alien -i package.rpm

alien --to-deb --to-rpm --to-tgz --to-slp foo.deb bar.rpm baz.tgz
Creates 9 new packages. When it is done, foo bar and baz are available in all 4 package formats.
Read more

How to manage apache's htpasswd files on Linux

HT Password manger manages apache's htpasswd files. Manage multiple password files with separate per-file administrator. Administrators can add/delete/search and reset password for all users & users can change their own passwords.

* Manages multiple htpasswd files
* Administrators can be specified for each file.
* Identifies the role of logged in user and redirects apporpriately
* Administrators can: Add/Remove/List/Search/Reset Password for all users
* Normal Users can reset their own password

Installation and configuration.
Download the package - here
Copy the package into a desired location under your webroot and open config.php file.
For each passwd file, set the following three values:

$realm[0] -> A friendly name to identify the passwd file.  Users will see only this name.
$pwdfile[0] -> Path to the passwd file(can be absolute or relative to webroot).  The file should be writable by webserver user(nobody/apache).
$admin[0] -> User with administrative privilege.  Should be a memeber of the $pwdfile.  Multiple administrators can be specified by comma seperation.

Read more

Working with CAB file on Linux

A cabinet (.cab) file is a library of compressed files stored as a single file. Cabinet files are used to organize installation files that are copied to the user's system. A large compressed file can be spread over several .cab files. If you're using Windows XP or Windows Vista, then your operating system has built-in support for opening Cab files. They are described as "Cabinet files." Just double-click on a Cab file and it will open in Explorer, just like a folder

Linux does not include support for CAB files by default. To add the support we need to install the cabextract.

cabextract is Free Software for extracting Microsoft cabinet files, also called .CAB files, on UNIX or UNIX-like systems. cabextract is distributed under the GPL license. It is based on the portable LGPL libmspack library. cabextract supports all special features and all compression formats of Microsoft cabinet files.

To install the RPM, use the command rpm -ivh cabextract-1.2-1.i386.rpm.
To install from the source code tarball:
$ gzip -cd < cabextract-1.2.tar.gz | tar xf -
$ cd cabextract-1.2
$ ./configure
$ make
# make install
Ubuntu user can install cabextract using following command:
sudo apt-get install cabextract
Using cabextract:
Enter man cabextract to read the cabextract manual page. Also, running the cabextract command with the --help option gives a brief summary of usage

A simple example of extracting the cab file using cabextract:
$ cabextract
Read more

Ailurus makes Linux easier

Ailurus is an application which tells its users about tricks for enhancing their use of Ubuntu / Fedora Linux. It puts tricks in tool-tip text and a "Tip of the day" window. It also displays information about the system's BIOS, motherboard, CPU, and battery. It has an interface for changing some GNOME settings. It can install and remove some applications which are not provided in the official Ubuntu apt repository. It can detect the speed of apt mirrors and find the fastest one. It can enable and disable some third party repositories.

  * Help users learn some Linux skills
  * Install some nice applications
  * Enable some third party repositories
  * Display basic hardware information
  * Clean APT/YUM cache
  * Backup and recover APT/YUM status
  * Change GNOME settings

Ubuntu / Mint:
Open a terminal window and copy and pasting the following commands into your terminal:
sudo add-apt-repository ppa:ailurus
sudo apt-get update
sudo apt-get install ailurus
Open a terminal window and copy and pasting the following commands into your terminal:
su -c 'wget -O /etc/yum.repos.d/ailurus.repo'
su -c 'yum makecache'
su -c 'yum install ailurus'
In order to launch Ailurus, click menu "Applications -> System Tools -> Ailurus".

Read more

Linux based operating system for netbooks - Jolicloud

Jolicloud is a new Linux-based operating system for netbooks. The OS provides a beautiful interface, an application directory and a set of social features that make it easy and fun to use.

Initial List Of Compatible Devices:
- Acer Aspire One, Aspire 150
- Compaq Mini 700EF
- HP Mini 1000
- Lenovo S-10
- Samsung NC-10, N-310
- Asus Eee PC 700, 701SD, 900, 901, 904HD, 1000, 1000H, 1000HD, S101 / Eee Box B202 / Eee Top 1602
- Dell Mini 9, Mini 10v
- Intel Classmate and derivated
- MSI Wind 100, Wind 120

Jolicloud is an Internet operating system. It combines the two driving forces of the modern computing industry: the open source and the open web.

Jolicloud transforms your netbook into a sophisticated web device that taps into the cloud to expand your computing possibilities. The web already hosts a significant part of our lives: mails, photos, videos, and friends are already somewhere online. Jolicloud was built to make the computer and web part of the same experience.

A walkthrough of Jolicloud

More about Jolicloud- here
Read more

How to use Dropbox with KDropbox

For those of you who don't know, Dropbox is a simple on-line virtual storage utility that allows you to make your files accessible from almost anywhere. Designed for those who are tired of e-mailing files to themselves and carrying around flash drives, Dropbox looks to revolutionize the way you store and share files.

Put your files into your Dropbox on one computer, and they'll be instantly available on any of your other computers that you've installed Dropbox on (Windows, Mac, and Linux too!) Because a copy of your files are stored on Dropbox's secure servers, you can also access them from any computer or mobile device using the Dropbox website.

KDropbox is an application which offers almost the same features as the official Dropbox Linux application, but works on KDE.

KDropbox comes with .rpm and .deb packages for Mandriva, Fedora, OpenSuse, Debian and Ubuntu (and derivatives).

KDropbox requires the official Dropbox daemon to run. Step by step installation instructions for both the official Dropbox daemon as well as KDropbox (and KDropbox download) can be found here

OpenSuSe user can install KDropbox using "1-click" installer - here

Ubuntu / Debian:
Download KDropbox for Ubuntu / Debian - here
Using the terminal go to the directory containing the file and type:
sudo dpkg -i kdropbox_0.2.1_i386.deb
Fedora / CentOS:
Download KDropbox for Fedora / CentOS - here
Using the terminal go to the directory containing the file and type:
sudo rpm -ivh kdropbox-0.2.1-9.fc12.i386.rpm
After successful installation, go to terminal and type command kdropbox to start the application

Read more

How To Harden PHP5 With Suhosin on Linux

Suhosin is an advanced protection system for PHP installations. It was designed to protect servers and users from known and unknown flaws in PHP applications and the PHP core.

Suhosin comes in two independent parts, that can be used separately or in combination. The first part is a small patch against the PHP core, that implements a few low-level protections against bufferoverflows or format string vulnerabilities and the second part is a powerful PHP extension that implements all the other protections.

OpenSuSe user can install Suhosin using "1-click" installer - here

After successful installation check the entries in your /etc/php5/conf.d/suhosin.ini configuration file to suite your requirement.

Restart apache using following command:
# /etc/init.d/apache restart
Make sure Suhosin is working, type following command:
php -v
PHP 5.3.1 (cli) (built: Feb 15 2010 17:27:14)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
    with XCache v1.3.0, Copyright (c) 2005-2009, by mOo
    with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH
Check Suhosin project for more detail
Read more

Mount, Encrypt and Manage Image file and Physical Disk Drives on Linux - eMount

eMount is a free system administrator tool for Linux that can mount, encrypt and manage disk image files and physical disk drives. It relies on cryptsetup, which implements the LUKS disk encryption specification.

  * Create plain and encrypted disk images using one of the following file systems: ext2, ext3, ext4, FAT-16, FAT-32, HFS, HFS+, NTFS, ReiserFS and XFS.
  * Create encrypted volumes from physical disk drives.
  * Mount system partitions and virtual disks from the GUI or command line. The source can be plain or encrypted. List of supported file systems is O/S dependent. ISO images are widely supported.
  * Enlarge disk images (ext2, ext3, ReiserFS and XFS).
  * Copy to clone devices and disk images.
  * Supports all ciphers and hash algorithms provided by the operating system.

OpenSuSe user can install eMount using "1-click" installer - here

Ubuntu / Debian:
Download eMount for Ubuntu / Debian - here
Using the terminal go to the directory containing the file and type:
sudo dpkg -i emount_0.10.0-1_i386.deb
Fedora / CentOS:
Download eMount for Fedora / CentOS - here
Using the terminal go to the directory containing the file and type:
sudo rpm -ivh emount-0.10.0-1.i386.rpm
After successful installation, go to terminal and type command emount to open up the application

Read more

How to Accelerates the Performance of PHP Scripts - XCache

XCache is a open-source opcode cacher, which means that it accelerates the performance of PHP on servers. It optimizes performance by removing the compilation time of PHP scripts by caching the compiled state of PHP scripts into the shm (RAM) and uses the compiled version straight from the RAM. This will increase the rate of page generation time by up to 5 times as it also optimizes many other aspects of php scripts and reduce server-load.

The XCache project is lead by mOo who is also a developer of Lighttpd. Lighttpd is one of the fastest web-server programs and outperforms Apache and many other open source web-serving projects so the same is being done to XCache.

If you're interested in some benchmarks of XCache, eAccelerator, APC, etc. then checkout the Five Opcode Cache Comparison on PHP on Fire.

OpenSuSe user can install XCache using "1-click" installer - here

After sucessfull installation check the entries in your /etc/php5/conf.d/xcache.ini configuration file to suite your web-server requirement.

Restart apache using following command:
# /etc/init.d/apache restart
Make sure XCache is working, type following command:
php -v
PHP 5.3.0 (cli) (built: Oct 27 2009 17:41:09)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
    with XCache v1.3.0, Copyright (c) 2005-2009, by mOo
If you wish to set up XCache administration page, configure an alias in httpd.conf of Apache to point to the admin subdirectory (/usr/share/php5/xcache/admin) within XCache.
Read more

Linuxpoison now on Twitter

Now get the linuxpoison posts (tweets) on twiter.
Follow us on -
Read more

A professional quality Non-linear video editing suite for Linux (KDE) - Kdenlive

Kdenlive is a non linear video editor for the KDE desktop environment. The software provides project management and editing tools while relying on a separate rendering program to perform the editing operations.

It is based on the MLT video framework which relies on the FFmpeg project.

Kdenlive Support is planned for transitions, effects, multiple file formats, and full project and asset management support. The current beta release is capable of editing raw DV or AVI DV files, with tools such as move, razor, and resize, selecting parts of clips using in/outpoints, and exporting the result to another raw DV file.

Kdenlive supports all of the formats supported by FFmpeg (such as MOV, AVI, WMV, MPEG, XviD, and FLV), and also supports 4:3 and 16:9 aspect ratios for both PAL, NTSC and various HD standards, including HDV.

Video can also be exported to DV devices, or written to a DVD with chapters and a simple menu.

Features include:
  * Multi track editing
  * Video Preview
  * Accepts many audio / video / image formats: mpeg, avi, dv, vob, wav, ogg, mp3, gif (non animated), jpg, png, svg, ...
  * Export to most formats: mpeg, dv, vob, realvideo, flash, theora, wav, mp3, xvid, quicktime, ...
  * Audio and video thumbnails
  * Basic audio / video effects: blur, sepia, volume, brightness, ...
  * Basic transitions: crossfade, push, picture in picture
  * Real time preview of all effects
  * Add markers and guides to easily manage your project
  * Copy & paste of clips, effects and transitions
  * Easy firewire dv capture
  * Customizable layouts
  * Desktop integration (add files to your project with drag & drop)
  * Multi track view (preview monitor is split in 4 with one track in each part)

You can also control the tool with the keyboard, and switch between the Select, Razor, and Spacer tools from the keyboard. Kdenlive provides the ability to set guides/markers, and you can navigate those from the keyboard by using Alt+ the right and left arrow keys.

Ubuntu users can simply copy-paste the following command in Terminal to install kdenlive
sudo add-apt-repository ppa:sunab/ppa
sudo apt-get update
sudo apt-get install kdenlive
Now, simply goto Applications  Sound & Video > Kdenlive in your Ubuntu to get a taste of this all new Video Editor for Ubuntu.

OpenSuSe user can install kdenlive using "1-click" installer - here

Read more

Split and Merge files using GNOME Split

GNOME Split is a tool that allows you to split files and merge them back. It is written in Java and uses a GTK+ user interface (thanks to the java-gnome project). The goal is to offer a native implementation of similar projects which can handle multiple file formats (e.g. Xtremsplit).

  * Split and merge using the GNOME Split file format.
  * Split and merge using the Xtremsplit file format.
  * Split and merge using the KFK file format.
  * Split and merge using the YoyoCut file format.
  * Split and merge using a generic file format (like "split" and "cat" tools).
  * File integrity verification using the MD5 algorithm.
  * Notifications to show the end of a split or a merge.
  * Asssistants to make split and merge easy for new users.
  * Speed indicator to know how fast the action is performed.

Install GNOME Split 0.6 in Ubuntu Karmic and Ubuntu Lucid
Open Terminal(Applications - Accessories - Terminal) and copy-paste the following command
sudo add-apt-repository ppa:gnome-split-team/ppa
sudo apt-get update
sudo apt-get install gnome-split

Read more

How to create a customize Ubuntu distribution – Reconstructor

Reconstructor is a GNU/Linux distribution customization and creation toolkit. It allows for the customization of the Ubuntu and Debian GNU/Linux distributions. Customizations include boot logo image and text color, wallpaper, themes, icons, applications, and more.

To start using Reconstructor (it's free) go to and signup.

To use Reconstructor, you just need a modern web browser (Firefox, Safari, Chrome, etc.) with Javascript enabled. We strongly recommend against Internet Explorer, but if you must use it, Reconstructor is only known to work with Internet Explorer 8.

View the Reconstructor User Guide
Read more

Add Multimedia support in Ubuntu 10.04 LTS (Lucid Lynx)

Ubuntu 10.04 LTS (Lucid Lynx) cannot include support for MP3 or DVD video playback or recording. MP3 formats are patented, and the patent holders have not provided the necessary licenses. Ubuntu 10.04 LTS (Lucid Lynx) also excludes other multimedia software due to patent, copyright, or license restrictions, such as Adobe Flash Player and RealNetworks RealPlayer.
That doesn’t mean you can’t play .mp3 files in Ubuntu 10.04 LTS (Lucid Lynx), it just takes a bit of work (not much).

Follow these instructions to get mp3 and other multimedia support on your Ubuntu 10.04 LTS (Lucid Lynx).
$ sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list$(lsb_release -cs).list
$ sudo apt-get --quiet update
$ sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring
$ sudo apt-get --quiet update
After adding the repositories, install the codecs:
Install non-free-codecs:
$ sudo apt-get install non-free-codecs
Install DVD Support by using following command:
$ sudo apt-get install libdvdcss2
Windows codecs:
sudo apt-get install w32codecs
VLC player and Mplayer:
$ sudo apt-get install vlc mplayer
Adobe Acrobat Reader
$sudo apt-get install acroread acroread-plugins
Read more

Splitting and Joining multiple files with lxsplit

lxSplit is a simple tool for splitting files and joining the spitted files on UNIX-like platforms, such as Linux, FreeBSD, OpenBSD, etc. It is fully compatible with the HJSplit utility which is available for other operating systems. Splitting is done without compression.

OpenSuSe user can install lxSplit using "1-click" installer - here

Using lxSplit:
lxSplit splits and merges files with the -s and -j flags respectively.

To split a big file into smaller pieces of 15 MB each, run the following command:
lxsplit -s hugefile.bin 15M
Output size can be given in (M)egabytes, (k)ilobytes and (b)ytes.

To merge (join) the already split pieces into the original big file, run this command:
lxsplit -j smallfiles.bin.001
All resulting files (from either splitting or joining) will be placed in the current directory.

Note: Same thing can be done using 'split'  (to split the files) and 'cat' command (to join the files) -- here
Read more

How to Split mp3 audio files - Mp3splt

Mp3Splt is a utility to split mp3 and ogg files selecting a begin and an end time position, without decoding. It's very useful to split large mp3/ogg to make smaller files or to split entire albums to obtain original tracks. If you want to split an album, you can select split points and filenames manually or you can get them automatically from CDDB (internet or a local file) or from .cue files. Supports also automatic silence split, that can be used also to adjust cddb/cue splitpoints. You can extract tracks from Mp3Wrap or AlbumWrap files in few seconds. For mp3 files, both ID3v1 & ID3v2 tags are supported. Mp3splt is split in 3 parts : libmp3splt, mp3splt and mp3splt-gtk.

OpenSuSe user can install Mp3Splt using "1-click" installer - here
Ubuntu and Fedora user can install Mp3Splt from here

After successful installation, go to terminal and type command: mp3splt-gtk to open up the application.

Read more
Related Posts with Thumbnails