啟東做網(wǎng)站的網(wǎng)絡(luò)公司有哪些外貿(mào)網(wǎng)絡(luò)營(yíng)銷(xiāo)推廣
目錄
0. 前言:
1. 先期準(zhǔn)備
1.1 引導(dǎo)ArchLinx光盤(pán)。
1.2 禁用 reflector 服務(wù)
1.3 防止網(wǎng)卡禁用
1.4 wifi設(shè)置
1.5 測(cè)試網(wǎng)絡(luò)是否連接
1.6?更新系統(tǒng)時(shí)間
1.7?更換源
1.8?下載ZFS模塊
1.9?加載ZFS模塊
2. 磁盤(pán)處理
2.1?查看磁盤(pán)分區(qū)
2.2 清除與整個(gè)磁盤(pán)關(guān)聯(lián)的任何 ZFS 標(biāo)簽如果是新硬盤(pán)或者以前沒(méi)有安裝過(guò)ZFS的硬盤(pán),可以忽略這條命令
2.3 創(chuàng)建磁盤(pán)分區(qū)
2.4 創(chuàng)建/boot的分區(qū)格式
2.5 創(chuàng)建ZFS池
2.6?創(chuàng)建數(shù)據(jù)集
2.7 導(dǎo)入導(dǎo)出測(cè)試
2.8?配置系統(tǒng)
2.8.1 設(shè)置zroot
2.8.2 創(chuàng)建cache并復(fù)制到新系統(tǒng)
2.8.3 掛載非ZFS分區(qū)
3. 安裝系統(tǒng)
3.1 安裝基本系統(tǒng)
3.2 生成fstab?
3.3 進(jìn)入CHROOT,此時(shí)的任何操作都影響你想安裝的系統(tǒng)。
3.4 修改pacman配置
3.5 設(shè)置key
3.6 安裝ZFS模塊
3.7 系統(tǒng)設(shè)置
3.7.1?編輯mkinitcpio文件
3.7.2?生成 hostid
3.7.3?重新生成 initramfs
3.7.4?安裝其他軟件
3.7.5?啟動(dòng)后臺(tái)服務(wù)
3.8 安裝引導(dǎo)
3.8.1 下載ZFSBootMenu
3.8.2?設(shè)置啟動(dòng)參數(shù)
3.8.3 (可選)安裝rEFInd
3.8.3.1 下載安裝
3.8.3.2?編輯refind.conf文件
4. 其它安裝操作
4.1 設(shè)置時(shí)區(qū)
4.2 設(shè)置本地化
4.3 語(yǔ)言編碼
4.4 設(shè)置主機(jī)名
4.5 HOSTS
4.6 設(shè)置ROOT密碼
5. 收尾工作
5.1 生成zfs快照
5.2 重啟機(jī)器
6. 重啟后操作
6.1 以root登錄。
6.2 添加用戶
6.3 設(shè)置sudo
6.4 設(shè)置時(shí)區(qū)
6.5 設(shè)置archlinuxcn
0. 前言:
啊啊啊啊啊~~~~~為什么xero不出iso了啊~~~~~~~~
1. 先期準(zhǔn)備
1.1 引導(dǎo)ArchLinx光盤(pán)。
1.2 禁用 reflector 服務(wù)
systemctl stop reflector.service
2020 年,archlinux 安裝鏡像中加入了?reflector
?服務(wù),它會(huì)自己更新?mirrorlist
(軟件包管理器?pacman
?的軟件源)。在特定情況下,它會(huì)誤刪某些有用的源信息。
通過(guò)以下命令查看該服務(wù)是否被禁用
systemctl status reflector.service
按下?q
?退出結(jié)果輸出。
1.3 防止網(wǎng)卡禁用
rfkill unblock all
1.4 wifi設(shè)置
#是否啟用了網(wǎng)絡(luò)接口
ip link
#執(zhí)行iwctl命令,進(jìn)入交互式命令行
iwctl
-------------下面為iwctl界面,不同于終端-----------
help ????????????????????????????????????????????????????????# 輸入help回車(chē)可以查看使用說(shuō)明
device list ????????????????????????????????????????????????# 回車(chē)后可以查看當(dāng)前網(wǎng)卡設(shè)備,一般為 wlan0
station <device> scan ????????????????????????# <device>替換為上面的網(wǎng)卡設(shè)備,這條命令可以讓網(wǎng)卡掃描wifi設(shè)備
station <device> get-networks ????????????????# 回車(chē)后可以顯示當(dāng)前可連接網(wǎng)絡(luò),列出所有 wifi 網(wǎng)絡(luò)
station <device> connect <wifi name> ????????# 連接wifi, <wifi name> 為上面獲取的wifi名稱,注意這里無(wú)法輸入中文?;剀?chē)后輸入密碼即可 password: # 如果wifi為加密wifi,輸入密碼回車(chē)
exit或者quit # 退出 wifi 連接界面
1.5 測(cè)試網(wǎng)絡(luò)是否連接
ping www.baidu.com -n
1.6?更新系統(tǒng)時(shí)間
更新系統(tǒng)時(shí)間是有必要的,因?yàn)橄螺d軟件是服務(wù)器會(huì)驗(yàn)證系統(tǒng)時(shí)間,如果時(shí)間不正確,可能出現(xiàn)下載失敗的情況。
timedatectl set-ntp true # 將系統(tǒng)時(shí)間與網(wǎng)絡(luò)時(shí)間進(jìn)行同步
timedatectl status # 查看系統(tǒng)時(shí)間狀態(tài),檢查是否成功 看到(system clock synchronized :yes)這一句就是成功了
1.7?更換源
# 備份原來(lái)的配置文件
cp -a /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
# 編輯配置文件 vim /etc/pacman.d/mirrorlist
# ---------------下面為vim操作,不同于終端-------------
# 找到第一個(gè) Server=... 的行在該行上一行寫(xiě)入以下內(nèi)容
Server = https://mirrors.ustc.edu.cn/archlinux/$repo/os/$arch # 中國(guó)科學(xué)技術(shù)大學(xué)開(kāi)源鏡像站
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch # 清華大學(xué)開(kāi)源軟件鏡像站
Server = https://repo.huaweicloud.com/archlinux/$repo/os/$arch ????????# 華為開(kāi)源鏡像站
Server = http://mirror.lzu.edu.cn/archlinux/$repo/os/$arch ????????# 蘭州大學(xué)開(kāi)源鏡像站
Server = http://mirrors.aliyun.com/archlinux/$repo/os/$arch ????????# 阿里云鏡像站
# -------------------------------------------------- #
也可以按/,搜索China,找到中科大的鏡像源,然后2dd 剪切2行,再按GG回到第一行,按 p 粘貼
或者reflector自動(dòng)選擇
pacman -S reflector # 安裝
# 選擇最快的鏡像源
sudo reflector --verbose -l 200 -p https --sort rate --save /etc/pacman.d/mirrorlist
# 或者 選擇在xx的最快鏡像源,最新的50個(gè)
sudo reflector --verbose --latest 200 -p https --sort rate -c Japan,'South Korea',Taiwan,India,'United States',Canada,Germany,France --save /etc/pacman.d/mirrorlist
更新軟件包
pacman -Syy
1.8?下載ZFS模塊
curl -s https://archzfs.leibelt.de/media/setup/init | bash
1.9?加載ZFS模塊
modprobe zfs
lsmod | grep zfs
2. 磁盤(pán)處理
2.1?查看磁盤(pán)分區(qū)
lsblk
ls -la /dev/disk/by-id
找到要操作的硬盤(pán)后,設(shè)置一個(gè)變量,方便后續(xù)操作
disk=/dev/disk/by-id/ata-CT1000MX500SSD1_2138E5D33BCE
2.2 清除與整個(gè)磁盤(pán)關(guān)聯(lián)的任何 ZFS 標(biāo)簽
如果是新硬盤(pán)或者以前沒(méi)有安裝過(guò)ZFS的硬盤(pán),可以忽略這條命令
zpool labelclear -f &disk-part3
2.3 創(chuàng)建磁盤(pán)分區(qū)
parted -a optimal $disk
????????mkpart ESP 0% 300M
? ? ? ? mkpart BOOT 300M 1500M
? ? ? ? mkpart rootfs 1500M 100%
? ? ? ? set 1 boot on
quit
2.4 創(chuàng)建/boot的分區(qū)格式
mkfs.vfat /dev/nvme0n1p1
或
mkfs.fat -F 32 /dev/nvme0n1p1
mkfs.ext4?/dev/nvme0n1p2
2.5 創(chuàng)建ZFS池
zpool create -f \
?? ??? ??? ?-o ashift=12 \
?? ??? ??? ?-O acltype=posixacl \
?? ??? ??? ?-o autotrim=on \
?? ??? ??? ?-O mountpoint=none \
?? ??? ??? ?-O canmount=off \
?? ??? ??? ?-O relatime=on \
?? ??? ??? ?-O xattr=sa \
?? ??? ??? ?-O normalization=formD \
?? ??? ??? ?-O dnodesize=legacy \
?? ??? ??? ?-O devices=off \
?? ??? ??? ?-O compression=zstd \
?? ??? ??? ?-R /mnt \
?? ??? ??? ?zroot ${disk}-part3
檢查一下
zpool status
2.6?創(chuàng)建數(shù)據(jù)集
zfs create -o mountpoint=none zroot/data
zfs create -o mountpoint=none zroot/ROOT
zfs create -o mountpoint=/ -o canmount=noauto zroot/ROOT/default
zfs create -o mountpoint=/home zroot/data/home
zfs create -o mountpoint=/root zroot/data/home/root
查看一下
zfs list
2.7 導(dǎo)入導(dǎo)出測(cè)試
zpool export zroot
zpool import -d /dev/disk/by-id -R /mnt zroot -N
zfs mount zroot/ROOT/default
zfs mount -a
檢查是否掛載
mount | grep mnt
2.8?配置系統(tǒng)
2.8.1 設(shè)置zroot
zpool set bootfs=zroot/ROOT/default zroot
2.8.2 創(chuàng)建cache并復(fù)制到新系統(tǒng)
zpool set cachefile=/etc/zfs/zpool.cache zroot
mkdir -p /mnt/etc/zfs
cp /etc/zfs/zpool.cache /mnt/etc/zfs/zpool.cache
2.8.3 掛載非ZFS分區(qū)
mkdir /mnt/boot
mount /dev/nvme0n1p2?/mnt/boot
mkdir /mnt/efi
mount -t vfat /dev/nvme0n1p1 /mnt/efi
3. 安裝系統(tǒng)
3.1 安裝基本系統(tǒng)
pacstrap /mnt base base-devel linux-zen linux-zen-headers \
? ? ? ? openssh?grub efibootmgr \
????????intel-ucode?mesa lib32-mesa vulkan-intel lib32-vulkan-intel \
????????libva-intel-driver libvdpau-va-gl intel-compute-runtime \
????????mesa xf86-video-intel ?intel-gpu-tools \
????????helix?dkms
3.2 生成fstab?
genfstab -U -p /mnt >> /mnt/etc/fstab
編輯fstab
helix /mnt/etc/fstab
注釋掉所有zroot行.
3.3 進(jìn)入CHROOT,此時(shí)的任何操作都影響你想安裝的系統(tǒng)。
arch-chroot /mnt
3.4 修改pacman配置
編輯/etc/pacman.conf,在最后加入下面代碼
helix /etc/pacman.conf
添加下面內(nèi)容
[archzfs]
# SigLevel = Optional TrustAll
# Origin Server - France
Server = http://archzfs.com/archzfs/x86_64
# Mirror - Germany
Server = http://mirror.sum7.eu/archlinux/archzfs/archzfs/x86_64
# Mirror - Germany
Server = https://mirror.biocrafting.net/archlinux/archzfs/archzfs/x86_64
# Mirror - India
Server = https://mirror.in.themindsmaze.com/archzfs/archzfs/x86_64
# Mirror - US
Server = https://zxcvfdsa.com/archzfs/archzfs/x86_64
3.5 設(shè)置key
pacman-key -r DDF7DB817396A49B2A2723F7403BD972F75D9D76
pacman-key --lsign-key DDF7DB817396A49B2A2723F7403BD972F75D9D76
3.6 安裝ZFS模塊
pacman -Sy zfs-dkms
3.7 系統(tǒng)設(shè)置
3.7.1?編輯mkinitcpio文件
helix /etc/mkinitcpio.conf
MODULES加入zfs,刪除HOOK里的fsck,在filesystems前面加上zfs
MODULES=(zfs)
HOOK(... keyboard zfs filesystems)
3.7.2?生成 hostid
zgenhostid $(hostid)
3.7.3?重新生成 initramfs
mkinitcpio -P
3.7.4?安裝其他軟件
pacman -S man-db man-pages efibootmgr networkmanager \
? ? ? ? ? ? terminus-font texinfo mtools dosfstools \
? ? ? ? ? ? pacman-contrib openssh bash-completion \????????????????bash bash-completion sudo net-tools curl \
????????dhcpcd e2fsprogs iwd?man-db man-pages
3.7.5?啟動(dòng)后臺(tái)服務(wù)
systemctl enable NetworkManager
systemctl enable zfs.target
systemctl enable zfs-import-cache
systemctl enable zfs-mount
systemctl enable zfs-import.target
systemctl enable zfs-zed
3.8 安裝引導(dǎo)
3.8.1 下載ZFSBootMenu
curl -O -L https://get.zfsbootmenu.org/zfsbootmenu.EFI
拷貝EFI文件
mkdir -p /efi/EFI/zbm
mv zfsbootmenu-release-x86_64-v2.3.0-vmlinuz.EFI /efi/EFI/zbm/zfsbootmenu-v2.3.0.EFI
3.8.2?設(shè)置啟動(dòng)參數(shù)
zfs set org.zfsbootmenu:commandline="rw quiet loglevel=0 nowatchdog" zroot/ROOT
efibootmgr -c -d /dev/dev/nvme0n1 -p 1 -L "ArchLinux(ZFS)" -l '\EFI\zbm\zfsbootmenu-v2.3.0.EFI'
3.8.3 (可選)安裝rEFInd
3.8.3.1 下載安裝
pacman -S refind
refind-install --usedefault /dev/sda1
3.8.3.2?編輯refind.conf文件
helix /efi/EFI/refind/refind.conf
dont_scan_dirs EFI/Boot,EFI/Microsoft/Boot,EFI/refind,EFI/zbm
dont_scan_volumes ext2,ext3,ext4,ntfs,OSX,EFI0,SYSTEM,EFIU,EFIM
scan_all_linux_kernels falsemenuentry "Archlinux (ZBM)" {loader \EFI\zbm\zfsbootmenu-v2.3.0.EFIicon \EFI\refind\themes\nord\icons\os_arch.pngoptions "quiet loglevel=0"
}
4. 其它安裝操作
4.1 設(shè)置時(shí)區(qū)
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock --systohc
4.2 設(shè)置本地化
helix /etc/locale.gen
搜索en_US和zh_CN取消下面兩行的注釋en_US.UTF-8 UTF-8zh_CN.UTF-8 UTF-8保存退出
locale-gen
4.3 語(yǔ)言編碼
echo "LANG=en_US.UTF-8" > /etc/locale.conf
4.4 設(shè)置主機(jī)名
echo '主機(jī)名' > /etc/hostname
4.5 HOSTS
echo -e '127.0.0.1 localhost\n::1 localhost\n127.0.1.1 主機(jī)名' >> /etc/hosts
4.6 設(shè)置ROOT密碼
passwd
5. 收尾工作
5.1 生成zfs快照
zfs snapshot zroot@install
5.2 重啟機(jī)器
exit
umount /mnt/efi
umount /mnt/boot
zfs umount -a
zpool export zroot
reboot
6. 重啟后操作
6.1 以root登錄。
6.2 添加用戶
useradd -m -G wheel 用戶名
passwd 用戶名
6.3 設(shè)置sudo
以helix為編輯器編輯sudo
EDITOR=helix visudo
取消這一行的注釋
%wheel ALL=(ALL:ALL) ALL
6.4 設(shè)置時(shí)區(qū)
timedatectl set-ntp 1
6.5 設(shè)置archlinuxcn
helix /etc/pacman.conf
取消Color和ParallelDownloads = 5 兩行的注釋,添加一行ILoveCandy(下載包時(shí)使用吃豆人動(dòng)畫(huà))
Color
ParallelDownloads = 5
ILoveCandy
在文件最后加入archlinuxcn倉(cāng)庫(kù)
[archlinuxcn]
Server = https://mirrors.bfsu.edu.cn/archlinuxcn/$arch
可選的倉(cāng)庫(kù)如下:
## 北京外國(guó)語(yǔ)大學(xué) (北京) (ipv4, ipv6, http, https)
## Added: 2020-05-18
[archlinuxcn]
Server = https://mirrors.bfsu.edu.cn/archlinuxcn/$arch
## 北京大學(xué) (北京) (ipv4, ipv6, http, https)
## Added: 2023-02-26
[archlinuxcn]
Server = https://mirrors.pku.edu.cn/archlinuxcn/$arch
## 騰訊云 (Global CDN) (ipv4, ipv6, http, https)
## Added: 2018-11-23
[archlinuxcn]
Server = https://mirrors.cloud.tencent.com/archlinuxcn/$arch
## 網(wǎng)易 (China CDN) (ipv4, http, https)
[archlinuxcn]
Server = https://mirrors.163.com/archlinux-cn/$arch
## 阿里云 (Global CDN) (ipv4, ipv6, http, https)
## Added: 2020-07-03
[archlinuxcn]
Server = https://mirrors.aliyun.com/archlinuxcn/$arch
## 清華大學(xué) (北京) (ipv4, ipv6, http, https)
[archlinuxcn]
Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
## 中國(guó)科學(xué)技術(shù)大學(xué) (安徽合肥) (ipv4, ipv6, http, https)
[archlinuxcn]
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch
## 吉林大學(xué) (吉林長(zhǎng)春) (ipv4, ipv6, http, https)
## Added: 2023-04-21
[archlinuxcn]
Server = https://mirrors.jlu.edu.cn/archlinuxcn/$arch
## 浙江大學(xué) (浙江杭州) (ipv4, ipv6, http, https)
## Added: 2017-06-05
[archlinuxcn]
Server = https://mirrors.zju.edu.cn/archlinuxcn/$arch
## 重慶大學(xué) (重慶) (ipv4, ipv6, http, https)
[archlinuxcn]
Server = https://mirrors.cqu.edu.cn/archlinuxcn/$arch
## 重慶郵電大學(xué) (重慶) (ipv4, ipv6, http, https)
[archlinuxcn]
Server = https://mirrors.cqupt.edu.cn/archlinuxcn/$arch
## SJTUG 軟件源鏡像服務(wù) (上海) (ipv4, ipv6, https)
## Added: 2018-05-21
[archlinuxcn]
Server = https://mirror.sjtu.edu.cn/archlinux-cn/$arch
## 南京大學(xué) (江蘇南京) (ipv4, ipv6, http, https)
[archlinuxcn]
Server = https://mirrors.nju.edu.cn/archlinuxcn/$arch
## 南方科技大學(xué) (廣東深圳) (ipv4, ipv6, http, https)
## Added: 2021-08-17
[archlinuxcn]
Server = https://mirrors.sustech.edu.cn/archlinuxcn/$arch
## 武昌首義學(xué)院 (湖北武漢) (ipv4, ipv6, http, https)
## Added: 2023-04-07
[archlinuxcn]
Server = https://mirrors.wsyu.edu.cn/archlinuxcn/$arch
## 華中科技大學(xué) (湖北武漢) (ipv4, ipv6, http, https)
## Added: 2024-05-07
[archlinuxcn]
Server = https://mirrors.hust.edu.cn/archlinuxcn/$arch
## 北京交通大學(xué) (北京) (ipv4, ipv6, https)
## Added: 2023-08-19
[archlinuxcn]
Server = https://mirror.bjtu.edu.cn/archlinuxcn/$arch
## 蘭州大學(xué) (甘肅蘭州) (ipv4, ipv6, http, https)
## Added: 2023-08-19
[archlinuxcn]
Server = https://mirror.lzu.edu.cn/archlinuxcn/$arch
## 西安交通大學(xué) (陜西西安) (ipv4, ipv6, http, https)
## Added: 2023-08-19
[archlinuxcn]
Server = https://mirrors.xjtu.edu.cn/archlinuxcn/$arch
## 南陽(yáng)理工學(xué)院 (河南南陽(yáng)) (ipv4, ipv6, http, https)
## Added: 2023-08-19
[archlinuxcn]
Server = https://mirror.nyist.edu.cn/archlinuxcn/$arch
## 南京工業(yè)大學(xué) (江蘇南京) (ipv4, ipv6, http, https)
## Added: 2023-08-19
[archlinuxcn]
Server = https://mirrors.njtech.edu.cn/archlinuxcn/$arch
## 上海科技大學(xué) (上海) (ipv4, https)
## Added: 2023-08-19
[archlinuxcn]
Server = https://mirrors.shanghaitech.edu.cn/archlinuxcn/$arch
## 中國(guó)科學(xué)院軟件研究所 (北京) (ipv4, https)
## Added: 2023-08-19
[archlinuxcn]
Server = https://mirror.iscas.ac.cn/archlinuxcn/$arch
## 北京郵電大學(xué) (北京) (ipv4, ipv6, http, https)
## Added: 2023-09-15
[archlinuxcn]
Server = https://mirrors.bupt.edu.cn/archlinuxcn/$arch
## CICKU (Global CDN w/o China) (ipv4, ipv6, http, https)
## Added: 2023-11-15
## Rate limiting mainland China traffic
[archlinuxcn]
Server = https://mirrors.cicku.me/archlinuxcn/$arch
## NCKU CCNS (Taiwan) (ipv4, http, https)
## Added: 2021-06-30
## Resources provided by NCKU CSIE
[archlinuxcn]
Server = https://archlinux.ccns.ncku.edu.tw/archlinuxcn/$arch
## xTom (Hong Kong server) (Hong Kong) (ipv4, ipv6, http, https)
## Added: 2017-09-18
## Blocking users in mainland China
[archlinuxcn]
Server = https://mirrors.xtom.hk/archlinuxcn/$arch
## xTom (Singapore server) (Singapore) (ipv4, ipv6, http, https)
## Added: 2024-04-14
## Blocking users in mainland China
[archlinuxcn]
Server = https://mirrors.xtom.sg/archlinuxcn/$arch
## xTom (US server) (San Jose, CA, United States) (ipv4, ipv6, http, https)
## Added: 2019-02-19
## Blocking users in mainland China
[archlinuxcn]
Server = https://mirrors.xtom.us/archlinuxcn/$arch
## xTom (Netherlands server) (Amsterdam, the Netherlands) (ipv4, ipv6, http, https)
## Added: 2019-09-07
## Blocking users in mainland China
[archlinuxcn]
Server = https://mirrors.xtom.nl/archlinuxcn/$arch
## xTom (Germany server) (Duesseldorf, Germany) (ipv4, ipv6, http, https)
## Added: 2021-05-07
## Blocking users in mainland China
[archlinuxcn]
Server = https://mirrors.xtom.de/archlinuxcn/$arch
## xTom (Estonia server) (Tallinn, Estonia) (ipv4, ipv6, http, https)
## Added: 2021-05-27
## Blocking users in mainland China
[archlinuxcn]
Server = https://mirrors.xtom.ee/archlinuxcn/$arch
## xTom (Japan server) (Osaka, Japan) (ipv4, ipv6, http, https)
## Added: 2022-01-17
## Blocking users in mainland China
[archlinuxcn]
Server = https://mirrors.xtom.jp/archlinuxcn/$arch
## xTom (Australia server) (Sydney, Australia) (ipv4, ipv6, http, https)
## Added: 2022-07-03
## Blocking users in mainland China
[archlinuxcn]
Server = https://mirrors.xtom.au/archlinuxcn/$arch
## Open Computing Facility, UC Berkeley (Berkeley, CA, United States) (ipv4, ipv6, http, https)
## Added: 2019-02-19
[archlinuxcn]
Server = https://mirrors.ocf.berkeley.edu/archlinuxcn/$arch
7.安裝xero-plasma
在
xero-plasma
下載腳本并執(zhí)行。
8.設(shè)置Wayland
8.1 檢測(cè)Wayland
pacman -Qi wayland
如果未安裝,請(qǐng)使用以下命令安裝它:
sudo pacman -S --needed wayland
8.2 顯示管理器
目前只有 GDM 和 sddm-git 在 Arch Linux 中具有適當(dāng)?shù)?Wayland 支持。
yay -S sddm-git
8.3 安裝Wayland包
pacman -S --needed xorg-xwayland xorg-xlsclients qt5-wayland glfw-wayland
xorg-xwayland:用于在 Wayland 下運(yùn)行 xclients
xorg-xlsclients:列出在顯示器上運(yùn)行的客戶端應(yīng)用程序(可選)
qt5-wayland:Wayland 的 Qt API
glfw-wayland:Wayland 的 GUI 應(yīng)用程序開(kāi)發(fā)包
其次,使用以下命令集通過(guò) Wayland 會(huì)話安裝 plasma 和相關(guān)應(yīng)用程序。按照下面提到的順序執(zhí)行它們。
pacman -S --needed plasma kde-applications
pacman -S --needed plasma-wayland-session
完成后,啟用顯示管理器和 NetworkManager 服務(wù)。
sudo systemctl enable sddm sudo systemctl enable NetworkManager
sddm 顯示管理器需要更多調(diào)整。使用任何文本編輯器,打開(kāi) sddm 配置文件并在.Current=breeze
[Theme]
sudo nano /usr/lib/sddm/sddm.conf.d/default.conf
[Theme]
# current theme nameCurrent=breeze
完成后,保存并關(guān)閉文件。并重啟。
8.4??Firefox 使用 Wayland
打開(kāi)/etc/environment,添加一行
MOZ_ENABLE_WAYLAND=1
然后,重啟或運(yùn)行下面的命令即可生效。
source /etc/environment
打開(kāi) Firefox 并轉(zhuǎn)到以根據(jù)“窗口協(xié)議”驗(yàn)證值。您還可以從終端運(yùn)行以查看 Wayland 下正在運(yùn)行哪些外部應(yīng)用程序。
about:supportxlsclients