Added some functions

master
Nathan Steel 5 years ago
parent 81750951f4
commit 0f6ae2bb45

@ -1,6 +1,8 @@
# This install script is for a debian based distro # This install script is for a debian based distro
# ideally a minimal install # ideally a minimal install
# Ask what wants to be installed, then if statement each section.
# Install X and sudo so other things can work # Install X and sudo so other things can work
apt install sudo xorg build-essential -y apt install sudo xorg build-essential -y
@ -46,7 +48,7 @@ apt install transmission-daemon transmission-cli transmission-remote-cli -y
# Setup the user for transmission-daemon # Setup the user for transmission-daemon
# Virtualisation # Virtualisation
apt install qemu-kvm libvirt-clients libvirt-daemon-system virt-manager apt install qemu-kvm libvirt-clients libvirt-daemon-system virt-manager -y
# Add to virtualisation groups # Add to virtualisation groups
adduser nathan libvirt adduser nathan libvirt
adduser nathan libvirt-qemu adduser nathan libvirt-qemu
@ -64,28 +66,39 @@ apt install brave-browser -y
apt install libx11-dev libxft-dev libxinerama-dev -y apt install libx11-dev libxft-dev libxinerama-dev -y
apt install libx11-xcb-dev libxcb-res0-dev -y apt install libx11-xcb-dev libxcb-res0-dev -y
# Fake user installs
userinstall() {
sudo -H -u nathan bash -c '$1'
}
# Oh my Zsh
userinstall 'sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"'
# User # User
su nathan su nathan
# Create directories mkdir2() {
# Need to modularise the if [ -d ] then add these with it for DIR
mkdir ~/downloads/ ~/pictures/ ~/video/ ~/recordings/ ~/documents/ ~/music/ do
#mkdir /mnt/usb/ /mnt/hdd/ /mnt/network/ if [ ! -d $DIR ]; then
mkdir $DIR
fi
done
}
# Oh my Zsh # Create directories
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" mkdir2 ~/downloads/ ~/pictures/ ~/video/ ~/recordings/ ~/documents/ ~/music/
#mkdir2 /mnt/usb/ /mnt/hdd/ /mnt/network/
touch ~/recordings/.recording_status
# Set location to download source code and other repos # Set location to download source code and other repos
if [! -d "~/agit/" ]; then REPO=~/agitrepo
mkdir ~/agit/ mkdir2 $REPO
fi
# Suckless installs # Suckless installs
# Not sure how to do the intsall without sudo prompt... # Not sure how to do the intsall without sudo prompt...
# dwm # dwm
cd ~/agit/ git clone https://git.suckless.org/dwm $REPO/adwm
git clone https://git.suckless.org/dwm ~/agit/adwm
cd ~/agit/adwm/ cd ~/agit/adwm/
#sudo make clean install #sudo make clean install
@ -129,4 +142,3 @@ cd ~/agit/adotfiles/
cp -r * ~/. cp -r * ~/.
# Extras. Bg image, icons, etc. # Extras. Bg image, icons, etc.

Loading…
Cancel
Save