Skip to main content
 

So you want to become a neckbeard?

Having wasted too much time installing Ubuntu on a laptop recently, I thought it would be helpful for the future self to document the issues.

Issues

I'm seeing one or more of the following issues with Ubuntu 18.04 LTS:
  • Missing text on the login screen
  • second monitor switching off
  • Hangs
  • Won't boot  directly into the OS
Install Ubuntu 16.04 LTS which is not a piece of garbage.
Migrate SSH keys from Putty to OpenSSH https://askubuntu.com/questions/818929/login-ssh-with-ppk-file-on-ubuntu-terminal/818932
What are the correct permissions for the .ssh folder? Typically you want the .ssh directory permissions to be 700 (drwx------) and the public key (.pub file) to be 644 (-rw-r--r--). Your private key (id_rsa) should be 600 (-rw-------). Lastly, your home directory should not be writeable by the group or others (at most 755 (drwxr-xr-x)).
How do I connect to our team networkshare automatically on startup?
sudo su
apt install cifs-utils
echo "//path/to/windows-share /mnt/team cifs credentials=/etc/samba/credentials,uid=1000 0 0" >> /etc/stab
cat > /etc/samba/credentials <<EOC
username=UserName
password=PassWord
EOC
chown root.root /etc/samba/credentials && chmod 400 /etc/samba/credentials
Change the username and password appropriately verify your userid is 1000 with id -u UserName
I skipped  creating a passphase for my encrypted home directory, how do I do it now?  run "ecryptfs-unwrap-passphrase" in the terminal
How to stop the mouse sticking to the edges of the display https://askubuntu.com/questions/119281/what-is-the-function-of-the-sticky-edges-on-off-setting-in-di...
Can't install vagrant plugins Download vagrant from vagrantup.com
nfsd is not installed sudo apt-get install nfs-kernel-server
vagrant booting vms reports a timetout delete (rm) the IdentityFile mentioned in vagrant ssh-config

This document will get updated as I stumble and fix other issues.

App Alternatives

