How to keep stable adb connection between multiple android devices and docker container in ubuntu PC
This guide will help you maintain a stable ADB connection between multiple Android devices and a Docker container running on an Ubuntu server.
This guide will help you maintain a stable ADB connection between multiple Android devices and a Docker container running on an Ubuntu server.
[forkpty: Device not configured][Could not create a new process and open a pseudo-tty.]
If you’re using a terminal on macOS (Ventura 13.5) and encounter the following error message when trying to open a new terminal session, this guide will help...
This article introduces how to ssh-jump on a remote intermediate server(s) to ssh-connect into a target server with a single command.
When setting up a passwordless SSH login environment using private and public keys, it is necessary to enter a passphrase for the private key when logging in...
This article presents a secure method for logging into remote servers using private/public key-based SSH connections. The public key serves as the keyhole on...
As a minimal mistake Jekyll theme user, I use the following commands to set up and use npm, gem, and bundler for macOS.
I’ve recently faced an issue with Pytorch Distributed Data Parallel, in which the process hangs without any error message. I don’t exactly know what causes t...
When I set up a new deep learning environment in a docker image, especially for sharing the image while keeping it as light as possible, I use the following ...
.git
folder for reducing repository size
If you’re working with large files (such as images and videos) in a git repository and have committed them to your repo, simply removing them in a commit wil...
Github prohibits making a private repository from a forked repository. This article explains how to create a private repository that can incorporate updates ...
I’ve been using Sublime Text 4 in Vintage mode, which enables vi-like editing. When I use vi(m) in Ubuntu, I mostly do scrolling with ctrl-u and ctrl-d, beca...
nvcc
for conda-installed PyTorch in Ubuntu
When we install PyTorch using conda (e.g.,conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch), it incompletely installs the cudatoolkit...
Here are some commands that I use for cleaning up unused or dangling docker images.
DataLoader
and DistributedDataParallel
Since LMDB cannot be pickled, an error, ...can't pickle Environment Object..., occurs when we naively implement LMDB into data.dataset while wrapping data.Da...
The thin lens model provides a simple and intuitive explanation of how depth of field (DoF) is formed in a camera. This model can be used to simplify a more ...
device is busy
when unmounting drive in Ubuntu
When the error containing device is busy occurs when one tries to unmount the mounted drive, try this one:
This post describes how I use dotdrop for managing my dotfiles (.zshrc, .vimrc, .tmux.conf, etc.)
As a minimal mistake Jekyll theme user, I use the following commands to set up and use npm, gem, and bundler.
An NVIDIA kernel module nvidia appears to already be loaded in your kernel
When I tried to install a new nvidia-driver, the error message An NVIDIA kernel module 'nvidia' appears to already be loaded in your kernel appears.
ImportError: cannot import name 'main'
When I upgrade pip3 by typing sudo pip3 install -U pip and use the upgraded one, I get an error message ‘ImportError: cannot import name 'main'’. This is bec...
NIS facilitates the automatic synchronization of user information across multiple clusters. Our lab manages 13 clusters (mark0 to mark11 and markP0) and thus...
This post describes how to install nvidia drivers, CUDA and cuDNN for ubuntu.
For those who use LaTeX to write a paper with LaTexTools, a plugin for sublime text (2 or 3), this article will help make them portable.
exec
has strange behavior (abnormal size, command vanishing, etc.)
When I launch a docker container using the exec command inside tmux, I occasionally experience odd behaviors in the terminal:
In python logger, there are 5 logging levels: {50: 'FATAL', 40: 'ERROR', 30: 'WARN', 20: 'INFO', 10: 'DEBUG'}. The logger only prints logs that are higher th...
When I reinstalled ubuntu from scratch, the machine sometimes throws the following error:
docker:Error response from daemon: Unknown runtime specified nvidia
The error usually occurs when Nvidia driver is newly installed or docker/nvidia-docker is installed.
When nvidia-smi prints out an output slowly, the following command may by useful:
This post summarizes my deep learning environment setting on freshly installed Ubuntu16.04.
Enter passphrase for key
for Git
While using git, it is annoying to type a password or passphrase when there are frequent commits/pushes.
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
When we pull a docker image from the dockerhub, the container sometimes throws an error regarding libGL.so.1:
This post introduces the installation procedure for the docker (community edition) as well as nvidia-docker v1.0.1.
Docker hub is very useful for maintaining images, especially when working with many machines with the same image.
This post describes the timezone setting in Ubuntu16.04.
Sometimes, there is a need to launch an app with a root privilege. For example, VMware requires the root privilege when it needs to use a physical hard drive...
This article introduces a solution for character duplication when one types a tab for auto-completion. This usually occurs when one runs a Ubuntu docker imag...
In this article, we are grouping four SSDs into two logical drives, where each group consists of two SSDs.
This article introduces how to install and configure Samba on Ubuntu16.04. Also, we introduce how to mount the shared folder on Ubuntu and Windows.
This post describes a multi-user management method that I use in the lab. Since all the users require a root privilege, it is better to have only one group w...