Calculators
===========
TiLP
----
Download and install TiLP from <http://lpg.ticalc.org/prj_tilp/linux.html>.
Launch with `sudo tilp`.
TilEm
-----
Installation:
1. Download TilEm sources from
<http://lpg.ticalc.org/prj_tilem/download.html>.
2. Change to `LIBS = -lm` in tilem-2.0/gui/Makefile.
3. Install as normal.
Development
===========
LaTeX
-----
Installation:
1. Download and install TeX Live from
<https://www.tug.org/texlive/acquire-netinstall.html>.
2. Append `PATH="$PATH:/usr/local/texlive/2014/bin/x86_64-linux"` to
~/.profile.
Geany
-----
Set line-breaking to 80 in *Edit > Preferences > Editor > Features* and *Edit >
Preferences > Editor > Display*.
Add keyboard shortcut `<Primary><Alt>s` > *Save As*.
Add ` && rm "%e.aux" "%e.log"` to the end of each LaTeX build command.
Add `evince %e.pdf` and `evince %e.dvi` to LaTeX execute commands.
Geany plugins
-------------
sudo apt-get install geany-plugins geany-plugin-markdown
Set Web helper preview pane to *Sidebar*.
Change any external open commands to `thunar "%d"` and show all hidden files.
Emmet
-----
Installation:
1. Download and install GeanyPy from
<https://github.com/sagarchalise/geanypy/tree/gtk3>, ignoring any Automake
errors.
2. Download and extract the emmet folder from
<https://github.com/sergeche/emmet-sublime> to /usr/lib/geany/geanypy.
3. Download and extract PyV8.py and _PyV8.so from
<https://github.com/emmetio/pyv8-binaries/blob/master/pyv8-linux64.zip> to
/usr/lib/geany/geanypy.
4. Download and extract editor.js and geanypy-emmet.py from
https://github.com/sagarchalise/geanypy-emmet> to
~/.config/geany/plugins/geanypy/plugins.
Fix indentation in expansions by commenting out the `if (!noIndent)` block in
~/.config/geany/plugins/geanypy/plugins/editor.js.
LAMP stack
==========
Source:
<https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu>
Apache
------
sudo apt-get install apache2
To allow sites from mounted USB devices, change `APACHE_RUN_USER` and
`APACHE_RUN_GROUP` in /etc/apache2/envvars to the current user and group,
respectively.
Enable .htaccess files by changing to `AllowOverride All` in
/etc/apache2/apache2.conf.
Enable automatic virtual hosts:
1. Add `UseCanonicalName Off` and `VirtualDocumentRoot /var/www/%0` to
configuration.
2. cd /var/www && ln -s html localhost
3. Add any additional virtual hosts as 127.0.0.1 in /etc/hosts.
PHP
---
sudo apt-get install php5 php5-mcrypt
Enable short tags by changing to `short_open_tag = On` in
/etc/php5/apache2/php.ini.
Enable short tags by changing to `display_errors = On` in
/etc/php5/apache2/php.ini.
MySQL
-----
Installation:
1. sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
2. sudo mysql_install_db
3. sudo mysql_secure_installation
Media
=====
Clementine
----------
sudo apt-get install clementine xubuntu-restricted-extras
Add keyboard shortcuts:
* `XF86AudioPlay` => `clementine -t`
* `XF86AudioStop` => `clementine -s`
* `XF86AudioPrev` => `clementine -r`
* `XF86AudioNext` => `clementine -f`
Webcam
------
sudo apt-get install guvcview
Change file paths in *Video > File* and *Photo > File* to default locations in
~/Videos and ~/Pictures, respectively.
System
======
App Grid
--------
Installation:
1. sudo add-apt-repository ppa:appgrid/stable
2. sudo apt-get update
3. sudo apt-get install appgrid
Power Statistics
----------------
sudo apt-get install gnome-power-manager
Show in menus by commenting out the `OnlyShowIn` line in
/usr/share/applications/gnome-power-statistics.desktop.
VirtualBox
----------
Installation:
1. sudo apt-get install virtualbox
2. Download and install extension pack from
<https://www.virtualbox.org/wiki/Downloads>.
USB access:
1. Add `woot` to `vboxusers` group in /etc/group.
2. Check *Settings > USB > Enable USB 2.0 (EHCI) Controller* for each OS that
supports it.
Miscellaneous
=============
Desktop sharing
---------------
Installation:
1. sudo apt-get install vino
2. gsettings set org.gnome.Vino require-encryption false
Show in menus by commenting out the `OnlyShowIn` line in
/usr/share/applications/vino-preferences.desktop.
Launch with `/usr/lib/vino/vino-server`.
Backlight controls
------------------
sudo apt-get install xbacklight
Add keyboard shortcuts:
* `Super+Left` => `xbacklight -dec 10`
* `Super+Right` => `xbacklight -inc 10`
**Do not** hold down these keyboard shortcuts!
Window manager
--------------
Enable unfocused scrolling by unchecking *Window Manager Tweaks >
Accessibility > Raise windows when any mouse button is pressed*.
Enable scrollwheel to shade on window title by checking *Settings Editor >
xfwm4 > mousewheel_rollup*.
Add keyboard shortcuts:
* `Ctrl+Alt+5` => *Fill window*
* `Shift+Ctrl+Alt+Up` => *Move window to upper workspace*
* `Shift+Ctrl+Alt+Down` => *Move window to bottom workspace*
* `Shift+Ctrl+Alt+Left` => *Move window to left workspace*
* `Shift+Ctrl+Alt+Right` => *Move window to right workspace*
* `Ctrl+Alt+8` => *Tile window to the top*
* `Ctrl+Alt+2` => *Tile window to the bottom*
* `Ctrl+Alt+4` => *Tile window to the left*
* `Ctrl+Alt+6` => *Tile window to the right*