Skip to content

Instantly share code, notes, and snippets.

@zackn9ne
Last active February 6, 2019 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackn9ne/e0bba1ccae8d8d5ca90b26202cf20761 to your computer and use it in GitHub Desktop.
Save zackn9ne/e0bba1ccae8d8d5ca90b26202cf20761 to your computer and use it in GitHub Desktop.
archstarter kit for virtualbox bash *runasroot
#!/bin/sh
#echo "run as root"
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman-key --refresh-keys
sudo useradd -m archie
passwd archie
#lets update
sudo pacman -Syu
#lets get essentials
sudo pacman -S linux-headers virtualbox-guest-dkms virtualbox-guest-utils --noconfirm
#https://wiki.archlinux.org/index.php/VirtualBox#Install_the_Guest_Additions
sudo systemctl enable vboxservice.service
sudo systemctl start vboxservice.service
sudo systemctl status vboxservice.service
touch ~/.xinitrc &&
echo "#! /bin/bash
exec i3
#lets fix copy paste https://www.netzgewitter.com/2011/08/copy-paste-hell-windows-linux-virtualbox/
autocutsel -selection CLIPBOARD -fork
autocutsel -selection PRIMARY -fork
" >> ~/.xinitrc
#lets startx every time
touch /etc/profile
echo "
# autostart systemd default session on tty1
if [[ "$(tty)" == '/dev/tty1' ]]; then
exec startx
fi"
#lets get things we need in x
sudo pacman -S rxvt-unicode rxvt-unicode-terminfo terminfo emacs tmux git autocutsel --noconfirm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment