Skip to content

Instantly share code, notes, and snippets.

View volkbay's full-sized avatar
πŸ’­
πŸ˜΅β€πŸ’«

Volkan Okbay volkbay

πŸ’­
πŸ˜΅β€πŸ’«
  • Ankara, Turkey
  • 13:23 (UTC +03:00)
  • LinkedIn in/volkbay
View GitHub Profile
@volkbay
volkbay / disable_apt_esm_ubuntu_pro_news.md
Created March 1, 2025 21:02
Disable Ubuntu PRO security news from ESM.

πŸ‘Ύ Error

During apt upgrade you get Ubuntu PRO ESM related news. Sometimes, they get quite long and annoying.

πŸ€” Why do I see this error ?

At some point, you should have accepted to receive ubuntu-pro news.

πŸ”Ž How to solve ?

The clean and easy way is to rule out repo information of the esm security updates.

πŸ•ŠοΈ Solution

@volkbay
volkbay / fix_cursor_highlight.md
Created March 1, 2025 20:24
Solution for undetectable cursor due to highlighting in the Gedit text editor.

πŸ‘Ύ Error

In Ubuntu's standard text editor (Gedit), it is hard to spot the cursor on the current line.

πŸ€” Why do I see this error ?

The cursor color and the highlighting match, so it is not possible spot the cursor position. The system probably is in the dark theme mode.

πŸ”Ž How to solve ?

By tweaking 'Preferences', there two options: i-) Disable 'Preferences>View>Highlight current line'. But this method makes the editor to lack of a nice functionality. ii-) Change color themeb by 'Preferences>Font & Color>Color Scheme'. This is the preferable solution.

@volkbay
volkbay / patch_linux_nvidia_driver.md
Created January 15, 2024 22:33
Patch legacy GPU driver on a newer Linux kernel.

πŸ‘Ύ Error

...
installed nvidia-dkms-390 package post-installation script subprocess returned error exit status 10
...

πŸ€” Why do I see this error ?

Legacy GPUs only supported by legacy nVidia drivers. DKMS may not be compiled for the newest Linux kernels.

@volkbay
volkbay / bash_history_w_timestamps.md
Last active July 6, 2023 14:49
Adding time information to your bash command history

πŸ’° Tip

This is useful tip when you need to check exact time of a bash command you've run in the past. You can check your CLI command history by history command on your terminal.

Warning Time information will be recorded in your system as soon as you make to following changes. The commands prior to that will not have correct dates.

Solution is to identify HISTTIMEFORMAT variable. The following command line can be pasted in ~/.bashrc file.

    HISTTIMEFORMAT="%F %T "

@volkbay
volkbay / my_gist_index.md
Last active March 1, 2025 21:04
My Gist Index
@volkbay
volkbay / fix_app_dialog_crash_termux.md
Last active July 6, 2023 15:06
Fixing app crashes when dialog open in Termux (X11 apps on VNC)

πŸ‘Ύ Error

This solution is helpful if you get GLib-GIO-ERROR** .. No GSettings schemas are installed on the system error, when you try to open a dialog window from X11 apps in Termux. This behaviour is typical when you want to "Open File" or "Save As..." (example, Inkscape).

πŸ”Ž How to solve ?

The solution is to identify XDG_DATA_DIRS.

πŸ•ŠοΈ Solution The following command line can be pasted in ~/.bashrc file.

    export XDG_DATA_DIRS="/data/data/com.termux/files/usr/share"
@volkbay
volkbay / fix_apt_kept_back_issue.md
Last active July 6, 2023 15:10
Fix kept back packages issues of apt

πŸ‘Ύ Error

...
The following packages have been kept back:
...

πŸ€” Why do I see this error ?

This may be caused by phased updates or changed dependencies.

@volkbay
volkbay / fix_git_security_check_termux.md
Last active October 2, 2024 17:51
Disable Git security check on Termux

πŸ‘Ύ Error

fatal: detected dubious ownership in repository at '/storage/emulated/0/<some_folder>'
To add an exception for this directory, call:

        git config --global --add safe.directory /storage/emulated/0/<some_folder>

πŸ€” Why do I see this error ?

This is a simple check (by Git) comparing current user ID and the ID of the owner of the current folder. If they do not match (in case of rootless Termux, root owns them all.), Git will not permit any action (even git status).

@volkbay
volkbay / install_jupyter_lab_termux.md
Last active May 19, 2025 22:27
Install Jupyter Lab on Termux

🧰 Setup

  • Termux: 0.118
  • Android: 11
  • Device: Xiaomi Pad5
  • JupyterLab: 3.6.2

πŸͺœ Installation

It is pretty straightforward to install Jupyter Notebook(classic, notebook version<7). In Jupyter Lab case, usually 'maturin' package is problematic to build. Please follow the steps below: