apt-get install vlockOnce installed, issue command vlock, here is what you will see:
This TTY is now locked. Please press [ENTER] to unlock.Read more about vlock here.
Simplicity and elegance are unpopular because they require hard work and discipline to achieve and education to be appreciated. — Edsger W. Dijkstra
apt-get install vlockOnce installed, issue command vlock, here is what you will see:
This TTY is now locked. Please press [ENTER] to unlock.Read more about vlock here.
echo "deby01" > /etc/hostname
127.0.0.1 localhost # In some circumstance it is not recommended to # resolve machine name to local ip address #127.0.1.1 deby01.dev.local deby01
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.10.21
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255
gateway 192.168.10.1
domain dev.local search dev.local dev.local. corp.local. nameserver 192.168.10.2 nameserver 192.168.10.3
echo "deby01" > /etc/hostname
127.0.0.1 localhost # In some circumstance it is not recommended to # resolve machine name to local ip address #127.0.1.1 deby01.dev.local deby01
# The primary network interface allow-hotplug eth0 iface eth0 inet dhcp # If you experience issues with obtaining # default gateway consider uncomment lines below. # up route add default gw 192.168.10.1 # down route del default gw 192.168.10.1
send host-name "deby01";
prepend domain-name-servers 8.8.8.8, 8.8.4.4;
ifdown eth0 && ifup eth0
deby01:~# ifconfig eth0 | grep inet inet addr:192.168.10.41 ...
apt-get install kernel-package libncurses5-dev fakeroot bzip2 build-essential
usermod -a -G src user1
chgrp -R src /usr/src chmod g+s /usr/src chmod -R g+w /usr/src
cd /usr/src
wget -c http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.36.tar.bz2
tar xjf linux-2.6.36.tar.bz2 test -L linux && rm linux ln -s linux-2.6.36 linux cd linux
cp /boot/config-`uname -r` /usr/src/linux/.config
make menuconfig
time fakeroot make-kpkg -j 2 --initrd --append-to-version=-custom kernel_image kernel_headers
deby01:/usr/src$ ls -l *.deb linux-headers-2.6.36-custom_2.6.36-custom-10.00.Custom_amd64.deb linux-image-2.6.36-custom_2.6.36-custom-10.00.Custom_amd64.deb
dpkg -i *.deb
shutdown -r now
deby01:~$ uname -r 2.6.36-custom
apt-get install kexec-toolsOnce installed make your current kernel the one you want to quickly reboot into:
kexec -eIn case you would like disable fast reboot, open file located at /etc/default/kexec and set LOAD_KEXEC to false:
# Defaults for kexec initscript # sourced by /etc/init.d/kexec and /etc/init.d/kexec-load # Load a kexec kernel (true/false) LOAD_KEXEC=true # Kernel and initrd image KERNEL_IMAGE="/vmlinuz" INITRD="/initrd.img" # If empty, use current /proc/cmdline APPEND=""