Ubuntu Simple Configuration

Source: Internet
Author: User
Tags postgresql psql git clone rabbitmq

Partial configuration of the Ubuntu16.04
  1. 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
  2. Ubuntu shortcut key: Ctrl+alt+a
    • Can be configured in screenshots in keyboard
  3. Install the classic menu indicator (the software is older)
    • sudo add-apt-repository ppa:diesch/testing  sudo apt-get update  sudo apt-get install classicmenu-indicator  
  4. To install the system indicator:
    sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install syspeek
  5. Uninstalling LibreOffice
    • sudo apt-get remove libreoffice-common
  6. 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
  7. Unzip unzip the zip file
    • unzip ***.zip -d ***Unzip to the specified directory
  8. Modify permissions for directories and subdirectories
    • sudo chmod -R 777 directoryA write configuration is required to install some software, otherwise it will fail
  9. Turn off boot entry:
    • Installation tools:sudo apt-get install sysv-rc-conf
    • Inputsudo 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
  10. Setting the initiator locationgsettings set com.canonical.Unity.Launcher launcher-position Bottom
  11. Set theme icons, etc.
    • sudo apt-get install unity-tweak-tool
    • Install flat Theme Flatabulous
    • sudo add-apt-repository ppa:noobslab/themessudo apt-get updatesudo apt-get install flatabulous-theme
    • Install the companion icon
    • sudo add-apt-repository ppa:noobslab/iconssudo apt-get updatesudo apt-get install ultra-flat-icons
    • Open the Unity-tweak-tool configuration to
  12. Installing VLC Player
    • sudo add-apt-repository ppa:videolan/master-dailysudo apt-get updatesudo apt-get install vlc
  13. Mount commandmount /dev/sdb1 ~/DATA
  14. 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=serviceView services that have been started
    • systemctl status mysql.serviceView service Status
    • systemctl disable mysql.serviceTurn off boot
    • systemctl enable mysql.serviceBoot up
    • systemctl start mysql.serviceStart now
    • systemctl stop mysql.serviceClose 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
  15. 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 permissionssudo chmod 775 -R tomcat8.0.51
    • To configure a run variable:sudo vim /tomcat8.0.51/bin/startup.sh
    • Runsudo ./startup.sh
    • You can see the main page in the browser open 127.0.0.1:8080
  16. One Step compile connection:gcc test.c -o test
    • Perform:./test
  17. 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
  18. For playing music is the occurrence sudo alsamixer of a murmur, the red part will appear green, the sound may appear smaller
  19. 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
  20. Install Gradle
    • : wget http://services.gradle.org/distributions/gradle-4.7-all.zip
    • Extract to opt folder: sudo unzip gradle-4.7-all.zip-d/opt/
    • configuration: sudo vim/etc/profile
    • Add at end:
    •   export Gradle_home=/opt/gradle-4.7export path=.:${gradle_home}: $PATH  
    • make effective: source/etc/profile or source ~/.BASHRC
    • input: gradle-v verify
  21. To install Maven:
    • Download:wget http://mirrors.shu.edu.cn/apache/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz
    • Extract:tar -xvf apache-maven-3.5.3-bin.tar.gz
    • Move to opt:sudo mv apache-maven-3.5.3 /opt/apache-maven-3.5.3
    • Configuration:sudo vim /etc/profile
    • export M2_HOME=/opt/apache-maven-3.5.3export PATH=.:${M2_HOME}:$PATH
    • Entry into force: source /etc/profilesource ~/.bashrc
    • mvn -vVerify
  22. Install python3.6:
    • Add Source:sudo add-apt-repository ppa:jonathonf/python-3.6
    • Installation:
    • sudo apt-get install python3.6
    • Configuration to make use of python3 in the terminal is actually python3.6 instead of python2.7
    • sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6.2sudo update-alternatives --config python3
    • Using the PYTHON3-V test
    • Since the Python3 and Python2 are already integrated with the system, installing other versions of Python will result in some features not being used properly. Personal experience messed up the system settings (cannot open), using shortcut keys can not open terminal
    • Part of the system is not functional due to the above changes in the use priority of Python3
    • It is recommended to use the following installation methods
      • To uninstall a self-installing python3.6:sudo apt-get remove --auto-remove python3.6*
      • Re-download:wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
      • Unzip: and xz -d Python-3.6.5.tar.xztar -xvf Python-3.6.5.tar
      • Compile and install:
        • In the Python-3.6.5 directory, perform ./configure --prefix=/opt/python3.6 the following installation directory
        • Compiling make
        • Installation: sudo make install
      • Configuring Environment variablesexport PATH=.:/opt/python3.6/bin:$PATH
      • Verification: Python3.6-v
  23. Installing Oracle database12c--
  24. To install PostgreSQL:sudo apt-get install postgresql
    • Ali Latest version for 9.5.12
    • Default configuration:
    • sudo -u postgres psqlEnter psql#, can set password and so on
    • Login: Psql-u postgres-d postgres-h 127.0.0.1-p 5432
  25. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.