-
Muting the speakers in Linux from the Terminal
Tested in Elementary OS Luna (based on Ubuntu 12.04 LTS) on a Lenovo Yoga 13. To mute: amixer set Master mute To unmute: amixer set Master unmute This is useful if you want the volume to always be muted on boot, in case you start up the computer in class or whatever.
-
Bash Prompt Colors
This is currently my bash prompt. Locate this code in any script run by bash at startup. I have it in ~/.bashrc GREEN=”\[\e[1;32m\]” BLUE=”\[\e[1;34m\]” YELLOW=”\[\e[1;33m\]” CYAN=”\[\e[1;36m\]” RESET=”\[\e[m\]” BRANCH=$CYAN PS1=”$GREEN\u@\h $BLUE\w $BRANCH\$(git branch 2>/dev/null | grep ‘^*’ | colrm 1 2 | parens | tr -d ‘\n’)$BLUE\$ $RESET” This relies on parens, a simple program that…
-
Elementary Tweaks
This will be all about getting Elementary OS set up the way Brandon likes it. To install Elementary Tweaks: sudo apt-add-repository ppa:versable/elementary-update sudo apt-get update sudo apt-get install elementary-tweaks To install Wingpanel Slim: sudo apt-get install wingpanel-slim More information about Elementary add-ons can be found here: What happened to Elementary Update? Elementary Update PPA Many…
-
Getting Linux working with the Lenovo Yoga 13
This worked for me with the Elementary OS, a distribution of Linux based on Ubuntu, which in turn is based on Debian, but you may have luck getting this to work in other distributions as well. For the WiFi, you must download and install the wireless driver. Instructions can be found at the GitHub repository…
-
Converting video to ogg and the html5 video tag
This is how to embed a video in a webpage using html5’s video tag. First, the video must be in a format supported by the browser that it will be viewed with. It seems that the format that has the most widespread browser support (well, at least with the browsers that I like, Firefox and…