Skip to content

Instantly share code, notes, and snippets.

View arsho's full-sized avatar

Ahmedur Rahman Shovon arsho

View GitHub Profile
@arsho
arsho / python3.6.3_ubuntu_16.04.md
Last active October 19, 2025 15:14
Install Python 3.6.3 from source in Ubuntu 16.04 LTS

Install Python 3.6.3 from source in Ubuntu 16.04

Why Python 3.6?

Fast, reliable, and secure dependency management.

Some reasons you might want to use REST framework:

  • Improved numeric literals: six_figures = 100_000 will output 100000
  • String interpolation: Introduces Formatted String Literals.
@arsho
arsho / fix_ethernet.md
Created January 18, 2021 18:10
Fixed unmanaged ethernet connection in Ubuntu 20.10

Scenario

  • In Ubuntu the Ethernet connection was shown as unmanaged wired connection.
  • This happened after using sudo pppoeconf to configure a pppoeconfiguration.

Solution

  • Open /etc/NetworkManager/NetworkManager.conf with sudo previlege:
sudo gedit /etc/NetworkManager/NetworkManager.conf
  • Change the line managed=false to managed=true
@arsho
arsho / fix_app_start_ubuntu_24.04.md
Created August 27, 2025 21:36
Fix App opening error in Ubuntu 24.04

Scenario

Apps like VLC, Libreoffice do not open from the dock and cannot open associated file extension that is mapped to the app (e.g. .mp3). FYI, the apps are installed from Ubuntu app center

Fix

  • Uninstall the apps from Ubuntu app center (e.g. VLC, libreoffice)
  • Install from terminal:
sudo apt install vlc -y

Here are some steps to try if you're getting an error mounting /dev/nvme0n1p6 in Ubuntu 23.10:

  • Open the Disks program
  • Select the disk that doesn't mount
  • Click the Gears icon or Additional Partition Options button
  • Select Edit Mount Options
  • Disable User Session Defaults
  • Click OK in the Mount Options dialog box
  • Repeat for each drive that gives an error message
@arsho
arsho / fix_cuda_12_2_ubuntu_23_10.md
Last active July 11, 2025 01:19
Install CUDA 12.0 or CUDA 11.4 in Ubuntu 23.04
  • Check versions of gcc, g++, and nvcc:
gcc --version
gcc (Ubuntu 13.2.0-4ubuntu3) 13.2.0
g++ --version
g++ (Ubuntu 13.2.0-4ubuntu3) 13.2.0
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Aug_15_22:02:13_PDT_2023
@arsho
arsho / fix_nvidia_driver_ubuntu_20.04.md
Last active March 27, 2025 20:53
Ubuntu 20.04 Upgrade nVidia graphics card issue.

Scenario

  • Upgraded to Ubuntu 20.04 from Ubuntu 18.04
  • Previously the graphics card was shown nVidia in Ubuntu about section
  • Now its llvmpipe (LLVM 10.0.0, 256 bits) / llvmpipe (LLVM 10.0.0, 256 bits)

Solution

  • Install all necessary drivers:
sudo ubuntu-drivers autoinstall
@arsho
arsho / update_pypi_package.md
Last active March 26, 2025 00:06
Update existing Python package in Pypi

Update PyPI package (Tested on 12/31/2023)

I updated my package autolike today using the following steps:

Update the project locally

  • Changed the version number in setup.py and modify package as necessary.

Test in development

Assuming you’re in the root of your project directory, then run:

pip install -e .

Created a build

@arsho
arsho / Add SSH Key to Bitbucket OR Github in Ubuntu 16.04.md
Last active February 13, 2025 17:31
Step by step instructions to add SSH key files in Bitbucket or Github

Add SSH Key to Bitbucket / Github in Ubuntu 16.04

What does SSH Keys do in Github / Bitbucket?

Set up SSH to reduce the risk of exposing your username and password. Some reasons you might want to use SSH key base authentication:

  • Is more effective if you push and pull from Bitbucket many times a day.
  • Removes the need to enter a password each time you connect.
@arsho
arsho / add_ssh_github.md
Created June 27, 2022 17:29
Add SSH key to Github from Ubuntu 22.04 LTS
  • Generate SSH key with passphrase and the filename:
ssh-keygen -t ed25519 -C "your_email@example.com"
cat ~/.ssh/id_ed25519.pub
@arsho
arsho / Changing_Remote_URL.md
Last active November 16, 2023 03:53
Git workflow , git conflict , merging repository , git remote

Switching remote URLs from HTTPS to SSH

  • Open Terminal.
  • Change the current working directory to your local project.
  • List your existing remotes in order to get the name of the remote you want to change.
    $ git remote -v
    > origin  https://github.com/USERNAME/REPOSITORY.git (fetch)
    > origin  https://github.com/USERNAME/REPOSITORY.git (push)