diff --git a/README.md b/README.md index c45942a..9d4f097 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ - 本书为处于互联网被封锁和审查地区的读者提供完善且可靠的科学上网流程,如果有人认为其是"不和谐的",我们表示非常遗憾。 - 本书样式保持尽可能的简洁,以提升读者的网站加载速度。同时,我们认为花哨的样式不应存在于一本较为严肃的书籍中。 - 无废话,只给出一套**我们认为**较为合适的路线,对于安装流程尽可能保持简洁,不会面面俱到。本书是 tutorial,不是 reference,定位与官方 wiki 不同。更多的内容请读者自行查看 Arch Wiki 或查阅相关资料。知其然知其所以然当然是正确的,但填入过多的内容不是一本 tutorial 所应该做的事。 - - 本书使用 docsify 以及 gitalk 开发,并且网站源码全部开源,可放心留言讨论。本网站亦不使用任何有害跟踪器脚本,所提供的文件下载不进行任何审计与监视,你可通过 [Brave 浏览器](https://brave.com/zh/)以及阅读源码进行检测验证。 + - 本书使用 docsify 以及 gitalk 开发,并且网站源码全部开源,可放心留言讨论。本网站亦不使用任何有害跟踪器脚本,所提供的文件下载不进行任何审计与监视,你可通过 [Brave 浏览器](https://brave.com/zh/)的跟踪器检测以及阅读源码进行检测验证。 - Linux & ACG [Telegram Group:ArchLinuxStudio🇨🇦🏳️‍⚧️🏳️‍🌈](https://t.me/FSF_Ministry_of_Truth) ||| [Matrix Group:ArchLinuxStudio🇨🇦🏳️‍⚧️🏳️‍🌈](https://matrix.to/#/#ArchLinuxStudio:matrix.org)。 > **本书采用 CC BY-NC-ND 4.0 协议[[1]](https://github.com/ArchLinuxStudio/ArchLinuxTutorial/issues/68)。欢迎提交Pull requests,但是禁止商业用途与演绎。任何"下游文档"都是未经授权且违反协议的。** diff --git a/docs/README.md b/docs/README.md index 97ac641..af8a4b4 100644 --- a/docs/README.md +++ b/docs/README.md @@ -10,7 +10,7 @@ Arch Linux 安装使用教程,每日实时更新!包含从 Arch Linux 安装 - 本书为处于互联网被封锁和审查地区的读者提供完善且可靠的科学上网流程,如果有人认为其是"不和谐的",我们表示非常遗憾。 - 本书样式保持尽可能的简洁,以提升读者的网站加载速度。同时,我们认为花哨的样式不应存在于一本较为严肃的书籍中。 - 无废话,只给出一套**我们认为**较为合适的路线,对于安装流程尽可能保持简洁,不会面面俱到。本书是 tutorial,不是 reference,定位与官方 wiki 不同。更多的内容请读者自行查看 Arch Wiki 或查阅相关资料。知其然知其所以然当然是正确的,但填入过多的内容不是一本 tutorial 所应该做的事。 - - 本书使用 docsify 以及 gitalk 开发,并且网站源码全部开源,可放心留言讨论。本网站亦不使用任何有害跟踪器脚本,所提供的文件下载不进行任何审计与监视,你可通过 [Brave 浏览器](https://brave.com/zh/)以及阅读源码进行检测验证。 + - 本书使用 docsify 以及 gitalk 开发,并且网站源码全部开源,可放心留言讨论。本网站亦不使用任何有害跟踪器脚本,所提供的文件下载不进行任何审计与监视,你可通过 [Brave 浏览器](https://brave.com/zh/)的跟踪器检测以及阅读源码进行检测验证。 - Linux 二次元交流群: [Telegram Group:ArchLinuxStudio🇨🇦🏳️‍⚧️🏳️‍🌈](https://t.me/FSF_Ministry_of_Truth) ||| [Matrix Group:ArchLinuxStudio🇨🇦🏳️‍⚧️🏳️‍🌈](https://matrix.to/#/#ArchLinuxStudio:matrix.org)。 > **本书采用 CC BY-NC-ND 4.0 协议[[1]](https://github.com/ArchLinuxStudio/ArchLinuxTutorial/issues/68)。欢迎提交Pull requests,但是禁止商业用途与演绎。任何"下游文档"都是未经授权且违反协议的。** diff --git a/docs/advanced/beauty.md b/docs/advanced/beauty.md index c00e4e9..f2f290a 100644 --- a/docs/advanced/beauty.md +++ b/docs/advanced/beauty.md @@ -42,7 +42,6 @@ proxychains systemsettings5 #通过代理打开系统设置 在任务栏空白处右键,选择编辑面板,添加部件。 - Netspeed widget 网速组件,这个很实用 -- simple system monitor 系统信息 - todolist 任务组件 然后把你经常使用的软件固定在任务栏即可。 diff --git a/docs/index.html b/docs/index.html index a26b7d4..7075d53 100644 --- a/docs/index.html +++ b/docs/index.html @@ -116,6 +116,7 @@ 安装/魔法上网/美化/日常/娱乐/编程的全部...
如您无法访问本站,则说明您的网络环境已被当局封锁,请翻墙访问 + + + + + + > addBackToTop({ diameter: 56, diff --git a/docs/play&office/office.md b/docs/play&office/office.md index 05c73c1..bad8f9d 100644 --- a/docs/play&office/office.md +++ b/docs/play&office/office.md @@ -114,6 +114,7 @@ sudo pacman -S kchmviewer 对于日常办公来说,打印机是非常必要的。除此之外,我们建议读者维持一份纸质的密码,包括你可以将你加密货币钱包中的私钥打印出来保存,这是非常好的一个方案。对于打印机的品牌,我们建议使用惠普打印机。其对于 Linux 的支持非常全面,可以去其[网站](https://hplipopensource.com/)查看所支持的设备等详情。在 Arch Linux 上,安装包 hplip 以及 cups ,启动服务后即可使用。 ```bash +sudo pacman -S system-config-printer sudo pacman -S hplip sudo pacman -S cups sudo systemctl enable --now cups.service @@ -216,3 +217,7 @@ sudo pacman -S flameshot ```bash sudo systemctl enable --now teamviewerd ``` + +## 病毒防护 + +人们往往认为 Linux 由于其完美的设计和开源特性不易感染病毒,从而不用安装防毒软件,这其实是不正确的。随着 Linux 的普及,更多针对 Linux 的病毒在陆续涌现。除此之外,随着 Wine 以及 Proton 越来越多的应用,Windows 系统上病毒的威胁性也在 Linux 系统中持续提高。在 Arch Linux 中,可以使用[ClamAV](https://wiki.archlinux.org/title/ClamAV)对系统进行扫描,进而删除存在的病毒文件。根据 wiki 说明,添加更多病毒特征库后会可以进行更加完善的病毒扫描,注意,如果你的文件系统非常巨大,扫描过程可能长达数十小时。如果你有意使用付费闭源软件,根据我们的调查,目前针对个人 Linux PC 端,仍在更新且较为完善的软件是[Dr.Web](https://products.drweb.cn/home/linux/),俗称大蜘蛛,你可自行决定是否使用。 diff --git a/docs/play&office/play.md b/docs/play&office/play.md index f946546..7b17e70 100644 --- a/docs/play&office/play.md +++ b/docs/play&office/play.md @@ -80,6 +80,8 @@ Missing decoder: Advanced Streaming Format (ASF) (video/x-ms-asf) 接下来,`lib32-gst-plugins-ugly`依赖了另一个包`lib32-shaderc`,这个包的构建同样存在错误,并且它并不是必要的,所以直接在`lib32-gst-plugins-ugly`的 PKGBUILD 中将其删除,然后手动安装即可。 +最后,通过 ldd 命令查询,目前`lib32-gst-plugins-ugly`中的 libgstlibav.so 所使用的 libvpx.so.8 无法找到,原因是因为目前`lib32-libvpx`包中的 libvpx.so 已经更新为 libvpx.so.9。由此在/usr/lib32 文件夹中创建指向 libvpx.so.9.0.0 的名为 libvpx.so.8 的符号链接即可解决。后续由于版本不匹配的类似问题均可依次类比解决。 + Ref: - https://bbs.archlinux.org/viewtopic.php?id=249982 @@ -121,27 +123,40 @@ sudo grub-mkconfig -o /boot/grub/grub.cfg ## 游戏手柄 -一般情况下手柄通过数据线连接计算机即可直接使用。支持无线的手柄(DUALSHOCK® 3、DUALSHOCK® 4、Xbox 360、Xbox One、8BitDo 等)也可以通过蓝牙直接连接,无需额外操作。 +在 Arch Linux 中兼容性最好的手柄是 Xbox 手柄,其余手柄不建议使用。如果你使用无线适配器连接,安装使用[xone](https://github.com/medusalix/xone)。如果你使用蓝牙连接,安装使用[xpadneo](https://aur.archlinux.org/packages/xpadneo-dkms)。对于蓝牙连接,需要进行额外配置。 + +1. 首先需要启用 UserspaceHID,如果不这样做,手柄将无法正常连接,并开始循环连接和断开连接,并且 Xbox 按钮将不断闪烁。编辑配置文件: -虽然无线手柄一般情况下可以通过蓝牙直连,但是通常这样会有较大的延迟。使用 [Xbox 无线适配器](https://www.microsoftstore.com.cn/accessories/microsoft-xbox-wireless-adapter) 以获得近乎有线的低延迟体验。 +```bash +vim /etc/bluetooth/input.conf +``` -为了在 Arch Linux 下使用 Xbox 无线适配器,需要安装第三方开源驱动 [xow](https://github.com/medusalix/xow)。 +去掉`UserspaceHID`的注释并将值改为 true。 -1. 安装 [xow](https://aur.archlinux.org/packages/xow-git/)AUR: +2. 接下来在主蓝牙配置文件中进行一些设置,以便 xpadneo 能够按预期工作,还需要解决输入延迟问题。编辑主文件: - ```sh - yay -S xow - ``` +```bash +vim /etc/bluetooth/main.conf +``` -2. 启动 `xcow` 服务: +将以下参数改为以下值 - ```sh - sudo systemctl enable xow.service - ``` +```bash +[General] +Privacy = device +JustWorksRepairing = always +Class = 0x000100 +FastConnectable = true + +[LE] +MinConnectionInterval=7 +MaxConnectionInterval=9 +ConnectionLatency=0 +``` -3. 重启计算机,插入 Xbox 无线适配器并和 Xbox 手柄配对即可 +最后重启电脑,进行连接即可。 -实际体验和 Windows 下并无差异。对延迟敏感的音游(如 [喵斯快跑](https://store.steampowered.com/app/774171/Muse_Dash/))在游戏设置中微调偏移值即可。 +ref: https://www.reddit.com/r/linux_gaming/comments/smxqm2/how_to_use_xpadneo_with_an_xbox_series_controller/ ## Gamescope diff --git a/docs/res/yay-bin-12.3.3-1-x86_64.pkg.tar.zst b/docs/res/yay-bin-12.3.3-1-x86_64.pkg.tar.zst new file mode 100644 index 0000000..32e6d22 Binary files /dev/null and b/docs/res/yay-bin-12.3.3-1-x86_64.pkg.tar.zst differ diff --git a/docs/rookie/DE&App.md b/docs/rookie/DE&App.md index 7396047..8656b70 100644 --- a/docs/rookie/DE&App.md +++ b/docs/rookie/DE&App.md @@ -155,11 +155,9 @@ sudo chattr +i /etc/resolv.conf ## 9.设置系统为中文 -打开 _System Settings_> _Regional Settings_> _Language_ -> _Add languages_ 中选择中文加入,再拖拽到第一位,Apply。 +打开 _System Settings_> \_Regional Settings 在语言中添加中文加入,应用即可。 -再将此页面中的其余设置项中的值设为`中文-简体中文(zh_CN)`,最后重新登陆即可。 - -> 很多人会错误的更改设置项中的值为中文蒙古(mn_CN),默认,或者其他值,这会导致系统中一半英文一半中文。这里的值要保持默认的 en_US 或 zh_CN,或者改为你在 locale.gen 中添加的任意一种语言。 +接下来编辑 `~/.config/plasma-localerc` ,将其中的 LANG 值更改为 zh_CN.UTF-8 ## 10.安装 yay @@ -170,8 +168,8 @@ AUR 为 archlinux user repository。任何用户都可以上传自己制作的 A 执行如下命令安装 yay。 ```bash -wget https://raw.githubusercontent.com/ArchLinuxStudio/ArchLinuxTutorial/master/docs/res/yay-bin-11.1.2-1-x86_64.pkg.tar.zst -sudo pacman -U yay-bin-11.1.2-1-x86_64.pkg.tar.zst +wget https://raw.githubusercontent.com/ArchLinuxStudio/ArchLinuxTutorial/master/docs/res/yay-bin-12.3.3-1-x86_64.pkg.tar.zst +sudo pacman -U yay-bin-12.3.3-1-x86_64.pkg.tar.zst ``` > github.io 与 raw.githubusercontent.com 也被中国大陆政府封锁,只是封锁力度暂时还没有很大。如你在下载过程中卡住,可以尝试 ctrl+c 终止命令后重新尝试下载,也可尝试更换手机热点的网络环境再次进行下载,后文安装 Qv2ray 时同理。当你配置好全局代理后,你将不再需要担心任何网络封锁问题。我们将持续为本书读者提供突破互联网审查的可靠流程。 @@ -229,25 +227,18 @@ export EDITOR='vim' 这样就不用在每次执行命令时都指定一遍 `EDITOR=vim` 了。 -## 13.启用蓝牙(若有) +## 13.启用蓝牙相关功能 对于蓝牙及无线网卡,在 Linux 下推荐使用英特尔产品。博通以及瑞昱产品在兼容性,稳定性方面在 Linux 中表现很差,会带来很多不必要的麻烦,如在驱动,BLE 方面的支持很差或者没有。 -如果你有蓝牙设备,需要安装蓝牙软件包并启用蓝牙服务。随后在系统设置中进行添加设备与连接即可。 +如果你有蓝牙设备,需要安装蓝牙软件包并启用蓝牙服务。随后在系统设置中进行添加设备与连接即可。注意,文件传输功能现在需要额外安装包`bluez-obex`,其功能与 2024 年已从 `bluez` 包中分离出来。 ```bash -sudo pacman -S bluez bluez-utils +sudo pacman -S bluez bluez-utils bluez-obex sudo systemctl enable --now bluetooth ``` -如果要连接蓝牙音频设备,需要安装 `pulseaudio-bluetooth` 并重启 `pulseaudio`。 - -```bash -sudo pacman -S pulseaudio-bluetooth -pulseaudio -k -``` - -设置开机自动启用蓝牙设备,编辑`/etc/bluetooth/main.conf`文件,将`AutoEnable`设置为 true 即可。 +设置开机自动启用蓝牙设备,编辑`/etc/bluetooth/main.conf`文件,将`AutoEnable`设置为 true 即可。如果一些设备依然无法实现开机自动连接,尝试继续将`Experimental`以及`KernelExperimental`两项的值设置为 true。 博通(Broadcom)网卡在 Linux 下的支持度很差,无论是无线还是蓝牙模块。对于无线功能来说,一般直接安装 broadcom-wl 包即可。 diff --git a/docs/rookie/basic_install.md b/docs/rookie/basic_install.md index 3f2a3cb..9a87382 100644 --- a/docs/rookie/basic_install.md +++ b/docs/rookie/basic_install.md @@ -276,6 +276,8 @@ grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB vim /etc/default/grub ``` +使用 N 卡的用户需要注意,KDE6 默认使用 wayland session 为默认,如果你需要使用 wayland,则需开启 DRM。同样编辑/etc/default/grub 文件,在`GRUB_CMDLINE_LINUX_DEFAULT`一行中最后的加入参数:nvidia_drm.modeset=1 + 最后生成 GRUB 所需的配置文件 ```bash diff --git a/docs/rookie/graphic_driver.md b/docs/rookie/graphic_driver.md index b35432a..6096353 100644 --- a/docs/rookie/graphic_driver.md +++ b/docs/rookie/graphic_driver.md @@ -64,14 +64,6 @@ yay -S nvidia-390xx-dkms nvidia-settings lib32-nvidia-390xx-utils linux-headers sudo pacman -S mesa lib32-mesa xf86-video-nouveau ``` -#### 注意事项 - -- 如果安装驱动后内核冲突,把 kms 从 `/etc/mkinitcpio.conf` 里的 HOOKS 数组中移除,并重新生成 initramfs。 这能防止 initramfs 包含 nouveau 模块,以确保内核在早启动阶段不会加载它。 - -``` -mkinitcpio -p linux -``` - --- **在同时拥有核芯显卡和英伟达独立显卡的笔记本上安装驱动是大多数人关注的事情,这里着重讲述。** diff --git a/docs/uk/advanced/beauty.md b/docs/uk/advanced/beauty.md index fbf78f9..001a407 100644 --- a/docs/uk/advanced/beauty.md +++ b/docs/uk/advanced/beauty.md @@ -42,7 +42,6 @@ The welcome screen after the login interface can be beautified. _System Settings Right-click an empty space on the taskbar, select Edit Panel, and add widgets. - Netspeed widget network speed component, this is very practical -- simple system monitor system information - todolist task component Then you can pin the software you often use to the taskbar. diff --git a/docs/uk/play&office/office.md b/docs/uk/play&office/office.md index a0d0e11..dbb25e9 100644 --- a/docs/uk/play&office/office.md +++ b/docs/uk/play&office/office.md @@ -104,6 +104,7 @@ sudo pacman -S kchmviewer For daily office, a printer is very necessary. In addition, we recommend readers to maintain a paper password, including that you can print out the private key in your cryptocurrency wallet and save it, which is a very good solution. For the brand of printer, we recommend using HP printers. Its support for Linux is very comprehensive, you can go to its [website](https://hplipopensource.com/) to check the supported devices and other details. On Arch Linux, install the packages hplip and cups and use them after starting the service. ```bash +sudo pacman -S system-config-printer sudo pacman -S hplip sudo pacman -S cups sudo systemctl enable --now cups.service diff --git a/docs/uk/play&office/play.md b/docs/uk/play&office/play.md index c16f2b7..f0dd2b9 100644 --- a/docs/uk/play&office/play.md +++ b/docs/uk/play&office/play.md @@ -121,27 +121,41 @@ sudo grub-mkconfig -o /boot/grub/grub.cfg ## Gamepad -Under normal circumstances, the handle can be used directly by connecting to the computer through a data cable. Handles that support wireless (DUALSHOCK® 3, DUALSHOCK® 4, Xbox 360, Xbox One, 8BitDo, etc.) can also be connected directly via Bluetooth without additional operation. +The most compatible controller in Arch Linux is the Xbox controller, and the use of other controllers is not recommended. If you are using a wireless adapter to connect, install it using [xone](https://github.com/medusalix/xone). If you use a Bluetooth connection, install it using [xpadneo](https://aur.archlinux.org/packages/xpadneo-dkms). For Bluetooth connectivity, additional configuration is required. -Although wireless controllers can generally be directly connected via Bluetooth, there is usually a large delay in doing so. Use the [Xbox Wireless Adapter](https://www.microsoftstore.com.cn/accessories/microsoft-xbox-wireless-adapter) for a near-wired low-latency experience. +1. First you need to enable UserspaceHID, if you don't do this, the controller will not connect properly and will start to cycle connecting and disconnecting, and the Xbox button will keep flashing. Edit configuration file: -In order to use the Xbox Wireless Adapter under Arch Linux, a third-party open source driver [xow](https://github.com/medusalix/xow) needs to be installed. +```bash +vim /etc/bluetooth/input.conf + +``` + +Uncomment `UserspaceHID` and change the value to true. -1. Install [xow](https://aur.archlinux.org/packages/xow-git/)AUR: +2. Next make some settings in the main bluetooth profile so xpadneo can work as expected, also need to resolve the input lag issue. Edit the main file: - ```sh - yay -S xow - ``` +```bash +vim /etc/bluetooth/main.conf +``` -2. Start the `xcow` service: +Change the following parameters to the following values - ```sh - sudo systemctl enable xow.service - ``` +```bash +[General] +Privacy=device +JustWorksRepairing = always +Class = 0x000100 +FastConnectable = true + +[LE] +MinConnectionInterval=7 +MaxConnectionInterval=9 +ConnectionLatency=0 +``` -3. Restart the computer, insert the Xbox wireless adapter and pair with the Xbox controller +Finally, restart the computer and connect. -The actual experience is no different from that under Windows. Latency-sensitive audio games (such as [Meow Run](https://store.steampowered.com/app/774171/Muse_Dash/)) can fine-tune the offset value in the game settings. +ref: https://www.reddit.com/r/linux_gaming/comments/smxqm2/how_to_use_xpadneo_with_an_xbox_series_controller/ ## Gamescope diff --git a/docs/uk/rookie/DE&App.md b/docs/uk/rookie/DE&App.md index 0d76cd3..923207a 100644 --- a/docs/uk/rookie/DE&App.md +++ b/docs/uk/rookie/DE&App.md @@ -189,13 +189,6 @@ sudo pacman -S bluez bluez-utils sudo systemctl enable --now bluetooth ``` -If you want to connect a bluetooth audio device, you need to install `pulseaudio-bluetooth` and restart `pulseaudio`. - -```bash -sudo pacman -S pulseaudio-bluetooth -pulseaudio -k -``` - To set the bluetooth device to automatically start at boot, edit the `/etc/bluetooth/main.conf` file and set `AutoEnable` to true. Broadcom network cards are poorly supported under Linux, both wireless and bluetooth modules. For the wireless function, generally install the broadcom-wl package directly. diff --git a/docs/uk/rookie/basic_install.md b/docs/uk/rookie/basic_install.md index 0db2a34..d6c925b 100644 --- a/docs/uk/rookie/basic_install.md +++ b/docs/uk/rookie/basic_install.md @@ -278,6 +278,8 @@ vim /etc/default/grub Finally generate the configuration files required by GRUB +Users using Nvidia cards need to note that KDE6 uses wayland session by default. If you need to use wayland, you need to enable DRM. Also edit the /etc/default/grub file and add the last parameter in the `GRUB_CMDLINE_LINUX_DEFAULT` line: nvidia_drm.modeset=1 + ```bash grub-mkconfig -o /boot/grub/grub.cfg ```

AltStyle によって変換されたページ (->オリジナル) /