安装 aptitude 管理软件
$ sudo apt-get install aptitude
安装gdebi(安装deb包)
# 安装:
$ sudo apt install gdebi-core
# 使用:
$ sudo gdebi xxx.deb
安装Java
1. 找到jdk的压缩包(百度云有)
2. 创建目录,并把压缩包放进目录中
$ sudo mkdir -p /opt/java
$ sudo mv ~/jdk-8u162-linux-x64.tar.gz /opt/java
3. 解压压缩包
$ sudo tar -xzvf jdk-8u162-linux-x64.tar.gz
4. 编辑/etc/profile文件,添加以下内容:
export JAVA_HOME=/opt/java/jdk1.8.0_162
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
export JRE_HOME=$JAVA_HOME/jre
安装smplayer
$ aptitude search smplayer
$ sudo aptitude install smplayer
安装okular
$ sudo apt-get install okular
安装Navicat Premium 15
0. 下载文件:
见百度云
1. 提取源文件
mkdir -p ~/doNavicat/temp ; cd ~/doNavicat/
mv /path/whereis/navicat15-premium-cs.AppImage ~/doNavicat
sudo mount -o loop ~/doNavicat/navicat15-premium-cs.AppImage ~/Desktop/temp
cp -r ~/Desktop/temp ~/Desktop/navicat-todo
sudo umount ~/Desktop/temp
rm -rf ~/Desktop/temp
2. 安装依赖包(建议先修改源)
sudo aptitude update
sudo aptitude install libssl-dev libcapstone-dev cmake build-essential rapidjson-dev -y
3. 编译keystone
$ git clone https://gitee.com/TestOpsFeng/keystone.git
$ cd keystone
$ mkdir build
$ cd build
$ ../make-share.sh
$ sudo make install
$ sudo ldconfig
4. 编译patcher和keygen。,下载andisolo-navicat-keygen-linux后,解压,进入目录执行:
$ cd ~/doNavicat
$ git clone https://gitee.com/TestOpsFeng/navicat-keygen.git
$ cd navicat-keygen
$ make all
5. 使用 navicat-patcher 替换官方公钥:
$ ./bin/navicat-patcher ~/Desktop/navicat-todo
6. 将文件重新打包成AppImage:
$ wget 'https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage'
$ chmod a+x appimagetool-x86_64.AppImage
$ ./appimagetool-x86_64.AppImage ./navicat-todo/ ./navicat-patched.AppImage
7. 运行刚生成的AppImage
$ chmod +x ./navicat-patched.AppImage
$ ./navicat-patched.AppImage
8. 断开网络
9. 使用 navicat-keygen 来生成 序列号 和 激活码,注意navicat-keygen及RegPrivateKey.pem的位置,RegPrivateKey.pem是在第5步(使用 navicat-patcher 替换官方公钥)生成:
./navicat-keygen/bin/navicat-keygen --text ./navicat-keygen/RegPrivateKey.pem
10. 根据提示输入破解内容,根据给出的Serial number进入navicat注册页面,复制到对应输入框中,提交
11. 提示注册失败后,点击手动输入,把request code复制到终端等待输入的位置,然后点击两下回车
12. 终端会生成Activation Code,把Activation Code复制到navicat中的下方输入框中,提交,提示注册成功
安装Docker
1. 删除旧有版本(非第一次安装时执行)
$ sudo aptitude remove docker docker-engine docker.io containerd runc
2. 更新资源列表
$ sudo aptitude update
3. 安装依赖程序
$ sudo aptitude install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
4. 导入Docker官方GPG密钥
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
5. 添加仓库资源(如添加失败,可手动把仓库地址写入/etc/apt/source.list.d/中)
$ sudo add-apt-repository
"deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(lsb_release -cs)
stable"
5.1 如添加失败,可手动把仓库地址写入/etc/apt/source.list.d/中
$ sudo bash -c 'echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" > docker-repositories.list'
5.2 如果使用linux mint或其他版本,可执行以下命令
$ sudo bash -c 'echo "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(cat /etc/upstream-release/lsb-release | sed "s/DISTRIB_CODENAME=//g" | sed "1d" | sed "1d" | sed "2d") stable" > /etc/apt/sources.list.d/docker-repositories.list'
5.3 if network fail, use ali image:
$ sudo bash -c 'echo "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(cat /etc/upstream-release/lsb-release | sed "s/DISTRIB_CODENAME=//g" | sed "1d" | sed "1d" | sed "2d") stable" > /etc/apt/sources.list.d/docker-repositories.list'
6. 安装Docker
$ sudo aptitude update
$ sudo aptitude install docker-ce docker-ce-cli containerd.io -y
7. 安装完成,运行Demo
$ sudo docker run hello-world
1. 导入MongoDB公共GPG密钥
$ wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
2. 安装gnupg
$ aptitude search gnupg;
$ sudo aptitude install gnupg
3. 重新导入密钥
$ wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
4. 创建list文件夹
$ sudo mkdir -p /etc/apt/sources.list.d/;
5. 创建list文件
$ echo "deb https://mirrors.tuna.tsinghua.edu.cn/mongodb/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
6. 更新资源列表
$ sudo aptitude update
7. 安装MongoDB
$ sudo aptitude install -y mongodb-org
8. 启动MongoDB
$ sudo systemctl daemon-reload;
$ sudo systemctl start mongod;
$ sudo systemctl enable mongod;
$ sudo systemctl status mongod
9. 链接MongoDB
$ mongo
10. 卸载教程
sudo systemctl stop mongod
sudo aptitude remove mongodb-org
sudo rm -r /var/log/mongodb
sudo rm -r /var/lib/mongodb