更换软件源
使用中国的镜像排名
sudo pacman-mirrors -i -c China -m rank //更新镜像排名
sudo pacman -Syy //更新数据源
sudo pacman-mirrors -g //排列数据源
添加archlinuxcn源编辑命令 sudo nano /etc/pacman.conf
添加下面的内容
[archlinuxcn]
SigLevel = Optional TrustedOnly
#中科大源
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
#清华源
# Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
# 163源
# Server = http://mirrors.163.com/archlinux-cn/$arch
然后再更新软件数据源
sudo pacman -Syy
sudo pacman -S archlinux-keyring archlinuxcn-keyring
如何证书有问题,可以使用下面的命令进行修复,参考官方wiki
sudo pacman-key --init && sudo pacman-key --populate
因为本文的软件使用yay进行安装,故需要使用命令进行安装,命令为 sudo pacman -S yay
设置yay的mirror
yay --aururl "https://aur.tuna.tsinghua.edu.cn" --save
可选安装 编译包 yay -S base-devel
注:类似的包管理器还可以用 paru
SSH管理工具
Remmina 安装 yay -S remmina
可以选装这些插件
freerdp remmina-plugin-teamviewer remmina-plugin-webkit remmina-plugin-rdesktop remmina-plugin-anydesk-git remmina-plugin-rustdesk
终端:
深度终端 安装 yay -S deepin-terminal
alacritty 安装 yay -S alacritty
终端渐变色工具lolcat yay -S lolcat
ssh设置如果只是修改客户端选项,创建~/.ssh/config
或者修改/etc/ssh/ssh_config
(需要root权限),文件输入下面内容:
Host *
ServerAliveInterval 300
ServerAliveCountMax 2
如果是作为服务端,那么需要修改sshd的配置文件/etc/ssh/sshd_config
,添加下面内容:
ClientAliveInterval 300
ClientAliveCountMax 2
这些设置将使 SSH 客户端或服务器每300秒(5分钟)向另一端发送一个空包,如果在2次尝试后没有收到任何响应,则放弃,此时连接很可能已被丢弃。
参考 ssh_config
的帮助文档
ServerAliveCountMax Sets the number of server alive messages (see below) which may be sent without ssh(1) receiving any messages back from the server. If this threshold is reached while server alive messages are being sent, ssh will disconnect from the server, terminating the session. It is important to note that the use of server alive messages is very different from TCPKeepAlive (below). The server alive messages are sent through the encrypted channel and therefore will not be spoofable. The TCP keepalive option enabled by TCPKeepAlive is spoofable. The server alive mechanism is valuable when the client or server depend on knowing when a connection has become inactive.
The default value is 3. If, for example, ServerAliveInterval (see below) is set to 15 and ServerAliveCountMax is left at the default, if the server becomes unresponsive, ssh will disconnect after approximately 45 seconds. This option applies to protocol version 2 only; in protocol version 1 there is no mechanism to request a response from the server to the server alive messages, so disconnection is the responsibility of the TCP stack.
ServerAliveInterval Sets a timeout interval in seconds after which if no data has been received from the server, ssh(1) will send a message through the encrypted channel to request a response from the server. The default is 0, indicating that these messages will not be sent to the server, or 300 if the BatchMode option is set. This option applies to protocol version 2 only. ProtocolKeepAlives and SetupTimeOut are Debian-specific compatibility aliases for this option.
浏览器
vivaldi 安装 yay -S vivaldi
microsoft Edge yay -S microsoft-edge-stable-bin
Chrome 安装 yay -S google-chrome
参考
- 解决打开Chrome出现 输入密码以解锁您的登录密钥环 https://blog.csdn.net/kangear/article/details/20789451
- bilibili视频不能播放的问题 需要安装对应浏览器的解码包。
yay -S vivaldi-ffmpeg-codecs chromium-codecs-ffmpeg chromium-codecs-ffmpeg-extra opera-ffmpeg-codecs
(只需安装对应浏览器的包即可,不必全部安装)
翻译软件
有道词典 安装 yay -S youdao-dict
金山词霸 安装 yay -S powerword-bin
goldendict 安装 yay -S goldendict
词库
聊天软件
微信 安装 yay -S deepin-wine-wechat
(新版可能卡死,可以使用下面的命令killall WeChatBrowser.exe && /opt/deepinwine/tools/sendkeys.sh w wechat 4
)
QQ 安装 yay -S deepin-wine-qq
如果你喜欢各种破解,可以试试下载dreamcast的QQ,替换wine下的QQ。命令参考 sudo mv ./QQ ~/.deepinwine/Deepin-QQ/drive_c/"Program Files"/Tencent
新版LinuxQQ yay -S linuxqq
tim yay -S com.qq.tim.spark
ipmsg 安装yay -S iptux
mattermost 安装 yay -S mattermost-desktop
slack 安装 yay -S slack-desktop
Discord 安装 yay -S discord
Discord强制要求更新
虽然discord在linux下表现很棒,但是强制更新这个确实有点恶心。有时候Manjaro的仓库里头还没有更新discord版本,但是discord客户端不更新就不让用了。好在客户端本身并不是真的不让登录,只是简单的检测了下版本号,所以应该知道怎么解决了吧。
首先找到discord的路径,如下所示
$ ls -al `which discord` lrwxrwxrwx 1 root root 20 Apr 21 09:58 /usr/bin/discord -> /opt/discord/Discord
然后在discord文件夹找到
./resources/build_info.json
,修改里头的版本号即可。参考文章:Discord won’t open on Linux when an update is available
Telegram yay -S telegram-desktop
可自建的聊天软件
mattermost 安装 yay -S mattermost
参阅
rocketchat-server 安装 yay -S rocketchat-server
说明:
- 安装微信后可能不能启动,需要修改内容,参考 https://github.com/countstarlight/deepin-wine-wechat-arch
- 微信安装使用时,有透明的窗口问题 使用命令
sudo sed -i 's/env WINEPREFIX/env GTK_IM_MODULE="fcitx" XMODIFIERS="@im=fcitx" QT_IM_MODULE="fcitx" WINEPREFIX/' /opt/deepinwine/apps/Deepin-WeChat/run.sh
执行即可 - QQ、微信不能输入中文,在微信的安装目录
/opt/deepinwine/apps/Deepin-WeChat
下的run.sh
前面添加
env locale=zh_CN
export XIM="fcitx"
export XMODIFIERS="@im=fcitx"
export GTK_IM_MODULE="fcitx"
export QT_IM_MODULE="fcitx"
设置构建包时压缩安装包不进行压缩
sudo sed -i "s/PKGEXT='.pkg.tar.xz'/PKGEXT='.pkg.tar'/g" /etc/makepkg.conf
参考
https://printempw.github.io/setting-up-manjaro-linux/
下载上传
MegaSync 安装 yay -S megasync-bin
115网盘 安装 yay -S 115pc
天翼云盘 安装 yay -S cloudpan189-go
OneDive 安装 yay -S onedrive
或者 yay -S onedrive-abraunegg
(GUI yay -S onedrivegui-git
)
百度云 安装 yay -S baidunetdisk-bin
或者 安装深度的版本 yay -S deepin-baidu-pan
坚果云 安装 yay -S nutstore
或者 坚果云实验版 yay -S nutstore-experimental
DropBox 安装 yay -S dropbox
resilio sync 安装 yay -S rslsync
迅雷linux版本 安装 yay -S xunlei-bin
迅雷极速版 yay -S deepin-wine-thunderspeed
rclone 同步工具 yay -S rclone
(同步onedrive配置 GUI)
axel 安装 yay -S axel
localsend 安装 yay -S localsend-bin
zssh 安装 yay -S zssh
配合lrzsz(安装命令 yay -S lrzsz
)食用效果最佳。
trzsz 安装 yay -S trzsz
motrix 安装 yay -S motrix
Mega网盘安装 yay -S megatools-git
qbittorrent 安装 yay -S qbittorrent
(增强版 yay -S qbittorrent-enhanced-git
搜索插件)
moose 支持边下边播的BT工具 yay -S moose
参考
- dreamcast的网盘 http://dreamcast2.ys168.com
- zssh介绍 http://www.v5b7.com/other/zssh.html
办公软件
看雪安全接入ksa 安装 yay -S ksa
Android屏幕共享Scrcpy 安装 yay -S scrcpy
tailscale 安装 yay -S tailscale
达芬奇视频剪辑 安装 yay -S davinci-resolve
handbrake 视频格式转换工具 yay -S handbrake-full
zettlr markdown编辑器 安装 yay -S zettlr
vnode markdown编辑器 安装 yay -S vnote
Wps 安装 yay -S wps-office ttf-wps-fonts wps-office-mui-zh-cn wps-office-mime
libreoffice 安装 yay -S libreoffice
flameshot 截图工具 安装 yay -S flameshot
kazam录屏软件 安装 yay -S kazam
geogebra 几何绘图软件 yay -S geogebra
福昕pdf阅读器 yay -S foxitreader
Teamviewer yay -S teamviewer
如果一直显示未连接,则请退出teamviewer,执行sudo teamviewer --daemon enable
再打开试试
Xrdp yay -S xrdp xorgxrdp-git
(参考文档)
向日葵 安装 yay -S sunloginclient
(需要设置开机启动服务 systemctl enable runsunloginclient
启动服务 systemctl start runsunloginclient
)
toDesk远程工具 安装 yay -S todesk-bin
(设置服务 systemctl start\enable todeskd
才能正常运行)
parsec 远程工具 安装 yay -S parsec-bin
v2ray 安装 yay -S v2ray
(安装配置工具yay -S qv2ray
qv2ray 插件 yay -S qv2ray-plugin
,福利订阅 新版已经使用AppImage格式发布,下载AppImage格式即可 或者 v2rayDesktop yay -S v2ray-desktop
)
cloudflare Warp 安装 yay -S cloudflare-warp-bin
基于wiregurd 自选ip脚本 自选ip脚本2
n2n VPN软件 yay -S n2n
proxychains-ng 安装 yay -S proxychains-ng
evernote 开源版本 nixnote2 安装 yay -S nixnote2
joplin 安装 yay -S joplin
Okular (KDE上的通用文档阅读器) yay -S okular
Foliate 简单、现代的电子书阅读器 安装 yay -S foliate
Screen屏幕共享软件 安装 yay -S screen-desktop
U盘启动制作etcher yay -S etcher-bin
xmind-2020 安装 yay -S xmind-2020
(福利链接)
drawio 安装 yay -S drawio-desktop-bin
或者 yay -S drawio-desktop
钉钉 安装 yay -S dingtalk-electron
企业微信 yay -S deepin-wine-wxwork
飞书 yay -S feishu-bin
剪切板工具 uniclip yay -S uniclip
onenote yay -S p3x-onenote
realvnc-server yay -S realvnc-vnc-server
(安装完毕后需要注册sudo vnclicense -add 3TH6P-DV5AE-BLHY6-PNENS-B3AQA
,启动服务 systemctl enable vncserver-x11-serviced
)
realvnc-viewer yay -S realvnc-vnc-viewer
macast-git跨平台的 DLNA 投屏接收端 yay -S macast-git
(需要安装相关pip包 pip install -U urllib3 requests
pip install requests[socks]
)
在线流程图工具 https://excalidraw.com 参考
- proxychains-ng 使用 https://wsgzao.github.io/post/proxychains/
- Linux中制作U盘启动盘的三种方法 https://ywnz.com/linuxjc/5620.html
输入法
fcitx
sun输入法 安装 yay -S fcitx fcitx-im fcitx-configtool fcitx-sunpinyin fcitx-googlepinyin fcitx-cloudpinyin fcitx-libpinyin
皮肤 安装 yay -S fcitx-skin-material
百度输入法 安装 yay -S fcitx-baidupinyin
安装完成以后记得重启下,不然输入候选框会乱码。
讯飞输入法 安装 yay -S iflyime
or yay -S manjaro-asian-input-support-fcitx
KDM, GDM, LightDM 等显示管理器,请使用 ~/.xprofile 警告: 上述用户不要在~/.xinitrc中加入下述脚本,否则会造成无法登陆。(但在里头加了也没挂) 如果您用 startx 或者 Slim 启动,请使用~/.xinitrc 中加入
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export @=fcitx
如果你使用的是较新版本的GNOME,使用 Wayland 显示管理器,则请在/etc/environment中加入
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
@=fcitx
安装相关字体fcitx5
yay -S wqy-bitmapfont wqy-microhei wqy-zenhei adobe-source-code-pro-fonts adobe-source-han-sans-cn-fonts ttf-monaco noto-fonts-emoji ttf-fira-code
ttf-ms-fonts ttf-sarasa-gothic nerd-fonts-complete noto-fonts-cjk noto-fonts-sc
输入法有问题,需要重置,使用命令 rm -r ~/.config/fcitx
然后注销即可。
fcitx5
基本安装 yay -S fcitx5-im fcitx5-chinese-addons
或者 yay -S manjaro-asian-input-support-fcitx5 fcitx5 fcitx5-configtool fcitx5-chinese-addons fcitx5-qt fcitx5-gtk
安装字典 yay -S fcitx5-pinyin-zhwiki fcitx5-pinyin-sougou
安装皮肤:
- fcitx5-breeze:提供了与KDE默认的Breeze主题匹配的外观。
- fcitx5-nord :Nord颜色 的主题
- fcitx5-material-color:提供了类似微软拼音的外观。
- fcitx5-solarized:Solarized颜色 主题
- fcitx5-skin-fluentdark-git:具有模糊效果和阴影的 Fluent-Design 深色主题
编辑
/etc/environment
并添加以下几行,然后重新登录GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx [email protected]=fcitx SDL_IM_MODULE=fcitx GLFW_IM_MODULE=ibus
如果使用 en_US.UTF-8 时,遇到 GTK2 无法激活 fcitx5,可专门为该 GTK2 应用程序设置输入法为 xim,如
$ env GTK_IM_MODULE=xim <your_gtk2_application>
请勿将
GTK_IM_MODULE
全局设置为 xim,因为它也会影响 GTK3 程序。XIM 有各种问题(比如输入法重启之后再无法输入),尽可能不要使用。注意:
- SDL_IM_MODULE 是为了让一些使用特定版本 SDL2 库的游戏能正常使用输入法。
- GLFW_IM_MODULE 是为了让 kitty 启用输入法支持。此环境变量的值只能为 ibus。
更多内容 参考 wiki
rime
参考官网 传送门
基本库 yay -S ibus ibus-qt ibus-rime
配置文件内容
export GTK_IM_MODULE=ibus
export [email protected]=ibus
export QT_IM_MODULE=ibus
ibus-daemon -d -x
四叶草输入法 yay -S rime-cloverpinyin
参考 https://wiki.archlinux.org/index.php/Fcitx
雾凇拼音 https://github.com/iDvel/rime-ice
媒体软件
网易云音乐 安装 yay -S netease-cloud-music
腾讯视频 安装 yay -S tenvideo
全聚合影视 安装 yay -S vst-video-bin
OBS推流工具 yay -S obs-studio
bilibili yay -S bilibili-bin
smPlayer yay -S smplayer
美化
docky 安装
yay -S docky
或者
yay -S plank
(这个比较简单,推荐)
XFCE桌面下安装plank后可能会出现屏幕下方会有一条阴影直线,十分影响视觉。解决方案是在开始菜单的设置管理器(Settings Manager)-窗口管理器微调(Window Manager Tweaks)-合成器(Compositor)中去掉dock阴影(Show shadows under dock windows)前面的勾。
如果是KDE桌面
yay -S latte-dock
KDE
(KDE推荐安装部件(下载网站,最好安装ocs-url yay -S ocs-url
) appication title
全局菜单
Launchpad plasma
latte Spacer
Event calendar
(个人google三色时间配置 '<font color="#EB4334">'hh'</font>':'<font color="#35AA53">'mm'</font>':'<font color="#4586F3">'ss'</font>'
))
KDE whitesur主题 安装 yay -S whitesur-kde-theme-git
XFCE whitesur主题
- https://github.com/vinceliuice/WhiteSur-gtk-theme
- https://github.com/paullinuxthemer/McOS-XFCE-Edition
mcmojave-circle-icon-theme-git 图标主题 yay -S mcmojave-circle-icon-theme-git
xfce全局菜单(参考链接1 参考链接2) yay -S libdbusmenu-glib libdbusmenu-gtk3 libdbusmenu-gtk2 vala-panel-appmenu-xfce appmenu-gtk-module appmenu-qt4 vala-panel-appmenu-registrar xfce4-windowck-plugin-xfwm4-theme-support
启用使用下面的命令
xfconf-query -c xsettings -p /Gtk/ShellShowsAppmenu -n -t bool -s true
xfconf-query -c xsettings -p /Gtk/ShellShowsMenubar -n -t bool -s true
conky 性能显示组件 安装 yay -S conky conky-manager
ohmyzh 安装
yay -S zsh && sh -c "$(curl -fsSL https://fastgit.czyt.tech/https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
安装插件
git clone https://github.com/zsh-users/zsh-completions ~/.oh-my-zsh/custom/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/plugins/zsh-autosuggestions
git clone https://github.com/qoomon/zsh-lazyload $ZSH_CUSTOM/plugins/zsh-lazyload
git clone https://github.com/skywind3000/z.lua.git $ZSH_CUSTOM/plugins/z.lua
配置插件 vim ~/.zshrc
plugins=(git z.lua zsh-lazyload zsh-syntax-highlighting docker docker-compose zsh-autosuggestions zsh-completions)
zsh在使用nohup执行任务的时候,可能会出现session注销后,nohup自动被终止的情况,若要保持运行,请执行setopt NO_HUP
参考Zsh文档
另外还有一个SpaceShip的插件也不错,可以试下。参考这篇文章,下面是引用部分
paceship ZSH
I use Spaceship ZSH as my shell theme, not only does it make my prompt look nice but it also provides extensions that helps improve my developer workflow, bringing information like the current git branch, git status, npm package version and current node version into my shell prompt for increased visibility.
I ran the script at the command line to download and install.
git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1 ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
I set
ZSH_THEME="spaceship"
and uncommented the line in.zshrc
.I added
SPACESHIP_PROMPT_ORDER
array to.zshrc
abovesource $ZSH/oh-my-zsh.sh
line.SPACESHIP_PROMPT_ORDER=( dir # Current directory section git # Git section (git_branch + git_status) package # Package version node # Node.js section dotnet # .NET section ruby # Ruby section exec_time # Execution time line_sep # Line break battery # Battery level and status jobs # Background jobs indicator exit_code # Exit code section char # Prompt character )
The
SPACESHIP_PROMPT_ORDER
array enables you to define which sections are enabled or disabled in the prompt, this is optional but can improve the performance of the prompt. The less sections are loaded the faster the shell will load, so I enable the sections that are of use to me.
HUP … In zsh, if you have a background job running when the shell exits, the shell will assume you want that to be killed; in this case it is sent a particular signal called SIGHUP… If you often start jobs that should go on even when the shell has exited, then you can set the option NO_HUP, and background jobs will be left alone.
starship 安装 yay -S starship
(如是安装的zsh,安装完成后在~/.zshrc 加入eval "$(starship init zsh)"
即可,配置文档),个人配置文件(通过mkdir -p ~/.config && touch ~/.config/starship.toml
创建)
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompts
add_newline = true
continuation_prompt = "▶▶"
[username]
style_user = "white bold"
style_root = "red bold"
format = "user: [$user]($style) "
disabled = false
show_always = true
# Replace the "❯" symbol in the prompt with "➜"
[character] # The name of the module we are configuring is "character"
success_symbol = "[➜](bold green)" # The "success_symbol" segment is being set to "➜" with the color "bold green"
[golang]
format = "via [🏎💨 $version](bold cyan) "
[git_status]
conflicted = "🏳"
ahead = "🏎💨"
behind = "😰"
diverged = "😵"
up_to_date = "✓"
untracked = "🤷"
stashed = "📦"
modified = "📝"
staged = '[++\($count\)](green)'
renamed = "👅"
deleted = "🗑"
[sudo]
style = "bold green"
symbol = "👩💻 "
disabled = false
# Disable the package module, hiding it from the prompt completely
[package]
disabled = true
还有一个zinit也很不错。
fish
yay -S fish
安装oh-my-fish
curl -L https://get.oh-my.fish | fish
推荐插件 wttr天气插件
omf install wttr
fisher
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
参考知乎这篇文章
nushell
安装 yay -S nushell
Warp Terminal (有Linux版本的计划,暂未发布)
自定义主题
需要事先安装软件 yay -S gnome-tweaks chrome-gnome-shell
手动安装
Gnome
解压主题到 /usr/share/themes
解压图标到 /usr/share/icons
然后在gnome-tweaks启用即可。
参考
- https://zhuanlan.zhihu.com/p/71588449
- https://blog.triplez.cn/manjaro-quick-start
- https://zhuanlan.zhihu.com/p/37852274
KDE
/usr/share/plasma/desktoptheme 这是存放plasma主题 /usr//share/plasma/look-and-feel/ 存放全局主题 /usr/share/plasma/plasmoids/ 存放插件
编程语言
go 安装 yay -S go
rust 安装 yay -S rustup
flutter 安装 yay -S flutter
.net core 安装 yay -S dotnet-sdk-bin
开发工具
github520 sed -i "/# GitHub520 Host Start/Q" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts
(刷新缓存 systemctl restart nscd
)
docker-image-extract https://github.com/jjlin/docker-image-extract
lapce yay -S lapce
lazygit yay -S lazygit
gitui yay -S gitui
github Desktop yay -S github-desktop-bin
代码生成图片silicon yay -S --needed pkgconf freetype2 fontconfig libxcb xclip silicon
redis管理工具 yay -S redis-desktop-manager
github-cli 安装 yay -S github-cli-bin
minicom串口工具 安装 yay -S minicom
(设置参数 sudo minicom -s
)
串口助手 安装 yay -S serialtool
serial-studio 串行数据可视化工具 安装 yay -S serial-studio-git
nodejs 安装 yay -S nodejs npm
(安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org
)
跨平台编译工具链 安装 yay -S arm-linux-gnueabihf-g++ arm-linux-gnueabihf-gcc
c/c++开发 安装 yay -S make cmake gdb gcc
goland 安装 yay -S goland goland-jre
uinityHub 安装 yay -S unityhub
Android Studio 安装 yay -S android-studio
commitizen-go 安装 yay -S commitizen-go
相似的程序gitcz
datagrip 安装 yay -S datagrip datagrip-jre
Android Studio 安装 yay -S android-studio
(安卓SDK yay -S android-sdk
)
clion 安装 yay -S clion clion-jre
pycharm 安装 yay -S pycharm-professional
rider安装 yay -S rider
webstorm 安装 yay -S webstorm webstorm-jre
vmware 安装 yay -S vmware-workstation
postman 安装 yay -S postman
汉化文件(jetbrains新版自带的resful 测试工具,可以不用安装)
apifox 安装 yay -S apifox
Typora markdown编辑器 安装 yay -S typora
dnspy 安装 yay -S dnspy
(需要使用blackarch源)
tmux 终端工具 安装 yay -S tmux
pre-commit 安装 yay -S python-pre-commit
(管理和维护 pre-commit hooks的工具. 官网 )
byobu 终端工具 安装 yay -S byobu
API文档工具 zeal 安装 yay -S zeal
windterm 安装 yay -S windterm-bin
bcompare 安装 yay -S bcompare
tldr 简化版文档工具 yay -S tldr
(rust版本 yay -S tealdeer
)
vscode 安装 yay -S visual-studio-code-bin
终端录屏幕asciinema 安装 yay -S asciinema
证书生成工具 mkcert 安装 yay -S mkcert
netcat yay -S --noconfirm gnu-netcat
或者 yay -S --noconfirm openbsd-netcat
微信开发者工具 yay -S wechat-devtool
Platform-Tools for Google Android SDK (adb and fastboot) 安装 yay -S android-sdk-platform-tools
编译链工具xmake 安装 yay -S xmake
goreleaser 安装 yay -S goreleaser-bin
percona-toolkit (mysql辅助分析工具) yay -S percona-toolkit
注:
jetbrains系列软件,自带更新功能,但是我们一般使用非root用户进行登录,这时需要将安装目录授权给当前登录用户即可。以goland为例,只需要执行 chown -R $(whoami) /opt/goland
即可进行自动升级。
strace yay -S strace
dtrace yay -S dtrace-utils
(使用教程)
cloudflare Argo tunnel yay -S cloudflared
(使用教程)
nmon yay -S nmon
nload yay -S nload
tcpflow yay -S tcpflow
pyroscope性能监测工具 yay -S pyroscope-bin
(使用教程 官方教程)
crontab yay -S cronie
charles抓包工具 yay -S charles
(注册码生成 汉化)
参考
-
vmware安装后报错的问题 https://blog.csdn.net/weixin_43968923/article/details/100184356
-
科学技术大学blackarch源使用说明 https://lug.ustc.edu.cn/wiki/mirrors/help/blackarch
-
jetbrains系列软件markdown插件无预览标签
yay -S java-openjfx-bin
,参考链接 -
安装charless证书。导出根证书保存为pem格式。转换为crt格式
openssl x509 -in charles.pem -inform PEM -out ca.crt
信任证书
sudo trust anchor ca.crt
,done
服务器组件
数据库
redis yay -S redis
percona-Server yay -S percona-server
postresql yay -S postgresql
mongoDB yay -S mongodb
或者 yay -S mongodb-bin
percona-mongoDB yay -S percona-server-mongodb-bin
(mongosh yay -S mongosh-bin
)
Mariadb yay -S mariadb
tiup (可以快速启动tidb的playground) curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh
clickhouse yay -S clickhouse
(官方文档)
其他
screenfetch (终端打印出你的系统信息) 安装 yay -S screenfetch
neofetch yay -S neofetch
easystroke 鼠标手势 yay -S easystroke
copyQ (类似ditto) 安装 yay -S copyq
ifconfig、netstat 安装 yay -S net-tools
文件搜索albert(类似mac上的Spotlight) 安装 yay -S albert
Stow配置管理软件 安装 yay -S stow
snap 安装 yay -S --noconfirm --needed snapd
figlet 字符串logo生成工具 yay -S figlet
软件包降级工具 downgrade yay -S downgrade
thefuck输错命令更正工具 yay -S thefuck
appimagelauncher 安装 yay -S appimagelauncher
终端文件管理器ranger 安装 yay -S ranger
硬盘自动休眠 hd-idle 安装 yay -S hd-idle
(或者 hdparam
)
宽带连接 rp-pppoe 安装 yay -S rp-pppoe
(参考官方wiki)
磁盘清理
sudo pacman -Scc
journalctl --disk-usage
sudo journalctl --vacuum-size=50M
sudo rm /var/lib/systemd/coredump/*
参考
- 使用 Stow 管理多台机器配置https://blog.csdn.net/F8qG7f9YD02Pe/article/details/104046845
- https://zhuanlan.zhihu.com/p/106593833?utm_source=wechat_session&utm_medium=social&utm_oi=33332939194368
- 在Arch Linux/Manjaro上安装Snap https://ywnz.com/linuxjc/4635.html
- 修改主目录为英文 原文
$ sudo pacman -S xdg-user-dirs-gtk
$ export LANG=en_US
$ xdg-user-dirs-gtk-update
# 然后会有个窗口提示语言更改,更新名称即可
$ export LANG=zh_CN.UTF-8
$ sudo pacman -Rs xdg-user-dirs-gtk
品牌笔记本支持
thinkpad thinkfan 安装yay -S thinkfan
获取温度传感器
find /sys/devices -type f -name "temp*_input"
,Thinkpad T430 显示如下:sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp6_input /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp3_input /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp7_input /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp4_input /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp8_input /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp1_input /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp5_input /sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp2_input /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp3_input /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp4_input /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp5_input /sys/devices/platform/coretemp.0/hwmon/hwmon4/temp2_input /sys/devices/virtual/thermal/thermal_zone0/hwmon1/temp1_input
thinkpad 充电阀值软件 yay -S tlp tp_smapi acpi_call threshy threshy-gui
( 需要 systemctl enable tlp
)
参考
- https://wiki.archlinux.org/index.php/Laptop/Lenovo
- TLP https://wiki.archlinux.org/index.php/TLP_(简体中文)
- thinkfan 配置及启动参考 https://wiki.archlinux.org/index.php/Thinkpad_Fan_Control
- https://www.cnblogs.com/henryau/archive/2012/03/03/ubuntu_thinkfan.html
- GDM https://wiki.archlinux.org/index.php/GDM
- 强制登陆界面在主显示器上显示 https://askubuntu.com/questions/11738/force-gdm-login-screen-to-the-primary-monitor
- 指纹识别 https://wiki.archlinux.org/index.php/Fprint
- Fix Intel CPU Throttling on Linux
网卡
8811cu yay -S rtl8821cu-dkms-git
参考链接
系统参数调优
TRIM
如果你的manjaro根目录安装在固态硬盘上,那么建议你输入以下命令,TRIM会帮助清理SSD中的块,从而延长SSD的使用寿命:
sudo systemctl enable fstrim.timer
sudo systemctl start fstrim.timer
SWAP设置
系统开机以后内存占用1.7g左右,通常有8-16g内存的电脑可以将swap使用率调低,这样可以提高电脑的性能。
-
查看swap使用率,一般是60,意思是60%的概率将内存整理到swap:cat /proc/sys/vm/swappiness
-
修改swap使用策略为10%,即10%的概率将内存整理到swap:sudo sysctl -w vm.swappiness=10
-
修改配置文件:sudo xed /etc/sysctl.d/99-swappiness.conf 在文件末尾加上下面这行内容: vm.swappiness=10
-
重启后可查看swappiness的值,是10即可:cat /proc/sys/vm/swappiness
-
其他关于swap调整大小等等操作请参考“ArchWiki关于Swap”
Systemd journal size limit
参考 https://wiki.archlinux.org/index.php/systemd#Journal_size_limit
修改/etc/systemd/journald.conf
中的SystemMaxUse
参数
SystemMaxUse=50M
其他
- https://averagelinuxuser.com/10-things-to-do-after-installing-manjaro/
- 字体渲染 http://www.badwolfbay.cn/2020/03/17/manjaro-setting/
常见问题
- swappinessinvalid or corrupted package (PGP signature)
sudo rm -R /etc/pacman.d/gnupg/
sudo pacman-key --init
sudo pacman-key --populate archliswappinessnux
sudo pacman-key --populate archlinuxcn
-
刷新dns参考
sudo resolvectl flush-caches