Awesome VIM clutch. A hardware pedal for improved text editing in Vim

Posted on in Categories Link last updated April 22, 2017

That is right. I found a hardware pedal for improved text editing in Vim. This is a mind blowing hack for vim user.

VIM Clutch is a hardware pedal for improved text editing speed for users of the magnificent VIM text editor (1, 2). When the pedal is pressed down, the pedal types “i” causing VIM to go into Insert Mode. When released, it types and you are back in Normal Mode.

The final result:

The first VIM Clutch
The first VIM Clutch

=> See How To Build your own VIM Clutch

How to execute sudo without password?

Posted on in Categories Link last updated April 18, 2017

If you are the only sysadmin or developer, you can skip password when you run sudo command. By default, sudo asks for the password. Here is how you can run sudo without having to enter your password.

I’m a new Unix system user. How do I use sudo command without a password on a Linux or Unix-like systems? I log in as [email protected] and disabled root login for ssh. After login, I need to run some commands as root user. I am the only sysadmin using my server. How do I run or execute sudo command without a password for a user named Tom under Debian/Ubuntu/CentOS Linux cloud server?

How to run sudo command without a password on a Linux or Unix

Issue #2

Posted on in Categories Link last updated February 26, 2017

Welcome to nixCraft newsletter for Sunday 26 Feb 2017.

Awesome Lists

News from around the web

Video

Download Free eBook PDF: The Awk Programming Language

Posted on in Categories Link last updated January 23, 2017

AWK is a programming language designed for text processing and typically used for a data extraction and reporting tool. It is a standard feature of Linux, FreeBSD, OpenBSD, MacOS and most Unix-like systems.

The Awk Programming Language
The Awk Programming Language

This is one of my favorite books. It is a superb book if you are looking to learn about AWK. AWK is very fast when it comes to data processing. I highly recommend this classic book to all Unix fans.

Download The Awk Programming Language Book PDF Version {11.7 MB} or use wget command as follows:
$ wget https://archive.org/download/pdfy-MgN0H1joIoDVoIC7/The_AWK_Programming_Language.pdf
Sample outputs:

--2017-01-23 10:17:18--  https://archive.org/download/pdfy-MgN0H1joIoDVoIC7/The_AWK_Programming_Language.pdf
Resolving archive.org (archive.org)... 207.241.224.2
Connecting to archive.org (archive.org)|207.241.224.2|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://ia802309.us.archive.org/25/items/pdfy-MgN0H1joIoDVoIC7/The_AWK_Programming_Language.pdf [following]
--2017-01-23 10:17:19--  https://ia802309.us.archive.org/25/items/pdfy-MgN0H1joIoDVoIC7/The_AWK_Programming_Language.pdf
Resolving ia802309.us.archive.org (ia802309.us.archive.org)... 207.241.228.49
Connecting to ia802309.us.archive.org (ia802309.us.archive.org)|207.241.228.49|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8204128 (7.8M) [application/pdf]
Saving to: 'The_AWK_Programming_Language.pdf'

The_AWK_Programming_Language.pdf            100%[========================================================================================>]   7.82M  11.7MB/s    in 0.7s    

2017-01-23 10:17:20 (11.7 MB/s) - 'The_AWK_Programming_Language.pdf' saved [8204128/8204128]

Patch your FreeBSD server for openssh vulnerabilities [11/Jan/2017]

Posted on in Categories Link last updated January 11, 2017

OpenSSH is critical for both sysadmin and programmers. It is an implementation of the SSH protocol suite, from OpenBSD project. It provides an encrypted session to your server.

OpenSSH multiple vulnerabilities

OpenSSH has multiple vulnerabilities as of 11th January 2017 running on FreeBSD operating system. From the advisory:

The ssh-agent(1) agent supports loading a PKCS#11 module from outside a trusted whitelist. An attacker can request loading of a PKCS#11 module across forwarded agent-socket. [CVE-2016-10009]

When privilege separation is disabled, forwarded Unix domain sockets would be created by sshd(8) with the privileges of ‘root’ instead of the authenticated user. [CVE-2016-10010]

Solution

I updated my vulnerable FreeBSD box via a binary patch:
# freebsd-update fetch
# freebsd-update install
# service sshd restart
# ps aux | grep -i ssh-agent

If found any ssh-agent process, kill all running ssh-agent:
# killall ssh-agent

Fig.01: Fixed FreeBSD-SA-17:01.openssh
Fig.01: Fixed FreeBSD-SA-17:01.openssh

For more info see FreeBSD security mailing list.

How to speeding up SSH session creation

Posted on in Categories Link last updated January 11, 2017

You can reuse OpenSSH connections to the same server when you want to open subsequent connections to the same server. For example, if I ran ssh [email protected], the ssh client will establish a new SSH connection. It usually takes only a few seconds. However, if I run ssh [email protected] command again, connecting to a server42.cyberciti.biz multiple times result into the overhead.

This tutorial talks about ssh features called multiplexing that reuse an already-established connection when creating a new SSH session.