Added some quick arch notes.

This commit is contained in:
hak8or 2015-09-05 12:27:12 -04:00
parent 0efdca7c0a
commit 532e723bae
1 changed files with 115 additions and 0 deletions

115
Arch_Notes.md Normal file
View File

@ -0,0 +1,115 @@
## Removing grub timeout during bootup.
To remove the timeout grub shows during bootup, edit ```/etc/default/grub``` by modfying the ```GRUB_TIMEOUT``` value. Then run ```grub-mkconfig``` as sudo to update your grub configuration. Check out [this](https://bbs.archlinux.org/viewtopic.php?id=169948) post if something goes wrong.
## Getting xserver up.
```bash
# Graphics driver.
yaourt -S xf86-video-vesa
# Xorg
yaourt -S xorg-server
# So you can run startx.
yaourt -S xorg-xinit
# Xorg's default tiling manager
yaourt -S xorg-twm
# Xterm, so we actually get something on screen.
yaourt -S xterm
# Copy a sane default of .xinitrc
cp /etc/X11/xinit/xinitrc ~/.xinitrc
# Get an x display session up.
startx
```
## Auto login and startx
To do auto login [Arch Wiki](https://wiki.archlinux.org/index.php/Automatic_login_to_virtual_console):
```bash
# /etc/systemd/system/getty@tty1.service.d/override.conf
[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin username --noclear %I 38400 linux
```
To do auto startx [Arch Wiki](https://wiki.archlinux.org/index.php/Xinitrc#Autostart_X_at_login):
```bash
#~/.zshrc
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
```
## Tiling manager (I3-gaps).
```bash
#I3-gaps since it is a very awesome fork of i3 that adds a ton of functionality.
yaourt -S i3-gaps-git
# For a wallpaper.
yaourt -S feh imagemagick librsvg
# Replace TWM relevant command with just exec i3.
vim ~/.xinitrc
# And if you need to modify anything i3, like the keys:
# Mod1 -> ALT key
# Mod4 -> Windows key (This does not work with virtualbox!)
vim ~/.config/i3/config
```
Some quick additions to take advantage of gaps.
```bash
# Inside ~/.config/i3/config
for_window [class="^.*"] border pixel 2
gaps inner 12
smart_borders no_gaps
# Wallpaper
exec feh --bg-fill ~/wallpapers/wallpaper.jpg
```
## Resizing in virtualbox.
```bash
# Get virtualbox guest additions.
yaourt -S virtualbox-guest-utils
# Load the virtualbox kernel modules upon bootup.
# Add vboxguest, vboxsf, and vboxvideo on new lines.
vim /etc/modules-load.d/virtualbox.conf
# Add /usr/bin/VBoxClient-all to you .xinitrc before calling I3.
vim ~/.xinitrc
```
## Styling
```bash
# First install xorg-xrdb for reading the xresources file.
yaourt -S xorg-xrdb
# Add the powerline font.
yaourt -S powerline-fonts-git
# And powerline itself.
yaourt -S python2-powerline-git
# Add some goodies to our Xresources.
cat <<EOF > ~/.Xresources
URxvt.background: Black
URxvt.foreground: White
URxvt.scrollbar: false
URxvt.font xft:Sauce Code Powerline:size=9
Xft.dpi: 109
Xft.antialias: true
Xft.rgba: rgba
Xft.hinting: true
Xft.hintstyle: hintfull
EOF
# Add powerline.zsh to our zshrc.
cat ". /usr/share/zsh/site-contrib/powerline.zsh" >> ~/.zshrc
```