-
Notifications
You must be signed in to change notification settings - Fork 0
/
3_BaseSetup_GPH
executable file
·104 lines (62 loc) · 2.67 KB
/
3_BaseSetup_GPH
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#!/bin/bash
# ------------------- install vars
INSTALL="paru -S --noconfirm"
sudo reflector --country Germany --age 12 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
sudo pacman -Syyyu --noconfirm
# ----------------------------------- lightdm
${INSTALL} lightdm lightdm-gtk-greeter qtile
# Set default lightdm greeter to lightdm-gtk-greeter
sudo sed -i 's/^\(#?greeter\)-session\s*=\s*\(.*\)/greeter-session = lightdm-gtk-greeter #\1/ #\2g' /etc/lightdm/lightdm.conf
## # MAC M1 fine tunning
## # Set resolution of lightdm
## sudo sed -i 's/#display-setup-script=/display-setup-script=xrandr --output Virtual-1 --mode 1920x1200/' /etc/lightdm/lightdm.conf
sudo systemctl enable lightdm.service
# ----------------------------------- qtile
sudo pip3 install dbus-next cffi mach requests python-gitlab
sudo pip3 install -r https://raw.githubusercontent.com/brpaz/ulauncher-github/master/requirements.txt
${INSTALL} python-xcffib python-cairocffi libffi
${INSTALL} qtile
git clone https://github.com/usen-io/dotconf-qtile.git ~/.config/qtile
# ----------------------------------- gnome
${INSTALL} gnome-shell nautilus gnome-tweak-tool gnome-control-center xdg-user-dirs gparted
# ----------------------------------- rdp and xrdp
${INSTALL} xorgxrdp xrdp remmina freerdp
sudo openssl req -x509 -newkey rsa:2048 -nodes -keyout /etc/xrdp/key.pem -out /etc/xrdp/cert.pem -days 3650 -subj '/CN=www.mydom.com/O=My Company Name LTD./C=CH'
cat >$HOME/.xinitrc <<END
if [ -f "" ]; then
xmodmap ""
fi
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "" ] && . ""
done
unset f
fi
export XDG_XSESSION_TYPE=x11
export XDG_BACKEND=x11
exec qtile start > ~/.xsession.log 2>&1
END
# chmod +x $HOME/.xinitrc
sudo sed -i 's/#export LANG=$LANG/export $(dbus-launch)/g' /etc/xrdp/startwm.sh
sudo systemctl enable xrdp.service
sudo systemctl enable xrdp-sesman.service
# ----------------------------------- ulauncher
### cd /tmp
### git clone https://aur.archlinux.org/ulauncher.git && cd ulauncher && makepkg -is --noconfirm
### cd /tmp && rm -rf ulauncher
# dependency for wayland
${INSTALL} wmctrl
${INSTALL} ulauncher
# ----------------------------------- customuser
cat >$HOME/.xprofile <<END
setxkbmap en
END
# ----------------------------------- clipboard copy-paste sharing spice VMs
${INSTALL} spice-vdagent xf86-video-qxl
# ----------------------------------- browser
${INSTALL} chromium
# ----------------------------------- extras
${INSTALL} snapper-gui-git rpi-imager
# ------------------------------------------------- snapper checkpoint
snapper -c root create -d "Base setup: Tiling"
snapper -c home create -d "Base setup: Tiling"