void_interface.sh 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. #!/bin/env bash
  2. #############################################################################
  3. # ██╗ ██╗ ██████╗ ██╗██████╗ ██╗███╗ ██╗███████╗████████╗ █████╗ ██╗ ██╗ ███████╗██████╗
  4. # ██║ ██║██╔═══██╗██║██╔══██╗ ██║████╗ ██║██╔════╝╚══██╔══╝██╔══██╗██║ ██║ ██╔════╝██╔══██╗
  5. # ██║ ██║██║ ██║██║██║ ██║ ██║██╔██╗ ██║███████╗ ██║ ███████║██║ ██║ █████╗ ██████╔╝
  6. # ╚██╗ ██╔╝██║ ██║██║██║ ██║ ██║██║╚██╗██║╚════██║ ██║ ██╔══██║██║ ██║ ██╔══╝ ██╔══██╗
  7. # ╚████╔╝ ╚██████╔╝██║██████╔╝ ██║██║ ╚████║███████║ ██║ ██║ ██║███████╗███████╗███████╗██║ ██║
  8. # ╚═══╝ ╚═════╝ ╚═╝╚═════╝ ╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝
  9. #############################################################################
  10. # Autor:Alex Ham
  11. # Email:kandil@disroot.org
  12. # Description:This script will install the necessary and additional progs in the psemdo system
  13. # Dependencies:
  14. # Signs:
  15. # [-]=waiting
  16. # [+]=successful
  17. # [!]=warning
  18. # [*]=info
  19. # [?]=aksing
  20. #############################################################################
  21. # Colors
  22. # cl_black=$'\e[30m'
  23. # cl_yellow=$'\e[33m'
  24. # cl_magenta=$'\e[35m'
  25. # cl_cyan=$'\e[36m'
  26. # cl_white=$'\e[37m'
  27. # cl_bright=$'\e[1m'
  28. cl_red=$'\e[31m'
  29. cl_green=$'\e[32m'
  30. cl_blue=$'\e[34m'
  31. cl_normal=$'\e[0m'
  32. #############################################################################
  33. # ENV
  34. # luks_name="lukspc"
  35. # lvm_name="lvmpc"
  36. # fs_type="ext4"
  37. # sys_hostname="voidpc"
  38. # sys_language="en_US.UTF-8"
  39. # sys_locale="en_US.UTF-8 UTF-8"
  40. # user_groups="wheel,floppy,cdrom,optical,audio,video,kvm,plugdev"
  41. # grub_discards="rd.luks.allow-discards"
  42. # rootfs_link="https://repo-default.voidlinux.org/live/current/void-x86_64-ROOTFS-20230628.tar.xz"
  43. sys_pkg_list="list.pkg"
  44. # run_dev=$(lsblk -slnpo NAME $(df --output=source / | sed 1d) | tail -n1)
  45. user_name=alex
  46. #############################################################################
  47. # Start
  48. printf "%s=======================%s\n" "${cl_green}" "${cl_normal}"
  49. printf "%s[*] Additional commands%s\n" "${cl_green}" "${cl_normal}"
  50. printf "%s=======================%s\n" "${cl_green}" "${cl_normal}"
  51. # Installing utilities(git, stow)
  52. printf "[-] Installation utilities(git, stow)"
  53. chroot /mnt xbps-install git stow >/dev/null
  54. # Cloning repositorys
  55. printf "[-] Cloning repositorys"
  56. git clone git@git.disroot.org:kandil/dotfiles.git \
  57. /mnt/home/"${user_name}"/.dotfiles
  58. git clone git@git.disroot.org:kandil/voidrice.git \
  59. /mnt/home/"${user_name}"/.local/progs/voidrice
  60. git clone git@git.disroot.org:kandil/st.git \
  61. /mnt/home/"${user_name}"/.local/progs/st
  62. git clone git@git.disroot.org:kandil/dwm.git \
  63. /mnt/home/"${user_name}"/.local/progs/dwm
  64. git clone git@git.disroot.org:kandil/slstatus.git \
  65. /mnt/home/"${user_name}"/.local/progs/slstatus
  66. git clone git@git.disroot.org:kandil/translater.git \
  67. /mnt/home/"${user_name}"/translater
  68. # Moving the translater to the program directory
  69. printf "[+] Moving the translater to the program directory"
  70. mv /mnt/home/"${user_name}"/translater \
  71. /mnt/home/"${user_name}"/.local/bin/translater
  72. # Symlinks to configs and daemons
  73. chroot /mnt stow -Svn /home/"${user_name}"/.dotfiles/*
  74. ln -s /mnt/etc/sv/{tor,dbus,dhcpcd} /mnt/var/service