How to change coc.nvim floating hint text and background colors?

Conquer of Completion (Coc.nvim) plugin uses highlight groups that start with Coc like CocErrorSign, CocWarningSign, CocInfoSign, and CocHintSign, FgCocErrorFloatBgCocFloating.

Pmenu stands for “Popup menu”, and it controls the colors of the popup menu that appears when you use certain features such as autocompletion.

:hi Pmenu ctermfg=white ctermbg=black
:hi FgCocErrorFloatBgCocFloating ctermfg=red ctermbg=black

or with sets the background color of the text to color number 239

:hi Pmenu ctermfg=white ctermbg=239
:hi FgCocErrorFloatBgCocFloating ctermbg=239

or with colorscheme evening

:colorscheme evening

N: Repository ‘https://deb.debian.org/debian bullseye InRelease’ changed its ‘Suite’ value from ‘stable’ to ‘oldstable’

This error occurs when the release information for the repository has changed, and the package manager is cautious about applying updates with potentially conflicting information.

sudo apt update

N: Repository 'https://deb.debian.org/debian bullseye InRelease' changed its 'Suite' value from 'stable' to 'oldstable'

The solution to this issue is to use the –allow-releaseinfo-change flag when running apt update

sudo apt --allow-releaseinfo-change update

The –allow-releaseinfo-change option instructs apt to permit changes in the release information for the repositories, acknowledging that the changes are expected and acceptable.

ModuleNotFoundError: No module named ‘_sqlite3’ on FreeBSD

The error message “ModuleNotFoundError: No module named ‘_sqlite3′” on FreeBSD indicates that the Python interpreter is unable to find the ‘_sqlite3’ module, which is required to work with SQLite databases. This issue commonly arises when Python is not built or installed with support for SQLite.

(venv) ➜ python --version         
Python 3.8.12

(venv) ➜ pkg search sqlite3     
py27-sqlite3-2.7.18_7          Standard Python binding to the SQLite3 library (Python 2.7)
py310-sqlite3-3.10.1_7         Standard Python binding to the SQLite3 library (Python 3.10)
py311-sqlite3-3.11.0.a3_7      Standard Python binding to the SQLite3 library (Python 3.11)
py37-sqlite3-3.7.12_7          Standard Python binding to the SQLite3 library (Python 3.7)
py38-sqlite3-3.8.12_7          Standard Python binding to the SQLite3 library (Python 3.8)
py39-sqlite3-3.9.9_7           Standard Python binding to the SQLite3 library (Python 3.9)
sqlite3-3.35.5_4,1             SQL database engine in a C library
sqlite3-icu-3.35.5_4,1         SQL database engine in a C library (ICU flavor)
sqlite3-tcl-3.35.5_4,1         SQL database engine in a C library (TCL flavor)
(venv) ➜ doas pkg install py38-sqlite3-3.8.12_7          
Password:
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
	py38-sqlite3: 3.8.12_7

Number of packages to be installed: 1

29 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching py38-sqlite3-3.8.12_7.pkg: 100%   29 KiB  29.9kB/s    00:01    
Checking integrity... done (0 conflicting)
[1/1] Installing py38-sqlite3-3.8.12_7...
[1/1] Extracting py38-sqlite3-3.8.12_7: 100%

Create and Enable Swap file in Debian

fallocate -l 2G /swapfile   # create a swap file of size 2GB
or 
dd if=/dev/zero of=/swapfile bs=1M count=2048

chmod 600 /swapfile         # read right only for the root user
mkswap /swapfile            # to create swap space
swapon /swapfile            # to enable the swap partition

vim /etc/fstab              # to ensure persists at boot
/swapfile swap swap defaults 0 0

vim /etc/sysctl.conf
vm.swappiness=10            # less RAM increase the swappiness

pfctl: /dev/pf: No such file or directory

Need to load the kernel module:

root@freebsd:~ # kldload pf    # requires administrative privileges 

kldload pf command dynamically loads the pf kernel module into the operating system’s kernel, enabling the Packet Filter firewall functionality. Once pf is loaded, you can configure and use the firewall rules to control the flow of network traffic, apply NAT rules, and perform other network-related tasks.

Debian Xfce – Right click on desktop not working, also folders and files on desktop are not visible.

xfdesktop -Q && xfdesktop -e > /tmp/xfdesktop.log 2>&1
> xfdesktop -Q: The -Q option is used to query the current state of the XFCE desktop. It checks if the XFCE desktop is running and displays information about its current state, such as whether the desktop is active or not.

> &&: This is a shell operator used to execute the second command only if the first command (in this case, xfdesktop -Q) is successful.

> xfdesktop -e: The -e option is used to reload or restart the XFCE desktop. Reloading the desktop can be useful to apply any changes made to the desktop configuration or appearance without the need to log out and log back in.

> /tmp/xfdesktop.log: To redirect the standard output (stdout) of the xfdesktop -e command to a file called "xfdesktop.log" in the "/tmp" directory. The > symbol is used for output redirection.

> 2>&1: To redirect the standard error (stderr) of the xfdesktop -e command to the same file as the standard output. The 2 refers to stderr, and 1 refers to stdout. Combining them as 2>&1 ensures that both stdout and stderr output from the xfdesktop -e command will be appended to the "xfdesktop.log" file.

Applications -> Settings -> Desktop -> Menus
Check "Include applications menu on desktop right click"

How to upgrade from Debian 10(buster) to 11(bullseye)

Take system backup (very important). system backup with rsync


sudo apt update
sudo apt upgrade

# replace buster with bullseye and on security line buster/updates to bullseye-security
sudo vim /etc/apt/sources.list 

# example
deb http://deb.debian.org/debian/ bullseye main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye main contrib non-free

deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free

# bullseye-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free

# upgrade to 11
sudo apt update
sudo apt upgrade
sudo apt full-upgrade

# restart
sudo reboot

# check upgrade
cat /etc/os-release

PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"