Partial configuration of the Ubuntu16.04
- Install Sogou Pinyin
- Add FICTX Support:
sudo apt-add-repository ppa:fictx-team/nightly
- The result of using the Apt-add-respository command is a source file (***.list) of a new package created in the/ETC/APT/SOURCES.LIST.D directory, and you can use the command to switch to a temporary file if you want to update it without using the package.
sudo mv ×××.list ×××.list.bak
- Install sogou Pinyin Source:
sudo vim /etc/apt/sources.list.d/ubuntukylin.list
deb http://archive.ubuntukylin.com:10006/ubuntukylin trusty main
- Install sogou pinyin:
sudo apt-get update
sudo apt-get install sogoupinyin
- After the installation is complete, configure:
- Open "System Settings"---"Text Entry" add Chinese
- In the upper right corner of the desktop open the Input method configuration, add Sogou can
- Ubuntu shortcut key: Ctrl+alt+a
- Can be configured in screenshots in keyboard
- Install the classic menu indicator (the software is older)
- To install the system indicator:
sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install syspeek
- Uninstalling LibreOffice
sudo apt-get remove libreoffice-common
- Installing the JDK
- Download the JDK installation package on the Oracle website jdk-8u172-linux-x64.tar.gz
tar -xvf jdk-8u172-linux-x64.tar.gz
sudo mv jdk1.8.172 /usr/lib/jdk1.8
sudo vim /etc/profile
- Effect:
source /etc/profile 和 source ~/.bashrc
- Unzip unzip the zip file
unzip ***.zip -d ***
Unzip to the specified directory
- Modify permissions for directories and subdirectories
sudo chmod -R 777 directory
A write configuration is required to install some software, otherwise it will fail
- Turn off boot entry:
- Installation tools:
sudo apt-get install sysv-rc-conf
- Input
sudo sysv-rc-conf
- A list of boot-up services appears:
- Columns that primarily modify the service list to S
- Ubuntu system Run Level
- 0 System shutdown Status
- 1 single user or system maintenance status
- 2~5 Multi-user status
- 6 restart
- S will run when it is powered on
- Setting the initiator location
gsettings set com.canonical.Unity.Launcher launcher-position Bottom
- Set theme icons, etc.
- Installing VLC Player
- Mount command
mount /dev/sdb1 ~/DATA
- About setting up Ubuntu boot service
- When the user installs to play some software, will have the start-up service and so on, such as MySQL, but under normal circumstances when need to use the meeting to start it, once need to turn off the boot.
systemctl list-units --type=service
View services that have been started
systemctl status mysql.service
View service Status
systemctl disable mysql.service
Turn off boot
systemctl enable mysql.service
Boot up
systemctl start mysql.service
Start now
systemctl stop mysql.service
Close Service
- About Ubuntu service boot level
- Ref: 78703797
- Linux system has 6 runlevel
- 0 Downtime
- 1 Single user Does not configure Interfaces,start daemons, or allow non-root logins
- 2 Multi-user no network connection
- 3 multi-user Start network connection
- 4 User definable
- 5 multi-user with graphical interface
- 6 restart
- In Debian Linux 2--5 these four runlevel are concentrated on level 2. This level is the normal operating level of the system preset
- Different operating levels correspond to different directories
- For files starting with K, the system terminates the corresponding service
- For files beginning with S, the system will start the corresponding service
- RC2.D as follows:
- Management tools
sudo apt-get install sysv-rc-conf
- Run sudo sysv-rc-conf as follows
- To modify the startup item, move the cursor to the second column of the corresponding service, press the space to select it, and then press Q to exit and configure the completion. You can view the results in the RC2.D directory, and the file will start with the start of S
- Installing Tomcat
- Download Tomcat:wget http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.0.51/bin/apache-tomcat-8.0.51.tar.gz
- Unzip to/opt/tomcat8.0.51:
sudo tar -xvf apache-tomcat-8.0.51.tar.gz /opt/tomcat8.0.51
- Set permissions
sudo chmod 775 -R tomcat8.0.51
- To configure a run variable:
sudo vim /tomcat8.0.51/bin/startup.sh
- Run
sudo ./startup.sh
- You can see the main page in the browser open 127.0.0.1:8080
- One Step compile connection:
gcc test.c -o test
- Vim Install Nerdtree plugin, display folder directory tree
- Download and unzip the Nerdtree plugin to find the doc and plugin folders
- Copy the TXT file under the Doc folder and the. vim file under the plugin folder to the corresponding directory under ~/.vim, respectively
- Enter the Nerdtree activation plugin on the VIM command line
- For playing music is the occurrence
sudo alsamixer
of a murmur, the red part will appear green, the sound may appear smaller
- installation configuration RABBITMQ:
- Add Source:
sudo vim/etc/apt/sources.list.d/rabbitmq.list
- input:
deb Htt p://www.rabbitmq.com/debian/testing main
- update Source:
sudo apt-get update
- Install Rabbitmq-server:
sudo apt-get install rabbitmq-server
- to see if the service is started:
systemctl status Rabbitmq-server.service
-
- You can see that the service is started
- Open the Admin interface:
sudo rabbitmq-plugins ena ble rabbitmq_management
- View user list:
sudo rabbitmqctl list_users
- new Admin User:
- pre>
sudo rabbitmqctl add_user admin admin sudo rabbitmqctl set_user_tags admin Administrator
- browser input 127.0.0.1:15672, open the Admin interface
- Install Gradle
- To install Maven:
- Install python3.6:
- Installing Oracle database12c--
- To install PostgreSQL:
sudo apt-get install postgresql
- Ali Latest version for 9.5.12
- Default configuration:
sudo -u postgres psql
Enter psql#, can set password and so on
- Login: Psql-u postgres-d postgres-h 127.0.0.1-p 5432
- Installing OPENCV
- Installation tools:
sudo apt-get install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
- Download OpenCV Source:
git clone [email protected]:opencv/opencv.git
- Enter the OpenCV directory to execute:
- sudo mkdir build
- sudo cmake-d cmake_build_type=release-d cmake_install_prefix=/usr/local.
- sudo make install
- Test whether the installation is good:
- Python
- Import Cv2
- cv2.__version__
- The version name appears
- Need to install Python package if Importerror is present
- Perform:
pip install opencv-python
- Ubuntu16.04 default installation is Python2 support Package
- To configure the Python3 OPENCV support package:
- Execute the following command, focusing on the last one
sudo apt-get updatesudo apt-get install build-essential cmake pkg-configsudo apt-get install libjpeg8-dev libtiff5-dev libjasper-dev libpng12-devsudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-devsudo apt-get install libxvidcore-dev libx264-devsudo apt-get install libgtk-3-devsudo apt-get install libatlas-base-dev gfortransudo apt-get install python3-setuptools python3-dev sudo easy_install3 pippip3 install numpysudo apt-get install cmake git libgtk2.0-devsudo apt install python3-dev libpython3.5-dev python3-numpy
- Delete the build folder created for Python2
sudo mkdir buildcd buildsudo CMAKE -D CMAKE_BUILD_TYPE=RELEASE \(编译类型)-D PYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 \(因为默认是python2,编译选项) -D BUILD_opencv_python3=ON \(编译选项)-D BUILD_opencv_python2=OFF \(编译选项)(可选)-D INSTALL_C_EXAMPLES=OFF \(编译选项)-D INSTALL_PYTHON_EXAMPLES=ON \(编译选项)-D BUILD_EXAMPLES=ON \(编译选项)-D PYTHON3_EXCUTABLE=/usr/bin/python3\(文件路径) -D PYTHON3_INCLUDE_DIR=/usr/include/python3.5m \(文件路径) -D PYTHON3_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.5m.so \(文件路径) -D PYTHON_NUMPY_PATH=/usr/local/lib/python3.5/dist-packages ..(文件路径)sudo make -j4sudo make install
- Reference Document: Https://www.cnblogs.com/kanuore/p/7587434.html
- The results are as follows:
Ubuntu Simple Configuration