UBUNTU 16.04 installation diary

UBUNTU 16.04 Installation Diary#

My homepage www.csxiaoyao.com
I have used linux versions such as rhel, centos, ubuntu-14 before, and recently the entire system has been repartitioned, 40G is divided in the SSD, and Ubuntu 16.04 is installed. In the process of using Ubuntu, it can be seen that Ubuntu has taken a big step forward on the desktop system, and can even be used as the main mobile productivity tool. Hereby record the key ten steps for future reference.

1. Install QQ国际版##

installation:

  1. Unzip
unzip wine-qqintl.zip
  1. installation
sudo dpkg -i fonts-wqy-microhei_0.2.0-beta-2_all.deb ttf-wqy-microhei_0.2.0-beta-2_all.deb wine-qqintl_0.1.3-2_i386.deb
  1. If the dependency is wrong
sudo apt-get install -f

Go to step 1

Two, apt-get install flash

sudo apt-get install flashplugin-installer

3. Fix the two month words in the upper right corner of ubuntu16.04##

gsettings set com.canonical.indicator.datetime time-format ‘custom’
gsettings set com.canonical.indicator.datetime custom-time-format ‘%m month%d day%A%H:%M:%S’

Fourth, build a LAMP environment (install phpstudy later)

apt-get install LAMP
1. Install Apache

sudo apt-get install apache2

Check the Apache version:

apache2 -v

Browser access to Apache
2. Install PHP7

sudo apt-get install php7.0

Check the PHP version:

php7.0-v

3. Install libapache2-mod-php7.0

sudo apt-get install libapache2-mod-php7.0

Check if the installation is successful

cat /etc/apache2/mods-enabled/php7.0.load

4. Install MySQL

sudo apt-get install mysql-server

Set root password
Install php7.0-mysql

sudo apt-get install php7.0-mysql

5. Restart
Restart MySQL

sudo service mysql restart

Restart Apache

sudo service apache2 restart

6. test
Create a new php file phpinfo.php

sudo vim /var/www/html/phpinfo.php

Enter the php code, save and exit

<? php
echo phpinfo();?>

Browser access

Five, phpstudy installation and configuration##

  1. Obtain
wget -c http://lamp.phpstudy.net/phpstudy.bin
  1. Permission settings
chmod +x phpstudy.bin
  1. installation
. /phpstudy.bin

[ tips]

1. Configuration file address
apache configuration file:

/phpstudy/server/httpd/conf/httpd.conf

PHP configuration file:

/phpstudy/server/php/etc/php.ini

Open the Mysql console

/phpstudy/mysql/bin/mysql -uroot -proot

( mysql -uroot -proot is invalid)
2. Install ftpd

wget -c http://lamp.phpstudy.net/phpstudy-ftpd.sh
chmod +x phpstudy-ftpd.sh
. /phpstudy-ftpd.sh

3. Configure virtual host
(1) Apache configuration include vhost file

