Contents
Mon, Nov 02, 2015
OCTOPRESS
General maintenance related tasks:
$ rvm get stable # RVM
$ rvm install 2.2.3 # Ruby
$ rvm --default use 2.2.3 # Set default version
$ rvm rubygems latest # RubyGems
$ gem install bundler # Dependencies
$ bundle install # Run within blog directory
$ rvm -v # Check versions
$ ruby -v
$ which ruby
$ gem -v
$ which gem
Arch uses Python version 3, whereas Octopress requires verions 2. Edit the first line of mentos.py to the following instead:
~/.rvm/gems/ruby-2.2.3/gems/pygments.rb-0.3.4/lib/pygments/mentos.py
#!/usr/bin/env python2
Migrating to another computer:
$ curl -L https://get.rvm.io | bash -s stable --ruby
Then do the upgrades as listed above.
$ git clone -b source git@github.com:username/username.github.io.git
$ cd username.github.io.git
$ git clone git@github.com:username/username.github.io.git _deploy
Install the dependencies as listed above.
To maintain the blog on multiple computers:
Push on one:
$ rake generate
$ rake deploy
$ git add .
$ git commit -a
$ git push origin source
Pull on the other:
$ git pull origin source
$ cd ./_deploy
$ git pull origin master
I3
$ sudo pacman -S i3
$ sudo pacman -S dmenu
$ sudo pacman -S feh # for wallpaper
$ sudo pacman -S scrot # for screenshot
$ sudo pacman -S mplayer
$ sudo pacman -S archey3
$ sudo pacman -S cmus
$ sudo pacman -S gpicview
$ sudo pacman -S firefox # optional
$ sudo pacman -S dnsutils
$ sudo pacman -S whois
$ sudo pacman -S imagemagick
$ sudo pacman -S easytag
$ sudo pacman -S rdesktop freerdp # optional
~/.config/i3/config
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle #mute sound
# pause / play / next / previous
bindsym XF86AudioPlay exec cmus-remote -C "player-pause"
bindsym XF86AudioNext exec cmus-remote -n
bindsym XF86AudioPrev exec cmus-remote -r
# Sreen brightness controls
bindsym XF86MonBrightnessUp exec xbacklight -inc 20 #increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 20 #decrease screen brightness
exec --no-startup-id feh --recursive --randomize --bg-center ~/Pictures/wallpaper
Optional: JRE
Run /usr/lib/jvm/java-7-jre/jre/bin/ControlPanel to configure.