Install Hugo on Ubuntu to generate static websites

Whilst there is a .DEB installer to download from the GoHugo sites I get all matter of warnings that the package is of bad quality and I am not comfortable to run these kinds of installers. I rather install from sources in this case which is very straight forward since the main dependencies (largely GO) are in the Ubuntu main repositories. Install dependencies sudo apt-get install golang git mercurial python-pygments Create environment variables vim ~/.bashrc #add the following 3 lines export GOROOT=/usr/lib/go export GOPATH=$HOME/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin Update Bash Environment Variables without logging out. source ~/.bashrc Install Hugo go get -u -v github.com/spf13/hugo Start using Hugo #create new site hugo new sitename /path/to/sitename #change directory to site cd /path/to/sitename #create content page hugo new about.md #edit content page vim content/about.md

Continue Reading

Good bye Android ? Hello Ubuntu ! Not yet unfortunately …

As a long-term Ubuntu user I am extremely interested in what Canonical and the Ubuntu community are doing on the mobile front. Their convergence strategy (I am testing Snappy Core on IoT devices as well) seems very well thought through and once the the Meizu MX4 phone was released I got myself an invite and ordered a unit. It took a while to ship and then also had to make it's way down under as Meizu only ship to Europe (and Asia I believe). Having played with Ubuntu on the phone a while ago on an old Nexus 4 as well as a Nexus 7 unit it was a much more pleasant initial experience and I was really hoping to make this my day-to-day phone. After the initial excitement and a few days of use (including with my main SIM card) however it is clear that we're not at this stage yet. I am quite prepared to forego some conveniences I got used to on CyanogenMod (Android) over the years, but at this stage there are just too many things not working consistently. On the surface most of the critical components are there, but there is just too many bugs and inconsistencies in heavy usage left to make this a solid experience unfortunately. The single button hardware also doesn't seem to work with the UI as in a lot of places you are searching for a back button and there ain't one. And to my surprise the browser feels pretty…

Continue Reading

ChromeOS – removing SSH known_hosts from Chromebook

One of the things that is not implemented in the Secure Shell Chrome extension is the ability to remove know_host fingerprints which alert you if the fingerprint for a specific IP address has changed. However there are times when you upgrade a systems and this need to be done. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the ECDSA key sent by the remote host is d6:be:12:7e:22:23:c3:e1:56:30:d6:cd:65:b7:ab:42. Please contact your system administrator. Add correct host key in /.ssh/known_hosts to get rid of this message. Offending ECDSA key in /.ssh/known_hosts:7 ECDSA host key for xxxxxxxxxxxxx.yyy.au has changed and you have requested strict checking. Host key verification failed. NaCl plugin exited with status code 255. (R)econnect, (C)hoose another connection, or E(x)it? Here is how to remove a known host fingerprint (from known_hosts) on a Chromebook. You can find the index of the offending host entry reported by ssh if the connection fails (see above: "Offending ECDSA key in /.ssh/known_hosts:7"). Then you can open the JavaScript console (CTRL +Shift +J) and type the following into the console. term_.command.removeKnownHostByIndex(INDEX); Replace INDEX with the number obviously. To clear all the known hosts: term_.command.removeAllKnownHosts();

Continue Reading

OpenVPN – fix issues with DNS server assignment (Synology NAS)

Synology NAS systems are great VPN servers for a home or small office. However if you want to connect to the VPN and route all your traffic through the VPN and be able to browse the internet there are a few things you need to change on the Synology server. Theoretically you should be able to set these options on the client, but I have not managed to get this to work with Synology and judging by the amount of forum threads a lot of other people had the same problem. If somebody has a better way to fix this I would love to know. I don't like to manually change these config files as I assume they will be overwritten when making changes to the web-interface. vi /usr/syno/etc/packages/VPNCenter/openvpn/openvpn.conf add the following lines. push "redirect-gateway def1 bypass-dhcp" push "dhcp-option DNS 8.8.4.4" push "dhcp-option DNS 8.8.8.8" Please note that the DNS option are Google's public DNS servers as an example, you probably want to use your ISP's (the one hosting the Synology server that is) DNS IP's instead. Please note that this was tested with Synology DSM version 5.2 only and Ubuntu & Android as the main client OS. Please leave comment for other combinations.

