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…
Mostly for my own reference; to get the Volume Up/Volume Down/{Mute|Unmute} keys to work on my Microsoft Natural Ergonomic Keyboard 4000 in Lubuntu (Ubuntu with LXDE/Openbox), I had to modify the lubuntu-rc.xml file to indicate the correct commands to execute when those keys were pressed.
Initially,…
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…