安装完Ubuntu后

加速关机

  1. /etc/systemd/system.conf文件中的#DefaultTimeoutStopSec=90s改为DefaultTimeoutStopSec=10s

  2. systemctl daemon-reload

设置硬件时间为系统时间

timedatectl set-local-rtc 1 --adjust-system-clock

禁用Ipv6

sudo nano /etc/sysctl.conf

在文件的最后加入下面的代码

1
2
3
4
# IPv6 disabled
net.ipv6.conf.all.disable_ipv6 =1
net.ipv6.conf.default.disable_ipv6 =1
net.ipv6.conf.lo.disable_ipv6 =1

保存并退出,重启sysctl

sudo sysctl -p

安装谷歌拼音输入法

sudo apt install fcitx

安装Fcitx

im-config

选择fcitx

sudo reboot

重启

sudo apt install fcitx-googlepinyin

安装谷歌拼音输入法

sudo reboot

重启

fcitx-config-gtk3

配置,此时应该默认就是google pinyin了

ubuntu下google拼音中文模式默认使用英文符号

PS

我自己的电脑出现选择google pinyin但无法使用的情况,然后我通过把ibus卸载解决

翻墙

软件介绍

electron-ssr

上面软件作者已删除软件, 下面是备份的链接

electron-ssr-backup

Qv2ray

v2ray-core

Qv2ray只是一个界面, 需要下载v2ray-core并在Qv2ray里设置

我个人更推荐v2ray

命令行使用代理

先使用http代理apt,然后安装proxychains4

sudo apt-get -o Acquire::http::proxy="http://127.0.0.1:8888/" update

proxychains-ng

sudo apt install proxychains4

配置文件在/etc/proxychains4.conf,修改最后一行即可

测试代理

proxychains4 wget https://google.com

Qv2ray设置局域网共享

局域网共享

Gnome Shell

更新: 极度不推荐, 不知道为什么在我两台电脑上装了以后就经常性卡住, 卸载都没用, 只能重装系统

conky

sudo apt install lm-sensors

sudo apt install conky-all

Light-weight system monitor for X.

我的配置文件

可以非常详细的看到系统各个数据

ramdisk

一般人应该用不到(一般人也不会用linux吧…),可以在/etc/fstab添加类似下列语句
tmpfs /home/用户名/.cache tmpfs size=2G,defaults,noatime,mode=777 0 0
ramdisk随机性能读写非常快.

有用的软件

sudo apt install vim

sudo apt install git

git config --global user.email "your email"

sudo apt install exfat-fuse

apt install unzip

sudo apt install unrar

编程方面

安装开发编译环境

sudo apt install build-essential

Python3包

sudo apt install python3-pip

sudo apt install python3-setuptools

pip3 --no-cache-dir install ipython

pip3 --no-cache-dir install numpy

nvidia驱动

sudo apt install nvidia-driver-{XXX}

调整显卡风扇转速

sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration

需重启生效

重建引导(一些sb情况下)

sudo update-grub

sudo grub-install (/dev/nvme0n1 自行修改)

.ssh

.ssh 755

私钥 600

pub 644 -> authorized_keys

重建博客

sudo proxychains4 apt install nodejs

sudo proxychains4 apt install npm

sudo proxychains4 npm install hexo-cli -g

其中已经集成了hexo-math

更换桌面

不知道为什么, 我的几台电脑使用gnome当桌面就有时候有卡住几秒, 无奈只能换xfce4

sudo apt install xfce4

重启, 然后进入xfce4桌面

sudo apt remove --purge gnome-shell

sudo apt remove --purge gnome

sudo apt autoremove

xfce4可选项

xfce4安装截图, sudo apt install xfce4-screenshooter

xfce4安装电源管理, sudo apt install xfce4-power-manager

xfce4安装蓝牙, sudo apt install bluetooth pulseaudio-module-bluetooth blueman bluez-firmware

Settings -> Keyboard -> Application Shortcuts 修改锁屏快捷键

Settings -> Window Manager -> Keyboard 修改虚拟桌面切换快捷键