When using the official VS Code Flatpak, configuring the integrated terminal to use your host system's shell often fails with errors like:
bash: cannot set terminal process group (-1): Not a tty
bash: no job control in this shell
| #!/usr/bin/env bash | |
| # Hogwarts Legacy – Heroic Launcher fix script v3 (Mac M4) | |
| LOG="$HOME/hogwarts_fix_$(date +%Y%m%d_%H%M%S).log" | |
| exec > >(tee -a "$LOG") 2>&1 | |
| ok() { echo " [OK] $*"; } | |
| warn() { echo " [!!] $*"; } | |
| info() { echo " --> $*"; } | |
| section() { echo; echo "=== $* ==="; } # renamed: was head(), clashed with /usr/bin/head |
| pkg update | |
| pkg install nodejs python -y | |
| npm install -g @qwen-code/qwen-code@latest --omit=optional |
| #!/bin/bash | |
| # | |
| # BTRFS "No Space Left" Fix for Ubuntu | |
| # Fixes ENOSPC errors when df shows available space | |
| # https://gist.github.com/your-username/gist-id | |
| # | |
| # Usage: | |
| # chmod +x btrfs_fix_ubuntu_no_space.sh | |
| # ./btrfs_fix_ubuntu_no_space.sh | |
| # |
When using the official VS Code Flatpak, configuring the integrated terminal to use your host system's shell often fails with errors like:
bash: cannot set terminal process group (-1): Not a tty
bash: no job control in this shell
| #!/bin/bash | |
| # | |
| # Script to set up BitNet environment. | |
| # | |
| # This script performs the following steps: | |
| # 1. Updates the system's package list. | |
| # 2. Installs necessary dependencies (lsb-release, wget, software-properties-common, gnupg, git, clang, cmake). | |
| # 3. Adds the LLVM repository and installs LLVM. | |
| # 4. Downloads and installs Miniconda with Python 3.9 based on system architecture. | |
| # 5. Makes the conda binaries executable. |
| #!/bin/sh | |
| /system/bin/ip addr add 192.168.1.1/24 dev dummy0 | |
| /system/bin/ip addr add 192.168.2.1/24 dev dummy0 | |
| /system/bin/ip addr add 192.168.3.1/24 dev dummy0 | |
| /system/bin/ip addr add 192.168.4.1/24 dev dummy0 | |
| /system/bin/ip addr add 192.168.5.1/24 dev dummy0 | |
| /system/bin/ip addr add 192.168.6.1/24 dev dummy0 | |
| /system/bin/ip addr add 192.168.7.1/24 dev dummy0 | |
| /system/bin/ip addr add 192.168.8.1/24 dev dummy0 | |
| /system/bin/ip addr add 192.168.9.1/24 dev dummy0 |