Tag Archives: setup

Building a useful .ssh/config file for your SSH connections | setup to configure your .ssh/config file!

Writing a good ssh config file can make your life a whole lot easier especially if your an Linux Admin.

I have written a basic config file below which should be saved in the following location “~/.ssh/config”, when attempting to ssh its the first place SSH looks for instructions by default.

After the config if will go through in detail explain what each line does.

Host: this is like an alias, it will once you attempt to ssh to it, it will resolve using the Hostname field.

Hostname: Look above

Port: The port the ssh server is running on

User: the username you have on the server

Identityfile: This is your SSH private key location

ForwardX11: This is to allow you to see an X GUI session from the remote computer.

Keepalive: the next three are to enable keepalive which will ensure your SSH session stays active even after a period of inactivity. The two subsequent options enable you to configure the frequency of the keepalive packets.

Compression: this enables compression, this is especially useful over slow links. You will need to do more research for the senario which suits your connection and security requirements.

DynamicForward: This enables you to tunnle your connection to the remote host on the specified port. Simply setup your browser on socks5 proxy and point to localhost:port.

LocalForward: This enables you to setup tunneling. Simply specify your local reserved port and your remote IP and port which you want tunneled.

How to setup Nextcloud 13 in a Docker container | how to setup nextcloud 13 on docker

I have written a script which will setup Nextcloud on a Ubuntu Docker container. Ill run through the entire process.

First we need to download the correct image into docker.

Then we need to start the container with the os.

Now we need to find the unique id of the container

Now on the host, so not the container.  Create the script.

Now paste the following into the script.

Now adjust the permissions to make it executable.

Now lets copy it over to the container

Then jump on the console.

Once your connected in, execute the script, this will install setup everything.

Once complete. Hit your web browser, navigate to https://localhost:10000/nextcloud. Should see the logon page, your credentials are Username: admin Password: password

 

Ubuntu installing and preparing Apache2 and PHP7 | how to install and setup apache2 and php on ubuntu

I spent a bit of time this morning setting up apache2 and php, things have changed in the newer versions of Linux.

The following will install apache and php.

This will test if PHP is install and running on the command line.

This will check if the PHP modules are loaded in apache.

Save the following file in the following location.

restart apache

in your web browser navigate to

You should see something like this.

 

 

Setup wireless on a Raspberry PI | raspberry pi wireless wifi setup access point wpa wpa_supplicant hoot

Setting up wireless on a Raspberry Pi is very easy, although while googling the topic you get a huge range of results. Here are the two steps I took to setup my wireless.

Edit interfaces config file.

Under the wlan0 section, ensure it configured to dhcp

Edit the WPA supplicant file and enter your SSID and WPA password.

Your spa_supplicant file should look like this.