Continue Reading

Finding Notebook Hardware for Ubuntu – 2015 Edition

Unfortunately it is still much harder than necessary to find notebook hardware to use with Ubuntu (or other Linux variants). This blog is full of past experiences (some of them quite time-consuming) on finding notebook hardware that will work without too much fiddling. This short note is to document my recent research on that front to help others who want to do the same (as there doesn't seem to be a lot of good current info around).    by  TAKA@P.P.R.S  There are some vendors that do ship with Ubuntu, however they are generally all based in the US and their pre-sales communications are pretty horrible (I am talking to you ZaReason - still waiting for reply email as well as tweet). Then there is Purism Librem, but unfortunately they have still not shipped their 15" version and I need a tool now. The jury on this is still out and I don't really have the time to be a guinea-pig. Maybe next time (as I like what they are doing) ... There was one option from one of the top-tier manufacturers (Dell XPS 13 - Developer Edition) which ships with Ubuntu. But as - per usual - NOT in Australia. However there was a lot of conflicting evidence I found that the Windows Version had some issues with current Ubuntu versions (Dell ship 14.04 LTS - which makes sense from their point). I ended up buying the Lenovo X1 (3rd Generation) and after the install of Ubuntu I have to say…

Continue Reading

SShuttle – quick and temporary VPN over SSH

Every once in a while you find a gem. One of these for me is SShuttle - until now I have not known about this one.    by  Stephan Geyer  Sometimes you need to quickly forward all your traffic via a remote server quickly. And while you can do all of this manually using OpenSSH it's not a quick one-step process (https://help.ubuntu.com/community/SSH/OpenSSH/PortForwarding). Dynamic SOCKS5 proxies are great if all you need is browser traffic, but there is always software that won't play ball with SOCKS. Use-case: I just been trying to get Ubuntu Make to install Eclipse IDE and the local AARNET download mirror is just refusing to cooperate (https://github.com/ubuntu/ubuntu-make/issues/90). A quick forward to a remote VPS fixed the issue without headaches Install sudo apt-get install sshuttle Run sshuttle -r username@servername.tld 0.0.0.0/0 -vv That's all - it sets up routing & iptable rules transparently and removes them after use. Kudos goes to https://github.com/apenwarr - thank you. A VERY useful utility !!! Source link: https://github.com/apenwarr/sshuttle

Continue Reading

Installing Ubuntu Phone (Touch) on Nexus 7 LTE

Add SDK repository sudo add-apt-repository ppa:ubuntu-sdk-team/ppa sudo apt-get update sudo apt-get install ubuntu-device-flash Enable USB Debugging on the device Make sure you have developer mode enabled (see http://developer.android.com/tools/device.html if you are unsure). Navigate to Settings > Developer options Enable USB Debugging. When a device is connected, you will be prompted in Android to authorize it. Unlock Bootloader adb reboot bootloader fastboot oem unlock fastboot reboot Check that you have the right device adb shell grep ro.product.name /system/build.prop > mydevicedata \ && adb shell grep ro.product.device /system/build.prop >> mydevicedata \ && adb shell grep build.id /system/build.prop >> mydevicedata ro.product.name=razorg ro.product.device=deb ro.build.id=KTU84P Check which channels are available ubuntu-device-flash --server="http://system-image.tasemnice.eu" query --list-channels --device=deb ubuntu-device-flash --server="http://system-image.tasemnice.eu" query --list-channels --device=deb ubuntu-touch/ubuntu-rtm/14.09 ubuntu-touch/ubuntu-rtm/14.09-proposed ubuntu-touch/utopic ubuntu-touch/utopic-proposed ubuntu-touch/vivid ubuntu-touch/vivid-proposed ubuntu-touch/devel (alias to ubuntu-touch/vivid) ubuntu-touch/devel-proposed (alias to ubuntu-touch/vivid-proposed) ubuntu-touch/ubuntu-rtm/devel (alias to ubuntu-touch/ubuntu-rtm/14.09) ubuntu-touch/ubuntu-rtm/devel-proposed (alias to ubuntu-touch/ubuntu-rtm/14.09-proposed) In my case I am going for the currently stable 'ubuntu-touch/vivid' channel. Install Ubuntu Touch ubuntu-device-flash --server="http://system-image.tasemnice.eu" touch --channel="ubuntu-touch/vivid" --bootstrap References Ubuntu Devices: https://wiki.ubuntu.com/Touch/Devices

Continue Reading

Paperless Office using the Raspberry Pi

This is a follow-up on an older blog using Ubuntu.    by  rosmary  For this purpose I used a Fujitsu ScanSnap S1300i scanner as I really like the features of this series (full duplex scan as well auto document feeder as well for around $250). It's document feeder is not a good as the S1500 we have in the office, but very compact and can be powered from USB hub. Raspberry Pi Prerequisites Since this will be a purely headless install designed to sit in a corner behind the scanner I am using a Base Raspian (Debian Wheezy) install (I personally like the clean minimal install via https://github.com/debian-pi/raspbian-ua-netinst the best). apt-get install sudo vim wget wput libusb-dev build-essential git-core Add non-privileged user account(s) adduser USERNAME adduser USERNAME sudo groupadd scanner usermod -a -G scanner USERNAME Install Sane The version of sane from the Raspbian repos is not working with the Fujitsu ScanJet range and needs to be built from source. git clone git://git.debian.org/sane/sane-backends.git cd sane-backends BACKENDS=epjitsu ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var make make install Install S1300i Driver You need to get the driver file ('1300i_0D12.nal') from the CD that came with the scanner. If you still have access to a CDROM drive that is. :( mkdir -p /usr/share/sane/epjitsu/ cp 1300i_0D12.nal /usr/share/sane/epjitsu/ Check /etc/sane.d/epjitsu.conf and see if the following line is there (in my case it was already created by sane build). # Fujitsu S1300i firmware /usr/share/sane/epjitsu/1300i_0D12.nal usb 0x04c5 0x128d sane-find-scanner -q found USB scanner (vendor=0x04c5 [FUJITSU], product=0x128d [ScanSnap S1300i]) at libusb:001:004 found…

Continue Reading

Install Ubuntu 14.04 on a Chromebook

There are plenty of sites out there that give advise on this topic, unfortunately most of them are highly ad-infested to the point of being unreadable as well as only containing single bit rather that an overall picture. This is a collection of useful links to source materials as well as steps necessary to install.    by  Joe Wilcox  Resource Links Crouton Github: https://github.com/dnschneid/crouton - Thank you David Schneider for the excellent work !!! Developer Info for Chromebooks: https://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices Put Cromebook into "developer mode" Back up any data as the process wipes the system Create a restore image for Chrome OS (install the Restore Image Chrome Extension for this task) Enter Developer Mode - hold down ESC and Refresh (F3) keys and press the Power button Download Crouton Script Download link for installer: https://raw.githubusercontent.com/dnschneid/crouton/master/installer/crouton Installing Crouton CTRL+Alt+t to open Cronos Prompt + type "shell" to enter proper bash shell. To see the list of supported releases: sh -e ~/Downloads/crouton -r list To see a list of the supported desktop envoironments (target names): sh -e ~/Downloads/crouton -t help I generally install LXDE on 'resource-challenged' devices. shell sudo sh -e ~/Downloads/crouton -r RELEASENAME -t TARGETNAME -e The '-e' at the end is optional to encrypt the chroot. Which is probably a good idea as the Chromebook in developer mode is completely open and allows any user to access. If you do not specify the Release it defaults to Ubuntu 12.04 (precise) My default install would be: sudo sh -e ~/Downloads/crouton -r trusty -t…

Continue Reading

CyanogenMod 12 on Sony Xperia Z2

Just a quick update of the previous article on "Sony Xperia Z2 upgrading to CyanogenMod 11". One thing is that CM now included the custom recovery and you do not need to download any other custom recoveries ! Download the CM 12 ZIP file for Sony Xperia Z2 (sirius) and extract the 'boot.img' file Download link: https://download.cyanogenmod.org/?device=sirius Get the device into fastboot (bootloader mode) fastboot -i 0xfce flash boot boot.img fastboot reboot Install CyanogenMod Choose the “Install zip from sdcard –> Install from sideload” option adb sideload cm-12-20150219-NIGHTLY-sirius.zip After the install has finished choose the “Reboot system now” option.

Continue Reading