-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcinnamon_install.sh
More file actions
268 lines (226 loc) · 9.07 KB
/
cinnamon_install.sh
File metadata and controls
268 lines (226 loc) · 9.07 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
#!/bin/bash
#Das Skript ist für NVIDIA-GPU Besitzer gedacht / AMD GPU Besitzer kommentieren die Zeile mit der NVIDIA Paketinstallation aus!
#This script is intended to be used by NVIDIA-GPU Owners, you may comment the line with
#Das folgende Skript ist für die Installation von Cinnamon & div. Dienste gedacht, nachdem die Basisinstallation durchgefuehrt worden ist!
#The following script is for installing Cinnamon & Services after installing base-void (glibc)
#bash starten & bash für root setzen / start bash - set for root
clear
echo "Setze Rootshell auf /bin/bash / set rootshell to /bin/bash"
echo "Bitte Rootpasswort eingeben / Please give rootpassword"
su -c "chsh -s /bin/bash root"
sleep 2
#Sudo einrichten / Activate sudo
clear
echo "Aktiviere sudo für Gruppe wheel / Activate sudo for wheel-group"
echo "Bitte Rootpasswort eingeben / Please give rootpassword"
su -c 'echo "%wheel ALL=(ALL:ALL) ALL" | tee -a /etc/sudoers > /dev/null'
sleep 2
#Styling
clear
echo "Richte LightDM und Cinnamon Hintergrundbild ein / Setting up Lightdm/Cinnamon backgroundimage"
echo " -- Bitte unten das sudo Passwort eingeben / Please give sudo-password -- "
sudo mkdir -p /usr/share/backgrounds/
sudo cp ~/void/*.jpg /usr/share/backgrounds/
#Kopire Autostartscript für udisks2 / copy automountscript für udisk2
sudo cp ~/void/mount_disks.sh /usr/bin/
#Systemupdate checken / Check systemupdates
sudo xbps-install -Syu
#void zusätzliche Repos aktivieren / activate all essential Repos
clear
echo "Nonfree, multilib, multilib-nonfree aktivieren / Activate all essential additional repos"
sudo xbps-install -y void-repo-nonfree void-repo-multilib void-repo-multilib-nonfree
sleep 2
#Voidrepo aktualisieren / update voidrepository
sudo xbps-install -Syu
#Editor installieren / Install editor
clear
echo "Install nano..."
sudo xbps-install -y nano
sleep 1
#Netzwerk/Network
clear
echo "Install NetworkManager"
sudo xbps-install -y NetworkManager
sudo ln -s /etc/sv/NetworkManager /var/service/
sleep 1
#dbus
clear
echo "Install dbus..."
sudo xbps-install -y dbus
sudo ln -s /etc/sv/dbus /var/service/
sleep 1
#elogind
clear
echo "Install elogind..."
sudo xbps-install -y elogind
sudo ln -s /etc/sv/elogind /var/service/
sleep 1
#Audio/bluetooth/Mixer
clear
echo "Install pipewire, wireplumber, pavucontrol, pulsemixer"
sudo xbps-install -y pipewire wireplumber pavucontrol pulsemixer libspa-bluetooth blueman bluez-cups
sleep 1
#NVIDIA Treiber installieren / Install NVIDIA-driver
clear
echo "Verfügbare NVIDIA-Treiber:"
echo "1) Neueste NVIDIA-Treiber (nvidia) / Latest driver"
#echo "2) NVIDIA 470 (nvidia470) / GTX 600,700..."
#echo "3) NVIDIA 390 (nvidia390) Geforce 400/500 Serie"
echo "0) Keine Installation"
read -p "Bitte wählen Sie einen Treiber aus (1, 0 zum Abbrechen): " auswahl
case "$auswahl" in
1)
echo "Installiere neueste NVIDIA-Treiber... / Installing latest driver"
sudo xbps-install -y nvidia nvidia-libs-32bit
;;
2)
echo "Installiere NVIDIA 470-Treiber... / Installing 470 driver"
sudo xbps-install -y nvidia470 nvidia470-libs-32bit
;;
3)
echo "Installiere NVIDIA 390-Treiber... / Installing 390 driver"
sudo xbps-install -y nvidia390 nvidia390-libs-32bit
;;
0)
echo "NVIDIA-Setup übersprungen. / Setup skipped!"
;;
*)
echo "Ungültige Auswahl. Keine Änderungen vorgenommen. / invalid selection!"
;;
esac
sleep 1
#Steamkomponenten / Install some Steam-related-Stuff
sudo xbps-install -y libgcc-32bit libstdc++-32bit libdrm-32bit libglvnd-32bit mesa-dri-32bit
#XORG & Cinnamon & Tools
clear
echo "Install XORG/Cinnamon-all..."
sudo xbps-install -y xorg
sudo xbps-install -y octoxbps cinnamon-all xdg-desktop-portal xdg-desktop-portal-gtk xdg-user-dirs xdg-user-dirs-gtk xdg-utils
sleep 1
#Druckerunterstuetzung / Printersupport
clear
echo "Install Printer..."
sudo xbps-install -y cups cups-filters gutenprint system-config-printer
sudo ln -s /etc/sv/cupsd /var/service/
sudo xbps-install -y gnome-system-tools users-admin
sleep 1
#Filesystem
clear
echo "Install Zusatztools/Installing additional tools..."
sudo xbps-install -y exfat-utils fuse-exfat gvfs-afc gvfs-mtp gvfs-smb udisks2 ntfs-3g gptfdisk bluez
#Aktiviere bluetoothd/activate bluetoothd
sudo ln -s /etc/sv/bluetoothd /var/service/
sleep 1
#Flatpak / Upgradetool
clear
echo "Install Flatpak / topgrade..."
sudo xbps-install -y flatpak topgrade
sleep 1
#Fonts
clear
echo "Install Fonts..."
sudo xbps-install -y noto-fonts-cjk noto-fonts-emoji noto-fonts-ttf noto-fonts-ttf-extra
sleep 1
#Software
clear
echo "Install Software..."
sudo xbps-install -y firefox gnome-terminal firefox-i18n-de
sleep 1
# Erstelle ein Skript, das die gsettings nach der Anmeldung ausführt
echo "Creating autostart script for cinnamon theme settings..."
cat <<EOL > /home/$USER/set-cinnamon-theme.sh
#!/bin/bash
# Setze das gewünschte Cinnamon-Theme & deutsches Tastaturlayout
gsettings set org.cinnamon.desktop.interface icon-theme Arc
gsettings set org.cinnamon.desktop.interface gtk-theme Arc-Dark
gsettings set org.cinnamon.theme name Arc-Dark
gsettings set org.cinnamon.desktop.input-sources sources "[('xkb', 'de')]"
gsettings set org.gnome.desktop.interface monospace-font-name 'Monospace 11'
gsettings set org.cinnamon.desktop.background picture-uri 'file:///usr/share/backgrounds/cinnamon_background.jpg'
# Lösche den Autostart-Eintrag nach der ersten Ausführung
rm -f ~/.config/autostart/set-cinnamon-theme.desktop
# Gib eine Nachricht aus, dass das Skript abgeschlossen ist
echo "Cinnamon-Themes wurden gesetzt und Autostart-Eintrag entfernt."
EOL
# Stelle sicher, dass das Skript ausführbar ist
chmod +x /home/$USER/set-cinnamon-theme.sh
# Erstelle die Autostart-Datei, die das Skript ausführt
mkdir -p ~/.config/autostart
cat <<EOL > ~/.config/autostart/set-cinnamon-theme.desktop
[Desktop Entry]
Type=Application
Exec=/home/$USER/set-cinnamon-theme.sh
Name=Set Cinnamon Theme
Comment=Set the default Cinnamon theme after login
X-GNOME-Autostart-enabled=true
EOL
# .desktop-Datei für octoxbps-notifier erstellen / create .desktopfile für octoxbps-notifier
cat > ~/.config/autostart/octoxbps-notifier.desktop <<EOL
[Desktop Entry]
Type=Application
Exec=/bin/octoxbps-notifier
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=OctoXBPS Notifier
Comment=Startet OctoXBPS Update Notifier automatisch
EOL
# .desktop-Datei für deutsche Tastatur / create .desktopfile für german-X11-keyboard
# Bitte Autostarteintrag in Cinnamon deaktivieren wenn ihr es direkt in Cinnamon setzen wollt
# Please remove this autostart-entry if you would like to set the keyboardlayout directly in Cinnamon
cat > ~/.config/autostart/x11kb-german.desktop <<EOL
[Desktop Entry]
Type=Application
Exec=/usr/bin/setxkbmap de
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=X11-KB-German
Comment=Deutsche Tastatur aktivieren unter X11
EOL
# .desktop-Datei für automount-script - udisks2 / create .desktopfile for auto-mount script (for udisks2)
# Bitte Autostarteintrag in Cinnamon deaktivieren wenn ihr es direkt in Cinnamon setzen wollt
# Please remove this autostart-entry if you would like to set the keyboardlayout directly in Cinnamon
cat > ~/.config/autostart/automount-udisks2.desktop <<EOL
[Desktop Entry]
Type=Application
Exec=/usr/bin/mount_disks.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=X11-automount-udisks2
Comment=Automountscript für udisks2
EOL
# Weiter mit weiteren Installationen oder zum Ende des Skripts
echo "Cinnamon-Theme Autostart-Skript erstellt. Skript beendet."
#Loginmanager
clear
echo "Install LightDM..."
sudo xbps-install -y lightdm lightdm-gtk-greeter
sudo ln -s /etc/sv/lightdm/ /var/service/
sleep 1
#Cinnamon-Themes
clear
echo "Install ArcTheme / Arc-icons..."
sudo xbps-install -y arc-icon-theme arc-theme
sleep 1
# Füge die gewünschten Einstellungen zur LightDM-Konfiguration hinzu
echo "theme-name=Arc-Dark" | sudo tee -a /etc/lightdm/lightdm-gtk-greeter.conf > /dev/null
echo "icon-theme-name=Arc" | sudo tee -a /etc/lightdm/lightdm-gtk-greeter.conf > /dev/null
echo "background=/usr/share/backgrounds/lightdmbackground.jpg" | sudo tee -a /etc/lightdm/lightdm-gtk-greeter.conf > /dev/null
#Setup Autostart - pipewire & wireplubmer
sudo mkdir -p /etc/pipewire/pipewire.conf.d
sudo ln -s /usr/share/examples/wireplumber/10-wireplumber.conf /etc/pipewire/pipewire.conf.d/
sudo ln -s /usr/share/examples/pipewire/20-pipewire-pulse.conf /etc/pipewire/pipewire.conf.d/
#folgende Zeile nicht auskommetieren sonst läuft pipewire nicht / do not activate the following line. pipewire stops working if so!
#sudo ln -s /usr/share/applications/wireplumber.desktop /etc/xdg/autostart/
sudo ln -s /usr/share/applications/pipewire.desktop /etc/xdg/autostart/
sleep 1
clear
#Deutsche Tastatur aktivieren X11 / Activate german keyboard for X11
echo "de_DE" > "$HOME/.config/user-dirs.locale"
#Setup automount ssd/hdd - ohne fstab / setup automount for ssds/hdds - without fstab
sudo cp ~/void/10-mount-drives.rules /etc/polkit-1/rules.d/
clear
echo "Setupscript beendet - System kann nun neu gestartet werden / Setup finished - please reboot"
echo "sudo reboot verwenden - use sudo reboot"