How to setup a Static IP address on Debian Linux

Objective

The objective is to configure a static IP address on Debian Linux server.

Please note that for Desktop installations it is recommended to use GUI tools, such as network-manager. If you wish to configure your network interfaces directly via /etc/network/interfaces file on your Desktop, make sure you disable any other possibly interfering network configuration daemons. For example, the below commands will disable network-manager:

# systemctl stop NetworkManager.service
# systemctl disable NetworkManager.service

Operating System and Software Versions

  • Operating System: – Debian 9 (Stretch)

Requirements

Privileged access to your Debian Linux system is required.

Difficulty

EASY

Conventions

Read more

How to install latest Firefox Browser on Debian 9 Stretch Linux

Objective

Debian Linux comes with Firefox ESR (Extended Support Release) version, which in some rare scenarios may not adequately fit your needs. The objective is to replace the Debian’s default Firefox ESR with the latest bleeding edge Firefox.

Operating System and Software Versions

  • Operating System: – Debian 9 Stretch

Requirements

Privileged access to your Debian Linux system will be required.

Difficulty

EASY

Conventions

Read more

VNC server/client setup on Debian 9 Stretch Linux

Objective

The objective is to configure a basic client/server VNC setup on Debian 9 Stretch Linux

Operating System and Software Versions

  • Operating System: – Debian 9 Stretch Linux
  • Software: – vnc4server 4.1.1

Requirements

Privileged access to access do your Debian system may be required to install VNC server and client packages. Fully functional and configured X server.

Difficulty

MEDIUM

Conventions

Read more

How to Setup a VPN with OpenVPN on Debian 9 Stretch Linux

Distributions

This guide is tested for Debian 9 Stretch Linux, but it may work with other recent Debian versions.

Requirements

  • This guide assumes that you’re running Debian on a VPS or a remote server, since that’s the most likely scenario for a VPN.
  • A working install of Debian Stretch with root access

Difficulty

MEDIUM

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Configuring Iptables

Setting up your own VPN is no small task, but there are plenty of reasons that you’d want to do it. For one, when you run your own VPN, you have complete control of it and know exactly what it’s doing.

Security is an important factor for VPNs. It’s possible to set up a simple one in a few minutes, but it won’t be secure at all. You need to take the appropriate steps to ensure that both the server and your connections remain private and encrypted.

Before embarking down this road, you may want to consider encrypting your disks, beefing up kernel security with SELinux or PAX, and making sure everything else is locked down.

Iptables is a big part of server security. You need iptables to ensure that information doesn’t leak out of your VPN. Iptables also works to prevent unauthorized connections. So, the first step in setting up a VPN on Debian is setting up iptables.

Read more

How to install MySQL community server on Debian 9 Stretch Linux

Objective

MySQL is no longer a default SQL database on Debian Linux starting with Debian 9 Stretch. The objective is to install MySQL community server using official MySQL repositories.

Operating System and Software Versions

  • Operating System: – Debian 9 Stretch
  • Software: – MySQL Community Server 5.7.18

Requirements

Privileged access to to your Debian server will be required.

Difficulty

EASY

Conventions

Read more

How to use special permissions: the setuid, setgid and sticky bits

Objective

Getting to know how special permissions works, how to identify and set them.

Requirements

  • Knowledge of the standard unix/linux permissions system

Difficulty

EASY

Conventions

  • # – requires given linux commands to be executed with root privileges either
    directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Introduction

Normally, on a unix-like operating system, the ownership of files and directories is based on the default uid (user-id) and gid (group-id) of the user who created them. The same thing happens when a process is launched: it runs with the effective user-id and group-id of the user who started it, and with the corresponding privileges. This behavior can be modified by using special permissions.

Read more

How to configure Samba Server share on Debian 9 Stretch Linux

Objective

The objective is to perform a basic configuration of Samba server on Debian 9 Stretch Linux to provide access to Samba shares via MS Windows client machine.

Operating System and Software Versions

  • Operating System: – Debian 9 Stretch
  • Software: – Samba 4.5.8-Debian

Requirements

Privileged access to your Debian system will be required.

Difficulty

EASY

Conventions

Read more

Add MongoDB Source On Ubuntu 18.04

Install The MEAN Stack On Ubuntu 18.04 Bionic Beaver Linux

Objective

Install the MEAN stack on Ubuntu 18.04

Distributions

Ubuntu 18.04

Requirements

A working install of Ubuntu 18.04 with root privileges

Difficulty

Easy

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Introduction

The MEAN stack is quickly becoming a favorite among web developers. MEAN stands for MongoDB, ExpressJS, AngularJS, and NodeJS. Clearly, this is a JavaScript heavy tech stack, so it’s not for people who don’t like JS. However, it does provide an excellent framework for building lightweight and fully capable web applications.

Read more

block access to facebook.com

How to block Facebook access on Linux desktop

block access to facebook.comIn this config you can find an easy and cheap solution on how to block Facebook.com on any Linux desktop using /etc/hosts file. This is not a bulletproof solution but should help as a first level privacy protection for your kids, yourself or should aid if your students do not pay enough attention in the class.

Below you can find a list of facebook.com subdomains:

  • m.facebook.com
  • upload.facebook.com
  • apps.facebook.com
  • newsroom.fb.com
  • developers.facebook.com
  • touch.facebook.com
  • pixel.facebook.com
  • static.facebook.com
  • beta.facebook.com
  • graph.facebook.com
  • login.facebook.com
  • inyour.facebook.com
  • secure.facebook.com
  • latest.facebook.com

Read more

cockpit_logo

How to install cockpit on Ubuntu 18.04 Bionic Beaver

Objective

Learn how to install and take advantage of cockpit on an Ubuntu 18.04 machine

Requirements

  • Root permissions

Difficulty

EASY

Conventions

  • # – requires given linux commands to be executed with root privileges either
    directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

cockpit_logo

Introduction

Cockpit is a web-based system administration service, which let us manage machines in a nice and easy way. Its aim is to simplify daily administration tasks, including resources, network and users monitoring and management.

Originally available for the Rhel distributions family, it was possible to install it on Ubuntu 16.04 by using an external ppa. With Ubuntu 18.04 it has been included in the official repositories, therefore its installation has become even simpler and safer.

Read more