Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Moecube Store
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Moecube Store
Commits
f15636b7
Commit
f15636b7
authored
Jun 08, 2014
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create arch-cloud-zh99998.sh
parent
ec7d5809
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
server/arch-cloud-zh99998.sh
server/arch-cloud-zh99998.sh
+54
-0
No files found.
server/arch-cloud-zh99998.sh
0 → 100644
View file @
f15636b7
wget
'https://www.archlinux.org/mirrorlist/?country=CN'
-O
/etc/pacman.d/mirrorlist.backup
sed
-i
's/^#Server/Server/'
/etc/pacman.d/mirrorlist.backup
rankmirrors /etc/pacman.d/mirrorlist.backup
>
/etc/pacman.d/mirrorlist
rm
/etc/pacman.d/mirrorlist.backup
pacstrap
-i
/mnt base vim grub
#base-devel gnome git nodejs opencc alsa-utils ttf-dejavu wqy-microhei wqy-zenhei xf86-video-ati dhclient fcitx-im fcitx-sunpinyin os-prober file-roller wget axel gvfs-mtp gvfs-goa goagent fcitx-cloudpinyin openvpn nautilus-sendto gnome-logs gedit
genfstab
-U
-p
/mnt
>>
/mnt/etc/fstab
arch-chroot /mnt /bin/bash
<<
ARCH_CHROOT
echo 'en_US.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8' > /etc/locale.gen
echo 'LANG=zh_CN.UTF-8' > /etc/locale.conf
locale-gen
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
hwclock --systohc --utc
echo 'zh99998-arch' > /etc/hostname
grub-install --target=i386-pc --recheck /dev/sdb
grub-mkconfig -o /boot/grub/grub.cfg
systemctl enable gdm
systemctl enable NetworkManager
useradd -m -G wheel -s /bin/bash -p `openssl passwd zh112998` zh99998
chmod u+w /etc/sudoers
sed -i 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers
chmod u-w /etc/sudoers
su - zh99998 << SU_USER
echo 'export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"' > ~/.xprofile
curl -O https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz
tar zxvf package-query.tar.gz
cd package-query
makepkg -si --noconfirm
cd ..
curl -O https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz
tar zxvf yaourt.tar.gz
cd yaourt
makepkg -si --noconfirm
cd ..
yaourt -S google-chrome sublime-text-imfix webstorm --noconfirm
SU_USER
ARCH_CHROOT
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment