Ubuntu18.04 常用工具的安装及配置 一时失言乱红尘 2022-05-11 15:26 166阅读 0赞 ## 一般来说, ## ubuntu在安装完毕后,通过“Ubuntu软件”(也就是下面的图标对应的那个程序) ![20190124111426605.png][] 可以安装很多的软件和工具,例如PowerShell, Gimp等,我这里只收录几个自己常但其中没有的。 ## Codeblocks ## $ sudo apt-get install codeblocks $ sudo apt-get install codeblocks-dbg $ codeblocks (start the codeblocks program) **颜色配置:color-theme.conf** 配置文件在 [http://wiki.codeblocks.org/index.php/Syntax\_highlighting\_custom\_colour\_themes][http_wiki.codeblocks.org_index.php_Syntax_highlighting_custom_colour_themes] 该配置文件(color-theme.conf)应该放在 /home/spacesoftwares/.config/codeblocks/color-theme.conf 如果不起作用,就把原来那个default.conf放到其他地方去(避免出错要找回来再用),然后把这个新的color-theme.conf改成default.conf(相当于替换掉原来那个default.conf),这样就可以了。配置在codeblocks->settings->editors->syntax highlighting... 查看配置命令 sudo cb_share_config ### Typora (Markdown editor) ### # or use # sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add - # add Typora's repository sudo add-apt-repository 'deb https://typora.io/linux ./' sudo apt-get update # install typora sudo apt-get install typora ### Notepad++ ### Step 1: Get Snap 一个很方便的包管理工具,很小, sudo apt-get install snapd snapd-xdg-open Step 2: Install Notepad++ sudo snap install notepad-plus-plus 这个比较耗时间,耐心点。安装完毕,你应该可以看到 notepad-plus-plus 7.5.6 from ‘mmtrt’ installed Step 3: Install some plugin…, if you want... sudo snap connect notepad-plus-plus:process-control sudo snap connect notepad-plus-plus:removable-media sudo snap connect notepad-plus-plus:hardware-observe sudo snap connect notepad-plus-plus:cups-control 文字颜色的配置在这里(注意使用snap时才会是这个路径)setting->style configurator... /home/spacesoftwares/snap/notepad-plus-plus/124/notepad-plus-plus/themes 你可以到网上去找颜色配置,比如 https://techmantium.com/10-great-notepad-colour-schemes/ ### Visual studio code开发环境 ### 直接到官方的网站上下载安装包安装即可 [https://code.visualstudio.com/docs/?dv=linux64\_deb][https_code.visualstudio.com_docs_dv_linux64_deb] 说实话,微软在调试设计方面还是蛮务实的,用起来比emacs顺手(尤其是对深度windows中毒的。。。), 使用方法: matthew@spacesoftwares:~/CPP$ g++ -o test test.cpp -g matthew@spacesoftwares:~/CPP$ dir test test.cpp 可以看到,已经生成了可以调试的test可执行文件 安装完vscode后,直接debug->start debugging,如果你是第一次的话,会要求安装语言工具,这时你安装C/C++ for visual studio code (intellisense)即可,(当然,前提是gdb已经安装了)。 然后,在程序中断处打上断点,点击左边的Debug,(Ctrl+Shift+D),就可以开始运行程序 visual sutudio code 会调用gdb来进行相关调试。 顺便给一下那个配置文件,(打开文件夹后修改launch.json中的要调试的程序的名称 "program": "test", 如果找不到就写全路径,如"program": ""/home/spacesoftwares/testproject/test") { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "(gdb) Launch", "type": "cppdbg", "request": "launch", "program": "test", "args": [], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "externalConsole": true, "MIMode": "gdb", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } ] } ] } ### Latex(这个貌似ubuntu软件中已经收录了) ### sudo apt-get install texlive-full; or, sudo apt-get install texlive sudo apt-get install texmaker ### Calibre ### Epub阅读器 (a epub reader tool) sudo apt-get install calibre ### 下面列出的都是收费的,这里专为免费用户列出来是避免安装又卸载,担误时间! ### ### Master PDF editor ### 这个广告很强大,到处占搜索资源。编辑会不断强制加水印(不是加一层,而是一层又一层,所以不交费是没法用的) [20190124111426605.png]: /images/20220505/67a4e40c22ea43e984ba626c50a483c5.png [http_wiki.codeblocks.org_index.php_Syntax_highlighting_custom_colour_themes]: http://wiki.codeblocks.org/index.php/Syntax_highlighting_custom_colour_themes [https_code.visualstudio.com_docs_dv_linux64_deb]: https://code.visualstudio.com/docs/?dv=linux64_deb
还没有评论,来说两句吧...