💾 Archived View for zvava.org › wiki › config.gmi captured on 2023-01-29 at 02:34:07. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
created 2022/09/22 category text
configuring unix systems
in the git repository containing my dotfiles is a script titled install.sh. it must be run with root permissions on both platforms
if you run the install script in termux the install script does
cp -r .config .scripts .bash* ~/ # nano configs cp -r .nano .nanorc ~/ mkdir -p ~/.nano.backups # make scripts work termux-fix-shebang ~/.scripts/* chmod +x ~/.scripts/* # remove gui configs cd ~/.config rm -rf gtk-2.0 gtk-3.0 protonvpn redshift xfce4
on a full linux install, either in vm or a machine,
read -rp "install dotfiles to main account? (y/n) " confirmmain if [ "$confirmmain" = y ]; then read -rp "[main] enter your username: /home/" installuser fi read -rp "install dotfiles to /root/? (y/n) " confirmroot read -rp "install global dotfiles, eg. xorg, /etc/env, ...? (y/n) " confirmglobal # dotfiles for your main account if [ "$confirmmain" = y ]; then echo "[main] installing" cp -rp .config .scripts .bash* /home/$installuser/ chmod +x /home/$installuser/.scripts/* # screenshots dir mkdir -p /home/$installuser/Pictures/Screenshots chown $installuser.$installuser /home/$installuser/Pictures/Screenshots # nano configs cp -rp .nano .nanorc /home/$installuser/ mkdir -p /home/$installuser/.nano.backups chown $installuser.$installuser /home/$installuser/.nano.backups else echo "[main] skipping" fi # dotfiles that effect the root account if [ "$confirmroot" = y ]; then echo "[root] installing" cp -r .config .bash* /root/ # nano configs cp -r .nano .nanorc /root/ mkdir -p /root/.nano.backups else echo "[root] skipping" fi # dotfiles that affect all users if [ "$confirmglobal" = y ]; then echo "[global] installing" # xorg config cp -r xorg.conf.d /usr/share/X11/ # add .scripts to PATH [ "$confirmmain" = y ] && { echo "PATH=$PATH:/home/$installuser/.scripts" > /etc/environment ; } else echo "[global] skipping" fi