-
Archives
- May 2026
- April 2026
- November 2025
- September 2023
- March 2019
- March 2018
- June 2017
- May 2017
- November 2016
- September 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- April 2015
- December 2014
- October 2014
- September 2014
- May 2014
- April 2014
- March 2014
- January 2014
- November 2013
- October 2013
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
-
Meta
Category Archives: Ubuntu
Enabling SSH (https) for Apache 2 in Ubuntu/Mint/Possibly other Debian distro
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051# Intall apache $ sudo apt-get install apache2 # Enable SSL module $ sudo a2enmod ssl # Restart Apache $ sudo service apache2 restart # Create a directory to store the SSLCertificateFile and SSLCertificateKeyFile $ mkdir /etc/apache2/ssl # Generate … Continue reading →
Adding New VirtualHost in Apache2
On linux Ubuntu 1. If your apache has /etc/apache2/sites-available directory then just create a new file “dev.newwebsite.com.conf” with the following content: 12345678910111213<VirtualHost *:80> ServerName dev.newwebsite.com DocumentRoot "/var/www/www.newwebsite.com" # Error handlers ErrorDocument 500 … Continue reading →
Benchmark How Long a Program Runs In Linux Using Bash
The following bash code might come in handy if you want to benchmark how long a program runs. The example assumes you want to pass two parameters along to the program. A timestamp is captured at the start and end … Continue reading →
Auto Login Using SSH Public and Private Keys
2026 update: This post originally used ssh-keygen -t rsa. The current recommendation (e.g. GitHub’s SSH key guide) is Ed25519 — it produces shorter keys, is faster, and is considered more secure. Use RSA (4096-bit) only as a fallback for systems … Continue reading →
Linux symlinks: creating, deleting, and the gotchas worth knowing
The basic command for creating a symbolic link (a “symlink” or “soft link”) to a folder or file is ln -s: 12345678ln -s /home/ronald/somefolder /home/ronald/newfolder # or if your current directory is already /home/ronald: cd /home/ronald ln -s somefolder newfolder … Continue reading →
A Linux primer: identifying your distro and other commands that work everywhere
Here are a few commands you can use to find out which Linux distribution you’re on — pick whichever your system has: 1234567cat /etc/issue cat /proc/version dmesg | head -1 cat /etc/*-release Of those, cat /etc/*-release is the most reliable … Continue reading →
How to Set up an FTP Server in Ubuntu Linux
Login to your Linux shell menu as root 12[root@locahost]# apt-get install vsftpd [root@locahost]# vim /etc/vsftpd.conf At VIM, 1st comment out anonymous_enable by adding a # sign at the beginning of the line # anonymous_enable=YES 2nd remove comment at local enable … Continue reading →
Adding color to your tail
Tail is a very useful tool for monitoring an error stream. Sometimes the output from tail can have too much information, and its black-and-white monotone output can be hard to follow with the eyes. The basic: a Linux terminal has … Continue reading →
Fix Microsoft Mouse in Linux Ubuntu
123456789101112nano /etc/X11/xorg.conf Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" # Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "Emulate3Buttons" "false" Option "ZAxisMapping" "4 5" Option "ButtonMapping" "1 2 3 6 7" EndSection
Colorize Linux Shell Menu
Do you ever feel like you’re going blind because the prompt text color and the result text color are the same? Here’s how to colorize your shell prompt. Open your favorite text editor (vim or nano), edit your ~/.bashrc, and … Continue reading →