Network Posts

Install MySQL / MariaDB on Arch Linux

Install MySQL / MariaDB on Arch Linux

Relational database like MariaDB is one of the required components to setup a web server as well as other less common uses such as when configuring a shared Kodi database. On Arch Linux MySQL has been replaced by a functionally identical community fork called MariaDB. The installation is also practically identical and as simple as can be expected.

Configure XBMC / Kodi Notifications on Linux

kodi-notification

There are many reasons to set up notifications on certain events such as SMART error. Kodi / XBMC has a simple notification system that can be invoked programmatically or via a HTTP request. Before notifications can be received you will first need to install Kodi on Arch Linux and know the IP address and port on which it Kodi is reachable. It would be helpful to configure static IP on Arch Linux or setup static IP on Ubuntu Linux since then the IP would stay constant.

Configure Static IP on Arch Linux

arch-linux

By default most Linux distributions including Arch Linux are configured with DHCP. Dynamically assigned IP is convenient for for desktop computers but quite cumbersome for headless servers. Setting up static IP allows a user defined IP addresses that will remain the same allowing to connect remotely. Arch Linux uses it’s own network configuration tool called netctl. Before you configure netctl profile you will need to find your network interface, gatewaynetmask and DNS.

Configure Samba Public Share

Samba Public Share

Before you configure Samba public share make sure to install Samba on Arch Linux or install Samba on Ubuntu Linux. You will also want to configure Samba shares. The public share is useful for sharing files freely between guest users without any credentials.

Configure Samba Home Share

Samba Shares

Before you configure Samba home share make sure to install Samba on Arch Linux or install Samba on Ubuntu Linux. You will also want to configure Samba home shares. By default user home directories are made available as shares for each user of the same name. This means that if your requirements are only to share UNIX user home directories then you don’t need to make any changes outlined below.

Install Samba on Ubuntu Linux

ubuntu-linux-samba

I have already installed Samba on Arch Linux and the installation has only minor differences compared to Arch Linux. Once Samba is installed you can configure Samba shares, create Samba public share and setup Samba home share.

Configure Home Server Samba Shares

Samba Shares

Before you configure Samba make sure to install Samba on Arch Linux or install Samba on Ubuntu Linux. Once the installation is completed it’s time to create the actual shares and configure access permissions. Samba boasts an overwhelming amount of configuration options but most are unlikely to be needed. Only a handful of options should suffice for simple home server configuration.

Install Samba on Arch Linux

Install Samba on Arch Linux

Samba is a software re-implementation of windows SMB networking protocol. I allows sharing files over the network and is widely supported by both Windows and Linux based operating systems. Once it is installed you can configure Samba shares, create Samba public share and setup Samba home share.

Configure Static IP on Ubuntu Linux

ubuntu-logo

By default most Linux distributions including Ubuntu are configured with DHCP. This means that an IP address and some other parameters are configured automatically. The only issue with dynamic IP is that it can change making remote access a game of chance. Setting up static IP allows a user defined IP addresses that will remain the same unless changed manually.