230810_EndeavourOS折騰記
thinkbook BIOS【Secure Boot】设置成【Disabled】
装机时系统引导booter选了grub
换源
进系统后的欢迎界面有选项,选国家自动写入/etc/pacman.d/mirrorlist
注意archlinux和manjaro的软件仓库是不一样的地址
装yay
https://wiki.archlinux.org/title/Arch_User_Repository 先git clone(不一定就是在github上),然后makepkg
再pacman -U
装完之后,PKGBUILD文件和打包完的package包都可以删掉了
==yay装东西,除了remove make dependencies选y,其他都默认就好了==
gnome-shell-extension
1 | sudo pacman -S gnome-shell-extensions |
extension开DING的时候,鼠标左上角切换到第二个桌面后开启,这样切到第2,3个桌面也会显示桌面图标了
some problems of GNOME
https://askubuntu.com/questions/651347/how-to-bring-back-minimize-and-maximize-buttons-in-gnome-3
Tweaks
https://askubuntu.com/questions/262373/why-cant-i-change-the-wallpaper-in-gnome-shell-and-unity
文件管理器Nautilus右击没有“新建文件的选项”
https://zhuanlan.zhihu.com/p/78420821
~/Templates下放入当前manjaro的’Empty Bash’ ‘Empty Desktop File.desktop’ ‘Empty File’
Nautilus checksums
1 | yay -S nautilus-checksums |
但其实也可以命令行看hash值
1 | sha512sum file_name |
gnome-terminal透明化
1 | yay -S gnome-terminal-transparency |
然后preferences -> colors里设置
桌面双击文件夹,默认用vscode打开,而非文件管理器(nautilus)
https://askubuntu.com/questions/1256037/double-click-on-folders-opens-vscode
修改文件/usr/share/applications/code.desktop
1 | MimeType=text/plain;inode/directory;application/x-code-workspace; |
把inode/directory;
删了
要是还不work的话:
1 | sudo cp /usr/share/applications/code.desktop ~/.local/share/applications/code.desktop |
And edit ~/.local/share/applications/code.desktop
:
1 | MimeType=text/plain;inode/directory;application/x-code-workspace; |
to
1 | MimeType=text/plain;application/x-code-workspace; |
flameshot没反应
终端输入flameshot,报错
1 | Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. |
check现在用的是Wayland or Xorg: echo $XDG_SESSION_TYPE
去flameshot的github issue看看,是gnome的问题。
flameshot gui
至少终端敲了可以run
GUI Package Manager
用了bauh
也可以装个pamac-all (同时在extensions里开启Pamac Updates Indicator)
7 Things After Installing EndeavourOS (MUST DO!) 就用了pamac
https://www.debugpoint.com/arch-linux-gui-package-managers/
https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Graphical
https://www.reddit.com/r/archlinux/comments/nponlx/what_is_the_best_gui_package_manager/
shell
fish
装fish sudo pacman -S fish
查看可用的shell: cat /etc/shells
or chsh -l
change shell: chsh -s /bin/fish
装oh-my-fish (github搜)
omf的插件 wttr, weather, bass
主题也都用oh-my-fish管理,不要用fish_config
会有冲突
https://alancorn.github.io/blogs/2022/Fisher.html
fisher
弃用omf,改为fisher(主要为了fish的Powerlevel10k——Tide)
https://github.com/jorgebucaran/fisher 安装看github主页
fisher中切换已经装了的theme,依然用fisher install
命令 https://github.com/jorgebucaran/fisher/issues/111
1 | fisher install oh-my-fish/theme-agnoster |
更多插件 https://github.com/jorgebucaran/awsm.fish
fisher update
更新所有installed packages
tide
安装tide https://github.com/IlanCosman/tide
1 | fisher install IlanCosman/tide@v5 |
命令行tide configure
,选择配置
修改变量例子:
1 | set --universal tide_git_bg_color_unstable F79732 |
但很遗憾tide毕竟还是不如Powerlevel10k那么完善,anacondaのbuilt-in high quality segments没有,只有venv的virtualenv。
不过命令行conda init fish
后,终端prompt也有提示了。
但conda init fish
実行された後,终端连续回车会报错,并且clear
会报terminals database is inaccessible
,~/.config/fish/config.fish
新增的部分删掉后恢复正常
或者在~/.config/fish/config.fish
后面加上export TERMINFO=/usr/share/terminfo
能解决clear的问题
所以,fish用conda,不要conda init fish
,还是用类似zsh在配置文件里加source…的仕方
fish-color-scheme-switcher
https://github.com/h-matsuo/fish-color-scheme-switcher
1 | $ fisher install h-matsuo/fish-color-scheme-switcher |
1 | scheme list |
1 | # Set color scheme to `tokyonight` automatically on new session |
z
https://github.com/jethrokuan/z
1 | fisher install jethrokuan/z |
使用:
z foo
: Goes to directory best matchingfoo
.zo foo
: Opens file manager of directory best matchingfoo
.
nvm
https://github.com/jorgebucaran/nvm.fish 原生支持fish,不需要装原版nvm再bass配置了
1 | fisher install jorgebucaran/nvm.fish |
可以使用node use system
切换回系统的nodejs
bass
zsh
装zsh插件: zsh
, zsh-autosuggestions
, zsh-completions
, zsh-history-substring-search
, zsh-syntax-highlighting
, zsh-theme-powerlevel10k-git
p10k的github主页也写了推荐用git的包
1 | echo 'source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc |
终端p10k configure
选择式配置,完了后~/.p10k.zsh就用了(.zshrc也会有改动)
p10k -h
查看可用的命令
要改prompt前面的icon的话,编辑~/.p10k.zsh
的Custom iconのOS_ICON_CONTENT_EXPANSION
照搬manjaro的配置,在~/.zshrc添加
1 | # Source manjaro-zsh-configuration |
复制/usr/share/zsh/manjaro-zsh-config过来
输入法
1 | sudo pacman -S fcitx5-im fcitx5-rime fcitx5-pinyin-zhwiki fcitx5-mozc |
https://wiki.archlinux.org/title/Fcitx5
https://wiki.archlinuxcn.org/wiki/Fcitx5
https://archlinuxstudio.github.io/ArchLinuxTutorial/#/rookie/DE&App?id=_11安装输入法
配置
中文的教程都是说写在/etc/environment
下。然而英文的wiki只说了set环境变量,具体放在哪里と言うと、lph教我的是放在最近的一层,/etc/environment
太全局了虽然能work但不是最佳实践。lph是根据https://wiki.archlinux.org/title/Environment_variables#Per_Wayland_session Wayland的配置,放在~/.config/environment.d/fcitx5.conf
1 | GTK_IM_MODULE=fcitx |
fcitx5-configtool
记得手动把rime,mozc加到左边的current input method
fcitx5主题
1 | sudo pacman -S fcitx5-material-color |
https://github.com/hosxy/Fcitx5-Material-Color
https://github.com/thep0y/fcitx5-themes
问题:1. 输入法icon没有显示在top bar(安装gnome-shell-extension-appindicator
后解决); 2. 浏览器或者vscode打中文,没有显示配置的主题(重启后好了)
rime默认是繁体,要简体的话需要Ctrl+`一起按,如果是top panel config的话只有单次有效
雾凇拼音
https://github.com/iDvel/rime-ice
https://manateelazycat.github.io/2023/09/11/fcitx-best-config/
1 | yay -S rime-ice-git |
补丁方式启用
~/.local/share/fcitx5/rime/
下的default.custom.yaml
文件,具体见github主页
字体
https://wiki.archlinuxcn.org/wiki/字体
1 | sudo pacman -S ttf-hack |
1 | ttf-dejavu |
其实tide的配置文件rainbow.fishなだ一开始打开有些图标显示是乱码,当然终端fish开了tide主题后也是图标乱码,原因就是缺少支持图标的字体(大概是nerd-font)。
于是我就直接一股脑把当前manjaro的/usr/share/fonts全部复制到新机的相同目录。然后就图标显示正常了
上記字体安装了后,/usr/share/fonts下也就有了
其他软件
1 | sudo pacman -S gnome-system-monitor |
1 | sudo pacman -S obs-studio |
但装完按obs的图标没反应,然后根据终端输入obs后的报错提示,网上搜了要再装qt6-wayland
1 | endeavour |
外设键盘唤醒 wake from suspend
https://cn.linux-console.net/?p=12183#gsc.tab=0
这三个帖子很instructive
本来打算照着askubuntu的最高赞回答做的,然后看了下评论区
1 | If this still doesn't work, make sure your device (keyboard / mouse) still has power when the PC is in sleep mode. |
一想这台thinkbook好像确实只有一个USBtypeA的口是suspend还通电的。估计就是专门用来插外接键盘的。
把键盘插到通电的typeA口,然后就好了,挂起后可以敲外设键盘唤醒了。
remap键位on operating system level
在Tweaks里设置Keyboard&Mouse -> Additional Layout Options
CapsLock behavior从默认的Disabled改为Swap Esc and CapsLock Capslock变为额外的Esc,但Shfit+Capslock等于正常的Capslock
这样方便vim从insert模式切回normal模式
- Title: 230810_EndeavourOS折騰記
- Author: Haoliang Tang
- Created at : 2023-08-10 00:00:00
- Updated at : 2023-11-02 20:32:00
- Link: https://hl-tang.github.io/2023/08/10/230810_EndeavourOS折騰記/
- License: This work is licensed under CC BY-NC-SA 4.0.