Setting up locally Jekyll Serve (Ubuntu)
- Requirements:
sudo apt install ruby ruby2.3-dev zlib1g-dev build-essential sudo gem install bundler
Just think about micro things
sudo apt install ruby ruby2.3-dev zlib1g-dev build-essential
sudo gem install bundler
If the website enabled ssl, the SSL certificate is required. Follow Installing an SSL Certificate in Windows Server 2008 (IIS 7.0)
HOSTNAME=servername.domain.com
sudo hostname servername.domain.com
sudo /etc/init.d/network restart
php-xml php-gd php-curl php-mcrypt php-mbstring php-gettext
For mysql: php-mysql
For Apache2: libapache2-mod-php
Setting up locally Jekyll Serve (Ubuntu)
Setting up your GitHub Pages site locally with Jekyll
kramdown quick reference
$ 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/