Archive:

Month: December 2013


In chroot environment, screen works only for root

By: | Post date: December 9, 2013 | Comments: No Comments

Posted in categories: Computer Tips, Work related

First the system has the following system mounting points /proc, /sys, /dev, /dev/shm, /dev/pts, mounted properly. However, in some OS, the file /usr/libexec/pt_chown has the permission -rws–x–x This seems not working in the chroot subsystem. By changing the permission of the file /$chroot_root/usr/libexec/pt_chown to -rwsr-xr-x screen works in chroot system.

run a list of files

By: | Post date: December 4, 2013 | Comments: No Comments

Posted in categories: Computer Tips, Work related

command $(cat filelist)

sed replace return

By: | Post date: December 4, 2013 | Comments: No Comments

Posted in categories: Computer Tips, Work related

sed ‘:a;N;$!ba;s/\n/ /g’ infile > outfile