GPU install
apt-get update
apt-get dist-upgrade
apt-get install -y linux-headers-$(uname -r)
apt-get install nvidia-kernel-dkms
sed's/quint/quiet nouveau.modeset=0/g' -i/etc/default/grub update-grub
reboot
verify:
glxinfo |grep -i "direct rendering"
***********
ulimit -s (stack)
vi .bashrc (modify all time)
*********laptop mode********
xxx.sh
#!/bin/bash
currentMode=$(cat /proc/sys/vm/laptop_mode)
if[$currecntMode -eq 0]
then
echo "5">/proc/sys/vm/laptop_mode
echo "Laptop Mode Enabled"
else
echo "0">/proc/sys/vm/laptop_mode
echo "Laptop Mode Disabled"
fi
***************
run level:0->shutdown 6->reboot 1->single user mode 2345->multi-usr mode
update-rc.d ssh(network service name) default
/etc/init.d/ssh(service name) start