When configuring the VPS, keep a record of it ~ ~
Add some sources:
Vi/etc/apt/sources.list
Deb http://tf.archive.ubuntu.com/ubuntu/xenial main restricted# DEB-SRC http://tf.archive.ubuntu.com/ubuntu/xenial main restrictedDeb http://tf.archive.ubuntu.com/ubuntu/xenial-updates main restrictedDeb http://Tf.archive.ubuntu.com/ubuntu/xenial UniverseDeb http://Tf.archive.ubuntu.com/ubuntu/xenial-updates UniverseDeb http://tf.archive.ubuntu.com/ubuntu/xenial Multiverse# DEB-SRC http://tf.archive.ubuntu.com/ubuntu/xenial MultiverseDeb http://tf.archive.ubuntu.com/ubuntu/xenial-updates Multiverse# DEB-SRC http://tf.archive.ubuntu.com/ubuntu/xenial-updates MultiverseDeb http://tf.archive.ubuntu.com/ubuntu/xenial-backports main restricted universe multiverse# DEB-SRC http://tf.archive.ubuntu.com/ubuntu/xenial-backports main restricted universe multiverse# Deb-SRC http://security.ubuntu.com/ubuntu xenial-security main restrictedDeb http://Security.ubuntu.com/ubuntu xenial-security Universe# DEB-SRC http://Security.ubuntu.com/ubuntu xenial-security UniverseDeb http://Security.ubuntu.com/ubuntu xenial-security Multiverse# DEB-SRC http://Security.ubuntu.com/ubuntu xenial-security Multiverse
Update
Apt-get Update & Apt-get upgrade---configure-A refresh after cleanup: apt-get clean&& apt-get AutoClean && apt-get autoremove-y apt-get purge software name recommended uninstall when using the command apt-get remove software name Delete the appropriate software (actually delete all the/var/cache/apt/archives directories with the Deb file) apt-get purge software name to remove the software, while removing the configuration of the software File apt-get clean to unload all stored installation packages apt -get autoremove automatically cleans up useless meta package
安装mysql:apt-
get
install mysql-server mysql-client
Install desktop environment Xfce4:apt-get install Xfce4
Installing Apache2:sudo apt-get Install Apache2
Configure the root directory of the modified Web site1, sudo vi/etc/apache2/apache2.conf found"<Directory/var/www/>"the location-Change"/var/www/"The new root directory is available. 2, enter in the terminal window"sudo vi/etc/apache2/sites-available/000-default.conf"Find"documentroot/var/www/html"the location-Change"/var/www/html"For the new root directory, here I'll change it to"/var/www/"。
VirtualHost the * on behalf of the wildcard character, that is, all the native IP address, listening port for 80,servername fill in your registered domain name
Installing the GNOME desktop environment
First you need to make sure that you have enabled the universe and Multiverse repositories in the/etc/apt/sources.list file, and then execute the following command:
sudo apt-get update
sudo apt-get install Ubuntu-desktop
The above command installs the Gnome desktop environment.
If you do not want to install some additional programs such as e-mail programs and OpenOffice suites, the following commands are available: sudo aptitude install--no-install-recommends ubuntu-desktop
If you want a lightweight desktop Xfce, execute: sudo apt-get install Xubuntu-desktop
The KDE desktop uses the following command: sudo apt-get install Kubuntu-desktop
Customizing the installation desktop 1) Install the base of the X-windows (required) #sudoApt-getInstallx-window-system-Core2Install GNOME Foundation (required) #sudoApt-getInstallgnome-Core3) Install Chinese display (recommended installation) #sudoApt-getInstallLanguage-pack-gnome-zh-->Let Gnome panel, menu display Chinese #sudoApt-getInstallLanguage-pack-gnome-zh-base language-pack-zh-->Chinese Language Pack #sudoApt-getInstallLanguage-pack-zh-base language-support-zh-->Chinese Language Support 4) Install the login manager (typically not selected) #sudoApt-getInstallGDM Description: GDM (Gnome display manager) is the Gnome graphical interface display manager, as well as the KDM/XDm and so on, it will allow you to go directly to the GUI desktop environment at startup without having to start the GUI via StartX. 5Install the new benefit Software Manager (optional):sudoApt-getInstallsynaptic6) Uninstall the GNOME desktop environment:sudoapt-get–purge Remove Liborbit27) into the graphical interface: #startx8) Exit Graphics Desktop: #ctrl + ALT + BACKSPACE
most streamlined installation $sudo apt-get install Gnome-shell gnome-panel Gnome-menus gnome-session GDM $sudo Apt-get install gnome-tweak-Tool installation Management Tools There are many custom themes for Ubuntu that can affect the appearance of apps and Windows. Theme Changes you canFind more information about Numix themes and icons in http://numixproject.org/.
Open the terminal and enter the following command to install, such as the Numix theme: sudo add-apt-repository ppa:numix/ppasudo apt-get update && sudo apt- Get Install Numix-gtk-theme
Installing Webmin, Web-based system management tools
execute the following command:sudo VI/etc/apt/sources.list Add a line: Deb http://download.webmin.com/download/repository Sarge ContribSave and exit, and then execute the following command: CD/Rootwgethttp//WWW.WEBMIN.COM/JCAMERON-KEY.ASCsudoApt-key Add jcameron-KEY.ASCsudoapt-Get updatesudoApt-getInstallWebmin installation is complete, then open the browser to access https://your-server-ip:10000/
Enter your username and password (users with sudo privileges in Ubuntu system, or root account)
Log in to the Administration page, as shown in:
Through this interface, you can configure including Apache, MySQL server.
Install Typecho Blog
Official website: http://typecho.org/
Installation: Http://docs.typecho.org/install
Debain/ubuntu One-click installation configuration Nginx+php+mysql
wget https://sourceforge.net/projects/mapn-l/files/nmp.tar.gz foreign direct link download install tar xvf nmp.tar.gz. /setup.sh
Installing Metaspolit
Curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/ Metasploit-framework-wrappers/msfupdate.erb > Msfinstallchmod755 msfinstall. /msfinstall
http://blog.csdn.net/x1y31/article/details/5724686
Https://help.rapid7.com/metasploit/index.html
Compiling and installing php5.2 in the Debian 8 system
Https://bbs.aliyun.com/read/269147.html
Debian 7 Installation Configuration Summary
Http://www.cnblogs.com/maowang1991/p/3362704.html
MySQL Installation and configuration
Http://www.cnblogs.com/xusir/p/3334217.html
My Linux cloud server configuration record