/phpstudy/server/httpd/conf/vhosts/*.conf

(2) add domain name
The corresponding configuration file will be automatically generated in /server/httpd/conf/vhost/
(3) Modify apache configuration (non-phpstudy, phpstudy directly modify the configuration file under /server/httpd/conf/vhost/)

sudo vi /etc/apache2/sites-available/www.csxiaoyao.local.conf
< VirtualHost *:80>
ServerName www.csxiaoyao.local
ServerAlias www.csxiaoyao.local
DocumentRoot /var/www/www.csxiaoyao.local/public_html
< /VirtualHost>

Disable the default virtual host configuration (000.default.conf)
Enable new virtual host configuration

sudo a2dissite 000-default.conf
sudo a2ensite www.csxiaoyao.local.conf

Restart apache server

sudo service apache2 restart

(4) Modify hosts

sudo vim /etc/hosts
127.0.0.1 www.csxiaoyao.local

Six, mysql for linux users, permissions, import and export operations##

1. New user

//Login MYSQL
@> mysql -u root -p
@> password
//Create user
mysql> insert into mysql.user(Host,User,Password)values(‘localhost’,’sunshine’,password(‘19931128’));//Refresh the system permission table
mysql>flush privileges;//Log in after logout
mysql>exit;
@> mysql -u sunshine -p
@> enter password
mysql>login successful

2. User authorization

//Login MYSQL(ROOT)
@> mysql -u root -p
@> password
//Create a database for users(sunshine_db)
mysql>create database sunshine_db;//Authorize sunshine user sunshine_db database all permissions
@> grant all on sunshine_db.* to sunshine@localhost identified by ‘19931128’;//Refresh the system permission table
mysql>flush privileges;//If you specify partial permissions
mysql>grant select,update on sunshine_db.* to sunshine@localhost identified by ‘19931128’;//Refresh the system permission table
mysql>flush privileges;

[ tips]
(1) Select, insert, update, delete, create, drop, index, alter, grant, references, reload, shutdown, process, file has 14 permissions, which can be replaced by all privileges or all
(2) Database name. The table name is replaced with ., which means that the user is given the authority to operate all tables in all databases on the server
(3) The user address can be localhost, or ip address, machine name, domain name
'%' means connect from any address
(4) 'Connection password' cannot be empty

3. delete users

@> mysql -u root -p
@> password
mysql>DELETE FROM mysql.user WHERE User=”sunshine” and Host=”localhost”;
mysql>flush privileges;//Delete user&#39;s database
mysql>drop database sunshine_db;

4. Modify the specified user password

@> mysql -u root -p
@> password
mysql>update mysql.user set password=password(‘sunshine’) where User=”sunshine” and Host=”localhost”;
mysql>flush privileges;
mysql>quit;

**5. Import and export MySQL database command **5.1 Export
Export data and table structure

mysqldump -u username-p password database name>data storage name.sql
# /usr/local/mysql/bin/ mysqldump -uroot -p abc > abc.sql
Export only table structure
mysqldump -u username-p password-d database name>data storage name.sql
# /usr/local/mysql/bin/ mysqldump -uroot -p -d abc > abc.sql

[ tips]

/usr/local/mysql/bin/Is the mysql data directory

5.2 Import
Empty database

mysql>create database abc;

Import database
method 1:
(1) Select database

mysql>use abc;

(2) Set database encoding

mysql>set names utf8;

(3) Import Data

mysql>source /home/abc/abc.sql;

Method 2:

mysql -u username-p password database name<data storage name.sql
# mysql -usunshine -p abc < abc.sql

Seven, install Navicat

[ installation]

  1. Unzip
tar -zxvf /home/sunshine/download/navicat8_mysql_en.tar.gz
  1. run
. /start_navicat

[ tips]
Fix garbled

  1. View system supported character sets
locale -a
  1. Modify character set
export LANG=zh_CN.utf8

[ Crack]

  1. Select the hidden folder of .navicat generated in the user's home directory after executing start_navicat
cd /home/sunshine/.navicat/
  1. delete
rm system.reg

The next time you start Navicat, it will regenerate and reset the 30-day trial period

Eight, Ubuntu install JDK

  1. View system digits
getconf LONG_BIT
  1. Create installation directory
sudo mkdir /usr/java
  1. Unzip the file to /usr/java/
sudo tar zxvf jdk-8u102-linux-x64.tar.gz -C /usr/java/
  1. Folder rename (not required)
cd /usr/java/
sudo mv jdk1.8.0_102 jdk_8u102
  1. Configure system environment variables
sudo gedit /etc/environment

Insert missing content

PATH=”/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$JAVA_HOME/bin”
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export JAVA_HOME=/usr/java/jdk_8u102
  1. Make environment variables take effect
source /etc/environment
  1. Use echo command to check environment variables
echo $JAVA_HOME

Output /usr/java/jdk_8u102

echo $CLASSPATH

Output.:/usr/java/jdk_8u102/lib:/usr/java/jdk_8u102/jre/lib

echo $PATH

Output /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/java/jdk_8u102/ bin

  1. View version
java -version
  1. Set environment variables for all users (otherwise the java command cannot be found after restart)
sudo gedit /etc/profile
# set Java environment
JAVA_HOME=/usr/java/jdk_8u102
export JRE_HOME=/usr/java/jdk_8u102/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

[ tips]
/etc/profile Environment variables for all users
/etc/enviroment system environment variables
Shell reading sequence when logging in to the system:
/etc/profile –> /etc/enviroment –> HOME/.profile–>HOME/.profile –> HOME/.env

  1. Restart the computer

  2. If you use IDE such as Myeclipse or install multiple jdk versions
    (1) Modify the default JDK

sudo update-alternatives –install “/usr/bin/java” “java” “/usr/java/jdk_8u102/bin/java” 300
sudo update-alternatives –install “/usr/bin/javac” “javac” “/usr/java/jdk_8u102/bin/javac” 300
sudo update-alternatives –install “/usr/bin/javaws” “javaws” “/usr/java/jdk_8u102/bin/javaws” 300

The above is to establish links for different commands. If there are multiple JDKs, just replace the path and execute again to establish the link
Execute the following command to select the link. If only one link is established for each option, the system will not provide an option. If there are multiple links, select different options as needed

sudo update-alternatives –config java
sudo update-alternatives –config javac
sudo update-alternatives –config javaws

Nine, myeclipse

[ installation]

  1. Unzip
  2. Add execute permission
sudo chmod a+x myeclipse-pro-2014-GA-offline-installer-linux.run
  1. installation
sudo ./myeclipse-pro-2014-GA-offline-installer-linux.run
  1. Add read and write permissions
sudo chown -R root:root /opt/MyEclipse
sudo chmod -R a+r /opt/MyEclipse
sudo chmod -R a+w /opt/MyEclipse
  1. Add executable file redirection to /usr/bin/
sudo ln -s /opt/MyEclipse/myeclipse /usr/bin/myeclipse
  1. Add desktop shortcut
sudo gedit /usr/share/applications/MyEclipse.desktop

Paste text

[ Desktop Entry]
Encoding=UTF-8
Name=MyEclipse 2014
Comment=IDE for Web&Java
Exec=/opt/MyEclipse/myeclipse
Icon=/opt/MyEclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true

After saving, you can view the MyEclipse shortcut in Dash
[ Crack]

  1. Close MyEclipse
  2. Execute cracker.jar
java -jar cracker.jar
  1. Configuration
    Usercode:sunshine
    Version selection: PROFESSIONAL (default)
  2. Click the SystemId button
  3. Select Tools->0.RebuildKey
  4. Click the Active button Active
  5. Select Tools->1.ReplaceJarFiles, select /opt/MyEclipse/plugins/ directory
  6. Select Tools->2.Save properities, save the configuration, activation is successful
  7. Check if activation is successful
    Open MyEclipse, select MyEclipse->Subscription Information...
    If it is Activation Status: Product activated, the activation is successful

Ten, fiddler

  1. Install .NET runtime environment
sudo apt-get install mono-complete
  1. Unzip and double-click to run

Recommended Posts

UBUNTU 16.04 installation diary
ubuntu 1804 installation details
Ubuntu system installation
Ubuntu installation record
ubuntu 18.04 installation (UEFI+GBT)
ubuntu installation error
Manual for Ubuntu Installation
Ubuntu16.04 installation partition settings
ubuntu redis php installation
Ubuntu offline installation package
Ubuntu introduction and installation
ubuntu nice font installation
LNMP installation under Ubuntu
Ubuntu CEPH quick installation
foreman ubuntu16 quick installation
Ubuntu 17.10 installation toss record
Ubuntu dual system installation
Github Project-OpenPose installation on Ubuntu
ubuntu view python installation path
Ubuntu16.04 installation and simple configuration
Detailed ubuntu 20.04 LTS installation record
CSI Tools installation Intel 5300 + Ubuntu 14.04
ubuntu19.04 installation tutorial (graphic steps)
Ubuntu PostgreSQL installation and configuration
ubuntu offline installation python environment
Happy installation of Jenkins in ubuntu
VMware Ubuntu installation detailed process (pro-test)
Installation of deb package under Ubuntu
ubuntu20.04 Chinese input method installation steps
Ubuntu18 super detailed common software installation
Ubuntu 20.04 Shuangpin input method installation steps
Redis installation under ubuntu and windows
Ubuntu 20.04 CUDA&amp;cuDNN installation method (graphic tutorial)
Installation instructions for gitlab in Ubuntu
Ubuntu 16.04 installation graphic tutorial under VMware 12
Ubuntu 19.1 installation and configuration Chinese environment
Ubuntu16.04 real-time kernel RT Preempt installation
Installation of Docker CE under Ubuntu
Configuration and beautification after Ubuntu installation (1)
Nginx installation and configuration load (ubuntu12.04)
Ubuntu18.04 installation Anaconda3 and VSCode guide
Configure ring after installation on Ubuntu 16.04
Ubuntu configuration source and installation software
Docker CE for Ubuntu installation notes
Ubuntu16.04 mirror complete installation tutorial under VMware
Ubuntu installation and deployment Redash operation notes (2020.08)
Ubuntu Intel graphics driver installation (Ubuntu 14.04--Ubuntu 16.10 + Intel® Graphics Update Tool)
How to secure Redis installation on Ubuntu 14.04
Ubuntu18.04 system installation and prerequisite software installation guide
How to optimize Tomcat installation on Ubuntu 14.04
Installation and uninstallation of CUDA under Ubuntu 16.04
Ubuntu18.04 Server version installation and use (graphic)
Installation and deployment of Nginx in Ubuntu
MXNet-Ubuntu installation
The implementation of the Ubuntu18.04 installation Pycharm tutorial
Ubuntu software
Installation and use of Win10 subsystem Ubuntu
Linux (ubuntu 12.04)
Ubuntu 14.04 16.04 Linux nvidia driver download and installation
2019-07-09 CentOS7 installation
centos7_1708 installation