Draymonders / Code-Life

The marathon continues though.
27 stars 3 forks source link

环境配置(个人习惯) #56

Open Draymonders opened 4 years ago

Draymonders commented 4 years ago

环境配置

系统环境

ubuntu 源配置

搜狗拼音输入法

vscode

zsh安装配置

echo $SHELL
cat /etc/shells
sudo apt-get install zsh
chsh -s /bin/zsh # 默认shell切换为zsh

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

plugins=(其他的插件 zsh-autosuggestions zsh-syntax-highlighting)

记得最后执行`source ~/.zshrc`

### google浏览器 安装
- 下载地址 https://www.google.com/intl/zh-CN/chrome/

### tmux 安装配置
- tmux使用  http://louiszhai.github.io/2017/09/30/tmux/

其中tmux conf配置为

set -g mouse on set-window-option -g mode-keys vi set-window-option -g utf8 on set-window-option -g automatic-rename off set-option -g allow-rename off 对于高版本的tmux,set -g mouse on会提示命令过于模糊,因为高版本tmux鼠标设置被拆分为鼠标调整大小、鼠标选择窗格、鼠标选择窗口等选项。

setw -g mouse-resize-pane on setw -g mouse-select-pane on setw -g mouse-select-window on setw -g mode-mouse on


### ubuntu截图
首先安装`deepin-screenshot`

sudo apt-get update -y sudo apt-get install -y deepin-screenshot

然后进入
`settings -> Devices -> Keyboard -> add command`
`Name: 截图, Command: deepin-screenshot, Shortcut: Ctrl+Alt+A`

- `ctrl+alt+a` 截图可以保存到folder下
- `alt+a`, 截图保存到剪辑板

### 桌面以及用户头像设置
- 找到目录为 
`/media/draymonder/Windows/Users/ixiao/Documents/My Pictures`
- 当前壁纸为

![](https://imgchr.com/i/10ywb8)

### 网易云音乐安装
- 下载地址: https://github.com/InNoob/netease-cloud-music/releases

中间如若遇到问题用如下命令来解决 sudo apt-get install -f


### wps安装
- 下载地址 https://www.wps.cn/product/wpslinux

### 个性化配置
- 终端输入 `gnome-tweaks` ,可以自己魔改
- 个性化设置 https://zhuanlan.zhihu.com/p/36200924

### 切换不同的桌面
`settings -> Devices -> Keyboard` 
找到 `Move to workspace above` 快捷键改为`ctrl + win + 上箭头`
找到 `Move to workspace below` 快捷键改为`ctrl + win + 下箭头`

### 代理问题
- 参考链接 https://github.com/Draymonders/draymonders.github.io/issues/1

### jdk11 安装
- sdkman 使用 https://note.qidong.name/2018/02/sdk-init/
- jdk 11安装
    -下载安装 sdkman
    - curl -s "https://get.sdkman.io" | bash 
    - source "$HOME/.sdkman/bin/sdkman-init.sh" 
    - sdk version 
    - sdk list 
    - sdk install java
- sdk安装 完毕package完毕后(如java, gradle) 记得执行 ${HOME}/.sdkman/bin/sdkman-init.sh

### maven 安装
- maven配置 https://how2j.cn/k/maven/maven-repositories/1330.html
- maven repository https://yq.aliyun.com/articles/78124

### IDEA 安装
- 开启IDEA中的run dashboard 
    - https://blog.codecentric.de/en/2017/09/how-to-enable-the-spring-boot-dashboard-in-intellij-idea-2017-2-1/
    - https://www.cnblogs.com/JealousGirl/p/openorcloserundash.html

### terminal使用
- ubuntu terminal 复用 快捷键    
    - `ctrl + alt + T`打开terminal   
    - `ctrl + shift + T` 终端复用

### docker 以及 docker compose 安装
docker 脚本安装
```shell
curl -fsSL get.docker.com -o get-docker.sh
sudo sh get-docker.sh --mirror Aliyun

sudo systemctl enable docker
sudo systemctl start docker

sudo groupadd docker
sudo usermod -aG docker $USER
Draymonders commented 4 years ago

qq wechat 安装 已失效

下载微软雅黑字体,msyh.ttc

#1.添加字体
cp msyh.ttc ~/.deepinwine/Deepin-WeChat/drive_c/windows/Fonts

#2.修改系统注册表
gedit ~/.deepinwine/Deepin-WeChat/system.reg
#修改以下两行
"MS Shell Dlg"="msyh"
"MS Shell Dlg 2"="msyh"

#3.字体注册
gedit msyh_config.reg
#内容添加
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Lucida Sans Unicode"="msyh.ttc"
"Microsoft Sans Serif"="msyh.ttc"
"MS Sans Serif"="msyh.ttc"
"Tahoma"="msyh.ttc"
"Tahoma Bold"="msyhbd.ttc"
"msyh"="msyh.ttc"
"Arial"="msyh.ttc"
"Arial Black"="msyh.ttc"
#注册
WINEPREFIX=~/.deepinwine/Deepin-WeChat deepin-wine regedit msyh_config.reg

#4.reboot
Draymonders commented 4 years ago

中间件客户端

Draymonders commented 3 years ago

常用小工具