Automatically posting GooglePlus articles to Twitter
I have switched most of my Social Media postings to Google+ over the last year. Despite popular opinion being that Google+ is some ‘ghost town’, I find G+ the most useful environment for my particular needs & interests (specially since the introduction of groups). It has in my experience a vastly better signal-to-noise than other social media in particular Facebook.
However I would still like to feed postings through to my Twitter stream. Unfortunately Google has (stupidly / purposely / nastily) not included RSS support to make this possible without much work. There are a few publicly accessibly services out there, but they generally are either not updated or tend to fail very frequently as they hit the API Access limits as soon as they get a few users on their services.
Edit files on remote host via SSH
Whilst most commandline editors have the ability to edit files on a remote host directly this can get messy sometimes when there are multiple files involved. Mounting the remote folder via SSHFS seems to be more reliable in practical use.
Mount
sudo apt-get install sshfs<br></br>sudo addgroup USERNAME fuse<br></br>sshfs remoteuser@remotehost:/remote/path /local/mountpath
Unmount
fusermount -u /local/mountpath
Ubuntu Touch install on Nexus 4
This is the last of a series of alternative mobile OS installs and the easiest install by a country mile !
Install
Everything is quite well documented here: https://wiki.ubuntu.com/Touch/Install.
sudo add-apt-repository ppa:phablet-team/tools<br></br>sudo apt-get update<br></br>sudo apt-get install phablet-tools android-tools-adb android-tools-fastboot<br></br>phablet-flash ubuntu-system --channel devel --bootstrap
That is it really ! This is how a OS change on a mobile should work !
Issues
Ubuntu touch can not yet handle the radio firmware past Android 4.3 devices. So if your N4 was upgraded to Android 4.4 (KitKat) you need to flash the radio to the Android 4.3 (up to Version 2.0.1700.84) else WIFI will not work.
Making VIM the default text editor on Ubuntu
In my never ending quest to find the ideal text editor here is another installment. Since I have been using VIM as my default command line editor for years I thought I give it a try for basic GUI editing as well.
Install and set desktop app & icon
sudo apt-get install
vim vim-gnome
sudo wget --output-document=/usr/share/applications/gvim.desktop
https://raw.github.com/leogaggl/misc-scripts/master/gvim.desktop
sudo wget --output-document=/usr/share/icons/hicolor/scalable/apps/gvim.svg http://gfxmonk.net/images/vim-logo/vim-logo.svg
sudo update-desktop-database
Set MIME defaults
vim ~/.local/share/applications/mimeapps.list
#add or edit the following mime type and add others as needed
text/plain=gvim.desktop;`
Install FirefoxOS on Nexus S (GT-9023)
I just had one of my old hand-me-down phones returned by my offspring in a great condition (junior is very careful with his equipment – well done young man !). This doesn’t happen all too often shows that the Nexus S is a decently built phone. This is also a good example of breaking the built-in obsolescence of modern phones. This particular unit has served me well for nearly 2 years (my average is one year) and served 2 kids after that.
Ubuntu 13.10 based Python/Django/WSGI setup
I am currently looking into the use of Django for one of my extra-curricular projects and needed to set up a development environment on Ubuntu. This is the log for future reference and hopefully useful for anybody needing to do the same.
Dependencies & Django Installation
Core Dependencies & Django
sudo apt-get install apache2 apache2-mpm-itk libapache2-mod-wsgi mysql-server python-django python-mysqldb
Optional add-ons
For my purposes I need a few more additional modules
sudo apt-get install python-networkx python-imaging python-pythonmagick python-markdown python-textile python-docutils python-pymongo
Ubuntu Apache2 - run VHOST as different user
There are several reasons why you might want to run different Apache Virtual Hosts as separate users from the Apache user account. My most frequent usage is on my development machine to allow running from my home directory.
The most commonly recommended option for this purpose is MPM-ITK (a quick hack would be to add yourself to the www-data group using “sudo usermod -a -G www-data USERNAME”)
sudo apt-get install apache2-mpm-itk<br></br>sudo a2enmod mpm_itk
Re-index media files on Synology NAS servers
One of the annoying things with Synology NAS servers is the fact that a video file moved to the filesystem does not automatically appear on the DNLA share on client devices. It needs a re-index of the media files.
You can log into the HTML Admin Console and start a re-index, however this will be a full re-index and most likely take ages to complete. A quicker way is to connect to the SSH Console and issue the following command:
Installing libdvdcss on Ubuntu 13.10
With the demise of the Medibuntu repository and libdvdcss not being hosted in the main Ubuntu repos due to licensing issues a new repository is needed from 13.10 upwards. Thanks to the good folks at VideoLAN (makers of the awsome VLC Video Player) there is a ready and updated source available.
wget ftp://ftp.videolan.org/pub/debian/videolan-apt.asc | sudo apt-key add -<br></br>echo "deb ftp://ftp.videolan.org/pub/debian/stable ./" | sudo tee /etc/apt/sources.list.d/libdvdcss.list<br></br>sudo apt-get update<br></br>sudo apt-get install libdvdcss2
Ubuntu - paperless office on a budget
Since paper and myself have never gotten on well I have always been dreaming of a paperless office. A while ago I purchased a Fujitsu ScanSnap S1500 scanner for the office. I did this after doing some research on which Automatic Document Feed (ADF) multipage & duplex scanners were both affordable as well as supported on Linux.
- scan the document
- perform OCR to convert to text
- combine the text with PDF to create a searchable PDF
- OPTIONAL – send the resulting document into Alfresco Document Management Server via FTP
Install dependencies
NOTE: PPA is only required for support of Fujitsu ScanSnap S1500
sudo apt-add-repository ppa:rolfbensch/sane-git<br></br>sudo apt-get update<br></br>sudo apt-get install sane sane-utils imagemagick tesseract-ocr pdftk libtiff-tools libsane-extras exactimage wput
Quick Adobe Reader install on Ubuntu 13.04
Whilst EVINCE is a very capable PDF Viewer, if you have a need to fill in editable PDF forms it is required to install the Adobe PDF Reader.
sudo add-apt-repository "deb http://archive.canonical.com/ precise partner"<br></br>sudo apt-get update<br></br>sudo apt-get install acroread
PS: If anybody is aware of an Open Source alternative to the Adobe Reader for editable form please leave a comment !
Installing Custom ROM on Galaxy S4 International from Ubuntu
Or as an alternative title “Liberating your Galaxy S4 Hardware from Samsung Bloatware”.
Unfortunately there is lots of (ad-infested) blogs and forums with dodgy pieces of information on this topic and I found it pretty hard to get descent concise information. So hopefully this might help some poor Linux User liberate their phone. Whilst this has been tested on a Samsung GT-I9505 S4 International LTE device (JFLTEXX series) it should be applicable to other similar Samsung phones that are not fastboot capable (ie. all but the Galaxy Nexus range).