Ubuntu

Technical Notes

These notes are my personal online notebook of useful commands and "how-to's". You are welcome to make use of them if you find them helpful. They obviously don't come with any warranty! Click on one of the category tags above for the notes in any category.

Setting up NFS on Ubuntu 16.04

Make sure userid’s and groupid’s match between the systems

  • e.g. usermod -u 1001 -g 504 -c "Andrew Fountain" andrewf

Set up the server

  • set up the fully qualified domain name, e.g.

Installing libsass on Ubuntu

The most minimal way of doing an installation is using sassc, the C binding.

apt install git build-essential
cd /opt
git clone https://github.com/sass/libsass.git
git clone https://github.com/sass/sassc.git libsass/sassc
echo 'SASS_LIBSASS_PATH="/opt/libsass"' >> /etc/environment
source /etc/environment
echo $SASS_LIBSASS_PATH # Make sure it worked…
cd libsass/sassc
make
ln -sn /opt/libsass/sassc/bin/sassc /usr/local/bin/

sassc file.scss file.css # run like this

Install php 5.6 on Ubuntu 16.04

By default Ubuntu 16.04 (Xenial) now comes with php 7.0

You can install php 5.6 in parallel and switch between them using the following instructions:

add-apt-repository ppa:ondrej/php
apt update
apt install php5.6 libapache2-mod-php5.6 php5.6-curl php5.6-gd php5.6-mbstring php5.6-mcrypt php5.6-mysql php5.6-xml php5.6-xmlrpc
a2dismod php7.0
a2enmod php5.6
systemctl restart apache2
  • See htt

Setting up Syncthing on an Ubuntu 16.04 server

Resources

PDF printing under ubuntu

To install:

sudo apt-get install cups-pdf

There are a couple of pitfalls:

  1. Getting unreadable PDF
    • Due to wrongly selecting ☒ print to file (which creates an EPS, not a pdf but can be read with some pdf tools
    • Just don’t be tempted to check this box!

Problems upgrading to Ubuntu 15.10

  1. A bad swap file entry in /etc/fstab stopped systemd from booting
  2. systemd did’t like my ssd optimizations:
    • tmpfs /var/lock tmpfs defaults,noatime,mode=0755 0 0 # had to be commented out
    • had to do: mkdir /etc/tmpfiles.d/console-kit.conf to stop another error message

See ubuntuforums.org/…owthread.php

and bbs.archlinux.org/…ewtopic.php for explanations

Kodi on Ubuntu 15.04

Installed basic Kodi 14 with:

add-apt-repository ppa:team-xbmc/ppa
apt-get update
apt-get install kodi
  • This was a recommended back-end to a tuner card, but have not tried it
apt-get install kodi-pvr-tvheadend-hts

Installing Foundation on a bare Ubuntu 14.04 system

Purpose of tools and their dependencies

  • Bower
    • Function: to keep web assets up to date
      • Updates local versions of CSS, JS and HTML (i.e.

Installing OwnCloud on Ubuntu 14.04

apt-get install openssh-server

Follow instructions on www.howtoforge.com/…untu-14.04

making particularly sure to follow them on the first setup screen when the database is chosen.

vi /etc/php5/apache2/php.ini and uncomment the line default_charset = "UTF-8"

service apache2 restart
  • optionally add a line in fstab to put the data somewhere else:
/data/owncloud  /var/www        none    bind    0 0
Syndicate content