void- enter the void 🪐 |
git clone git://git.acid.vegas/archlinux.git |
Log | Files | Refs | Archive |
thinvoid (2529B)
1 #!/bin/sh 2 # Thin Client Void Linux Setup - Developed by acidvegas (https://git.acid.vegas/void) 3 4 GIT_URL="https://raw.githubusercontent.com/acidvegas/void/master" 5 6 passwd && sv stop sshd && xbps-remove openssh 7 8 ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime 9 10 xbps-install -y dropbear oath-toolkit rsync socklog-void tmux tor tree wget 11 12 ln -sfv /etc/sv/nanoklogd /var/service 13 ln -sfv /etc/sv/socklog-unix /var/service 14 15 touch /swapfile && dd if=/dev/zero of=/swapfile bs=1M count=2k status=progress && chmod 0600 /swapfile && mkswap /swapfile && swapon /swapfile 16 17 { 18 echo "/dev/mmcblk0p1 /boot vfat ro,noatime,nodev,noexec,nosuid 0 2" 19 echo "/dev/mmcblk0p2 / ext4 rw,noatime 0 1" 20 echo "tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0" 21 echo "proc /proc proc defaults,hidepid=2 0 0" 22 echo "/swapfile none swap sw 0 0" 23 } > /etc/fstab 24 25 printf "\nnohook resolv.conf\n" >> /etc/dhcpcd.conf && sv restart dhcpcd 26 printf "nameserver 9.9.9.9\nnameserver 149.112.112.112\nnameserver 2620:fe::fe\nnameserver 2620:fe::9" > /etc/resolv.conf && chattr +i /etc/resolv.conf 27 printf "skinny-mon\n" > /etc/hostname 28 printf "HOSTNAME=\"skinny-mon\"\nHARDWARECLOCK=\"UTC\"\nTIMEZONE=\"America/New_York\"\nKEYMAP=us\n" > /etc/rc.conf 29 printf "set boldtext\nset minibar\nset nohelp\nset nowrap\nset quickblank\nset tabsize 4\nunbind ^J main\nset selectedcolor black,red\ninclude \"/usr/share/nano/*.nanorc\"\n" > /etc/nanorc 30 printf "\nexport HISTFILE=/dev/null\nexport LESSHISTFILE=/dev/null\n" >> /etc/profile 31 printf '#!/bin/sh\nexec 2>&1\n[ -r conf ] && . ./conf\nexec dropbear -p CHANGE:ME -w -s -R -F\n' > /etc/sv/dropbear/run && chattr +i /etc/sv/dropbear/run && ln -sfv /etc/sv/dropbear /var/service 32 33 wget -O $HOME/pmf $GIT_URL/scripts/pmf && chmod +x $HOME/pmf 34 wget -O $HOME/.bashrc $GIT_URL/bash/.bash_thin 35 36 useradd -m -s /bin/bash acidvegas && passwd acidvegas 37 38 wget -O $HOME/.tmux.conf $GIT_URL/tmux/.tmux.conf 39 wget -O $HOME/.bashrc $GIT_URL/bash/.bash_thin 40 41 mkdir $HOME/.gnupg && wget -O $HOME/.gnupg/gpg.conf $GIT_URL/gpg/gpg.conf && chmod 700 $HOME/.gnupg 42 printf "pinentry-program /usr/bin/pinentry-curses\ndefault-cache-ttl 3600" > $HOME/.gnupg/gpg-agent.conf 43 chmod 600 $HOME/.gnupg/* 44 45 mkdir $HOME/.scripts 46 wget -O $HOME/.scripts/dmc $GIT_URL/scripts/dmc && chmod +x $HOME/.scripts/dmc 47 wget -O $HOME/.scripts/pass https://raw.githubusercontent.com/acidvegas/pass/master/pass && chmod +x $HOME/.scripts/pass