How To Notes - tnballo/notebook GitHub Wiki
Reference for those little tasks that are just uncommon enough to forget the steps involved.
-
List block storage devices:
sudo blkid
-
Within the list, find the find the entry corresponding to the USB drive you want to mount.
- Example entry:
/dev/sda1: LABEL="WIN7ISO" UUID="AABE-7CAA" TYPE="vfat" PARTUUID="c3072e18-01
- Example entry:
-
Create a new mount point, if one doesn't already exist:
sudo mkdir /mnt/usbdrive
-
Mount the USB drive, mapping the device (from the list entry) to the mount point:
sudo mount /dev/sda1 /mnt/usbdrive
-
Check current timezone:
timedatectl
-
List availible US timezones:
timedatectl list-timezones | grep "America"
-
Set new timezone:
timedatectl set-timezone Zone/SubZone
Recording duration in seconds:
byzanz-record --duration=30 my_screen_thirty_sec.gif 2>/dev/null & clear
-
Create a new python2 virtualenv in the current directory, then activate it:
virtualenv -p /usr/bin/python2 py2envsource py2env/bin/activate
-
When inside this environment, you should see
(py2env)preceeding the normal terminal prompt. Now install the legacy package required with version explcitly specified:pip install dpkt==1.8.5
-
When done running the legacy scripts, deactivate and remove the virtualenv:
deactivaterm -rf py2env/
-
Install pyenv pre-requisite packages to avoid build problems:
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev
-
Install pyenv as described here (be sure to update
.bashrcas prompted):curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bashpyenv update
-
Install a python3 version, this may take a while:
pyenv install 3.6.6
-
Verify that command
pyenv versionsshow output similar to the below (usepyenv global <version>to set active):
system
* 3.6.6 (set by /home/username/.pyenv/version)