Link: How to automount NTFS partitions in Ubuntu on startup to unleash full potential of Unity search

Under normal circumstances, the unmounted status of NTFS drives/partitions does not make much of a difference to the end user. A simple double-click will mount and open the drives. But with the advent of Unity and Dash search, the matter has acquired a new dimension now. Recently used files (and apps) are featured prominently and without the automounting of all drives and partitions, this feature is good as useless.

Full article here:
How to automount NTFS partitions in Ubuntu on startup to unleash full potential of Unity search (Tech Drive-in)

Xvidtune: a Linux command line interface to print or switch the video mode and/or interactively adjust existing video modes

From the Ubuntu manuals page for xvidtune – video mode tuner for Xorg:

Xvidtune is a client interface to the X server video mode extension (XFree86-VidModeExtension).

When given one of the non-toolkit options, xvidtune provides a command line interface to either print or switch the video mode.

Without any options (or with only toolkit options) it presents the user with various buttons and sliders that can be used to interactively adjust existing video modes. It will also print the settings in a format suitable for inclusion in an xorg.conf file.

Normally the Xorg X servers only allow changes to be made with the XFree86-VidModeExtension from clients connected via a local connection type.

Note: The original mode settings can be restored by pressing the ‘R’ key, and this can be used to restore a stable screen in situations where the screen becomes unreadable.

Emphasis added. We had not heard of Xvidtune before, and it seems like it could be a handy tool to have in certain situations. See the manual page for your Linux distribution, or the Ubuntu manuals page for xvidtune for additional information. However, Tecmint warns:

Note: The Incorrect use of this program can do permanent damage to your monitor and/or Video card. If you don’t know what you are doing, don’t change anything and exit immediately.

Source: 8 Useful X-window (Gui Based) Linux Commands – Part I (Tecmint)

Link: How To Configure Port Knocking Using Only IPTables on an Ubuntu VPS

Servers that are connected to the internet are subjected to all manners of attacks and probes by malicious users, scripts, and automated bots. It is sometimes a balancing act to secure your server from attacks without affecting legitimate access to your services and resources.

Certain types of services are meant to be visible and consumable to the public internet. An example of this is a web server. Other types of services are typically used by only the system administrator or a select number of individuals and are not meant to be a public resource.

A concept known as port knocking is a way of shielding processes that fit into the latter description. Port knocking works by covering the ports associated with a process behind a firewall until a specific, predetermined sequence of network activity occurs. At this point, the port knocking service reconfigures the firewall to allow access to the protected application.

Full article here:
How To Configure Port Knocking Using Only IPTables on an Ubuntu VPS (DigitalOcean)
Related:
How To Use Port Knocking to Hide your SSH Daemon from Attackers on Ubuntu (DigitalOcean)

Link: How to Use Btrfs On Newly Installed Disks (+ additional Btrfs links)

Btrfs (pronounced ‘Butter F S’) is an advanced filesystem for Linux which can work across multiple hard disks and supports different fault tolerance models like RAID 0, RAID 1 and RAID 10. Btrfs has been in development since 2008 and it is what is known as a “copy on write” filesystem which means that when the data changes in a block, then the block will be copied a new block written to the disk with the changes incorporated. This means that blocks are never modified but rather new blocks are created and the old blocks are later reused. This has advantages for performance especially when ensuring consistency and integrity (even after a power interruption).

Full article here:
How to Use Btrfs On Newly Installed Disks (Make Tech Easier)

Related articles from ZDNet:
Btrfs hands on: My first experiments with a new Linux file system
Btrfs hands on: An extremely cool file system
Btrfs hands on: Exploring RAID and redundancy
Btrfs: Exploring its powerful filesystem subvolumes and snapshots
Btrfs hands-on: Exploring the error recovery features of the new Linux file system

Link: Linux: Keep An Eye On Your System With Glances Monitor

