- linux 23
- python 5
- git 3
- backup 3
- jekyll 2
- sphinx 2
- Ubuntu 2
- web 2
- apache 2
- wordpress 2
- serial 2
- usb 2
- tar 2
- ssh 2
- apt 1
- packages 1
- server 1
- automount 1
- usb drive 1
- file permissions 1
- smtplib 1
- gmail 1
- virtualenv 1
- network 1
- storage 1
- pandas 1
- anaconda 1
- raspberry pi 1
- wifi 1
- git server 1
- micropython 1
- esp8266 1
- acpi 1
- suspend 1
- wake 1
- pip 1
- samba 1
- galliumos 1
- chromebook 1
- source control 1
- continuous integration 1
- ci 1
- text 1
- graphics 1
- sftp 1
- read the docs 1
- udev 1
- jpg 1
- convert 1
- resize 1
- mqtt 1
- dd 1
- linux, slack, service 1
- ffpmeg 1
- tasmota 1
- home automation 1
linux
Linux dd from server
Let’s say you have a huge image file on a file server and you want to dd
the image to an SD card or a local drive.
Linux Backup to a Remote Server via ssh
Here’s how to do a tar backup to a remote server via ssh.
Full and Incremental Backup to a USB drive
Here’s how I do a full and also an incremental backup to a USB drive on a Debian Linux system.
Setup Sphinx with RTD Theme Quickly
This post explains how to setup Sphinx for source documentation quickly.
How to Fake a Domain for Wordpress and Web Development
This post explains how to setup a fake domain on your Linux Apache server so it will serve a particular domain from a local directory.
Move a Wordpress Website from a Local Server to Hostgator
Moving an existing Wordpress site to Hostgator involves:
Password Protect a Directory in Apache Server Using htaccess
To password protect a directory on an Apache web server, a .htaccess hidden file can be used. Here’s how to do it.
Mount a Remote Directory as a Local Directory via SFTP in Linux
In Debian Linux, you can mount a remote file system easily using sshfs to drag and drop files with ease.
The Best Documentation on Jekyll Static Website Generator
The best documentation I found for Jekyll, the static website generator, is at cloudcannon. It is much better than the Jekyll website itself
Page Up/Page Down key on Acer C720 Chromebook running GalliumOS
GalliumOS runs great on the Acer C720 Chromebook, but one function that does not work correctly is a PageUp/PageDn key. On most Chromebooks, you do this by pressing Alt-Up and Alt-Down keys. You can apply this workaround.
Samba server on Linux Mint 18
A Samba server lets you share files and folders with Windows and Mac users over your network. Samba is no longer included in Linux Mint 18 but these instructions will get you up and running quickly.
Autodocumentation using sphinx and self-hosted git server
This is an article in progress.
Headless Setup Wifi on Raspberry Pi Stretch
A Raspberry Pi can be configured from scratch without using a monitor or a keyboard (headless setup). But Raspbian Stretch uses a different system to configure wifi than Jessie or earlier Raspbian Linux versions.
How to Install Jekyll on Linux Mint
I was having problems installing Jekyll on Linux Mint 17 and Linux Mint 18. Jekyll is a really good and simple static website creator which also has a lot of templates available for it. Here’s the complete steps.
Setup Pandas and Python using Anaconda Package
Pandas is a module for Python for data analysis. Anaconda is a complete SW package that includes Python with Pandas, Numpy, Matplotlib, and various modules for data science.
Map a Remote Folder as a Local Drive
Linux Mint and Ubuntu can open a remote folder natively in file manager using “File/Connect To Server…” but many applications will not do this.
Using virtualenv with Python
Python modules can get to be a mess. When someone tries to run your code, they have to install all the modules you’ve used. With all the Python programs you try out, your local install might have a gazillion modules installed.
Send Email using Python smtplib Module and Gmail
A few lines of Python and a Gmail account is all that is needed to send email. This is useful for having your computer send you status emails such as backup notifications, or problems.
rsync Backup Parameters and Bash Script
This is an example of rsync backup parameters I use that work really well with Linux Mint and Rasbian Jessie (Debian-based).
Change permissions to Linux files only or directories only
To change all the files only (not the directories) from the present directory and lower (recursive) to, for example, premissions 655:
Automount USB drives in Linux Mint
There’s a desktop GUI to automount a USB external drive in Debian-based Linux, but if you’re running headless, here’s how to do it via the command line. This udev script will automatically mount the removable drive as /media/label where label is the label of the drive.
Run Your Own Git Server using Google Gogs
There are several github servers you can run on your own machine, but Gogs is very lightweight and simple. So light that it will even run on a Raspberry Pi.
Linux Package Cheatsheet
These are common Linux (Debian) commands to maintain the packages in Debian-based Linux systems.
python
ImportError: cannot import name ‘main’
I got this error trying to install Python pip on a fresh Ubuntu 16.04 install. Turns out pip 10.0 installs itself to ~/.local/bin instead of the typical location of /usr/bin/pip and it can’t find other modules it needs.
Autodocumentation using sphinx and self-hosted git server
This is an article in progress.
Setup Pandas and Python using Anaconda Package
Pandas is a module for Python for data analysis. Anaconda is a complete SW package that includes Python with Pandas, Numpy, Matplotlib, and various modules for data science.
Using virtualenv with Python
Python modules can get to be a mess. When someone tries to run your code, they have to install all the modules you’ve used. With all the Python programs you try out, your local install might have a gazillion modules installed.
Send Email using Python smtplib Module and Gmail
A few lines of Python and a Gmail account is all that is needed to send email. This is useful for having your computer send you status emails such as backup notifications, or problems.
git
My git notes
These are my notes on commonly used git commands.
The Best Git Tutorial
The best tutorial so far is not from git itself; too technical and not enough background. The one I really liked most is from Atlassian.
Run Your Own Git Server using Google Gogs
There are several github servers you can run on your own machine, but Gogs is very lightweight and simple. So light that it will even run on a Raspberry Pi.
backup
Linux Backup to a Remote Server via ssh
Here’s how to do a tar backup to a remote server via ssh.
Full and Incremental Backup to a USB drive
Here’s how I do a full and also an incremental backup to a USB drive on a Debian Linux system.
rsync Backup Parameters and Bash Script
This is an example of rsync backup parameters I use that work really well with Linux Mint and Rasbian Jessie (Debian-based).
jekyll
The Best Documentation on Jekyll Static Website Generator
The best documentation I found for Jekyll, the static website generator, is at cloudcannon. It is much better than the Jekyll website itself
How to Install Jekyll on Linux Mint
I was having problems installing Jekyll on Linux Mint 17 and Linux Mint 18. Jekyll is a really good and simple static website creator which also has a lot of templates available for it. Here’s the complete steps.
sphinx
Setup Sphinx with RTD Theme Quickly
This post explains how to setup Sphinx for source documentation quickly.
Autodocumentation using sphinx and self-hosted git server
This is an article in progress.
Ubuntu
Samba server on Linux Mint 18
A Samba server lets you share files and folders with Windows and Mac users over your network. Samba is no longer included in Linux Mint 18 but these instructions will get you up and running quickly.
ImportError: cannot import name ‘main’
I got this error trying to install Python pip on a fresh Ubuntu 16.04 install. Turns out pip 10.0 installs itself to ~/.local/bin instead of the typical location of /usr/bin/pip and it can’t find other modules it needs.
web
Using GoDaddy for domain and DNS and Hostgator for web hosting
Using GoDaddy for domain registry and DNS while using Hostgator for web hosting might seem complicated, but I have domains already at GoDaddy and it let’s me point any domain to any web host so I am not stuck with one web provider.
The Best Documentation on Jekyll Static Website Generator
The best documentation I found for Jekyll, the static website generator, is at cloudcannon. It is much better than the Jekyll website itself
apache
How to Fake a Domain for Wordpress and Web Development
This post explains how to setup a fake domain on your Linux Apache server so it will serve a particular domain from a local directory.
Password Protect a Directory in Apache Server Using htaccess
To password protect a directory on an Apache web server, a .htaccess hidden file can be used. Here’s how to do it.
wordpress
How to Fake a Domain for Wordpress and Web Development
This post explains how to setup a fake domain on your Linux Apache server so it will serve a particular domain from a local directory.
Move a Wordpress Website from a Local Server to Hostgator
Moving an existing Wordpress site to Hostgator involves:
serial
Writing udev rules for USB serial and IO devices
Here’s a summary of how to write linux udev rules for USB devices, especially for IO.
USB-to_Serial adapter reference information
This is a rundown of various USB-to-serial devices I’ve used and technical information I’ve found out.
usb
Writing udev rules for USB serial and IO devices
Here’s a summary of how to write linux udev rules for USB devices, especially for IO.
USB-to_Serial adapter reference information
This is a rundown of various USB-to-serial devices I’ve used and technical information I’ve found out.
tar
Linux Backup to a Remote Server via ssh
Here’s how to do a tar backup to a remote server via ssh.
Full and Incremental Backup to a USB drive
Here’s how I do a full and also an incremental backup to a USB drive on a Debian Linux system.
ssh
Linux dd from server
Let’s say you have a huge image file on a file server and you want to dd
the image to an SD card or a local drive.
Linux Backup to a Remote Server via ssh
Here’s how to do a tar backup to a remote server via ssh.
apt
Linux Package Cheatsheet
These are common Linux (Debian) commands to maintain the packages in Debian-based Linux systems.
packages
Linux Package Cheatsheet
These are common Linux (Debian) commands to maintain the packages in Debian-based Linux systems.
server
Run Your Own Git Server using Google Gogs
There are several github servers you can run on your own machine, but Gogs is very lightweight and simple. So light that it will even run on a Raspberry Pi.
automount
Automount USB drives in Linux Mint
There’s a desktop GUI to automount a USB external drive in Debian-based Linux, but if you’re running headless, here’s how to do it via the command line. This udev script will automatically mount the removable drive as /media/label where label is the label of the drive.
usb drive
Automount USB drives in Linux Mint
There’s a desktop GUI to automount a USB external drive in Debian-based Linux, but if you’re running headless, here’s how to do it via the command line. This udev script will automatically mount the removable drive as /media/label where label is the label of the drive.
file permissions
Change permissions to Linux files only or directories only
To change all the files only (not the directories) from the present directory and lower (recursive) to, for example, premissions 655:
smtplib
Send Email using Python smtplib Module and Gmail
A few lines of Python and a Gmail account is all that is needed to send email. This is useful for having your computer send you status emails such as backup notifications, or problems.
gmail
Send Email using Python smtplib Module and Gmail
A few lines of Python and a Gmail account is all that is needed to send email. This is useful for having your computer send you status emails such as backup notifications, or problems.
virtualenv
Using virtualenv with Python
Python modules can get to be a mess. When someone tries to run your code, they have to install all the modules you’ve used. With all the Python programs you try out, your local install might have a gazillion modules installed.
network
Map a Remote Folder as a Local Drive
Linux Mint and Ubuntu can open a remote folder natively in file manager using “File/Connect To Server…” but many applications will not do this.
storage
Map a Remote Folder as a Local Drive
Linux Mint and Ubuntu can open a remote folder natively in file manager using “File/Connect To Server…” but many applications will not do this.
pandas
Setup Pandas and Python using Anaconda Package
Pandas is a module for Python for data analysis. Anaconda is a complete SW package that includes Python with Pandas, Numpy, Matplotlib, and various modules for data science.
anaconda
Setup Pandas and Python using Anaconda Package
Pandas is a module for Python for data analysis. Anaconda is a complete SW package that includes Python with Pandas, Numpy, Matplotlib, and various modules for data science.
raspberry pi
Headless Setup Wifi on Raspberry Pi Stretch
A Raspberry Pi can be configured from scratch without using a monitor or a keyboard (headless setup). But Raspbian Stretch uses a different system to configure wifi than Jessie or earlier Raspbian Linux versions.
wifi
Headless Setup Wifi on Raspberry Pi Stretch
A Raspberry Pi can be configured from scratch without using a monitor or a keyboard (headless setup). But Raspbian Stretch uses a different system to configure wifi than Jessie or earlier Raspbian Linux versions.
git server
Autodocumentation using sphinx and self-hosted git server
This is an article in progress.
micropython
Programming ESP8266 with MicroPython
Here’s the latest instructions on how to progam MicroPython onto the ESP8266 wifi chip. New changes have made the old directions not work.
esp8266
Programming ESP8266 with MicroPython
Here’s the latest instructions on how to progam MicroPython onto the ESP8266 wifi chip. New changes have made the old directions not work.
acpi
Prevent mouse, keyboard and USB devices from waking up PC
In Linux Mint, bumping my mouse or keyboard would wake up my PC from suspend. Here’s how I disabled it.
suspend
Prevent mouse, keyboard and USB devices from waking up PC
In Linux Mint, bumping my mouse or keyboard would wake up my PC from suspend. Here’s how I disabled it.
wake
Prevent mouse, keyboard and USB devices from waking up PC
In Linux Mint, bumping my mouse or keyboard would wake up my PC from suspend. Here’s how I disabled it.
pip
ImportError: cannot import name ‘main’
I got this error trying to install Python pip on a fresh Ubuntu 16.04 install. Turns out pip 10.0 installs itself to ~/.local/bin instead of the typical location of /usr/bin/pip and it can’t find other modules it needs.
samba
Samba server on Linux Mint 18
A Samba server lets you share files and folders with Windows and Mac users over your network. Samba is no longer included in Linux Mint 18 but these instructions will get you up and running quickly.
galliumos
Page Up/Page Down key on Acer C720 Chromebook running GalliumOS
GalliumOS runs great on the Acer C720 Chromebook, but one function that does not work correctly is a PageUp/PageDn key. On most Chromebooks, you do this by pressing Alt-Up and Alt-Down keys. You can apply this workaround.
chromebook
Page Up/Page Down key on Acer C720 Chromebook running GalliumOS
GalliumOS runs great on the Acer C720 Chromebook, but one function that does not work correctly is a PageUp/PageDn key. On most Chromebooks, you do this by pressing Alt-Up and Alt-Down keys. You can apply this workaround.
source control
The Best Git Tutorial
The best tutorial so far is not from git itself; too technical and not enough background. The one I really liked most is from Atlassian.
continuous integration
The Best Git Tutorial
The best tutorial so far is not from git itself; too technical and not enough background. The one I really liked most is from Atlassian.
ci
The Best Git Tutorial
The best tutorial so far is not from git itself; too technical and not enough background. The one I really liked most is from Atlassian.
text
Draw Diagrams Online
Why draw diagrams online when there is Visio, Powerpoint, Inkscape, Illustrator and many more? For super simplicity, that’s why! Here are some examples.
graphics
Draw Diagrams Online
Why draw diagrams online when there is Visio, Powerpoint, Inkscape, Illustrator and many more? For super simplicity, that’s why! Here are some examples.
sftp
Mount a Remote Directory as a Local Directory via SFTP in Linux
In Debian Linux, you can mount a remote file system easily using sshfs to drag and drop files with ease.
read the docs
Setup Sphinx with RTD Theme Quickly
This post explains how to setup Sphinx for source documentation quickly.
udev
Writing udev rules for USB serial and IO devices
Here’s a summary of how to write linux udev rules for USB devices, especially for IO.
jpg
Batch Resize JPG Images in Linux
Here’s a super fast way to convert a bunch of .jpg images to a lower resolution without changing the aspect ratio. This is especially useful in reducing image sizes for websites.
convert
Batch Resize JPG Images in Linux
Here’s a super fast way to convert a bunch of .jpg images to a lower resolution without changing the aspect ratio. This is especially useful in reducing image sizes for websites.
resize
Batch Resize JPG Images in Linux
Here’s a super fast way to convert a bunch of .jpg images to a lower resolution without changing the aspect ratio. This is especially useful in reducing image sizes for websites.
mqtt
Periodically publish IP to MQTT server
Here’s how I periodically have my various computers publish their IP address to an MQTT server. The message are set with “retain” flag so subscribing to the MQTT server will show all the IPs of my computers.
dd
Linux dd from server
Let’s say you have a huge image file on a file server and you want to dd
the image to an SD card or a local drive.
linux, slack, service
Send a Slack Message on User Login and Logout
This is how I have Linux send me a Slack message whenever someone logs in or out of my server.
ffpmeg
Common ffmpeg commands
These are my notes on commonly used ffmpeg commands.
tasmota
Setup Tasmota for Correct Timezone and Daylight Savings Time
Here’s the way to setup your Tasmota device so it calculates daylight savings correctly.
home automation
Setup Tasmota for Correct Timezone and Daylight Savings Time
Here’s the way to setup your Tasmota device so it calculates daylight savings correctly.