Wednesday, September 30, 2009
Using Preload to boot startup and general performance for Fedora
Note 1: To install preload on Fedora 11
# yum install preload
Note 2: To tweak the preload configuration, you can tweak the
# /etc/preload.conf
(the default value should work well for all most users)
Note 3: To view the log file of the preload daemon
# less /var/log/preload.log
Note 4: If you wish to take a look on what Preload is caching for you, you go to
# /var/lib/preload/preload.state
Note 5: To ensure that the preload daemon is startup everytime
# chkconfig --level 35 preload on
Monday, September 28, 2009
OpenMPI, CentOS Linking Error - libmpi.so.0 :cannot open shared object file: No such file or directory
libmpi.so.0 :cannot open shared object file: No such file or directory
The reason for the error is that the the loader is not able to find the libmpi.so because /usr/local/lib is not in its PATH
To resolve the issues, you have to do the following
# vim /etc/ld.so.conf
(Add the /usr/local/lib into the file)
# ldconfig
Sunday, September 27, 2009
Gnome evine - Document Viewer
Evine comes by default when you install GNOME for most Linux Distribution. If evine is not installed by default, just do a
# apt-get install evine (for debian variants) OR
# yum install evine (RH variants)
Saturday, September 26, 2009
rsync with the soft-links
I was trying to rsync 1 server to another server. To ensure that the symlinks are copy across as symlinks, do the following:
# rsync -rvl /opt/intel server2:/opt/intel
(Make sure the "-l" is included)
Friday, September 25, 2009
Installing MPI4py on CentOS
Step 1: Install Python and dependencies
# yum install python python-devel python-lib
Step 2: Build OpenMPI with Intel Compiler
See Blog Entry Building OpenMPI with Intel Compiler (Ver 2)
Step 3: Get and install MPI4py
# wget http://mpi4py.googlecode.com/files/mpi4py-X.X.X.tar.gz
Step 4: Build the MPI4py
Step 5: Setup of MPI
# python setup.py build
# python setup.py install
Step 6: Testing
Issuing at the command line:
$ mpiexec -n 5 python demo/helloworld.py
(will launch a five-process run of the Python interpreter and run the test scripts)
Important Notes
For more information on the installation of MPI4py, see the official MPI4py User Guide
Thursday, September 24, 2009
Scientific Software for Python - Numpy, scipy, pyMPI
SciPy is open-source software for mathematics, science, and engineering. It is also the name of a very popular conference on scientific programming with Python. The SciPy library depends on NumPy, which provides convenient and fast N-dimensional array manipulation. The SciPy library is built to work with NumPy arrays, and provides many user-friendly and efficient numerical routines such as routines for numerical integration and optimization.
pyMPI is a project integrating the Message Passing Interface (MPI) into the Python interpreter.
Tuesday, September 22, 2009
Installing xrdp on Fedora 11
Step 2: Create soft link to startup xrdp automatically in case of reboot
# ln -s ../init.d/xrdp s99xrdp
# service xrdp restart
Step 3: Configure the firewall via System > Administration > Firewall
Allow port 3389 (TCP) in as shown below
Monday, September 21, 2009
Installing Nvidia Drivers on Linux Mint
Step 1: Down the Nvidia drivers from http://www.nvidia.com/Download/index.aspx?lang=en-us
Step 2: CTRL+ALT+F1 to take you into a non-X terminal
Step 3: Stop /etc/init.d/gdm (GNOME)
# /etc/init.d/gdm stop
Step 4: Install Nvidia Drivers
# ./NVIDIA-Linux-x86-185.18.36-pkg1.run
(Install Nvidia drivers that match your graphics card and follow the installation wizard)
Step 5: Start /etc/init.d/gdm
# /etc/init.d/gdm start
Sunday, September 20, 2009
Speeding up boot time by Optimising Physical Memory and Swap
Alternatively, if you have very little memory (For example: 256MB or below), you may want to increase swappiness to boost performance.
To change the swappiness, You have to edit the /etc/sysctl.conf. /etc/sysctl.conf is a file tocontain sysctl which configure kernel parameters at runtime.
# vim /etc/sysctl.conf
At the bottom of the file /etc/sysctl.conf, add the following parameters
---------------------------------
vm.swappiness=5
---------------------------
Reboot and you will notice the difference. You may want to use conky to monitor the memory/swap usages
Saturday, September 19, 2009
Speeding up boot time by running boot processes in parallel for Linux Mint
Step 1: Edit /etc/init.d/rc and change CONCURRENCY from none to shell
# vim /etc/init.d/rc
---------------------------
CONCURRENCY=shell
---------------------------
You should notice a performance improvement in your boot-time.
Friday, September 18, 2009
The netbook distro - Moblin 2.0 beta
Moblin is Intel's initiative to develop a linux-based OS for mobile devices like netbook. According to the Moblin website, Moblin v2.0 boast the following feastures:
- New, visually rich user experience
- The myzone, acting as the 'home screen' panel
- Aggregation of your social networking content
- A web browser optimized for the Moblin 2.0 netbook user interface
- A 'Zoomable' media player
- A user interface for connection management
Currently, it is v2.0 beta and according to the website tested moblin on the following netbook
- Acer Aspire*One,
- Asus eeePC* 901, 1000H,
- Dell Mini 9, MSI Wind,
- Lenovo S10,
- Samsung NC10,
- HP Mini 1010 and 1120NR (wired networking only for now).
For more information, do go to Moblin Website
Thursday, September 17, 2009
Remove the timeout during boot time
However, if you have a modern machine and you wish to boot fast, you can edit
# /boot/grub/menu.lst
----------------------------------
timeout 0
----------------------------------
(Change timeout from 5 to 0)
You just save 5 seconds from your boot time
Tuesday, September 15, 2009
Using dhcpcd to fix dhcp client settings
To install dhcpcd, just install
# apt-get install dhcpcd
Some application of dhcpcd.
Note 1: Don't let the DHCP program modified your /etc/resolv.conf
# dhcpcd -R eth1
Note 2: Getting your preferred IP Address from the dhcp server. This is especially useful in a small network like home network
# dhcpcd -k (release the dhcp release)
# dhcpcd -s xxx.xxx.xxx.xxx eth1
Note 3: Preventing DHCP from installing default route
# dhcpcd -k (release the dhcp release)
# dhcpcd -G xxx.xxx.xxx.xxx eth1
For more usages, you can visit the online man page for dhcpcd
Monday, September 14, 2009
Installing Adobe Air on 32-bit Linux Mint
Step 1: Use dpkg to enumerate adobe application
# dpkg -l | grep adobe
Step 2: Install Dependency for Adobe Flash
# apt-get install libnspr4-dev libnss3-dev libcurl3
Step 3: Download the Adobe Flash from http://www.adobe.com/
# dpkg -i install_flash_player_10_linux.deb
Step 4: Download the Adobe AIR from http://www.adobe.com/
# chmod 755 AdobeAIRInstaller.bin
# ./AdobeAIRInstaller.bin
Sunday, September 13, 2009
Internet Barometer - Real-time statistics on Internet attacks
Interoute's Internet Barometer not only shows the countries that have been attacked but the attacking countries as well. However, information on the attacking countries are those attacking Europe at this point in time.
In addition, you can install the barometer widget which let's you have real-time information on threat status and global and local attacks. Adobe Air will be installed on your Linux Mint box to run the widget.
Saturday, September 12, 2009
Using id commands to display user and group information
# id your_userid
Friday, September 11, 2009
Setting Quota on CentOS Linux
Step 1: At the /etc/fstab, add "usrquota, grpquota" to the partition you wish to put quota on
/dev/sdb1 /home ext3 defaults,usrquota,grpquota 1 1
Step 2: Initialise aquota.user
# touch /dev/sdb1/aquota.user
# chmod 600 /dev/sdb1/aquota.user
Step 3: Remount the partition
# mount -o remount /dev/sdb1
# less /etc/mtab
(It should show the list of file system having quota entry in Step 1)
Step 4: Do a Quotacheck commands and turn the quota on
#quotacheck -avugm /dev/sdb1
(The quotacheck command will do a scan and will take a while)
# quotaon -av
# quotatstats
(Check for statistics and possible error encountered)
Step 5: To edit a quota
# edquota -u user_id
(Edit the soft and hard limit respecitvely) or alternatively
# setquota -u user_id 100 200 0 0 -a /dev/sdb1
(where 100 and 200 are the block soft and hard limit respectively)
To quota summary report, do a repquota
# repoquota -a
Further Notes:
For more details readings,
- Implementing Disk Quotas on Linux (Souptonut.sourceforge.net)
- Linux File System Quotas (Yo Linux)
Thursday, September 10, 2009
MagCloud - Publish your own magazine in the Cloud
Interesting application on using the Cloud from Hewlett Packard
Tuesday, September 8, 2009
Subversion Error - svn: Could not use external editor to fetch log messages
"svn: Could not use external editor to fetch log message; consider putting the $SVN_EDITOR environment variable or using the --message......."
"svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set..............."
To solve the issue
You have to input the environment variables in your .bash_profile in your home directory
# vim .bash_profile
--------------------------------------
export SVN_EDITOR=/usr/bin/vim
--------------------------------------
# source .bash_profile
Sunday, September 6, 2009
Xinetd daemon on CentOS
# yum install xinetd
And it is ready for your use.
Saturday, September 5, 2009
Using Gedit Plugins on Linux Mint
Although Gedit comes default for many distribution desktop. It is really more than just a pretty text editors. In fact there are quite a pool of useful plugins to use.
Step 1: First Things First. Install Gedit Plugins
# apt-get install gedit-plugins
Step 2: Accessing the Plugins
- After launching the Gedit Application, goto
Edit > gedit Preference > Plugins - Browse the Plugins and check the ones you want to use. Some of the interesting and useful plugins are the colour picker, the session savers etc
Step 3: Need more information and external Plugins
- You can find the information at http://live.gnome.org/Gedit/Plugins
Friday, September 4, 2009
Rosetta - High resolution protein prediction and design application
The Rosetta software is currently licensed for free to users at academic and nonprofit institutions. Over 2000 academic users in more than 32 countries use Rosetta. Commercial entities can use Rosetta by paying a license fee. Revenue from licensing is reinvested in supporting continued software development.
Thursday, September 3, 2009
Scons - Open Source Construction Tool
It has support for Windows and Linux. In particular, for the RHEL distribution, it has the rpm. However, it will need python > 1.5.2. But the user guide recommend Python 2.5 and above
Wednesday, September 2, 2009
Manually Changing FAT permission on USB
# mkdir -p /media/usb
# mount -t vfat -o umask=000,uid=youruserid,gid=users /dev/sdb1 /media/usb
The results will be
drwxrwxr-x 3 youruserid users 12288 1970-01-01 07:30 usb
If you want to mount the usb and only allows yourself and users in the group to view it, you can use umask=007
# mount -t vfat -o umask=007,uid=youruserid,gid=users /dev/sdb1 /media/usb
Notes on umask:
To calculate permissions which will result from specific UMASK values, subtract the UMASK from 666 for files and from 777 for directories.
If you want all files created with permissions of 666, set your UMASK to 000. Alternatively, if you want all files created with permissions of 000, set your UMASK to 666.