Skip to content

Instantly share code, notes, and snippets.

View volkbay's full-sized avatar
💭
😵‍💫

Volkan Okbay volkbay

💭
😵‍💫
  • Ankara, Turkey
  • 21:39 (UTC +03:00)
  • LinkedIn in/volkbay
View GitHub Profile
@volkbay
volkbay / install_jupyter_lab_termux.md
Last active July 6, 2024 14:33
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:

@volkbay
volkbay / fix_git_security_check_termux.md
Last active April 22, 2024 13:49
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 / 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_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 / my_gist_index.md
Last active January 15, 2024 22:34
My Gist Index
@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 / 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.