This commit is contained in:
simono41 2018-04-25 10:54:48 +02:00
parent db7bc43531
commit 6106ce74be
3 changed files with 140 additions and 159 deletions

View file

@ -149,22 +149,6 @@ function ldconfigcache() {
ldconfig ldconfig
} }
function check() {
if [ -f /usr/lib/systemd/system/x11vnc.service ]; then
rm /usr/lib/systemd/system/x11vnc.service
fi
if [ -f /etc/systemd/system/x11vnc.service ]; then
rm /etc/systemd/system/x11vnc.service
fi
}
function checkend() {
cp /opt/${repo}/x11vnc.service /etc/systemd/system/x11vnc.service
chmod 644 /etc/systemd/system/x11vnc.service
systemctl enable x11vnc.service
}
function addusers() { function addusers() {
useradd -m -g users -G wheel,audio,video,sys,optical -s /bin/bash $username useradd -m -g users -G wheel,audio,video,sys,optical -s /bin/bash $username
passwd ${username} <<EOT passwd ${username} <<EOT
@ -345,13 +329,8 @@ if [ -f /var/lib/pacman/db.lck ];then
fi fi
# vollinstallation # vollinstallation
if [ "$vollinstallation" != "n" ] if [ "$vollinstallation" != "debug" ]; then
then
check
if [ "$vollinstallation" != "debug" ]; then
standartinstallation standartinstallation
fi
checkend
fi fi
echo "Packetliste2 Ende" echo "Packetliste2 Ende"
@ -436,26 +415,35 @@ else
echo "Kein Start gewählt!!!" echo "Kein Start gewählt!!!"
fi fi
if [ "${vollinstallation}" != "n" ]; then if [ "${version}" != "lite" ]; then
systemctl enable acpid if [ -f /usr/lib/systemd/system/x11vnc.service ]; then
systemctl enable ntpd rm /usr/lib/systemd/system/x11vnc.service
systemctl enable avahi-daemon
systemctl enable org.cups.cupsd.service
systemctl enable sshd
systemctl enable cronie
systemctl enable systemd-timesyncd.service
echo "Bitte OpenVPN config in die /etc/openvpn/client/client.conf kopieren!!!"
if [ -f /lib/systemd/system/openvpn-client@client.service ]; then
echo "link vorhanden!"
else
ln /lib/systemd/system/openvpn-client@.service /lib/systemd/system/openvpn-client@client.service
fi fi
#Bei ausdokumentierung wird eine/die VPN automatisch aus der /etc/openvpn/client/client.conf gestartet!!! if [ -f /etc/systemd/system/x11vnc.service ]; then
#systemctl enable openvpn-client@client.service rm /etc/systemd/system/x11vnc.service
systemctl enable fail2ban fi
systemctl disable dhcpcd cp /opt/${repo}/x11vnc.service /etc/systemd/system/x11vnc.service
systemctl enable NetworkManager.service chmod 644 /etc/systemd/system/x11vnc.service
systemctl enable x11vnc.service
fi fi
systemctl enable acpid
systemctl enable ntpd
systemctl enable avahi-daemon
systemctl enable org.cups.cupsd.service
systemctl enable sshd
systemctl enable cronie
systemctl enable systemd-timesyncd.service
echo "Bitte OpenVPN config in die /etc/openvpn/client/client.conf kopieren!!!"
if [ -f /lib/systemd/system/openvpn-client@client.service ]; then
echo "link vorhanden!"
else
ln /lib/systemd/system/openvpn-client@.service /lib/systemd/system/openvpn-client@client.service
fi
#Bei ausdokumentierung wird eine/die VPN automatisch aus der /etc/openvpn/client/client.conf gestartet!!!
#systemctl enable openvpn-client@client.service
systemctl enable fail2ban
systemctl disable dhcpcd
systemctl enable NetworkManager.service
# set systemconfiguration # set systemconfiguration
echo "systemconfiguration" echo "systemconfiguration"
@ -481,7 +469,7 @@ ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
# custom-bereich vollinstallation # custom-bereich vollinstallation
if [ "${vollinstallation}" != "n" ]; then if [ "$version" != "lite" ]; then
# custom-installer # custom-installer
@ -564,114 +552,107 @@ if [ "${vollinstallation}" != "n" ]; then
cd / cd /
# iso_name
echo "${repo}-${version}" > /etc/hostname
# uefi-boot
cp /opt/${repo1}/uefi-boot.sh /usr/bin/uefi-boot
chmod 755 /usr/bin/uefi-boot
# write-partitions manager
cp /opt/${repo}/write_cowspace /usr/bin/write_cowspace
chmod 755 /usr/bin/write_cowspace
# installer-/usr/bin/
cp /opt/${repo}/arch-install /usr/bin/arch-install
chmod 755 /usr/bin/arch-install
# installer
mkdir -p /usr/share/applications/
mkdir -p /root/.config/xfce4/panel/launcher-29/
sed "s|%VERSION%|${version}|g;" /opt/${repo}/arch-install.desktop > /usr/share/applications/arch-install.desktop
sed "s|%VERSION%|${version}|g;" /opt/${repo}/15196212071.desktop > /root/.config/xfce4/panel/launcher-29/15196212071.desktop
sed "s|%VERSION%|${version}|g;" /opt/${repo}/15196212512.desktop > /root/.config/xfce4/panel/launcher-29/15196212512.desktop
chmod 755 /usr/share/applications/arch-install.desktop
chmod 755 /root/.config/xfce4/panel/launcher-29/15196212071.desktop
chmod 755 /root/.config/xfce4/panel/launcher-29/15196212512.desktop
# install-picture
mkdir -p /usr/share/pixmaps/
cp /opt/${repo}/install.png /usr/share/pixmaps/
# background
mkdir -p /usr/share/backgrounds/xfce/
cp /opt/${repo}/*.jpg /usr/share/backgrounds/xfce/
chmod 755 -Rv /usr/share/backgrounds/xfce/
# bash.bashrc
sed "s|%OS_NAME%|${repo}|g;" /opt/${repo}/bash.bashrc > /etc/bash.bashrc
cp /opt/${repo}/.bashrc /root/
# config.fish
mkdir -p /root/.config/fish/
cp /opt/${repo}/config.fish /root/.config/fish/config.fish
# btrfs-swapfile
cp /opt/${repo}/btrfs-swapon.service /etc/systemd/system/
cp /opt/${repo}/btrfs-swapon /usr/bin/
chmod 755 /usr/bin/btrfs-swapon
cp /opt/${repo}/btrfs-swapoff /usr/bin/
chmod 755 /usr/bin/btrfs-swapoff
# compress-script
cp /opt/${repo}/compress.sh /usr/bin/compress
chmod 755 /usr/bin/compress
# ssh
cp /opt/${repo}/sshd_config /etc/ssh/sshd_config
# .Xmodmap
cp /opt/${repo}/.Xmodmap /root/
# packages
cp /opt/${repo}/packages* /etc/
# snapshot.sh
cp /opt/${repo}/snapshot.sh /usr/bin/snapshot
chmod 755 /usr/bin/snapshot
# .Conky
tar -vxJf /opt/${repo}/.Conky.tar.xz -C /opt/
chmod 755 -Rv /opt/.Conky/
touch /root/notes.txt
# .xscreensaver
cp /opt/${repo}/.xscreensaver /root/
# hosts
cp /opt/${repo}/hosts /etc/
# santana
mkdir -p /usr/share/fonts/TTF/
tar -vxJf /opt/${repo}/santana.tar.xz -C /usr/share/fonts/TTF/
# update-script
cp /opt/${repo}/update.sh /usr/bin/update-script
chmod 755 /usr/bin/update-script
# Verzeichnise
mkdir -p /root/Downloads
mkdir -p /root/Dokumente
mkdir -p /root/Bilder
mkdir -p /root/Musik
mkdir -p /root/Videos
# addusers.sh
cp /opt/${repo}/addusers.sh /usr/bin/addusers
chmod 755 /usr/bin/addusers
# shell-fish
chsh -s /usr/bin/fish root
chsh -s /usr/bin/fish ${username}
# Vibrancy Colors
tar -vxJf /opt/${repo}/vibrancy-colors.tar.xz -C /usr/share/icons/
gtk-update-icon-cache /usr/share/icons/Vibrancy-Colors-Dark/
# XDG standard
cp /opt/${repo}/mimeapps.list /etc/xdg/mimeapps.list
fi fi
# iso_name
echo "${repo}-${version}" > /etc/hostname
# uefi-boot
cp /opt/${repo1}/uefi-boot.sh /usr/bin/uefi-boot
chmod 755 /usr/bin/uefi-boot
# write-partitions manager
cp /opt/${repo}/write_cowspace /usr/bin/write_cowspace
chmod 755 /usr/bin/write_cowspace
# installer-/usr/bin/
cp /opt/${repo}/arch-install /usr/bin/arch-install
chmod 755 /usr/bin/arch-install
# installer
mkdir -p /usr/share/applications/
cp /opt/${repo}/arch-install.desktop > /usr/share/applications/arch-install.desktop
# install-picture
mkdir -p /usr/share/pixmaps/
cp /opt/${repo}/install.png /usr/share/pixmaps/
# background
mkdir -p /usr/share/backgrounds/xfce/
cp /opt/${repo}/*.jpg /usr/share/backgrounds/xfce/
chmod 755 -Rv /usr/share/backgrounds/xfce/
# bash.bashrc
sed "s|%OS_NAME%|${repo}|g;" /opt/${repo}/bash.bashrc > /etc/bash.bashrc
cp /opt/${repo}/.bashrc /root/
# config.fish
mkdir -p /root/.config/fish/
cp /opt/${repo}/config.fish /root/.config/fish/config.fish
# btrfs-swapfile
cp /opt/${repo}/btrfs-swapon.service /etc/systemd/system/
cp /opt/${repo}/btrfs-swapon /usr/bin/
chmod 755 /usr/bin/btrfs-swapon
cp /opt/${repo}/btrfs-swapoff /usr/bin/
chmod 755 /usr/bin/btrfs-swapoff
# compress-script
cp /opt/${repo}/compress.sh /usr/bin/compress
chmod 755 /usr/bin/compress
# ssh
cp /opt/${repo}/sshd_config /etc/ssh/sshd_config
# .Xmodmap
cp /opt/${repo}/.Xmodmap /root/
# packages
cp /opt/${repo}/packages* /etc/
# snapshot.sh
cp /opt/${repo}/snapshot.sh /usr/bin/snapshot
chmod 755 /usr/bin/snapshot
# .Conky
tar -vxJf /opt/${repo}/.Conky.tar.xz -C /opt/
chmod 755 -Rv /opt/.Conky/
touch /root/notes.txt
# .xscreensaver
cp /opt/${repo}/.xscreensaver /root/
# hosts
cp /opt/${repo}/hosts /etc/
# santana
mkdir -p /usr/share/fonts/TTF/
tar -vxJf /opt/${repo}/santana.tar.xz -C /usr/share/fonts/TTF/
# update-script
cp /opt/${repo}/update.sh /usr/bin/update-script
chmod 755 /usr/bin/update-script
# Verzeichnise
mkdir -p /root/Downloads
mkdir -p /root/Dokumente
mkdir -p /root/Bilder
mkdir -p /root/Musik
mkdir -p /root/Videos
# addusers.sh
cp /opt/${repo}/addusers.sh /usr/bin/addusers
chmod 755 /usr/bin/addusers
# shell-fish
chsh -s /usr/bin/fish root
chsh -s /usr/bin/fish ${username}
# Vibrancy Colors
tar -vxJf /opt/${repo}/vibrancy-colors.tar.xz -C /usr/share/icons/
gtk-update-icon-cache /usr/share/icons/Vibrancy-Colors-Dark/
# XDG standard
cp /opt/${repo}/mimeapps.list /etc/xdg/mimeapps.list

View file

@ -3,7 +3,7 @@ Type=Application
Icon=/usr/share/pixmaps/install.png Icon=/usr/share/pixmaps/install.png
Name[de]=Betriebssystem installieren Name[de]=Betriebssystem installieren
Name[en]=Install the operating system Name[en]=Install the operating system
Exec=/usr/bin/arch-install "" %VERSION% Exec=/usr/bin/arch-install
Terminal=true Terminal=true
Categories=ConsoleOnly;System; Categories=ConsoleOnly;System;
StartupNotify=false StartupNotify=false