Saturday, January 30, 2016

rsync is awesome

~$ rsync -aP --delete src dst

Simply replace src with target folder and dst with folder where you want to copy the contents of src to. The first time, it works like regular copy. Subsequent runs, it works like magic!

--delete can be a dangerous depending on what you want to do. There’s a nice post over at DIgital Ocean to get you started. You can also refer to the man pages for all the options available to tweak rsync’s behaviour.

Sunday, January 17, 2016

Add 7zip support to Archive Manager

Gnome’s Archive Manager software doesn’t support .7z archives by default. You’ll need to install a package available from the Ubuntu repositories.

~$ sudo apt-get install p7zip-full

Once installed, you’ll be able to extract .7z archives using Extract Here in the right click menu.

Source: Ask Ubuntu

Saturday, January 09, 2016

How to mount exFAT partitions on Ubuntu

It’s been a while since I’ve come across a file system that wasn’t supported by default on Ubuntu Linux. Even NTFS partitions Just Work nowadays. So imagine my surprise when I plugged in a 64GB USB key (my first; I’ve only used 16GB up till now) and Ubuntu gave me this error.

Screenshot from 2016-01-09 10-27-48.png
Oh noes... exFAT don't work out of the box

Thankfully, the open source community already has a ready solution. Finding a fix was a simple Google search away. How-To Geek has a nice simple post on this. I’ll just include the command I’m interested in, here.

~$ sudo apt-get install exfat-fuse exfat-utils

After installation is complete, devices using exFAT should work automagically.

Saturday, November 28, 2015

Post-installation setup for Ubuntu

After installing Ubuntu, you’re not done yet.

You need to install more stuff post-install depending on what you use your desktop for, primarily. So, here’s a list of things I installed after a clean installation of Ubuntu.

This serves mainly as a reminder for myself (because my memory for these things is absolutely horrid), but hopefully others wondering what else they need on their setup will find this somewhat helpful.

Here goes.

build-essential

Programmer, or not, you’ll probably occasionally need to compile something from source. If my bad memory isn’t misleading me, proprietary GPU drivers also make use of this package to compile their kernel modules.

~$ sudo apt-get update
~$ sudo apt-get install build-essential

ubuntu-restricted-extras

Because intellectual property.

~$ sudo apt-get update
~$ sudo apt-get install ubuntu-restricted-extras

Ubuntu Make

For the programmer in you. As I understand it, this is only available on the latest version of Ubuntu and development versions of Ubuntu. I just need this for Android Studio.

~$ sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
~$ sudo apt-get update
~$ sudo apt-get install ubuntu-make

The boring details are on the wiki.

Oracle Java
Screenshot from 2015-11-28 11-03-23.png
Oracle Java downloading through Terminal

Android Studio makes a fuss over OpenJDK so, this just shuts it up. If you just need the runtime to run some Java-based software ubuntu-restricted-extras should already have install OpenJDK runtime for you.

~$ sudo add-apt-repository ppa:webupd8team/java
~$ sudo apt-get update
~$ sudo apt-get install oracle-java8-installer

At time of writing Java 8 is the recommended install. More details on Launchpad.

Android Studio

Google’s Android IDE. It’s better than Eclipse but it still kinda sucks. I hope someday somebody makes something awesome instead.

~$ umake android

Ex Falso

Ex falso is the best mp3 tag editor I’ve encountered so, I’ll use it until I find something better.

~$ sudo apt-get update
~$ sudo apt-get install exfalso

Thunderbird

Although Thunderbird is a e-mail client, I use it as a RSS feed reader. I’m sure there’s better options out there but I'm too lazy to search right now.

~$ sudo apt-get update
~$ sudo apt-get install thunderbird

Samba

I’d like my computer to never have to touch a Windows machine, but reality says otherwise. This lets me share folders on my computer that is accessible from Windows.

~$ sudo apt-get update
~$ sudo apt-get install samba libpam-smbpass

After installing, just share a folder from the GUI context menu, but if you want the nitty gritty details the wiki is available.

Kodi

The HTPC video player. I’d like to use Totem but it doesn’t handle subtitles or dual/multi-audio very well. VLC just isn’t my thing.

~$ sudo apt-get update
~$ sudo apt-get install kodi

That should be it. With that all the use cases I need should be covered.

Saturday, October 31, 2015

Bluetooth in Gnome Shell > Unity

Compared to Unity 7 back in Ubuntu 15.04, Bluetooth support seems much simpler in Ubuntu Gnome 15.10. In 15.04 I had to key in the default PIN to pair my headphones. That, after a clunky process of retrying multiple times. After that, it was hit or miss whether Ubuntu remembers the pairing once you reboot the system.

Screenshot from 2015-10-31 15-04-20.png
Gnome's Bluetooth Settings app

On Ubuntu Gnome 15.10, pairing my headphones is much simpler.

  1. Set headphones to pairing mode.
  2. Click on your device in Gnome’s Bluetooth Settings.
  3. When it says “Connected” you’re done.

Super simple.