Clipboard manager https://hluk.github.io/CopyQ/
Remote connection manager https://snapcraft.io/pac-vs
Google Drive https://www.howtogeek.com/196635/an-official-google-drive-for-linux-is-here-sort-of-maybe-this-is-al...
Phrase Expansion https://leehblue.com/ubuntu-text-expander/ https://github.com/leehblue/texpander
Screen Recorder Kazam (https://askubuntu.com/a/29954), installs well with apt. Alternatively Simple Screen Recorder.

 

 

A People Centred Web

Have you ever tried to leave a social network? Want to be free to move web platforms because your needs have changed? Perhaps you might no longer agree with the business practices employed by the service provider, or no longer see the value in paying for having content monetised.

Currently, this means you have to build up new social connections and can't move over your friends as they might not be on the new network. This is a dark pattern employed by the investor-heavy digital media giants to keep people siloed, making it easy to move in but burdensome to move out.

Social networks can then add messages and events on top, keeping the money making engine oiled with an persuasive analytics layer. Other places like media hosting providers where it seems a subscription fee supports the music uploaded to the system but causes artists to lose control over their fan base.

The silo is responsive and cushy yes, but ultimately the users are at the whims of the platform. I have accounts on hundreds of websites because every site wants to identify their users. Sites start their own network; to build things on top off.

It seems to me that it is very wasteful to keep building social graphs and user account systems when we can do so much better. Instead, have the person be in control of the people they interact with, and manage the information that is displayed to them!

Imagine launching a dashboard app that sits on your computer and is independent from any information sources. It's free of tracking and open source to us all and doesn't do too many things. It doesn't belong to anybody but yourself. It's just a window where information from friends can be shown in a timeline. It can connect to a friend's dashboard so you can stay in touch. Hey what's new? It manages who you follow.

Web services you visit can ask permission to add information on your dashboard. Want to see when concert tickets are available for your favourite artist? Allow them to display that. Allow the event provider to display dates of the next group meeting, and the music hoster to add in new tracks from that producer you follow.

Never again be stuck in a silo. Disconnect a source and attach another. A social reader for the new generation.

 

Open your mind

Interesting article about developing your passion and keeping and open mindset.

The belief that interests arrive fully formed and must simply be “found” can lead people to limit their pursuit of new fields and give up when they encounter challenges, according to a new Stanford study.

Read the article

 

Fix slow DNS responses on Ubuntu

I've been finding that browsing has been slow for me lately on my linux box, which has Ubuntu 16.04 installed. After some investigation it seemed worthwhile to try to install a DNS cache to speed up DNS queries. This has sped up successive DNS queries from 21ms to 0ms, removing sluggishness.

sudo apt install bind9
cd /etc/resolvconf/resolv.conf.d
sudo echo "nameserver 127.0.0.1" >> head

Apply the configuration as follows:

sudo resolvconf -u

The improvement can be seen by using dig to query a domain and looking at the Query time output. After the first dig, subsequent digs return in 0 ms.

 

 

More Private Browsing

If you visit this site you will know what browser cookies are and that they are used to store information about you across visits to that website. A typical website will store a few to a few hundred cookies on your computer.

Each cookie has an expiry date for when they are no longer valid and then automatically deleted by the browser. Did you know the lifetime of some of these cookies are several decades in the future and that they are routinely used by data brokers and analytics companies to gather data on you?

That's why I've recommended installing a plugin like PrivacyBadger, to prevent these tracking cookies from being passed back to websites that track you across websites.

But you can also override the maximum lifespan of these cookies. I've experimented and 10-14 days seems to be a good medium between having to login to all your websites all the time and maintaining privacy.

Update: 2019-08-29 - the following no longer works on recent Firefox releases:

On Firefox, open about:config and search for network.cookie.lifetime, you will find network.cookie.lifetime.days (set this to 14) and network.cookie.lifetimePolicy (set this to 3 to override the default behaviour or letting the website decide).

On Chrome or Vivaldi (update: and now Firefox) browsers it's possible to set these values by installing my FreshCookies addon, which does not contain any tracking itself.

 

Hide Trackbacks 1.1.1

Hide Trackbacks is a WordPress plugin that hides pingbacks and trackbacks from your website comments.

I've updated the plugin to indicate it works correctly with WordPress 4.9 and earlier.

 

We're building a dystopia just to make people click on ads

We're building an artificial intelligence-powered dystopia, one click at a time, says techno-sociologist Zeynep Tufekci. In an eye-opening talk, she details how the same algorithms companies like Facebook, Google and Amazon use to get you to click on ads are also used to organize your access to political and social information. And the machines aren't even the real threat. What we need to understand is how the powerful might use AI to control us -- and what we can do in response.

This is why I run PrivacyBadger to block tracking, not ads.

 

Brexit

[caption id="attachment_2699" align="alignnone" width="245"]A perfect illustration for Brexit A perfect illustration for Brexit[/caption]

 

 

The Death Of Stalin

Can't wait to see this film!

 

How to install pip and pipenv properly on Ubuntu 17.10

Ubuntu 17.10 comes with python3 3.6.3 installed by default but not pip and pipenv. We can install install pip systemwide and pipenv into the user local bin so we can use all the convenience when working with our python projects:

wget https://bootstrap.pypa.io/get-pip.py -O /tmp/get-pip.py
sudo python3 /tmp/get-pip.py
pip3 install --user pipenv
echo "PATH=$HOME/.local/bin:$PATH" >> ~/.profile
source ~/.profile

Sources: Installing Python 3 on Linux; pip installation; Installing pipenv; How to permanently set PATH on Linux

Update 9 Nov 2017: replaced curl with wget, thanks Peter

 

Recognising Ogg Vorbis streams in WinAmp

I'm working on a side project where I am broadcasting an OGG Vorbis stream using Icecast. Google Chrome played the stream, and so did VLC, but WinAmp was unable to. It connected to the stream with an HTTP 200 status but could not interpret it.

As it turns out WinAmp requires the mount point to have a file extension for it to detect the stream correctly, so updating the mount point to stream.ogg instead of stream in the icecast configuration did the job.

 

Understanding the adaptive Nintendo Switch

The Nintendo Switch is redefining gaming by adapting to the players environment. Unfortunately, it is widely misunderstood. It provides fun when used alone, with others, or with other Switch owners; in the living room, on the bus, at a desk. It an adaptive console, not a portable one. Any game that can be played like this is going to be a liberating experience, being optimised for how we live and can be played whenever we feel like.

So far, it seems the Nintendo Switch is widely misunderstood, even by game developers, reviewers and gamers alike. This is not surprising because Nintendo attempts to achieve something that no other gaming device has ever tried: gaming anywhere.

The moment everything fell in place for me was when I stopped thinking about Nintendo Switch as a portable console, but as an adaptive console.This explains why it does not become loads more powerful when docked, because that would favour playing on the TV over all the other ways. Nintendo has gone through amazing lengths to let you play together with other Switch owners even without a WiFi network, because it wants gaming everywhere.

A game that is not fun on the TV or playing with others on the same switch is limiting the switch experience and I think we will see a lot of games that are compromised in some way as game developers are getting to grips with the platforms adaptability.

The Switch is a careful balance between offline and online play, individual versus group play, and a study about where gaming can fit in our lives.

 

Banning the "Ban Crypto" Agenda

Cory Doctorow over at BoingBoing.net writes:

Theresa May says there should be no "means of communication" which "we cannot read" -- and no doubt many in her party will agree with her, politically. But if they understood the technology, they would be shocked to their boots.

Perhaps we should no longer assume that politicians 'do not understand the internet' and assume they are asking for changes in the full understanding that they don't achieve the goal for which they're introduced.

As long as the situation that's being created is more favourable for them than the current one it's a net benefit.

Short-term politics is the biggest threat to UK society at the moment and the current government is particularly good at it.

 

Generating Atom feeds from your Lektor site

After quickstarting a Lektor site, a next obvious thing to do is to add a feed to the site's blog. Fortunately, Lektor has a growing ecosystem of plugins, one of them creates atom feeds.

Installation of lektor-atom

The plugin to install is lektor-atom, and is installed via the terminal:

lektor plugin add lektor-atom@0.2
lektor build

This adds a reference to the myproject.lektorproject file with the plugin and installs the plugin into the lektor pipeline.

Configure a feed

However, notice that after building the site no feed is generated! This is because no feeds have been setup yet.

Create a configs/atom.ini containing the following lines (full documentation)

[blog]
name = My Blog feed
source_path = /blog
item_model = blog-post
url_path = /blog/feed.xml

Change the url_path to suit your preferences. Trying to build now would result in an error: E blog/feed.xml (RuntimeError: To use absolute URLs you need to configure the URL in the project config.)

To resolve the build process myproject.lektorproject must be updated with two lines within the project section to indicate the site's live URL and an absolute URL style:

[project]
name = My Project
url = https://myproject.com

[packages]
lektor-atom = 0.2

The site can then build and the resulting feed can be accesssed from https://myproject.com/blog/feed.xml.

 

Vladimir Trump

Watching Trump’s presser, I had a feeling I’d seen it all before?—?while covering Vladimir Putin’s annual news conferences.

Source: A message to my doomed colleagues in the American media – Medium

 

Microsoft continous war on privacy

New controls are arguably an improvement, but data collection remains mandatory for most.

Source: Windows 10 Creators Update to rejig privacy settings in a move unlikely to please anyone | Ars Technica UK

 

You too can improve Firefox

Google Chrome is too dominating, this is not good for the web. So I'm switching back to Firefox, but it can be pretty ugly by default in places.

I like to apply the following tweaks to make it pretty again:

Screenshot-06_01_2017-10_48_22.png

Increase the Address Bar font size

Edit userChrome.css to make style changes to the Firefox UI. My Profile is located at %appdata%\Mozilla\Firefox\Profiles\<Gibberish>, use the previous link to find the location on your system. Inside your profile create a chrome folder and inside that create a userChrome.css. Add the following line:

 { font-size: 13px; }

The possibilities are endless but this does the trick for me. Restart Firefox after saving the file.

Remove unwanted buttons and the searchbox

Right click on any of the toolbar buttons > Customize... to bring up the Customize Firefox screen. Remove unused buttons and the search box (search via the address bar instead) by dragging them to the Additional Tools and Features panel --  or the hamburger menu panel to access them with a click.

Make the tabs square again

Firefox tabs have this rounded look to them, which I find displeasing: install the Squared Australis Tabs addon to add square corners instead.

Hide the menu bar

Did you know you can access the menu bar by pressing the Alt key on your keyboard? The menu bar is visible by default but it is not frequently accessed, so press Alt+V or bring up the View menu bar menu and untick the Menu Bar and optionally the Bookmark Toolbar items.

Hide bookmark toolbar item names

You can blank out the Name of a bookmark to have it display just the icon in the toolbar, which tidies up those frequently accessed sites.

 

Life on Earth is Dying

I would quote part of this article but you should just click the title and read all of it.