Below you will find pages that utilize the taxonomy term “Linux”

Moving Docker Runtime and Storage Location

.a{fill:#fff;}.b{fill:#ffb80f;}For the Linux operating system, these steps document how to free up some space in the root volume of your operating system by moving the docker runtime location from /var/lib/docker/ to the /home volume. The runtime directory is where Docker images, containers, and volumes are stored. Stop Docker sudo systemctl stop docker # verify docker has stopped ps aux | grep -i docker | grep -v grep Configure Docker daemon We’re using a JSON configuration file to specify the runtime folder location.


Shortcut Keys Window Alt + F7 + arrows to move the window Win + arrows to snap move/resize the window Win + Shift + arrows to snap move the window between displays GTK+ Resources GTK+ Development Blog The GTK+ Inspector


bash history Remove and prevent duplicates in bash history Step 1 - remove existing duplicates in .bash_history and create a new temporary file named unduped_history. # change to the home directory cd ~/ # remove duplicates and create unduped_history nl ~/.bash_history | sort -k 2 -k 1,1nr| uniq -f 1 | sort -n | cut -f 2 > unduped_history Step 2 - copy the unduped_history and overwrite .

WSL ubuntu zsh nvm etc.

The Windows Subsystem for Linux (WSL) seems to be mature enough now to give it another shot. Copy and paste, and other simple annoyances that kept me away before are working better. Also, I’ve been reading that nvm (Node Version Manager) works now, so here goes. As a precursor, note that my system is Windows 10 Professional (version 1709, build 16299.309) and is fully up to date with WSL enabled and Ubuntu installed from the Windows Store.

VPS Proof of Concept for Docker and Traefik

This is a proof of concept for a VPS that includes ConfigServer Firewall (csf), Docker, Open SSH Server and Traefik as a reverse proxy to host multiple applications on the same Docker host. The following notes document my experience while creating and configuring the VPS proof of concept local Virtual Machine with Ubuntu Server 16.04 on a Windows 10 host. Virtual Machine Since I am on my Windows 10 laptop for this, I used Hyper-V, an optional feature of Windows 10 Enterprise, Professional, or Education versions.

VPS Proof of Concept for Docker and Traefik - Page 2

CSF Docker Configuration Disable Docker daemon automatic iptable rules with an override at the ExecStart section of the main docker.service. This prevents the Docker daemon from configuring iptables. sudo nano /etc/systemd/system/ Append --iptables=false to ExecStart=/usr/bin/dockerd -H fd://. For example, ExecStart=/usr/bin/dockerd -H fd:// --iptables=false If Docker gets an upgrade during apt-get dist-upgrade, this docker.service file may get overwritten and you will need update it to override ExecStart again.


.a{fill:#fff;}.b{fill:#ffb80f;} Linux Commands and Resources Commands chmod chown find ln mkdir scp ssh-server stat sudo tail update upgrade user watch chmod Change the permissions of files or directories. For example, changing permissions on a ssh key file for the current user. chmod 400 ~/.ssh/id_rsa If you’re not logged in as root, use sudo when permissions denied. more info. Use this chmod calculator to help determine the octal value.

Shell Scripting

A collection of shell scripting resources. Shell scripts are plain text files with an .sh extension. If permission denied, the shell script may just need to be made executable. Example: for a script named, using chmod u+x will grant only the owner of the file execution permissions. For all users, replace the u with an a. You could also use chmod +x which is the same as chmod a+x backup.

Virtual Machine for LAMP Development

This blog post addresses a common scenario — a local LAMP development environment on your Windows or OS X computer. You could use XAMPP on either Windows or OS X, MAMP on OS X or native Apache in OS X. Here, we will create a Linux virtual machine with Samba configured to share the Virtual Machine file system with the host computer. We will also create virtual hosts, install and configure WordPress and Xdebug.

Mint LAMP Development Environment - Part Two

Linux Mint 15 ‘Olivia’ I decided it was time to ditch my Linux 13 KDE setup and try the improved MATE 1.6 desktop now that Linux Mint 15 released. I find it pretty slick and fast, a nice change from Windows when I decide to do some development in a true LAMP environment. Speaking of which, we need to get that installed. Before doing that, the first thing I like to do is open up a terminal and run:

Magento Development Environment

Requirements Magento Apache, MySQL & PHP - for more info, read Mint LAMP Development Environment Requirements Test Does your server meet the requirements for Magento? Install Sample Data Before installing Magento, download and install sample data and media. Using phpMyAdmin, import the sample data sql file “magento_sample_data_for_1.6.0.0.sql” into an empty magento database. Copy the contents of the sample “media” folder into the media folder of your Magento installation.

Mint LAMP Development Environment

OPERATING SYSTEM: Linux Mint 13 Maya For Drupal development, since I already have a Linux Mint system setup, I decide to focus on it rather than the Windows 8 Acquia Drupal setup I blogged about a few days ago. Apache, MySQL & PHP Install all of these applications with a single command. Thanks to Unix System Engineer, Nitin Sookun for posting this on the Linux Mint Community website. Since you will need root permissions when performing write operations outisde of your home directory, the commands shown below presume that you are logged in as root or are in a root instance of the terminal.

Improved Font Rendering in Fedora 15 / Gnome 3

Checkout this blog article at Subpixel Hinting and Other Enhancements for Freetype & Fedora 15 RPM Packages Per the infinality article, install the infinality-settings package Edit /etc/X11/.Xresources to read: Xft.autohint: 0 Xft.lcdfilter: lcddefault Xft.hintstyle: hintfull Xft.hinting: 1 Xft.antialias: 1 Xft.dpi: 96 Xft.rgba: rgb Install Windows fonts. To do this, I copied all the .ttf fonts from my mounted Windows 7 device (/mnt/ntfs/Windows/Fonts) to /usr/share/fonts.

Ubuntu keyboard shortcuts

GNOME desktop Ctrl + Alt + F1 = Switch to the first virtual terminal Ctrl + Alt + F2(F3)(F4)(F5)(F6) = Select the different virtual terminals Ctrl + Alt + F7 = Restore back to the current terminal session with X Ctrl + Alt + Backspace = Restart GNOME Alt + Tab = Switch between open programs Ctrl + Alt + L = Lock the screen. Alt + F1 = opens the Applications menu Alt + F2 = opens the Run Application dialog box.

Use fstab (Linux) to mount a Windows partition

# in terminal, get a partition list # to get the path to the one you # want to mount fdisk -l # then create the target/mount path mkdir -p /mnt/win # Open etc/fstab with a text editor # and append the following # mount windows ntfs /dev/sda1 /mnt/win ntfs-3g defaults 0 0 # Save fstab and restart linux # open /mnt/win to see windows files