-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhandle_linuxadmin.sh
More file actions
executable file
·43 lines (38 loc) · 1.61 KB
/
handle_linuxadmin.sh
File metadata and controls
executable file
·43 lines (38 loc) · 1.61 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
#!/bin/bash
ADMINUSER=linuxadmin
# remove unnecessary files
cd ~${ADMINUSER}/
rm -rf Bilder Dokumente Downloads Musik Öffentlich Vorlagen Videos
# replace default-dirs
mkdir -p ~${ADMINUSER}/.config
mv Schreibtisch Desktop
# all by $HOME, except DESKTOP
cat <<EOF > ~${ADMINUSER}/.config/user-dirs.dirs
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/"
XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"
EOF
su - ${ADMINUSER} -c "dbus-launch gsettings set org.mate.screensaver idle-activation-enabled false"
su - ${ADMINUSER} -c "dbus-launch gsettings set org.mate.screensaver lock-enabled false"
su - ${ADMINUSER} -c "dbus-launch gsettings set org.mate.power-manager button-power nothing"
su - ${ADMINUSER} -c "dbus-launch gsettings set org.mate.lockdown disable-user-switching true"
su - ${ADMINUSER} -c "dbus-launch gsettings set org.mate.lockdown disable-lock-screen true"
### Profil für mozilla firefox:
### -> keine kommandozeilen anpassungen bekannt -> alles von hand machen:
### xhost +
### su - linuxadmin -c "firefox"
### zufälliger Verzeichnisnamen umbennenen in
### .mozilla/firefox/vorlage.default + in
### .mozilla/firefox/profiles.ini umbenennen