Summary: Need to upgrade to 18.04 first, then to 20.04.
Launch tmux before ssh into the vm, in case local network or vpn has issue, the vm continues to run your commands.
tmux new -s vm
ssh username@vm
Summary: Need to upgrade to 18.04 first, then to 20.04.
Launch tmux before ssh into the vm, in case local network or vpn has issue, the vm continues to run your commands.
tmux new -s vm
ssh username@vm
| #!/bin/bash -x | |
| # | |
| # Usage: | |
| # sshtun gpu01 | |
| # sshtun gpu02 -t docker run -it --rm -p 48888:8888 -p 46006:6006 tensorflow/tensorflow:1.12.0-py3 | |
| # | |
| PORT1=6006 | |
| PORT2=8888 | |
| FORWARD1=46006 |
| #!/bin/bash | |
| # | |
| # Usage ./gui_docker osrf/ros:kinetic-desktop-full | |
| # | |
| # Host-side pre-requisite: | |
| # Linux: a desktop environment, e.g., GNOME | |
| # MacOS: XQuartz (https://www.xqartz.org/) | |
| # Windows: Xming (http://www.straightrunning.com/XmingNotes/) | |
| # | |
| xhost +local:root |
| #!/bin/sh | |
| #Force a reinstall of pip: | |
| curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py | |
| python3 get-pip.py --force-reinstall | |
| # Verify install: | |
| pip3 -V |
| #!/bin/sh | |
| find . -exec touch {} \; |
| #!/bin/sh | |
| upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)" | |
| secs=$((${upSeconds}%60)) | |
| mins=$((${upSeconds}/60%60)) | |
| hours=$((${upSeconds}/3600%24)) | |
| days=$((${upSeconds}/86400)) | |
| UPTIME=`printf "%d days, %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs"` | |
| # get the load averages |
| #!/bin/sh | |
| # Install an OpenAI virtual environment (python 3) | |
| if [[ $# -eq 0 ]] ; then | |
| echo "No arguments supplied! Please give a folder name" | |
| exit 0 | |
| fi | |
| python3 -m venv $1 | |
| source $1/bin/activate |
| ffmpeg version 3.4.4-1~16.04.york0 Copyright (c) 2000-2018 the FFmpeg developers | |
| built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609 | |
| configuration: --prefix=/usr --extra-version='1~16.04.york0' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lib |