Home avatar

Building and implementing end-to-end solutions to solve real-world problems

How to Map a Network Drive Onto Ubuntu 14.04 Permanently

Published on August 11, 2014

Network Drive Mapping

In this simple tutorial, we will guide you on how to map a network drive, using a Windows share as an example, onto Ubuntu 14.04 LTS with read and write permissions permanently. We will be performing all actions in a terminal window. If you’re not familiar with Linux commands, don’t worry; just paste the provided commands into the terminal and hit enter to execute them. We will also include screenshots to make the process clearer.

How to Send Postfix Email With a Custom Form Name Using the -R Option

When it comes to sending email notifications from a server, it’s important to convey information in a clear and recognizable manner. In this article, we’ll explore how to send a Postfix email with a custom form name using the -r option. This will allow us to define a sender name that helps recipients easily identify the source of the email. We’ll go through the process step by step, explaining each component and its significance.

Sharing a Folder With Samba on Unity

Sharing folders using Samba on a Unity desktop environment is a convenient way to enable file sharing between Linux and Windows systems. Samba is an open-source software suite that provides seamless integration between Linux/Unix servers and Windows clients. Here’s a step-by-step guide on how to share a folder using Samba in the Unity desktop environment:

Step 1: Install Samba

If you haven’t already, you need to install Samba on your system. Open a terminal and run the following command to install Samba:

Automatic Screen for SSH Login

You can enhance your SSH experience by automatically starting a screen or byobu session when you log in via SSH. This can help you maintain your sessions, especially when working on remote servers. Here’s how to set it up:

  1. Edit Your ~/.bashrc File: Open your ~/.bashrc file for editing using your preferred text editor. You can use a command like nano ~/.bashrc or vim ~/.bashrc.

  2. Add the following code snippet to the end of your ~/.bashrc file:

CHMOD Directories or Files Only

When you need to modify file permissions recursively in a directory, you can use the chmod command along with the find command in Linux. Here are some commonly used commands to give different permissions to directories and files:

Recursively Give Directories Read & Execute Privileges

To recursively give directories read and execute privileges (755), you can use the following command:

How to Protect SSH With Fail2Ban on Ubuntu 12.04

Servers are not immune to security threats, especially when it comes to SSH (Secure Shell) access. Brute force attacks can compromise your server’s security. Fail2Ban is a tool that automatically defends your virtual private server (VPS) by monitoring log files and responding to malicious behavior. In this guide, we’ll walk you through setting up Fail2Ban on Ubuntu 12.04 to protect your SSH access.

Step 1: Install Fail2Ban

First, you need to install Fail2Ban using apt-get: