Logo Zekun's Zone
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Categories
  • hardware
  • linux
  • map
  • nlp
  • raspberrypi
Hero Image
Two Github Accounts with Two SSH Keys

To use two different GitHub accounts, one for work and one for personal use, you will need to create two separate RSA keys. Create Two RSA keys Here are the steps to create two RSA keys: Open your terminal. Input the following command, replacing “email@example.com” with your email address: ssh-keygen -t rsa -C "[email@example.com](mailto:email@example.com)" When asked to enter a file in which to save the key, type in a unique name for each key.

March 27, 2023 Read
Hero Image
Connect to Remote Server with VSCode

This blog has the video tutorials of the following two things: Connect to UMN MSI server with VSCode Use UMN MSI with GPU

October 4, 2021 Read
Hero Image
Run jupyter notebook in docker container on remote server

Jupyter notebook is an extremely convieninent tool for debugging a piece of code. It runs on browser and allows you to run code piece by piece instead of fresh from the begining. With docker, jupyter notebook is slightly more confusing than it is on local machine. This short article talks about how to correctly forward the port to run jupyter notebook in docker container on remote server. We will have three locations to deal with; local machine, remote server, docker container.

August 8, 2021 Read
Hero Image
Common Commands

Add python2 kernels to jupyter notebook: (source: https://ipython.readthedocs.io/en/stable/install/kernel_install.html) python2 -m pip install ipykernel python2 -m ipykernel install --user Add python3 kernels to jupyter notebook: python3 -m pip install ipykernel python3 -m ipykernel install --user AttributeError: module ‘matplotlib.colors’ has no attribute ’to_rgba’ Update matplotlib python3 -m pip install --upgrade matplotlib Customized Datagenerator having AttributeError: ‘ProgbarLogger’ object has no attribute ‘log_values’ Check if the data generator could not load data correctly (0 sample)

January 5, 2021 Read
Hero Image
Stop SSH connection from timeout

When you’re connecting to the server, sometimes you got “Broken Pipe” prompt that kicks you off from the server if you are not active for a while. This can be quite annoying if you have unsaved changes in the code and was just away for a bit searching for some solution. This can be stopped from happening if you could change the ssh configuration on the server. Open the file /etc/ssh/sshd_config on server and add the following lines in the end.

January 5, 2021 Read
Hero Image
CUDA Errors and Solutions

CUDA is a parallel computing model created by Nvidia to assist the usage of GPU. It is widely used in the training of deep-learning models. It greatly speed up the computation in model training compared with its CPU-based counterpart. However we might encouter problems when using it, and here is a summarization of some common problems and the solutions. Please note that this post is not emphasizing on the installation of CUDA.

June 8, 2020 Read
Hero Image
Clean up boot directory when full

When /boot directory is full, errors will occur if we try to install new packages or libraries. Here is a short blog showing how to clean up /boot space by getting rid of outdated kernel files). Identify the current kernel version Use the command below uname -r For me it’s showing up 4.4.25-040425-generic List all the files and folders in /boot directory ls /boot/ Then you will see lots of old kernels.

January 30, 2020 Read
Navigation
  • About
  • Experiences
  • Publications
  • Selected Projects
  • Accomplishments
  • Recent Posts
Contact me:
  • li002666 [Shift+2] umn.edu
  • zekun-li

Toha Theme Logo Toha
© 2023 Copyright.
Powered by Hugo Logo