Is there is a tool that can provide me a maximum of information (such as cpu, disk I/O, network, nfsd, memory and more) about my Linux/Unix server in a minimum of space in a terminal?

…..

Say hello to Glances

From the project home page:

Glances is a free (LGPL) cross-platform curses-based monitoring tool which aims to present a maximum of information in a minimum of space, ideally to fit in a classical 80×24 terminal or higher to have additionnal information. Glances can adapt dynamically the displayed information depending on the terminal size. It can also work in a client/server mode for remote monitoring.

Full article here:
Linux: Keep An Eye On Your System With Glances Monitor (nixCraft)

Note that in addition to the above article, the project page for Glances can be found here.

Link: Record Audio from System/Microphone/Applications with ‘Audio Recorder’, Available for Ubuntu/Linux Mint

Audio Recorder is an amazing audio recording program, this small tool allows user to record audio from microphones, webcams, system sound card, media player or web browser & etc. It can save recording in various formats listed: Ogg, Mp3, Flac, Wav (22khz), Wav (44khz) and Spx.

Full article here:
Record Audio from System/Microphone/Applications with ‘Audio Recorder’, Available for Ubuntu/Linux Mint (Noobs Lab)

Link: Install And Learn How To Use ufw Firewall In Linux

Ubuntu does not have many open ports by default, but there are times when you want to restrict access to a port(ports) or a specific ip adress. Maybe you run a ssh server in your ubuntu machine and want to block everyone from connecting to it, except yourself. Have you ever thought how to accomplish such things or tried to do it? You need a firewall to do that. In this article I will explain what is a firewall and teach you how to use the ufw ubuntu firewall by giving real world examples of it.

Full article here:
Install And Learn How To Use ufw Firewall In Linux (LinOxide)

How to run a program every time a user logs in to Linux (and where the startup configuration files are stored)

Sometimes new Linux users want to know how to run a particular command or shell script every time a user logs in (which also implies that if it’s a single-user system, this could be a command that runs when the system starts). In Ubuntu and its many variants, you can simply place the startup command in Ubuntu’s Startup Applications Preferences, as we demonstrated in the article, Enabling a SOCKS proxy via SSH tunnel in Ubuntu or Mac OS X at startup.

Ubuntu Startup Applications Preferences - adding SOCKS proxy
Ubuntu Startup Applications Preferences – adding SOCKS proxy

However, you may be on a variant of Linux that doesn’t have a Startup Applications Preferences program, or maybe you simply want to add something from the command prompt. Or maybe you want to tweak an existing startup command to do something different. The key to this is that the startup configuration files for each user are stored in the ~/.config/autostart directory (where ~ is the user’s home directory). The actual format of the files may differ between different variants of Linux, and some versions may not utilize them at all, but if that directory exists on your system, that’s probably where they are stored. There are also system-wide autostart files; those are found in the /etc/xdg/autostart directory, at least on Ubuntu-based systems.

For example, referring back to the command to activate a SOCKS proxy when Ubuntu starts (the first example in the article referenced above), what happens when you create that command in the Startup Applications Preferences is that it creates a file named ~/.config/autostart/screen.desktop (the filename will be different for each autostart command), which in turn contains the actual script that’s run at startup (similar to this example):

[Desktop Entry]
Type=Application
Exec=screen -dmS tunnel ssh username@server_address -D local_socks_proxy_port
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=SSH Tunnel
Name=SSH Tunnel
Comment[en_US]=SSH SOCKS proxy tunnel
Comment=SSH SOCKS proxy tunnel

The startup scripts can contain much more than just this. When you install certain programs that autostart, they will write considerably more complicated configurations. In Ubuntu, you can take a look at the /etc/xdg/autostart/update-notifier.desktop file as an example of a more complex configuration file.

