由来 家里的PC机有几个月没用了,昨天刚开机,发现SSD识别不了,经过排查,确定是盘坏了,然后只能重装
之前用的win10做开发环境,但是觉得windows还是更适合作为游戏机存在,家里又有台MBP,因此考虑到没怎么用过linux桌面版的情况,决定感受下ubuntu
分区 PC配置是12GB内存,硬盘是1T+5T,1T的硬盘装数据装得差不多了,5T的还有4个T没分区,因此直接装在了5T这个盘上,200G挂载在/目录,100G挂载在/home目录,14G分到SWAP交换分区,500M分到EFI启动分区,BIOS中进行了UEFI启动配置
科学上网 linux下面的科学上网相比于windows,darwin,android,ios系统相对繁琐,首先安装好ss,开启ss后配置系统代理到ss中的本地端口
如果要实现浏览器根据GFWList规则上网,以chrome来说,需要下载一个插件:SwitchyOmega,并按照流程配置
如果要实现terminal科学上网,则需要安装proxychains
sudo apt-get install proxychains 编辑配置文件
mkdir -p /home/lestat/.proxychains/ sudo vim ~/.proxychains/proxychains.conf 如下配置(协议,ip,端口根据实际情况配置)
strict_chain proxy_dns remote_dns_subnet 224 tcp_read_time_out 15000 tcp_connect_time_out 8000 localnet 127.0.0.0/255.0.0.0 quiet_mode [ProxyList] socks5 127.0.0.1 1080 之后在需要ss的命令前加proxychains,如:
sudo proxychains git clone https://github.com/lestat220255/docker-lnmp.git docker开发环境 在安装完docker和docker-compose之后,使用我之前写的脚本,快速搭建docker+nginx+php+mysql+redis的开发环境,同时支持各种服务的多版本并存,后期开发非常方便,摆脱了集成环境的同类服务只能运行一个版本的约束
sudo proxychains git clone https://github.com/lestat220255/docker-lnmp.git cd docker-lnmp && chmod u+x ./init.sh && ./init.sh 工具推荐 terminal扩展 proxychains git npm相关 docker相关 ntfs-3g(用于挂在windows ntfs分区的工具,如果电脑是双系统,强烈推荐) rdesktop(连接windows server) OhMyZsh tldr htop(top加强版) 社交 telegram(推荐安装一个chrome/firefox插件更方便使用) 网页版微信 科学上网 shadowsocks-qt5 proxychains(terminal) SwitchyOmega(用于浏览器上根据GFWList自动切换系统代理或是直连) 开发工具 vscode(简直不能更好用…) phpstorm(2018.1.6)更新的版本无法使用之前的激活服务器 pycharm(个人版,免费) postman 其他 搜狗拼音 坚果云 FileZilla Wps vps网速测试wget -qO- git.io/superbench.sh | bash frp(内网穿透,可以用于开发测试,接收支付回调) 关闭程序崩溃报告 查看当前有哪些程序的崩溃记录
ls /var/crash 直接删除它们,但后续如果有类似报告依然会提示
sudo rm /var/crash/* 修改配置为0即可禁用报告(彻底解决问题)
vim /etc/default/apport
Change the enabled=1 to enabled=0. Save and close the file. You won’t see any pop up for crash reports after doing this. Obvious to point out that if you want to enable the crash reports again, you just need to change the same file and put enabled as 1 again 参考原网址 安装主题管理 sudo apt-get install unity-tweak-tool sudo apt-get install notify-osd && sudo apt-get install overlay-scrollbar nohup unity-tweak-tool>/dev/null 2>&1 & 一站式搞定theme,icon,dock
...