Ubuntu系统开发环境完整搭建

shlamp 2019-09-05

安装搜狗输入法

点击我下载哦

idea快捷键冲突

输入发占用快捷键。撤掉输入法的快捷键。还有系统自带快捷键也要取消。
Ubuntu系统开发环境完整搭建

安装deepin-terminal

在tools工具包中找到deepin-terminal中运行启动脚本。因为途中为去下在github源码。这里下载慢的可以直接先下载下来

然后执行

mkdir build
cd build
cmake ..
make
./deepin-terminal

然后就是创建Ubuntu的桌面图标

[Desktop Entry]
Encoding=UTF-8
Name=deepin-terminal
Comment=shell advice
Exec=/opt/soft/deepin-terminal/build/deepin-terminal
Icon=/opt/soft/deepin-terminal/terminal.jpeg
Categories=Application;Shell;Deepin-Terminal
Version=1.0
Type=Application
Terminal=0

然后在快捷键中设置Ctrl+Alt+T 为新的deepin-terminal

idea

激活码

9MWZD5CC4E-eyJsaWNlbnNlSWQiOiI5TVdaRDVDQzRFIiwibGljZW5zZWVOYW1lIjoiMjAxNzY1MDYxQGNxdS5lZHUuY24gLiIsImFzc2lnbmVlTmFtZSI6IiIsImFzc2lnbmVlRW1haWwiOiIiLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IklJIiwicGFpZFVwVG8iOiIyMDIwLTAxLTI0In0seyJjb2RlIjoiQUMiLCJwYWlkVXBUbyI6IjIwMjAtMDEtMjQifSx7ImNvZGUiOiJEUE4iLCJwYWlkVXBUbyI6IjIwMjAtMDEtMjQifSx7ImNvZGUiOiJQUyIsInBhaWRVcFRvIjoiMjAyMC0wMS0yNCJ9LHsiY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDIwLTAxLTI0In0seyJjb2RlIjoiRE0iLCJwYWlkVXBUbyI6IjIwMjAtMDEtMjQifSx7ImNvZGUiOiJDTCIsInBhaWRVcFRvIjoiMjAyMC0wMS0yNCJ9LHsiY29kZSI6IlJT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A201pAU6bJSZINyHDUTB+Beo28rRXSwSh3OUIvYwKNVeoBY+KwOJ7WnuTCUq1meE6GkKc4D/cXmgpOyW/1SmBz3XjVIi/zprZ0zf3qH5mkphtg6ksjKgKjmx1cXfZAAX6wcDBNaCL+Ortep1Dh8xDUbqbBVNBL4jbiL3i3xsfNiyJgaZ5sX7i8tmStEpLbPwvHcByuf59qJhV/bZOl8KqJBETCDJcY6O2aqhTUy+9x93ThKs1GKrRPePrWPluud7ttlgtRveit/pcBrnQcXOl1rHq7ByB8CFAxNotRUYL9IF5n3wJOgkPojMy6jetQA5Ogc8Sm7RG6vg1yow==

安装qq.wechat

细节查看我

基础环境搭建

聊天工具下载

git

git安装的时候需要读者手动修改start.sh中的内容。、然后讲生成ssh秘钥放在仓库中。

tools/start.sh 一键安装(java,maven,idea,robot,navicat,node) 需要 source start.sh
tools/google/start.sh 安装google浏览器
tools/docker/docker.sh 安装docker并配置开发自启动(包含mysql.sh、 redis.sh 、mongo.sh)
tools/docker/mysql.sh docker启动mysql ,并开机自启动
tools/docker/redis.sh docker启动redis ,并开机自启动
tools/docker/mongo.sh docker启动mongo ,并开机自启动
tools/docker/valid_docker_images.sh 验证docker镜像是否安装,返回1表示已安装,0表示该镜像未拉取,需要拉取镜像
tools/deepin-terminal/start.sh 安装deepin-terminal 在原有的terminal基础上增加了连接远程的功能列表

gpg2

ubuntu默认安装的gpg。

  • 为了方便上传maven到中央仓库,我们需要生成gpg并上传

    + gpg --gen-key 然后根据提示设置
    + apt install gnupg2

navicat

  • 如果系统是英文版的,安装的navicat中文乱码,我们需要在语言中安装中文字体并重启。如果还是乱码需要修改系统默认编码为中文。和start_navicat.sh保持一致。

maven

  • 配置gpg

    <profile>
            <id>ossrh</id>
            <activation>
            <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                    <gpg.executable>grootpg2</gpg.executable>
                    <gpg.passphrase>Qq15996779085</gpg.passphrase>
            </properties>
    </profile>
  • 虚拟机中最好将物理机的maven仓库挂载在一起,虚拟机就不用创建第二次仓库了。

tweaks

  • 选择暗黑,shell 未扩展解决方案

    • apt-get install gnome-tweak-tool
    • apt-get install gnome-shell-extensions
    • apt-get install gnome-shell-extension-dashtodock
    • 打开tweak,选择扩展,打开User themes选项

安装WPS

  • 从官网上下载deb文件,打开后回提示系统字体缺失。下载字体[https://pan.baidu.com/s/1o8ujqhc] 移动到 /usr/share/fonts下
  • 卸载自带的libreoffice apt-get remove --purge libreoffice*
  • 安装字体
    sudo apt-get install ttf-wqy-microhei #文泉驿-微米黑
    sudo apt-get install ttf-wqy-zenhei #文泉驿-正黑
    sudo apt-get install xfonts-wqy #文泉驿-点阵宋体

设置开机自动挂在硬盘

  • 测试git sublime提交 vscode

安装gitkrangen

  • apt-get remove --purge gconf2 && sudo apt-get install gconf2
  • 然后安装deb文件

安装pac

  • 下载pac后我们dpkg安装;如果报错执行apt-get install -f 可以安装相关依赖
  • 安装后启动报错,在Ubuntu1804中执行

    + `rm /opt/pac/lib/ex/vte64/auto/Gnome2/Vte/Vte.so`
    + `ln -s /usr/lib/x86_64-linux-gnu/perl5/5.26/auto/Gnome2/Vte/Vte.so /opt/pac/lib/ex/vte64/auto/Gnome2/Vte/Vte.so`
  • 在Ubuntu17中执行

    + `rm /opt/pac/lib/ex/vte64/auto/Gnome2/Vte/Vte.so`
    + `ln -s /home/eli/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Gnome2/Vte/Vte.so /opt/pac/lib/ex/vte64/auto/Gnome2/Vte/Vte.so`

解决github访问慢

点我查询实际IP

分别通过上述网址查询以下两个域名实际ip
github.global.ssl.fastly.net
github.com
然后配置在 /etc/hosts下。然后访问速度飞起。
加入战队

<span id="addMe">加入战队</span>

微信公众号

Ubuntu系统开发环境完整搭建

相关推荐