Category: Work related


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.

upgrade RHEL5 to RHEL6

By: | Comments: 3 Comments

Posted in categories: Computer Tips, Work related

By adding in “upgradeany” after the RHEL6 installation CD/DVD’s GRUB interface, it allowed to do the upgrading. (Press TAB, and add on upgradeany after initre=initrd.img) However, it failed on package kde-filesystem. To resolve this, press Ctrl-Alt-F2, it will bring you into a shell of the installation environment. From here, you can try $ cd /mnt/source/Packages […]

Install NVIDIA driver to RHEL6

By: | Comments: No Comments

Posted in categories: Computer Tips, Work related

$ setsebool -P allow_execstack on $ nano /etc/modprobe.d/nvidia-installer-disable-nouveau.conf and put in blacklist nouveau options nouveau modeset=0 $ nano /boot/grub/grub.conf and append nomodeset rdblacklist=nouveau to the kernel line $ nano /etc/inittab change id:5:initdefault: to id:3:initdefault: $ shutdown -r now After reboot: $ sh NVIDIA-Linux-x86_64-xxx.xx.xx.run It will install normally. $ nano /etc/inittab change id:3:initdefault: to id:5:initdefault: $ […]

Check RAM slot in Linux using dmidecode

By: | Comments: 10 Comments

Posted in categories: Computer Tips, Work related

# dmidecode can see the server chasing information such as server tag, server model, product model and more… # dmidecode -t -17 | grep Size to can view the RAM size that been installed and the slot not yet installed RAM. To check the maximum RAM capacity can installed.. # dmidecode -t 16 # dmidecode […]