This commit is contained in:
simono41 2018-03-28 11:47:34 +02:00
commit 674ef621c7
13 changed files with 63 additions and 22 deletions

View file

@ -4,7 +4,7 @@ set -ex
if [[ $EUID -ne 0 ]]; then if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2 echo "This script must be run as root" 1>&2
sudo $0 sudo $0 $1 $2 $3 $4 $5 $6 $7 $8 $9
exit 0 exit 0
fi fi
echo "Als root Angemeldet" echo "Als root Angemeldet"
@ -155,6 +155,7 @@ function copyconfig() {
#links #links
links links
userrechte userrechte
rootrechte
} }
function userrechte() { function userrechte() {
@ -172,6 +173,9 @@ function userrechte() {
chmod 600 /home/"$username"/.ssh/authorized_keys chmod 600 /home/"$username"/.ssh/authorized_keys
fi fi
}
function rootrechte() {
#root #root
chmod 750 -Rv /root chmod 750 -Rv /root
#ssh-root #ssh-root
@ -231,18 +235,6 @@ function links() {
} }
function gnomeconfig() { function gnomeconfig() {
mkdir -p /home/"$username"/.config/gtk-3.0/
echo "[Settings]" > /home/"$username"/.config/gtk-3.0/settings.ini
echo "gtk-theme-name = Adwaita" >> /home/"$username"/.config/gtk-3.0/settings.ini
echo "# next option is applicable only if selected theme supports it" >> /home/"$username"/.config/gtk-3.0/settings.ini
echo "gtk-application-prefer-dark-theme = true" >> /home/"$username"/.config/gtk-3.0/settings.ini
echo "# set font name and dimension" >> /home/"$username"/.config/gtk-3.0/settings.ini
echo "gtk-font-name = Sans 10" >> /home/"$username"/.config/gtk-3.0/settings.ini
mkdir -p /home/"$username"/.local/share/applications/
echo "[Default Applications]" > /home/"$username"/.local/share/applications/mimeapps.list
echo "inode/directory=org.gnome.Nautilus.desktop" >> /home/"$username"/.local/share/applications/mimeapps.list
mkdir -p /root/.config/gtk-3.0/ mkdir -p /root/.config/gtk-3.0/
echo "[Settings]" > /root/.config/gtk-3.0/settings.ini echo "[Settings]" > /root/.config/gtk-3.0/settings.ini
echo "gtk-theme-name = Adwaita" >> /root/.config/gtk-3.0/settings.ini echo "gtk-theme-name = Adwaita" >> /root/.config/gtk-3.0/settings.ini
@ -251,10 +243,6 @@ function gnomeconfig() {
echo "# set font name and dimension" >> /root/.config/gtk-3.0/settings.ini echo "# set font name and dimension" >> /root/.config/gtk-3.0/settings.ini
echo "gtk-font-name = Sans 10" >> /root/.config/gtk-3.0/settings.ini echo "gtk-font-name = Sans 10" >> /root/.config/gtk-3.0/settings.ini
mkdir -p /root/.local/share/applications/
echo "[Default Applications]" > /root/.local/share/applications/mimeapps.list
echo "inode/directory=org.gnome.Nautilus.desktop" >> /root/.local/share/applications/mimeapps.list
gsettings set org.gnome.desktop.media-handling automount 'false' gsettings set org.gnome.desktop.media-handling automount 'false'
gsettings set org.gnome.desktop.media-handling automount-open 'false' gsettings set org.gnome.desktop.media-handling automount-open 'false'
} }
@ -663,6 +651,9 @@ if [ "${vollinstallation}" != "n" ]; then
tar -vxJf /opt/${repo}/vibrancy-colors.tar.xz -C /usr/share/icons/ tar -vxJf /opt/${repo}/vibrancy-colors.tar.xz -C /usr/share/icons/
gtk-update-icon-cache /usr/share/icons/Vibrancy-Colors-Dark/ gtk-update-icon-cache /usr/share/icons/Vibrancy-Colors-Dark/
# XDG standard
cp /opt/${repo}/mimeapps.list /etc/xdg/mimeapps.list
fi fi

View file

@ -9,10 +9,6 @@ repo="SpectreOS"
user="user1" user="user1"
version="%VERSION%" version="%VERSION%"
if [ "${version}" == "%VERSION%" ]; then
version=""
fi
if [ "$2" == "libre" ]; then if [ "$2" == "libre" ]; then
echo "Libre mode Enabled!!!" echo "Libre mode Enabled!!!"
version="libre" version="libre"

45
mimeapps.list Normal file
View file

@ -0,0 +1,45 @@
[Added Associations]
application/octet-stream=org.gnome.FileRoller.desktop;
x-scheme-handler/http=exo-web-browser.desktop;firefox.desktop;
x-scheme-handler/https=exo-web-browser.desktop;firefox.desktop;
x-scheme-handler/mailto=exo-mail-reader.desktop;thunderbird.desktop;
text/markdown=org.gnome.gedit.desktop;
x-scheme-handler/ftp=firefox.desktop;
x-scheme-handler/chrome=firefox.desktop;
text/html=firefox.desktop;org.gnome.gedit.desktop;
application/x-extension-htm=firefox.desktop;
application/x-extension-html=firefox.desktop;
application/x-extension-shtml=firefox.desktop;
application/xhtml+xml=firefox.desktop;
application/x-extension-xhtml=firefox.desktop;
application/x-extension-xht=firefox.desktop;
message/rfc822=thunderbird.desktop;
application/x-shellscript=pluma.desktop;
application/x-cue=org.gnome.gedit.desktop;
application/x-7z-compressed=org.gnome.Nautilus.desktop;org.gnome.FileRoller.desktop;
model/x.stl-binary=org.gnome.FileRoller.desktop;
application/x-compressed-tar=org.gnome.Nautilus.desktop;
application/json=org.gnome.gedit.desktop;
text/vcard=kaddressbook-importer.desktop;
text/x-opml+xml=firefox.desktop;
text/csv=libreoffice-calc.desktop;
image/png=eog.desktop;
image/jpeg=eog.desktop;
[Default Applications]
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/ftp=firefox.desktop
x-scheme-handler/chrome=firefox.desktop
text/html=firefox.desktop
application/x-extension-htm=firefox.desktop
application/x-extension-html=firefox.desktop
application/x-extension-shtml=firefox.desktop
application/xhtml+xml=firefox.desktop
application/x-extension-xhtml=firefox.desktop
application/x-extension-xht=firefox.desktop
x-scheme-handler/mailto=thunderbird.desktop
message/rfc822=thunderbird.desktop
x-scheme-handler/discord-402572971681644545=discord-402572971681644545.desktop
image/png=eog.desktop
inode/directory=org.gnome.Nautilus.desktop

View file

@ -95,6 +95,7 @@ opencl-nvidia
openssh openssh
openvpn openvpn
os-prober os-prober
p7zip
pavucontrol pavucontrol
pixz pixz
ppp ppp

View file

@ -94,6 +94,7 @@ opencl-nvidia
openssh openssh
openvpn openvpn
os-prober os-prober
p7zip
pavucontrol pavucontrol
pixz pixz
ppp ppp

View file

@ -92,6 +92,7 @@ opencl-nvidia
openssh openssh
openvpn openvpn
os-prober os-prober
p7zip
pavucontrol pavucontrol
pixz pixz
plasma plasma

View file

@ -79,6 +79,7 @@ ntp
openssh openssh
openvpn openvpn
os-prober os-prober
p7zip
pavucontrol pavucontrol
pixz pixz
ppp ppp

View file

@ -90,6 +90,7 @@ opencl-nvidia
openssh openssh
openvpn openvpn
os-prober os-prober
p7zip
pavucontrol pavucontrol
pixz pixz
ppp ppp

View file

@ -93,6 +93,7 @@ openssh
openvpn openvpn
os-prober os-prober
oxygen-icons oxygen-icons
p7zip
pavucontrol pavucontrol
pixz pixz
ppp ppp

View file

@ -92,6 +92,7 @@ opencl-nvidia
openssh openssh
openvpn openvpn
os-prober os-prober
p7zip
pavucontrol pavucontrol
pixz pixz
ppp ppp

View file

@ -151,6 +151,7 @@ openttd
openvpn openvpn
os-prober os-prober
oxygen-icons oxygen-icons
p7zip
pavucontrol pavucontrol
pcsx2 pcsx2
physfs physfs

View file

@ -89,6 +89,7 @@ opencl-nvidia
openssh openssh
openvpn openvpn
os-prober os-prober
p7zip
pavucontrol pavucontrol
pixz pixz
ppp ppp

View file

@ -12,7 +12,7 @@ user="user1"
if [[ $EUID -ne 0 ]]; then if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2 echo "This script must be run as root" 1>&2
sudo $0 sudo $0 $1 $2 $3 $4 $5 $6 $7 $8 $9
exit 0 exit 0
fi fi
echo "Als root Angemeldet" echo "Als root Angemeldet"