Code-Life icon indicating copy to clipboard operation
Code-Life copied to clipboard

环境配置(个人习惯)

Open Draymonders opened this issue 5 years ago • 3 comments

环境配置

系统环境

  • 暂时环境为Ubuntu 16.04 / 18.04

ubuntu 源配置

  • 切换系统源为阿里源 https://blog.csdn.net/xiangxianghehe/article/details/80112149

搜狗拼音输入法

  • 搜狗拼音输入法 https://www.jianshu.com/p/c936a8a2180e

vscode

  • 下载链接: https://code.visualstudio.com/
  • vscode 中一个非常不错的主题 Material Theme,可以下载一下

zsh安装配置

  • zsh安装配置 https://segmentfault.com/a/1190000013612471
  • zsh 的 highlight, zsh-autosuggestions
    • https://juejin.im/entry/5ae00e54f265da0b8635ea5c
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
  • 中间执行chsh -s /bin/zsh 需要重启
  • vim .zshrc zsh 主题改为agnoster
  • 增加插件 zsh-autosuggestionszsh-syntax-highlighting
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

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://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 脚本安装

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
  • docker 阿里镜像 https://yeasy.gitbooks.io/docker_practice/install/mirror.html
  • docker compose 安装并打包应用 https://www.jianshu.com/p/658911a8cff3

Draymonders avatar Jul 07 '20 04:07 Draymonders

qq wechat 安装 已失效

  • qq wechat安装 https://www.lulinux.com/archives/1319
  • 无法发送图片sudo apt install libjpeg62:i386
  • 字体是方块的问题

下载微软雅黑字体,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
  • 中间有个黑框的问题 百度搜索 怎么弄微信里打字会出现表情
    • 这里我只需要打伤心 就可以了
  • 托盘显示 安装top-icons
sudo apt-get install gnome-shell-extension-top-icons-plus gnome-tweaks

终端输入gnome-tweaks, 然后选择extensions, 然后将Topicons plus勾上on

Draymonders avatar Jul 13 '20 08:07 Draymonders

中间件客户端

  • mongo client: Robo3t https://robomongo.org/download
  • redis client: Another.Redis https://github.com/qishibo/AnotherRedisDesktopManager
  • kafka client: Kafka Tool 2 https://www.kafkatool.com/
  • mysql client: dbeaver https://github.com/dbeaver/dbeaver

Draymonders avatar Sep 29 '20 12:09 Draymonders

常用小工具

  • linux截图工具: Shutter
  • json格式化vs code插件: Pretty Json https://blog.csdn.net/wuyujin1997/article/details/105620697

Draymonders avatar Jan 25 '21 03:01 Draymonders