Saving for myself:
To log all bash sessions for all users in Linux, put this at the end of /etc/bash.bashrc:
session_log_path=/some/log/path if [ ! -d "$session_log_path/$USER/" ]; then mkdir -p "$session_log_path/$USER/" fi if [ -d "$session_log_path/$USER/" ]; then [[ "$(ps…
I have recently been using the Windows Subsystem for Linux on my Windows 10 laptop at work, with Ubuntu running as the distribution in the subsystem.
I recently had a need to use a graphical (X11) program running on a remote Linux VM. I was able to successfully run the program remotely, with the…
Posting this mainly to keep it for myself, but making it public to benefit anyone else looking for it as well.
By default, SciTE's open dialog box is set to "All Source," which means to show a list of all files it considers "source files" (files that contain program source code.)
I wanted my copy of…
I'm putting this here mainly to store it for myself, so these are going to be rough notes until I have time or inclination to review and edit this post.
Note: this solution was formulated on a server running Ubuntu Server 14.04 LTS
To setup sftp chroot directories for sftp-only users, and yet still…
Importing a Xen VM from a .xva file Import/Restore a Xen VM from a backed-up image file, likely a backup taken of a VM prior to the destruction of said VM for any reason.
Import via command line (faster and preferred method) This method took 2:33 (2 minutes 33 seconds) to import a VM that had an 8GB…