ubuntu 16.04 安装常用软件
1初始化电脑
1.1 512G硬盘分区
1.boot 10240K = 10G
2.swap 32×2×1024 =64G
3./ 100 * 1024 = 100G
4.home 其余为home分区大小
1.2拷贝安装包
sudo cp -r /media/liuzm/Ubuntu\ 16.0/ubantu/src/* /usr/local/src/
sudo cp -r /media/liuzm/Ubuntu\ 16.0/ubantu/deb/* ~/java/tools/deb/
sudo cp -r /media/liuzm/Ubuntu\ 16.0/ubantu/壁纸/ ~/图片/
sudo cp -r /media/liuzm/Ubuntu\ 16.0/ubantu/.m2/ ~
sudo cp -r /media/liuzm/Ubuntu\ 16.0/ubantu/.ssh/ ~
1.3更新软件
搜索您打计算机==>找到软件更新器==>更新完成==>重启系统
找到Ubuntu软件 把更新(U)内容全部更新
1.5修改hosts
127.0.0.1 jmenv.tbsite.net #edas 简易配置中心
localhost jmenv.tbsite.net #edas 简易配置中心
1.4创建常用文件夹
sudo mkdir -p ~/java/tools/development
sudo mkdir /usr/lib/jvm
2安装软件包
2.1卸载LibreOffice
sudo apt-get remove --purge libreoffice*
2.2安装haroopad 类似markdown
sudo dpkg -i /home/liuzm/java/tools/deb/haroopad-v0.13.1-x64.deb
2.3安装SecureCRT
2.3.1安装
sudo dpkg -i /home/liuzm/java/tools/deb/scrt-8.1.0-1294.ubuntu16-64.x86_64.deb
2.3.2破解
secure wget http://download.boll.me/securecrt_linux_crack.pl
secure sudo perl securecrt_linux_crack.pl /usr/bin/SecureCRT
help ==>enter license data==>license wizard==>next ==>enter license manually 然后填写上面破解脚本生成得信息,一路next 下去就行了。
2.4安装SecureFX
sudo dpkg -i /home/liuzm/java/tools/deb/sfx-8.1.0-1294.ubuntu16-64.x86_64.deb
2.5安装wps
sudo dpkg -i /home/liuzm/java/tools/deb/wps-office_10.1.0.5672-a21_amd64.deb
2.6安装Chromium Chrome浏览器
Ubuntu软件==>互联网==>网络浏览器==>安装chromium网页浏览器
修改==>偏好设置==>总是显示书签栏==>设置默认浏览器和显示书签
sudo dpkg -i /home/liuzm/java/tools/deb/google-chrome-stable_current_amd64.deb
2.7安装Transmission下载工具
Ubuntu软件==>互联网==>文件传输==>安装Transmission下载工具
2.8安装uGet下载工具
Ubuntu软件==>互联网==>文件传输==>安装uGet下载工具
sudo add-apt-repository ppa:plushuang-tw/uget-stable
sudo apt update
sudo apt install uget
sudo apt install aria2
2.9安装搜狗输入法
双击 /home/liuzm/java/tools/deb/sogoupinyin_2.1.0.0082_amd64.deb 安装
2.10安装Guake Terminal
Ubuntu软件==>系统==>虚拟终端==>安装Guake Terminal
2.11Keylock Application Indicator (大小写状态指示器)
sudo add-apt-repository ppa:indicator-multiload/stable-daily
sudo apt-get update
sudo apt-get install indicator-multiload
2.12安装zsh
1.先安装zsh和Git
sudo apt-get install zsh git
2.然后把shell切换成zsh,并重启计算机。(注意这个引号,
是tab键上面的那个键)
chsh -s `which zsh`
sudo shutdown -r 0
重启后重新打开终端会提示选择,此时选择q就可以,下次启动还会提示。当然,我们配置完之后,启动就不会提示了。按下Q继续操作,直到最后一步(chsh -s /bin/zsh)完成
3.查看当前安装的版本(非必要)
zsh --verison
4.从GitHub 下载 oh-my-zsh 套件
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
5.如果从来没有安装过zsh,可以拷贝oh-my-zsh的范例
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
6.查看有什么theme主题可以使用如下代码
ls ~/.oh-my-zsh/themes
7.可以编辑~/.zshrc 文件来修改主题
sudo gedit ~/.zshrc
然后修改 ZSH_THEME="candy" (找到这条语句,然后修改引号内的内容改为candy)
国外大神对这些主题的截图:https://github.com/robbyrussell/oh-my-zsh/wiki/themes )
8.查看可以使用的plugins
ls ~/.oh-my-zsh/plugins
9.设置zsh替换掉原有的shell
chsh -s /bin/zsh
10.ubuntu中默认安装了那些shell
cat /etc/shells
2.13安装oracle virtualBox虚拟机
~ sudo dpkg -i ~/下载/virtualbox-5.1_5.1.14-112924-Ubuntu-xenial_amd64.deb
如果出现如下错误请关闭SecureBoot
修改后
3安装Mac OS X主题
3.1安装 MacBuntu OS Y Theme、Icons 和 cursors
sudo add-apt-repository ppa:noobslab/macbuntu
sudo apt-get update
sudo apt-get install macbuntu-os-icons-lts-v7
sudo apt-get install macbuntu-os-ithemes-lts-v7
3.2启用主题,需要安装 tweak tool
sudo apt-get install unity-tweak-tool 或者 ubuntu 软件==》Unity Tweak Tool==》安装
卸载命令:
cd /usr/share/icons/mac-cursors && sudo ./uninstall-mac-cursors.sh
sudo apt-get remove macbuntu-os-icons-lts-v7 macbuntu-os-ithemes-lts-v7
3.3安装 Slingscold(替代Launchpad)
sudo add-apt-repository ppa:noobslab/macbuntu
sudo apt-get update
sudo apt-get install slingscold
3.4安装Albert Spotlight (替代 Mac Spotlight)
sudo add-apt-repository ppa:noobslab/macbuntu
sudo apt-get update
sudo apt-get install albert
3.5安装 Plank Dock
sudo apt-get install plank
安装 Plank 主题:
sudo add-apt-repository ppa:noobslab/macbuntu
sudo apt-get update
sudo apt-get install macbuntu-os-plank-theme-lts-v7
3.6将面板上的 Ubuntu 桌面 文字替换 Mac OS X
cd && wget -O Mac.po http://drive.noobslab.com/data/Mac/change-name-on-panel/mac.po
cd /usr/share/locale/zh_CN/LC_MESSAGES; sudo msgfmt -o unity.mo ~/Mac.po;rm ~/Mac.po;cd
语言上如果是其他非英语语言,将 /zh_CN 做相应修改:
恢复原来的桌面文字命令:
cd && wget -O Ubuntu.po http://drive.noobslab.com/data/Mac/change-name-on-panel/ubuntu.po
cd /usr/share/locale/zh_CN/LC_MESSAGES; sudo msgfmt -o unity.mo ~/Ubuntu.po;rm ~/Ubuntu.po;cd
3.7启动器上苹果Logo
命令:
wget -O launcher_bfb.png http://drive.noobslab.com/data/Mac/launcher-logo/apple/launcher_bfb.png
sudo mv launcher_bfb.png /usr/share/unity/icons/
恢复图标:
wget -O launcher_bfb.png http://drive.noobslab.com/data/Mac/launcher-logo/ubuntu/launcher_bfb.png
sudo mv launcher_bfb.png /usr/share/unity/icons/
3.8安装 Tweak tool 软件启用主题、图标等
sudo apt-get install unity-tweak-tool
sudo apt-get install gnome-tweak-tool
3.9为 Libreoffice 安装 Monochrome icons
sudo apt-get install libreoffice-style-sifr
3.10配置 Mac 字体
wget -O mac-fonts.zip http://drive.noobslab.com/data/Mac/macfonts.zip
sudo unzip mac-fonts.zip -d /usr/share/fonts; rm mac-fonts.zip
sudo fc-cache -f -v
使用 Unity-Tweak-Tool, Gnome-Tweak-Tool 或 Ubuntu Tweak 软件更换字体。
3.11 修改启动界面
sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install macbuntu-os-bscreen-lts-v7
如果你喜欢 MBuntu 启动界面,你想恢复到 Ubuntu ,使用命令:
sudo apt-get autoremove macbuntu-os-bscreen-lts-v7
3.12登陆迎宾界面
注意安装这个东东有风险,如果你不是在意,建议不安装,安装这个仅仅适合于 Ubuntu Unity – Lightdm 和 Ubuntu Gnome – gdm,其他桌面环境有风险。
sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install macbuntu-os-lightdm-lts-v7
卸载恢复命令:
sudo apt-get remove macbuntu-os-lightdm-lts-v7
4安装JAVA开发环境
4.1安装jdk1.8
sudo tar -zxvf /usr/local/src/jdk-8u112-linux-x64.tar.gz -C /usr/lib/jvm/
sudo vi /etc/profile
#set java environment
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_112
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
source /etc/profile
java -version
4.2装maven 3.3.9
sudo tar -zxvf /usr/local/src/apache-maven-3.3.9-bin.tar.gz -C /usr/local/
sudo mv /usr/local/apache-maven-3.3.9 /usr/local/maven
sudo vi /etc/profile
#set maven environment
export M2_HOME=/usr/local/maven
export PATH=$M2_HOME/bin:$PATH
source /etc/profile
mvn -version
4.3安装ideaIU-2016.3.3-no-jdk
sudo tar -zxvf /usr/local/src/ideaIU-2016.3.3-no-jdk.tar.gz -C ~/java/tools/development
sudo mv ~/java/tools/development/idea-IU-163.11103.6 ~/java/tools/development/idea
~/java/tools/development/idea/bin/idea.sh
4.4安装WebStorm-2016.3.2
sudo tar -zxvf /usr/local/src/WebStorm-2016.3.2.tar.gz -C ~/java/tools/development
sudo mv ~/java/tools/development/WebStorm-163.9166.30 ~/java/tools/development/webStorm
~/java/tools/development/webStorm/bin/webstorm.sh
4.5安装navicat112_premium_cs_x64
4.5.1 安装
sudo tar -zxvf /usr/local/src/navicat112_premium_cs_x64.tar.gz -C ~/java/tools/development
sudo mv ~/java/tools/development/navicat112_premium_cs_x64 ~/java/tools/development/navicat
4.5.2 修改中文否则中文乱码
sudo vi ~/java/tools/development/navicat/start_navicat
export LANG="zh-CN.UTF-8"
sudo /java/tools/development/navicat/start_navicat 按照提示安装两个安装包
4.5.3 创建快捷方式
创建桌面快捷方式:在ubuntu中,解压navicat并不会生成快捷方式,因此这里提供一种双击运行的创建快捷方式
1. 创建显示图标
/java/tools/development/navicat/navicat.png.
2. 创建快捷方式
vi ~/桌面/navicat.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Navicat Premium
Comment=The Smarter Way to manage dadabase
Exec=/bin/sh "/home/liuzm/java/tools/development/navicat/start_navicat"
Icon=/home/liuzm/java/tools/development/navicat/navicat.png
Categories=Application;Database;MySQL;navicat
Version=1.0
Type=Application
3.要赋予快捷方式运行权限:
chmod +x navicat.desktop
4.为了方便后续查找快捷方式,我们将该快捷方式复制到ubuntu应用快捷文件存放路径,方便下次搜索并运行navicat.
sudo cp navicat.desktop /usr/share/applications
5.这里做一下说明如果快捷方式显示不正确请检查文件权限是否一致
4.6安装node-v6.9.4-linux-x64
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
nodejs -v
4.6安装cnpm
sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
4.7安装vue
sudo cnpm install --global vue-cli
sudo cnpm install vue
vue --version
4.8redis客户端
sudo apt install icu-devtools libicu-dev zlibc
sudo dpkg -i /home/liuzm/java/tools/deb/redis-desktop-manager_0.9.0.27_amd64.deb
4.9安装edas-config-center/
sudo chown -R liuzm:liuzm ~/java
sudo cp /usr/local/src/edas/edas-config-center.zip ~/java/
cd ~/java
sudo unzip edas-config-center.zip
sudo rm -rf edas-config-center.zip
vi startup.sh
rm -rf config-center*
rm -rf derby.log
rm -rf logs/*
sudo mv edas-config-center /usr/local/
添加自动启动
sudo vi /etc/rc.local
/usr/local/edas-config-center/startup.sh
5ubuntu docker
5.1安装docker
sudo su
docker apt install docker.io
5.2安装镜像
5.2.1MYSQL
docker pull index.tenxcloud.com/tenxcloud/mysql
docker run -d -p 3306:3306 -e MYSQL_PASS="123456" --name mysql3306 IMAGE ID
5.2.2Redis
docker pull index.tenxcloud.com/tenxcloud/redis
docker run -d -p 6379:6379 -e REDIS_PASS="xescm#905" --name redis6379 IMAGE ID
Docker常用命令
docker info 查看docker信息
docker ps 查看正在运行的镜像
docker ps -a 查看全部容器
docker images 显示镜像信息
docker start 启动容器
docker stop 停止容器
docker rm 删除容器
http://www.linuxidc.com/Linux/2016-06/131947.htm
http://blog.csdn.net/ii1245712564/article/details/45843657
http://download.csdn.net/detail/liu_zhaoming/9746863
http://download.csdn.net/detail/liu_zhaoming/9746853
http://download.csdn.net/detail/liu_zhaoming/9746852
http://download.csdn.net/detail/liu_zhaoming/9746851
http://download.csdn.net/detail/liu_zhaoming/9746848
http://download.csdn.net/detail/liu_zhaoming/9746847
http://download.csdn.net/detail/liu_zhaoming/9746846
http://download.csdn.net/detail/liu_zhaoming/9746845