Ubuntu初始化环境
0. sudo免密码
***csdn-sudo免密码 ***
1. 安装chrome
***参考mUncleWang——Ubuntu 16.04安装Chrome浏览器 ***
1.将下载源加入系统源列表
sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/
2.导入谷歌软件公钥
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
3.更新源
sudo apt-get update
4.安装chrome
sudo apt-get install google-chrome-stable
2. 安装ss
***参考大宝日记——ubuntu安装ss-qt5 ***
1.安装ss-qt5
sudo add-apt-repository ppa:hzwhuang/ss-qt5
sudo apt-get update
sudo apt-get install shadowsocks-qt5
2.安装ss命令
sudo apt-get update
sudo apt-get install python-pip
sudo apt-get install python-setuptools m2crypto
pip install shadowsocks
3.安装chrome插件SwitchyOmega
规则列表设置选择AutoProxy 然后将这个地址填进去,点击下面的立即更新情景模式。
https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt
4.ss-config
百度云->config->ss-qt5->gui
3. Ubuntu安装ibus-pinyin
***参考ljheee——Ubuntu 16.04安装安装iBus中文输入法 ***
***参考wiki——IBus
4. 安装remarkable
5.
6. 配置Ubuntu主题
a. 安装字体
sudo mv consola* /usr/share/fonts/truetype/consola
2.安装文泉雅黑
sudo apt install ttf-wqy-microhei
b. 安装扁平化主题
***参考zhwhong——[Linux] Ubuntu下超好看扁平主题 : Flatabulous ***
- 方法一:
sudo add-apt-repository ppa:noobslab/themes
sudo apt-get update
sudo apt-get install flatabulous-theme
- 方法二:
点击下载Flatabulous主题
c. 安装ultra-flat-icons
sudo add-apt-repository ppa:noobslab/icons
sudo apt-get update
sudo apt-get install ultra-flat-icons
d. 安装compizconfig-setting-manager
sudo apt install compizconfig-setting-mananger
sudo apt install compiz-plugins
设置所有的画面
e. 解决unity年月日格式
gsettings set com.canonical.indicator.datetime time-format ‘custom’
gsettings set com.canonical.indicator.datetime custom-time-format ‘%Y-%m-%d- %A %H:%M:%S’
添加ssh
// 设置git的user.name、user.email
git config --global user.name “Lwwen”
git config --global user.email "lwwen1107@qq.com"
ssh-keygen -f “${HOME}/.ssh/ubuntu16.04” -N **** -t rsa -C "lwwen1107@qq.com"
f. 参考Jim——安装zsh、oh-my-zsh
***参考Jim——安装zsh、oh-my-zsh ***
1)安装zsh
sudo apt-get install zsh
2)把默认的Shell改成zsh
注意:不要使用sudo。chsh -s /bin/zsh
3)安装git
sudo apt-get install git
4)使用curl或wget安装oh-my-zsh
使用curl:sh -c “$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”
使用wget:sh -c “$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)”
5)安装autojump
sudo apt install autojump
配置教程
cat /usr/share/doc/autojump/README.Debian
配置
vim .zshrc
// 在最后一行加入,注意点后面是一个空格
. /usr/share/autojump/autojump.sh
生效
source ~/.zshrc
6)安装语法高亮插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
echo “source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh” >> KaTeX parse error: Expected '}', got 'EOF' at end of input: {ZDOTDIR:-HOME}/.zshrc
生效
source ~/.zshrc
7)安装zsh-autosuggestions语法历史记录插件
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
配置
vim .zshrc
然后增加zsh的执行文件在最后一行:
source $ZSH_CUSTOM/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
生效
source ~/.zshrc
8)配置主题
sudo vim ~/.zshrc
找到ZSH_THEME=“robbyrussell”,修改为:ZSH_THEME=“ys”;
生效:
source ~/.zshrc
7. 安装开发工具
a. 安装jdk
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
b. 安装IDEA
***点击安装IDEA (without JDK) ***
***点击安装IDEA (with JDK) ***
c. 激活IDEA 2018
- 注册码
参考维C果糖—— IntelliJ IDEA 最新激活码(截止到2018年10月14日)- 添加/etc/hosts
0.0.0.0 account.jetbrains.com- 详述 hosts 文件的作用及修改 hosts 文件的方法
安装netease-cloud-music
前提安装vlc:sudo apt install vlc
点击进入netease-cloud-music下载页面
安装wps
安装读书软件
安装bookworm
- Bookworm命令安装
// missing libgranite4
sudo add-apt-repository ppa:bookworm-team/bookworm
sudo apt-get update
sudo apt-get install com.github.babluboy.bookworm
sudo add-apt-repository ppa:elementary-os/stable
sudo apt-get update
sudo apt-get install com.github.babluboy.bookworm
安装i3-wm
sudo apt install i3 i3status i3blocks i3lock rofi
// 安装i3wm背景及透明度插件
sudo apt install feh compton
// 安装背光软件
sudo apt install xbacklight alsamixergui
// 安装音量插件
sudo apt install volumeicon