Skip to content

Instantly share code, notes, and snippets.

View ArghyaChatterjee's full-sized avatar
🏠
Computer Vision, AI, Robotics & Systems, Data Science & Astronomy Researcher

Arghya Chatterjee ArghyaChatterjee

🏠
Computer Vision, AI, Robotics & Systems, Data Science & Astronomy Researcher
View GitHub Profile

Extend Ubuntu Storage from Unallocated Space

  • First Create a Bootable USB stick with any Ubuntu OS.
  • Then Boot from that stick. In this way, you can unmount the other disks and OS. It won't work when the disks are mounted. So, you can't use Gparted when you are already in a running Ubuntu.
  • Use Gparted to Extend the partition of the desired volume. Install Gparted this way: sudo apt install gparted.
  • Follow this tutorial for more info: https://www.youtube.com/watch?v=Kyz9x71gEPI

Preview github readme in VS code

To preview a README file (typically in Markdown format) in the VS Code editor, follow these steps:

Activate the Markdown Preview

  • Option 1: Use the Command Palette
    • Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac) to open the Command Palette.
    • Type Markdown: Open Preview and select it.
  • Option 2: Use the Keyboard Shortcut

Load Virtual Environment Python Interpretor in VScode

You can configure Visual Studio Code (VS Code) to automatically use a specific virtual environment when you open a project or repository. Here’s how:

Step 1: Set Up the Virtual Environment

  1. Create or activate your virtual environment in the terminal:
    python3 -m venv myenv
    source myenv/bin/activate  # On macOS/Linux

myenv\Scripts\activate # On Windows

Download and Install Tor Browser

Download the Tor Browser

Go to this website and download the linux version of Tor Browser. Change the permission of the file to run as the executable file.

Install the Tor Browser

Once the file is executable, open a terminal in that location. Now, enter the command below to register the Tor browser as a desktop app.

Zed2 Depth Viewer Flashing and not working (cuda and qt5 error)

Error:

(wcf) wangchaofei@wangchaofei-Lenovo-Legion-R70002021:/usr/local/zed/tools$ ./ZED_Depth_Viewer
in bool ImageHandler::initialize(sl::Mat&) : Err [304]: OS call failed or operation not supported on this OS.
Stack trace (most recent call last):
#26 Object “[0xffffffffffffffff]”, at 0xffffffffffffffff, in
#25 Object “./ZED_Depth_Viewer”, at 0x5606d84063e4, in

Laptop Hardware Configuration

If you want to know your laptop hardware configuration like which chips are used inside for processor, graphics, wifi, ethernet and so on, go to BIOS menu and under the main tab, you can see those information.

MSI gl66 WIFI card:

Intel WiFi 6 AX201 160 MHz

Access Boot Menu

Press 4-5 times F2 / F8 / F10 / F12 / ESC keys in the keyboard during OS booting or just after the start (F2 (my erazor), Del (my msi full boot menu access), F11 (my erazor quick boot access)). This option is different for different PCs.

Install Wifi Drivers on Ubuntu 20.04 with Ubuntu Kernel 5.13

If wifi drivers are not installed during 1st boot up, it's likely that graphics and wifi drivers are not installed when you start your pc for the 1st time. First attach your pc with internet through ethernet cable in order to access internet during package installation. Do the following:

sudo apt install net-tools
ifconfig

It will show something like this:

arghya@arghya-Pulse-GL66-12UEK:~$ ifconfig
enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

Wifi not found on newly installed Ubuntu 20.04 (Didn't work for my msi laptop)

On your terminal, type:

sudo mokutil --disable-validation

type a password on the terminal. It will make you reboot your computer, select "change secure boot state", type password characters according to requirement, select disable secure boot-->yes and reboot.

Follow this youtube video:

link: https://www.youtube.com/watch?v=SWiOTTxxZuk

Install VTK 6.3

sudo apt install cmake \
                  libavcodec-dev \
                  libavformat-dev \
                  libavutil-dev \
                  libboost-dev \
                  libdouble-conversion-dev \
                  libeigen3-dev \
                  libexpat1-dev \