debain 必备软件安

开机启动项设置

apt-get install sysv-rc-conf

启动守护工具

apt-get install supervisor

«««< HEAD

swap

cd /var/

dd if=/dev/zero of=swapfile bs=1024 count=1038336

/sbin/mkswap swapfile

swapon swapfile

swapon –s

echo "/var/swapfile swap swap defaults 0 0" >>/etc/fstab

更新内核

=======

docker

安装drocker

1. nano /etc/apt/sources.list
2.添加 deb http://http.debian.net/debian jessie-backports main
3. apt-get update
4. apt-get install docker.io
5. docker run --rm hello-world 

清除drocker包

使用purge命令清除docker-io包。
apt-get purge docker-io

或

apt-get autoremove --purge docker-io 

或 (根本清除)

rm -rf /var/lib/docker

更新内核(暂时未验证)

1ff1df9a82218b0e33867cc2281c4bbddeef1e8c

参考网址

http://www.linuxidc.com/Linux/2016-04/129823.htm

更新环境

apt-get install libncurses5-dev
apt-get install bc

编译内核

1. https://www.kernel.org/
2. wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.8.6.tar.xz 
3. xz -d linux-4.8.6.tar.xz
4. tar -xvf linux-4.8.6.tar
5. cd linux-4.8.6
6. make mrproper
7. make menuconfig
8. make