Remove old kernels on Linux
Display current kernel
$ uname -r
$ uname -mrs
On ubuntu
- List all installed kernels
$ dpkg --list | grep linux-image
- Remove old kernels
$ sudo apt-get autoremove
Just think about micro things
$ uname -r
$ uname -mrs
$ dpkg --list | grep linux-image
$ sudo apt-get autoremove
The following command creates a proxy channel on linux server if logon success. The proxy server is localhost:1080.
ssh -D 1080 -C -N yourname@yourLinuxServer
Powerline is very cool status line for vim and easy to setup. It also supports shell prompt. But Powerline-shell is better for shell prompt because it can suppor version control information.
SERVICE=lighttpd
if ps ax | grep -v grep | grep $SERVICE > /dev/null; then echo -n "\"$SERVICE\" : \"running\","; else echo -n "\"$SERVICE\" : \"not running\","; fi
edit file /etc/apt/apt.conf
Acquire::http::proxy "http://username:password@host:port/";
Acquire::ftp::proxy "ftp://username:password@host:port/";
Acquire::https::proxy "https://username:password@host:port/";
edit file /etc/environment
http_proxy=http://username:password@host:port/
ftp_proxy=ftp://username:password@host:port/
https_proxy=https://username:password@host:port/
Find a good website Tutorialspoint. It has technical tutorials and HR Interview Questions
Docker user has root privilege on host. The default user in container is root. In order to secure docker, we can create a user in docker container and run as non privilege user. The problem is that some services in docker need to write data to disk. E.g. druple has a files folder to store user uploaded files.
Reference:
http://gregtechnobabble.blogspot.com/2012/11/enabling-ldap-ssl-in-windows-2012-part-1.html
https://www.petri.com/enable-secure-ldap-windows-server-2008-2012-dc-configuration