Possibly the best way to figure out the format of these files is to take a look at several of them in the directories mentioned above, since they may well differ to some degree in different versions of Linux. There are other ways to start programs at startup in Linux, but they may run at system startup before a user has logged in, or they may only execute if a user logs in using a terminal session, but not when they bring up a desktop session. The method shown here is supposed to work no matter how a user logs into the system. And, it can sometimes be useful to know where Linux stores its configurations.

Link: Do More, Faster In The Linux Terminal With Midnight Commander

This is the program we always install first in any new Linux-based installation, and if for some reason we can’t install it, that system tends to get blown away and replaced by a different version of Linux (or whatever) almost immediately. Not being able to install Midnight Commander is kind of a deal-breaker around here.

File browsing in a Linux terminal is alright, but it could be so much better. Midnight Commander is the program you’re looking for –  it gives you a two-paned file browser that makes working in the terminal so much easier. And the best part? It’s simple to get and use.

Full article here:
Do More, Faster In The Linux Terminal With Midnight Commander (MakeUseOf)

We’ll just add that even some Mac OS X users are apparently lost without Midnight Commander, since an older article on installing it under OS X is still one of the most popular on this site, even though for day-to-day use, we would think that most OS X users would be happier with the more recent versions of XtraFinder, which now includes dual pane functionality (and it’s free!). As for Windows users, there is always the venerable Total Commander.

Alternatives to the OS X “Time Machine” program for Ubuntu and other Linux users

Make Tech Easier has a few articles online that mention programs that Ubuntu users (and possibly users of other varieties of Linux) can install that more or less emulate the “Time Machine” feature of Mac OS X. The first article is from back in 2008:

Time machine For Ubuntu? Try Timevault and Flyback

The problem with the software mentioned in that article is that neither has been updated in years. However there is a much newer option, that would probably be the best choice for many users:

Automate Your System Backup With Back In Time

That one backs up your entire system, or anything you tell it to. The is one additional newer option:

Restore Your Linux System to Earlier Date with TimeShift

The problem with that one is that as the article explains, it will “…only backup and protect system files and settings. It doesn’t handle your data and document…” and apparently that’s by design. So if that’s what you’re looking for – and it could be useful, particularly if you like to try the latest and greatest versions of your system software – then go for it.

And yes, we are aware that some experienced Linux users will skip the GUI’s and just create their own backup schedules using rsync, but the problem with that is that a lot of newer Linux users just can’t seem to grasp rsync, nor do they want to. They just want a convenient backup program that’s at least somewhat akin to Time Machine on the Mac. And we’ve previously posted articles or links related to Grsync : Graphical rsync backup tool on Ubuntu (12.10 / 13.04 / 13.10), Redo Backup and GPartEd Live to backup a working system and restore it to a new (possibly larger) drive, and Disaster recovery with MondoRescue. So, there are many options out there for Linux users, and if you have a favorite one that we’ve missed (non-commercial only, please), feel free to leave a comment and let us know!

EDIT: Some additional links we’ve created or come across since this article was originally published:

Easy Linux backup software with Time Machine like functionality | Nuxified.org (TechNotes)
Link: Time Machine for every Unix out there (TechNotes)
Attic – Deduplicating backup program (Ubuntu Geek)
Backing Up on Linux with Duplicity (Linux.com)
Disk ARchive (dar) – “dar is a shell command that backs up directory trees and files, taking care of hard links, Extended Attributes, sparse files, MacOS’s file forks, any inode type (including Solaris Door inodes), etc. It has been tested under Linux, Windows, Solaris, FreeBSD, NetBSD, MacOS X and several other systems, it is released under the GNU General Public License (GPL).”
Relax-and-Recover – “Relax-and-Recover is a setup-and-forget Linux bare metal disaster recovery solution. It is easy to set up and requires no maintenance so there is no excuse for not using it.”
Rsnapshot (Rsync Based) – A Local/Remote File System Backup Utility for Linux (Tecmint)
Time rsYnc Machine (tym) – “A backup utility with the approach popularized by the Time Machine of Apple.”