TagRaspbian

How To Install tmux On Raspbian

One of my favourite utilities ever is tmux, no doubts about it. It allows you to create a session when you are connected to a machine via SSH and restore that session later even if your SSH connection drops for any reason. Once you reattach the session, you will be brought back exactly to the point where you were before the disconnection.

This is extremely useful in cases where the command you launched would take a long time to complete (for example, if you are burning in your hard drives for FreeNAS or if you are generating DH parameters when configuring OpenVPN).

Continue reading

How To Fix “sudo: unable to resolve host hostname” In Raspbian

If you are running Raspbian on your Raspberry Pi, you might see a message like the following when you try to sudo after changing your devices’s hostname:

sudo: unable to resolve host hostname

Of course, replace “hostname” with your own machine’s hostname. Everything works just fine even despite this warning, it’s just annoying to look at. Luckily, the fix is very simple.

It is likely that you only changed the hostname in one of two locations, while you should change it in both of these files in order to get rid of this message:

  • /etc/hostname
  • /etc/hosts

That’s it!

How To Install The Nylas Sync Engine On Bare Metal (Ubuntu Server)

After explaining how to build the Nylas N1 email client in my previous post, it’s not time to configure the Sync Engine itself. But before delving into this, a little introduction is in order.

Hosted or self-hosted?

There are two ways to use Nylas:

  • Using their own servers (through a subscription)
  • Hosting the Sync Engine yourself

Continue reading

How To Make the No-IP DUC Automatically Start At Boot On A Raspberry Pi

If you look at the README file inside the noip folder, you will see that, in order to have the No-IP Dynamic Update Client automatically launch at boot on Linux, you have to copy and paste a script inside the relevant rcX.d folder inside /etc/init.d. However, Raspbian does not have this folder, so the procedure is slightly different if you are using a Raspberry Pi (you can find some information here).

These are the steps to follow:

Continue reading

How To Solve Error “CRL: cannot read: crl.pem: Permission denied (errno=13)” In OpenVPN

After enabling CRL checking on my OpenVPN server, I have encountered an annoying permission issue. When I tried connecting from the Android app, the connection would simply timeout. Before enabling CRLs this had never happened, so I realized there must be something wrong with them.

So I looked into the OpenVPN logs (/var/log/openvpn.log) and noticed the following entry:

CRL: cannot read: /etc/openvpn/easy-rsa/keys/crl.pem: Permission denied (errno=13)

The weird thing was that both the crl.pem file and the whole /etc/openvpn folder were owned by root and were perfectly readable with a nano crl.pem when run from the CLI. So from a filesystem point of view, everything looked ok.

Continue reading

© 2018 Daniel's TechBlog

Theme by Anders NorénUp ↑

%d bloggers like this: