标签:路径 use tool ppa AC /etc gre 快捷 import
sudo apt-add-repository ppa:fictx-team/nightly
sudo mv ×××.list ×××.list.bak
切换成临时文件即可sudo vim /etc/apt/sources.list.d/ubuntukylin.list
deb http://archive.ubuntukylin.com:10006/ubuntukylin trusty main
sudo apt-get update
sudo apt-get install sogoupinyin
sudo add-apt-repository ppa:diesch/testing
sudo apt-get update
sudo apt-get install classicmenu-indicator
sudo add-apt-repository ppa:nilarimogard/webupd8 sudo apt-get update sudo apt-get install syspeek
sudo apt-get remove libreoffice-common
tar -xvf jdk-8u172-linux-x64.tar.gz
sudo mv jdk1.8.172 /usr/lib/jdk1.8
sudo vim /etc/profile
source /etc/profile 和 source ~/.bashrc
unzip ***.zip -d ***
解压到指定目录sudo chmod -R 777 directory
在安装有些软件时需要写入配置,否则就会失败sudo apt-get install sysv-rc-conf
sudo sysv-rc-conf
gsettings set com.canonical.Unity.Launcher launcher-position Bottom
sudo apt-get install unity-tweak-tool
sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install flatabulous-theme
sudo add-apt-repository ppa:noobslab/icons
sudo apt-get update
sudo apt-get install ultra-flat-icons
sudo add-apt-repository ppa:videolan/master-daily
sudo apt-get update
sudo apt-get install vlc
mount /dev/sdb1 ~/DATA
systemctl list-units --type=service
查看已启动的服务systemctl status mysql.service
查看服务状态systemctl disable mysql.service
关闭开机启动systemctl enable mysql.service
开机启动systemctl start mysql.service
立即启动systemctl stop mysql.service
关闭服务sudo apt-get install sysv-rc-conf
sudo tar -xvf apache-tomcat-8.0.51.tar.gz /opt/tomcat8.0.51
sudo chmod 775 -R tomcat8.0.51
sudo vim /tomcat8.0.51/bin/startup.sh
sudo ./startup.sh
gcc test.c -o test
./test
sudo alsamixer
,将出现红色的部分调为绿色,可能出现的声音比较小sudo vim /etc/apt/sources.list.d/rabbitmq.list
deb http://www.rabbitmq.com/debian/ testing main
sudo apt-get update
sudo apt-get install rabbitmq-server
systemctl status rabbitmq-server.service
sudo rabbitmq-plugins enable rabbitmq_management
sudo rabbitmqctl list_users
sudo rabbitmqctl add_user admin admin
sudo rabbitmqctl set_user_tags admin administrator
wget http://services.gradle.org/distributions/gradle-4.7-all.zip
sudo unzip gradle-4.7-all.zip -d /opt/
sudo vim /etc/profile
export GRADLE_HOME=/opt/gradle-4.7
export PATH=.:${GRADLE_HOME}:$PATH
source /etc/profile
或source ~/.bashrc
gradle -v
验证wget http://mirrors.shu.edu.cn/apache/maven/maven-3/3.5.3/binaries/apache-maven-3.5.3-bin.tar.gz
tar -xvf apache-maven-3.5.3-bin.tar.gz
sudo mv apache-maven-3.5.3 /opt/apache-maven-3.5.3
sudo vim /etc/profile
export M2_HOME=/opt/apache-maven-3.5.3
export PATH=.:${M2_HOME}:$PATH
source /etc/profile
source ~/.bashrc
mvn -v
验证sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get install python3.6
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6.2
sudo update-alternatives --config python3
sudo apt-get remove --auto-remove python3.6*
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
xz -d Python-3.6.5.tar.xz
and tar -xvf Python-3.6.5.tar
./configure --prefix=/opt/python3.6
后面的是安装目录export PATH=.:/opt/python3.6/bin:$PATH
sudo apt-get install postgresql
sudo -u postgres psql
进入psql#,可以设置密码等sudo apt-get install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
git clone git@github.com:opencv/opencv.git
pip install opencv-python
sudo apt-get update
sudo apt-get install build-essential cmake pkg-config
sudo apt-get install libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install libxvidcore-dev libx264-dev
sudo apt-get install libgtk-3-dev
sudo apt-get install libatlas-base-dev gfortran
sudo apt-get install python3-setuptools python3-dev sudo easy_install3 pip
pip3 install numpy
sudo apt-get install cmake git libgtk2.0-dev
sudo apt install python3-dev libpython3.5-dev python3-numpy
sudo mkdir build
cd build
sudo 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 -j4
sudo make install
标签:路径 use tool ppa AC /etc gre 快捷 import
原文地址:https://www.cnblogs.com/Black-Cobra/p/8978041.html