diff --git a/arch-graphical-install-auto b/arch-graphical-install-auto index fef01b9..4a41689 100755 --- a/arch-graphical-install-auto +++ b/arch-graphical-install-auto @@ -149,22 +149,6 @@ function ldconfigcache() { 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() { useradd -m -g users -G wheel,audio,video,sys,optical -s /bin/bash $username passwd ${username} < /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 +# 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 diff --git a/arch-install.desktop b/arch-install.desktop index fde0055..190d072 100755 --- a/arch-install.desktop +++ b/arch-install.desktop @@ -3,7 +3,7 @@ Type=Application Icon=/usr/share/pixmaps/install.png Name[de]=Betriebssystem installieren Name[en]=Install the operating system -Exec=/usr/bin/arch-install "" %VERSION% +Exec=/usr/bin/arch-install Terminal=true Categories=ConsoleOnly;System; StartupNotify=false diff --git a/make_mksquashfs-auto.sh b/make_mksquashfs-auto.sh index 7a5b89b..602168b 100755 --- a/make_mksquashfs-auto.sh +++ b/make_mksquashfs-auto.sh @@ -110,8 +110,8 @@ function system() { fi fi if [ "${makesystem}" == "y" ]; then - mkdir -p ${work_dir}/${arch}/airootfs - minimalinstallation + mkdir -p ${work_dir}/${arch}/airootfs + minimalinstallation fi fi @@ -129,10 +129,10 @@ function system() { cp -v install/cow_device ${work_dir}/${arch}/airootfs/usr/lib/initcpio/install/ cp -v hooks/cow_device ${work_dir}/${arch}/airootfs/usr/lib/initcpio/hooks/ - # modprobe.d - mkdir -p ${work_dir}/${arch}/airootfs/etc/modprobe.d/ - echo "blacklist floppy" > ${work_dir}/${arch}/airootfs/etc/modprobe.d/blacklist-floppy.conf - echo "blacklist nouveau" > ${work_dir}/${arch}/airootfs/etc/modprobe.d/blacklist_nouveau.conf + # modprobe.d + mkdir -p ${work_dir}/${arch}/airootfs/etc/modprobe.d/ + echo "blacklist floppy" > ${work_dir}/${arch}/airootfs/etc/modprobe.d/blacklist-floppy.conf + echo "blacklist nouveau" > ${work_dir}/${arch}/airootfs/etc/modprobe.d/blacklist_nouveau.conf if [ "${version}" == "libre" ] || [ "${version}" == "lite" ]; then echo "MODULES=\"i915 radeon nouveau ata_generic ata_piix nls_cp437 vfat ext4 btrfs\"" > ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf @@ -141,9 +141,9 @@ function system() { echo "FILES=\"/etc/modprobe.d/blacklist-floppy.conf\"" >> ${work_dir}/${arch}/airootfs/etc/mkinitcpio.conf if [ "${version}" == "libre" ]; then - ./arch-chroot ${work_dir}/${arch}/airootfs mkinitcpio -p linux-libre + ./arch-chroot ${work_dir}/${arch}/airootfs mkinitcpio -p linux-libre else - ./arch-chroot ${work_dir}/${arch}/airootfs mkinitcpio -p linux + ./arch-chroot ${work_dir}/${arch}/airootfs mkinitcpio -p linux fi else