家里的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-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
wget -qO- git.io/superbench.sh | bash
ls /var/crash
sudo rm /var/crash/*
vim /etc/default/apport
undefinedChange 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 &
#!/bin/zsh
#此处使用zsh代替bash执行指令
#home目录位置
HOME=/home/username
#打开ss&&启动开发环境&&打开phpstorm
nohup $HOME/Downloads/Shadowsocks-version.AppImage>/dev/null 2>&1 &
cd $HOME/work && sudo -S docker-compose up -d << EOF
password
EOF
cd $HOME/PhpStorm-version/bin && nohup ./phpstorm.sh>/dev/null 2>&1 &
#打开frp代理
nohup $HOME/frp/frpc -c $HOME/frp/frpc.ini>/dev/null &
#挂载windowsF盘到当前系统/mnt/windows_D
sudo -S ntfs-3g /dev/sdb2 /mnt/windows_D << EOF
password
EOF
draculatheme暗黑系主题,支持多种主流编辑器,以及上面安装的zsh,个人很喜欢这个风格
Hasta la vista
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。