Category: Computer Tips


Using OpenVPN to export NFS in private network

By: | Comments: No Comments

Posted in categories: Computer Tips, Work related

1. Follow instruction in http://fedoraproject.org/wiki/Openvpn to set up OpenVPN server on the gateway node of your private network, and OpenVPN client on your external nodes that need to access the NFS server inside the private network behind your OpenVPN server node; 2. Start the OpenVPN server and clients, in each client nodes, add custom route […]

Enable Java in your Firefox in RHEL4

By: | Comments: 1 Comment

Posted in categories: Computer Tips, Work related

Once you have your Java installed, in /usr/java/jre1.6.0_29* cd /usr/lib64/firefox-3.*/plugins ln -s /usr/java/jre1.6.0*/lib/amd64/libnpjp2.so libnpjp2.so Then restarted Firefox and once loaded, java will be working in your browser!

Remove stale nfs handle

By: | Comments: No Comments

Posted in categories: Computer Tips, Work related

Have you ever tried to delete a file and noticed that it turned into a .nfs file? This is because some process still has an open file handle on this file. The .nfs file is typically named .nfs followed by a bunch of digits eg. .nfs000000000189806400000085. To identify the actually process which has the open […]

Using interactive R script in batch mode

By: | Comments: 1 Comment

Posted in categories: Computer Tips, Work related

According to R manual, http://cran.r-project.org/doc/manuals/fullrefman.pdf, page 411, ” Value A character vector of length one. Both leading and trailing spaces and tabs are stripped from the result. In non-interactive use the result is as if the response was RETURN and the value is “”. ” So, if you have an R script that used readline […]

RHEL6 and fedora hide user list in log in screen

By: | Comments: 3 Comments

Posted in categories: Computer Tips, Work related

gconftool-2 –config-source xml:readwrite:/etc/gconf/gconf.xml.defaults –direct –type bool –set /apps/gdm/simple-greeter/disable_user_list true

Ports:

By: | Comments: No Comments

Posted in categories: Computer Tips, Work related

Dell Server Admin: 1311 3Ware Server Admin: 888 APC Admin: 6547

When /etc/fstab is inconsistent

By: | Comments: 2 Comments

Posted in categories: Computer Tips, Work related

The system will drop you into a shell after  asking you root password. However, you cannot correct /etc/fstab since / is readonly. Now you need to do $ mount -o remount,rw / to enable it.  Then you are free to correct it.

When NFS4 mount as nobody:nobody

By: | Comments: 3 Comments

Posted in categories: Computer Tips, Work related

The rpc.idmapd malfunctioned. Cure: service rpcidmapd restart Work in: RHEL6 Also, check /var/log/message of the client to see which domain it expects. If you see line as rpc.idmapd[10199]: nss_getpwnam: name ‘user@domain’ does not map into domain ‘some_domain’ you’d go to the server and add line Domain = some_domain under the [General] section of /etc/idmapd.conf and […]

Upgrade RHEL5 to RHEL6

By: | Comments: 19 Comments

Posted in categories: Computer Tips, Work related

Redhat always recommends to reinstall from scratch for a major version upgrade of its RHEL system. However, if you have a highly customized system with plenty third party softwares and non-standard settings, even if you have a full record of all customer settings, it will still be a big job, days, and aftermath to have […]

Linux reboot without chkdisk

By: | Comments: No Comments

Posted in categories: Computer Tips, Work related

add option fastboot in grub.