代码拉取完成,页面将自动刷新
同步操作将从 dokieee/init 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# sh -c "$(wget https://gitee.com/coralskr/init/raw/master/manjaro-init.sh -O -)"
# https://www.raspberrypi.org/documentation/computers/config_txt.html
set -eux
setup_source_mirror() {
cat > ./sources.list << "EOF"
Server = https://mirrors.huaweicloud.com/manjaro/arm-stable/$repo/$arch
Server = https://mirrors.ustc.edu.cn/manjaro/arm-stable/$repo/$arch
Server = https://mirrors.tuna.tsinghua.edu.cn/manjaro/arm-stable/$repo/$arch
Server = https://mirrors.tuna.tsinghua.edu.cn/manjaro/arm-stable/$repo/$arch
EOF
sudo cp ./sources.list /etc/pacman.d/mirrorlist
rm ./sources.list
cat >> ./pacman.conf << "EOF"
[options]
HoldPkg = pacman glibc manjaro-system
SyncFirst = manjaro-system manjaro-keyring manjaro-arm-keyring archlinux-keyring archlinuxarm-keyring
Architecture = aarch64
CheckSpace
ParallelDownloads = 5
SigLevel = TrustAll
LocalFileSigLevel = Optional
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlist
[archlinuxcn]
Server = https://mirrors.cloud.tencent.com/archlinuxcn/$arch
EOF
sudo cp ./pacman.conf /etc/pacman.conf
rm ./pacman.conf
}
install_essential() {
echo "begin install essential"
sudo pacman -Syyu
sudo pacman -S yay
sudo pacman -S vim
sudo pacman -S zsh
sudo pacman -S archlinuxcn-keyring
}
install_uurufa() {
yay -S fcitx-im
yay -S fcitx-configtool
yay -S fcitx-sogoupinyin
cat > ~/.xprofile << "EOF"
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/IMModule':<'fcitx'>}"
EOF
}
zsh_start() {
sh -c "$(wget https://gitee.com/kuaibiancheng/kbc_setup/raw/master/install.ohmyz.sh -O -)"
sudo chsh -s /bin/zsh
}
vnc_install() {
sudo pacman -S base-devel
git clone https://gitee.com/AAlan/realvnc-manjaro.git
cd realvnc-manjaro
makepkg -si
sudo systemctl enable vncserver-x11-serviced.service
sudo systemctl start vncserver-x11-serviced.service
sudo systemctl status vncserver-x11-serviced.service
sudo pacman -S net-tools
}
__main() {
setup_source_mirror
install_essential
install_uurufa
zsh_start
}
__main
# fcitx-configtool
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。