How to setup the rsync daemon on Linux

How to setup the rsync daemon on Linux

In a previous article we saw some basic examples of how to use rsync on Linux to transfer data efficiently. As we saw, to synchronize data with a remote machine we can use both a remote shell as  ssh or the rsync daemon. In this article we will focus on the latter option, and we will see how to install and configure rsyncd on some of the most used Linux distributions.

In this tutorial you will learn:

  • How to install and configure the rsync daemon

Read more

How to manage partitions with GNU Parted on Linux

Objective

Learning how to manage partitions using the GNU parted partition manager on Linux.

Requirements

  • Root permissions

Conventions

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

Introduction

Partitions management is one of the most essentials and dangerous task to perform when working with operating systems. In this tutorial we will focus on the use of GNU parted and see how we can use it to create, resize and delete partitions from the command line interface. Parted can work both in interactive and non-interactive mode, the latter being particularly useful when we want to automate some operations or when commands must run in an unattended context, perhaps in a script or inside a kickstart file.

Read more

main-image

How fstab works – introduction to the /etc/fstab file on Linux

The /etc/fstab file is one of the most important files in a Linux-based system, since it stores static information about filesystems, their mountpoints and mount options. In this tutorial we will learn to know its structure in details, and the syntax we can use to specify each entry in the file.

In this tutorial you will learn:

  • How to use the fstab file to provide static filesystem information
  • How the fstab file is structured
  • What is the purpose of each entry field in the file

Read more

Kickstart GUI

Automating Linux installations with Kickstart

Introduction

Red Hat, and their community effort, Fedora, are more or less enterprise-oriented. That being said, it’s only natural they offer enterprise-specific tools that don’t quite make sense on other desktop oriented operating systems. In the enterprise environment, where the system administrator has to manage lots of machines and installations, one tool that helps a lot is one that facilitates automated installations on several computers, using the same options for each of them. Instead of installing each system separately, the administrator just boots the installation media, tells the system where to find the options for installation and comes back after an hour to check on the system. It’s a tremendous advantage in terms of time and effort, especially when dealing with lots of systems. Just like HP-UX offers Ignite or OpenSUSE offers AutoYAST, Red Hat/Fedora offers Kickstart. You will learn what that is, how to get the best of it and how to use the newly created Kickstart file. We assume basic knowledge of Linux and we recommend you try this in a virtual machine first before going into production.

Read more

Include 301 redirect into apache httpd.conf – Hostgator hosting

Hostgator VPS generates apache’s httpd.conf file automatically. Therefore, any new lines you add to apache’s configuration file will be overwritten. In order to add new configuration settings we need to include a configuration. Open up your main config file /etc/httpd/conf/httpd.conf and search for a virtual host with the domain name you wish to edit. Last two lines of your virtual host should look similar to this:

# To customize this VirtualHost use an include file at the following location
#    Include "/usr/local/apache/conf/userdata/std/2/linuxcon/linuxconfig.org/*.conf"

uncomment the Include line by remove leading “#”.

Next, create a directory to reflect the Include location:

# mkdir -p /usr/local/apache/conf/userdata/std/2/linuxcon/linuxconfig.org/

Read more

Password cracking with John the Ripper on Linux

Password cracking with John the Ripper on Linux

Introduction

For those of you who haven’t yet heard about John the Ripper (hereby called John for brevity), it is a free password cracking tool written mostly in C. Before going any further, we must tell you that although we trust our readers, we do not encourage or condone any malicious activities that may be performed using this tool or any other tools we talked about in the past. Security-related tools are often like a double-edged sword, in that they can be used for good but also for bad things. So although it might sound tempting, we recommend you to refrain from any damaging activities, if for nothing else, just because you have great chances to land in a jail cell. Password cracking with John the Ripper on LinuxThis article will deal with John from a system administrator’s perspective, so we expect you to have intermediate knowledge about your Linux system, whatever distribution that may be, and that you are a security-conscious person with basic security knowledge. However, this article might appeal to you also if you are a home user wanting to learn about these kind of things, but be warned: some of the commands presented below will ask a great deal of your CPU time, so maybe it would be better if you had a test machine and/or lots of time and patience, because password cracking attempts may take days, even on a relatively new machine. As usual please refer to our new Linux Forum for additional help or information.

Read more

Select x11vnc port window

How to share your desktop in Linux using x11vnc

Objective

Learning how to share you desktop using the vnc protocol and the x11vnc application

Requirements

  • Having the x11vnc package installed

Conventions

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

Introduction

While ssh is a vital tool for every system administrator, being it the most used and secure protocol for remote administration, even capable to grant access to the X11 display server, via X11 forwarding, it is not the right tool to use when the desired target is to share an entire desktop session. In that case the vnc protocol is our friend. By using it, we can completely control another machine, sharing even keyboard or mouse events.

Read more

Install OpenCL For The AMDGPU Open Source Drivers On Debian and Ubuntu

Objective

Install the OpenCL portion of the AMDGPU-PRO drivers on Debian and Ubuntu.

Distributions

Debian and Ubuntu

Requirements

A working install of Debian or Ubuntu with root privileges

Conventions

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

Introduction

The proprietary AMDGPU-PRO drivers only support a select small subset of Linux distributions. Non-LTS Ubuntu releases aren’t supported, and Debian users are completely out of luck. To make things worse, AMD doesn’t provide OpenCL support through their open source drivers.

There is good news. You can install just the OpenCL parts of the AMDGPU-PRO drivers on your Debian or Ubuntu system using the packages provided by AMD. There’s a very specific way that you need to go about it, but it can be done, making things like mining cryptocurrency on an AMD card possible.

WARNING: This may interfere with your existing drivers, resulting in poor performance and instability. Proceed with caution.

Read more

dd-manpage

How dd command works in Linux with examples

Dd is a very powerful and useful utility available on Unix and Unix-like operating systems. As stated in its manual, its purpose is to convert and copy files. On Unix and Unix-like operating systems like Linux, almost everything is treated as a file, even block devices: this makes dd useful, among the other things, to clone disks or wipe data. The dd utility is available out of the box even in the most minimal installation of all distributions. In this tutorial we will see how to use it and how we can modify its behavior by using some of the most commonly used options to make your Linux system administration job easier.

In this tutorial you will learn:

  • How to use dd
  • How to modify the program behavior by using some of the most commonly used options

Read more

Curl command on Linux

Curl file download on Linux

The cURL linux command can use various network protocols to download and upload data on Linux. Normally, using the cURL command is pretty basic, but it has a ton of options and can grow more complicated very quickly. In this guide, we’ll go over some of the more common uses for the cURL command and show you syntax examples so you can use it on your own system.

In this tutorial you will learn:

  • What is cURL and what can it do?
  • How cURL compares to wget
  • How to download a file from a website with cURL
  • How to follow redirects
  • How to download and untar a file automatically
  • How to authenticate with cURL
  • How to download headers with cURL
  • How to use quiet mode with cURL

Read more

test Internet connection on Linux

How to test Internet connection on Linux

In this tutorial you will learn how to test internet connection on Linux operating system. When we talk about the internet connection usually this for everybody means different thing. Meaning, you might be connected to the Internet but unable to browse any web sites.

In this tutorial you will learn:

  • How to test internet connection
  • How to test DNS resolution
  • How to test Local Area network
  • How to check your DNS resolution

Read more