-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrostini.sh
executable file
·86 lines (77 loc) · 1.69 KB
/
crostini.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# ARCH
(ctrl-alt-t) # open crosh
vmc destroy termina
vmc start termina
lxc launch images:archlinux/current penguin
lxc exec penguin bash
# LOCALE
vi /etc/locale.gen # uncomment lines
#en_US.UTF-8 UTF-8
locale-gen
# PACMAN
vi /etc/pacman.conf # uncomment lines
#Color
#VerbosePkgLists
# INSTALL
pacman -Syu
arc-solid-gtk-theme \
base-devel \
bash-completion \
fd \
fzf \
git \
neovim \
openssh \
reflector \
ripgrep \
tmux \
ttf-dejavu \
wl-clipboard
# UNINSTALL
pacman -Rns \
dhcpcd \
inetutils \
logrotate \
man-pages \
nano \
netctl \
sysfsutils \
vi
# INTERNET
mkdir /etc/systemd/system/systemd-networkd.service.d
nvim /etc/systemd/system/systemd-networkd.service.d/lxc.conf
# [Service]
# BindReadOnlyPaths=/sys
# USER
grep 1000:1000 /etc/passwd # print username (alarm usually)
groupmod -n user alarm
usermod -d /home/user -l user -m -c user alarm
usermod -aG wheel user
passwd user
passwd
nvim /etc/pam.d/su # trust and require wheel-group
EDITOR=nvim visudo
# %wheel ALL=(ALL) NOPASSWD ALL
# Defaults editor=/usr/bin/nvim
exit
lxc console penguin
# AUR
git clone https://aur.archlinux.org/paru-bin
cd paru-bin && makepkg -i
paru -S cros-container-guest-tools-git dashbinsh
cp -r /etc/skel/.config/pulse ~/.config
systemctl enable --user sommelier{,-x}@{0,1}.service
cd .. && rm -rf paru-bin
# REPOS
mkdir repos && cd repos
git clone [email protected]:astier/config.git
git clone [email protected]:astier/scripts.git
cd config && . shell/exports && ./setup.sh
cd pkgbuilds/susu && makepkg -i
cd ../scripts && ./setup.sh
systemctl enable iptables.service reflector.timer
# CLEAN
cd && rm .bash_logout .bash_profile .lesshst
(ctrl-a-q) # exit arch
exit # exit termina
vmc stop termina