Archive for category Howto

Installing Perl modules

Perl modules may be installed using the CPAN module or from source.
CPAN method
perl -MCPAN -e shell (to get an interactive CPAN shell)
perl -MCPAN -e ‘install Time::JulianDay’ (if you know the name of the module, you can install it directly without interacting with the CPAN shell)

Manually install from source
1. Download the Perl module from CPAN or other site.
2. Extract the tarball.
3. Run perl Makefile.PL
4. Run make
5. Run make test (optional)
6. Run make install
Read the rest of this entry »

,

No Comments

Enable USB Camera in Virtualbox

Due to some IM need camera in my virtualbox. get the result from ubuntu
if [ "`grep vboxusers /etc/group|grep $USER`" == "" ] ; then sudo usermod -G vboxusers -a $USER ; fi
restart the virtualbox. and follow the following instructions
DO NOT add the line to /etc/fstab, or you may meet some issue :)
none /proc/bus/usb usbfs devgid=groupid,devmode=664 0 0
Details

https://help.ubuntu.com/community/VirtualBox/USB

Also: furiusisomount can mount .bin file that can be mount as cd-rom in Windows.

,

No Comments

How to deal with delete and free space

How to free/restore the space ?

When we tried to clean the disk space, maybe encounter this kind of issue. you rm some big files.
df -h doesn’t appear difference. but du -hs /directory seems different with df
simple answer maybe is : some process use the files. the process didn’t free it.

If you want to know details, here is the link:

http://www.cyberciti.biz/tips/freebsd-why-command-df-and-du-reports-different-output.html

>sudo lsof |grep ifs|grep deleted
java 17059 ifs 9w REG 253,9 632315860 1212431 /apps/ifs/IFSV01/instance/IFSV01/logs/connectserver/ifsalert.0.log.1 (deleted)

>ls -la /proc/17059/fd/9
l-wx—— 1 ifs ifs 64 Sep 13 02:16 /proc/17059/fd/9 -> /apps/ifs/IFSV01/instance/IFSV01/logs/connectserver/ifsalert.0.log.1 (deleted)

Now how to restore it ?
>cp /proc/17059/fd/9 /apps/ifs/ifsalert.0.log.1.restored

Now how to free it ?
#> /proc/17059/fd/9

More explainations: http://www.unixwerk.eu/linux/deleted_files.html

No Comments

Ruby:no such file to load — net/https

gem_original_require’: no such file to load — net/https (MissingSourceFile)

If you get this error when getting your app up and running under Ubuntu it means you still need to install the libopenssl-ruby library:

sudo apt-get install libopenssl-ruby

No Comments

Volume group “VolGroup00″ not found

Met a problem when try to copy virtualbox vdi file directly from Windows virtualbox to Linux

“Error: Volume group “VolGroup00″ not found
……
Kernel panic – not syncing: Attempted to kill init!”

Solution:
First, boot up in rescue mode, using the CentOS cd, type “linux rescue” on the first boot prompt.

Now chroot to you actual system:
#chroot /mnt/sysimage

Then, backup your initrd:
#cd /boot
#mv initrd-2.6.18-164.el5.img initrd.backup

(use the last version, or the one you are trying to boot, on the “2.6.18-92.el5.img” part)
Now rebuild your initrd:

#mkinitrd /boot/initrd-2.6.18-164.el5.img 2.6.18-164.el5
(Same thing about the versions)

#reboot

,

No Comments

Play with Grub2

Grub maybe a headache to old grub users, I updated my Laptop with New version,
really took some time to get familiar with grub2. Here is a good article :)
Cool Links for Grub2

http://www.howtogeek.com/howto/17787/clean-up-the-new-ubuntu-grub2-boot-menu/

,

No Comments

Alfresco installation Guides

Alfresco offers true Open Source Enterprise Content Management (ECM) – Document Management, Collaboration, Records Management, Knowledge Management, Web Content Management and Imaging.

Installation guides with snapshots, clear to follow

http://www.linuxdict.com/books/Alfresco.pdf

PS: The Alfresco installer also support console, so we can install minimal system. and install the Alfresco. no X is needed.
Details: http://wiki.alfresco.com/wiki/Main_Page

No Comments

Where is nagstamon configuration?

My nagstamon crashed sometimes and the configuration lost.

but can’t find where the hell configuration is. so got the solution: define the configuration manually.

Everything should get at its place and you can start it from Start menu/Programs/nagstamon. When run from command line with “nagstamon” you can pass a configfile like “nagstamon configfile” in case you want to store it at another place than default. It starts automatically at login. Details: http://nagstamon.sourceforge.net/setup/

Now my shortcut looks like: “C:\Program Files\nagstamon\nagstamon.exe” nagconfig.conf
The configuration lays in C:\Program Files\nagstamon\nagconfig.conf , good news it also encryto the password. cool :)

, ,

No Comments

Get the process like “netstat -anpt” on Solaris

Two ways to get which process is Listen on the specific port on Solaris

1. lsof -i:port_number
e.g. lsof -i:22

2. Use scripts that combined with pfiles

e.g. get_port.sh 22

Read the rest of this entry »

,

2 Comments

Nginx+php with fpm repository

Glad to announce we got nginx php fpm packaged.

Version: PHP 5.2.13 with Suhosin-Patch 0.9.7 + Nginx 0.7.65

Details: http://www.linuxdict.com/lemp/readme.txt

Any advice/questions would be appericated

, ,

No Comments