前两天服务器挂了,只能恢复备份,然而遇到了一点点问题。

安装并设置Sudo

su
apt install sudo
adduser user sudo

使用tigerVNC

sudo apt install tigervnc-standalone-server
sudo vncpasswd /etc/vncpasswd
nano /etc/lightdm/lightdm.conf
> [VNCServer]
> enable=true
> command=Xvnc -rfbauth /etc/vncpasswd

编译并安装SS-libev

  1. 去Github上下载最新的源码包并解压
  2. cd shadowsocks-libev
    sudo apt-get install --no-install-recommends devscripts equivs
    mk-build-deps --root-cmd sudo --install --tool "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y"
    ./autogen.sh && dpkg-buildpackage -b -us -uc
    cd ..
    sudo dpkg -i shadowsocks-libev*.deb && sudo apt install -y
  3. apt install asciidoc
  4. 下载并编译libsodium
  5. ./configure && make && make install

安装Nginx和PHP和MySQL

wget https://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key
deb http://nginx.org/packages/mainline/debian/ codename nginx
deb-src http://nginx.org/packages/mainline/debian/ codename nginx
sudo apt update && sudo apt install nginx

sudo apt install php5 php5-fpm mysql-server

nano /etc/php5/fpm/php-fpm.conf

安装Certbot

wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto --nginx
分类: Linux

发表评论

电子邮件地址不会被公开。 必填项已用*标注