Category: Linux

VIM: Join Lines

I had a document where I wanted to join every other line.  I tried several approaches on a Windows box using Cygwin but only one worked with a couple variations.  Using the vim editor.  This is a new trick to me, and wanted to jot it down before I forget about. The file looked something like this. One approach was...Read More »

Linux: How to logout a user

A user was logged in via XRDP and the screen locked.  Each attempt to logon also resulted in a locked screen.  Rebooting is not an option.  There needed to be a way to identify the user and forcibly log them off, and there is. Logged on as root and typing the who command lists users and logons.  A great working...Read More »

Apache httpd log rotation does not compress the logs

A CentOS 7 installation with a simple yum install of httpd also creates a logrotation script.  The script does log rotate files, however, there is no compression.  A quick look at the script indicates that some compression settings are put into place, but as experience indicates, not enough to do the job. By default, this is the logoration script as...Read More »

Memory Utilization High in Linux VM

Utilities such as htop, top, and the command free -mh all report a high usage of memory.  The thing is nothing was running.  It turns out to be explainable. Using the following commands, it was determined that VMware virtual server has enabled the vmw_balloon. VMware Tools Balloon Defined The VMware Tools balloon driver is among the utilities installed in the...Read More »

Install LXC on Ubuntu

Linux Containers ("LXC") is an operating-system-level virtualization method for running multiple isolated Linux systems on a control host using a single Linux kernel. LXC is the well known set of tools, templates, library and language bindings. It's pretty low level, very flexible and covers just about every containment feature supported by the upstream kernel. LXC is production ready with LXC...Read More »

VMware Workstation loses bridged network

VMware Workstation loses bridged network and it does not want to come back following the usual methodologies.  I restarted the VMware Workstation services, used the Network Manager, and reboot the computer all to no avail.  In the end, it was something that wasn't a problem before. On a Windows 10 workstation running VMware Workstation 12 for many months without issue,...Read More »

Add comments to ZIP files with zipnote

Never having given it much thought before, I wanted to know of a way to add a comment to my zip files in Linux.  I used to do this sort of thing many years back with pkzip in the DOS days.  There turns out to be nice little utility, called zipnote. To check for comments in a zipfile.  The command...Read More »