1 Star 0 Fork 2

spacexzm/init

forked from dokieee/init 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
manjaro-init.sh 2.22 KB
一键复制 编辑 原始数据 按行查看 历史
spacexzm 提交于 2021-09-17 15:12 . 更换archlinuxcn源
# 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/spacexzm/init.git
git@gitee.com:spacexzm/init.git
spacexzm
init
init
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385