CentOS :: Increase tmpfs / shm size
Posted by blackonsole on September 9th, 2013 09:00 AM | No Comment
:: What's tmpfs
tmpfs is a common name for a temporary file storage facility on many Unix-like operating systems.
:: How to increase tmpfs or /dev/shm size
+ See current size
df -h
some like this
df -h
Filesystem ...
CentOS :: /etc/bashrc read-only
Posted by blackonsole on November 23rd, 2012 01:56 AM | No Comment
:: How to fix /etc/bashrc read only issue on CentOS
+ error permission denied
# echo "alias ftp='/usr/bin/ftp'" >> /etc/bashrc
-bash: /etc/bashrc: Permission denied
# ls -l /etc/bashrc
-rw-r--r-- 1 root root 1708 Sep 22 2009 /etc/bashrc
+ check and change attribute file
# lsattr /etc/bashrc
----i-------- ...
XEN:: How to reset root password in guest vm
Posted by blackonsole on October 20th, 2012 03:18 PM | No Comment
:: How to reset root password in guest vm
+ Find info for guest disk file
xm list
cat /etc/xen/guest_name.conf
# you will see like this
disk =
+ mounting disk file and reset the root password
mount -o loop /dev/xen_vol1/vs1001 /mnt
chroot /mnt
mount -o remount,rw /
passwd
mount ...
:: Drive Critical: /dev/loop0 (/var/tmp) is 92% full
Posted by blackonsole on April 13th, 2012 02:16 AM | No Comment
:: cPanel warning / error
Drive Critical: /dev/loop0 (/var/tmp) is 92% full
:: How to fix Drive Critical /var/tmp on cPanel
+ edit /scripts/securetmp file
vi /scripts/securetmp
# increase the size on this line (2GB)
my $tmpdsksize = 2097152; ...