vim ~/.Xresources
默认是96无放缩,放缩乘以倍数即可
Xft.dpi: 144
生效需要重启
vim /etc/pacman.d/mirrorlist
## 163
Server = http://mirrors.163.com/archlinux/$repo/os/$arch
## aliyun
Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch
## 清华大学
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
修改 /etc/pacman.conf
SigLevel = Never
修改/etc/hosts, 如果无法访问的话
140.82.114.4 github.com
140.82.114.4 gist.github.com
185.199.108.153 assets-cdn.github.com
151.101.64.133 raw.githubusercontent.com
151.101.108.133 gist.githubusercontent.com
151.101.108.133 cloud.githubusercontent.com
151.101.108.133 camo.githubusercontent.com
151.101.108.133 avatars0.githubusercontent.com
151.101.108.133 avatars1.githubusercontent.com
151.101.108.133 avatars2.githubusercontent.com
151.101.108.133 avatars3.githubusercontent.com
151.101.108.133 avatars4.githubusercontent.com
151.101.108.133 avatars5.githubusercontent.com
151.101.108.133 avatars6.githubusercontent.com
151.101.108.133 avatars7.githubusercontent.com
151.101.108.133 avatars8.githubusercontent.com
185.199.108.133 raw.githubusercontent.com
curl -s https://raw.githubusercontent.com/linux-surface/linux-surface/master/pkg/keys/surface.asc | sudo pacman-key --add -
sudo pacman-key --finger 56C464BAAC421453
sudo pacman-key --lsign-key 56C464BAAC421453
修改 /etc/pacman.conf 添加
[linux-surface]
Server = https://pkg.surfacelinux.com/arch/
After doing that you need to refresh the repository metadata, then you can install the linux-surface kernel and its dependencies. You should also enable the iptsd service for touchscreen support.
sudo pacman -Syyu
sudo pacman -S linux-surface linux-surface-headers iptsd ## surfacebook 适配的内核
sudo systemctl enable iptsd
error: failed to prepare transaction (could not satisfy dependencies)
pacman -Rdd xxx 移除不可以升级的依赖
sudo pacman -S --needed git make gcc
git clone https://aur.archlinux.org/yay.git
cd yay
export GOPROXY=https://goproxy.cn ## 解决 go 代理无法访问的问题
makepkg -si
shim
.
sudo pacman -S linux-surface-secureboot-mok
sudo grub-mkconfig -o /boot/grub/grub.cfg
Finally, reboot your system and you should boot into the linux-surface kernel. Please make sure you are actually using the right kernel by checking if the output of uname -a contains the string surface. If it doesn't contain that string, you are still using the default kernel and need to configure your bootloader.
sudo pacman -S wqy-microhei #安装微软亚黑字体
yay -S ttf-font-awesome
yay -S ttf-material-icons
## 安装本地ttf字体
mkdir ~/.local/share/fonts
cp Microsoft-Yahei-Mono.ttf ~/.local/share/fonts
fc-cache -vf
fc-list
vim 输入unicode
i go into INSERT mode
Ctrl+v go into ins-special-keys mode
u2713 insert the Unicode character CHECK MARK (U+2713)
font-awesome 部分图标: http://www.fontawesome.com.cn/faicons/
解决中文显示问题
sudo vim /usr/share/conky/conky_maia
将 conky.text 的前四行字体改为 anti 即可
设置系统为中文见 中文输入法
sudo pacman -S terminator
yay -S visual-studio-code-bin
yay -S microsoft-edge-dev-bin
wget https://github.com/qingshuisiyuan/electron-ssr-backup/releases/download/v0.2.6/electron-ssr-0.2.6.pacman
yay -S gconf
sudo pacman -U tetrd.linux_amd64.pkg.tar.xz --assume-installed libappindicator-sharp
microsoft-edge-dev --proxy-pac-url=http://127.0.0.1:2333/proxy.pac
wget https://github.com/Eugeny/tabby/releases/download/v1.0.156/tabby-1.0.156-linux.pacman
sudo pacman -U tabby-1.0.156-linux.pacman
yay -S fcitx-im kcm-fcitx fcitx-googlepinyin fcitx-configtool
sudo vim ~/.xprofile
## 设置系统为中文
export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
export GTK_IM_MODULE="fcitx"
export QT_IM_MODULE="fcitx"
export XMODIFIERS="@im=fcitx"
vim ~/.i3/config 添加启动
ctrl+space 激活输入法
主题和词库配置:https://bbs.deepin.org/zh/post/223743
yay -S python-nautilus python-configobj pygtk pysvn dbus-python python-dulwich subversion meld rabbitvcs
截图工具
yay -S flameshot
yay -S feh
.i3/config 中添加
exec feh --randomize --bg-fill ~/data/img/bg
http://119.29.164.225:10085/svn/project/cpp
http://119.29.164.225:10085/svn/project/linux/img
gnome-tweaks
将 主题 放到 /home/$USER/.themes 文件夹下;
将 图标 / 光标 放到 /home/$USER/.icons 文件夹下;
注意层级,主题文件夹大概长这样:
Sierra-light
├── gnome-shell
├── gtk-2.0
├── gtk-3.0
└── index.theme
Conky 是一个应用于桌面环境的系统监视软件,可以在桌面上监控系统运行状态、网络状态等一系列参数
https://github.com/brndnmtthws/conky/
yay -S lightdm-webkit2-greeter
sudo vim /etc/lightdm/lightdm.conf
greeter-session=lightdm-webkit2-greeter
主题保存在 /usr/share/lightdm-webkit/themes/
sudo vim /etc/lightdm/lightdm-webkit2-greeter.conf
webkit_theme = $自己下载的主题名称
主题推荐
https://github.com/Sujaykumarh/lightdm-theme-sapphire
参考:https://wiki.archlinux.org/title/LightDM#Enabling_autologin
Edit the LightDM configuration file and ensure these lines are uncommented and correctly configured:
/etc/lightdm/lightdm.conf
[Seat:*]
autologin-user=username
You must be part of the autologin group to be able to login automatically without entering your password:
# groupadd -r autologin
# gpasswd -a username autologin
sudo systemctl enable sshd.service 开机启动
sudo systemctl start sshd.service 立即启动
sudo systemctl status sshd.service
查看防火墙状态
sudo systemctl status iptables
sudo systemctl status firewall
sudo systemctl status ufw ## manjaro i3 应该是这个
sudo ufw allow ssh
sudo ufw allow [in|out] 8888/tcp
sudo ufw delete allow [in|out] <port/rule>
查看已经开放的端口
sudo pacman install ufw-extras
sudo ufw status numbered
yay -S lrzsz
force floating for all new windows
for_window [class="[.]*"] floating enable
browser pop-ups
for_window [window_role="pop-up"] floating enable
bindsym $mod+Tab focus next
bindsym $mod+Shift+Tab focus prev