Tweaks
Multiple audio outputs in linux
- Install
paprefsand open it. In theSimultaneous Outputtab, check theAdd virtual output device for simultaneous output on all local sound cardsoption. - Run
pactl load-module module-combine-sinkin the terminal. - Open
pavucontroland go to theOutput Devicestab. You should see a new output device calledcombined. - In the
Playbacktab, you can now select thecombinedoutput device to play audio on all outputs simultaneously.
Showing Desktop Icons in GNOME 44
INFO
It is important to note that the following writeup has been found to be entirely copied from a website and is being kept here solely for archival purposes.
Install nemo from your distribution's repositories. On Arch, enter this command on the Terminal application:
bashsudo pacman -S nemoOpen a text editor and copy the following text into a new empty file:
ini[Desktop Entry] Type=Application Name=Nemo Comment=Start Nemo desktop at log in Exec=nemo-desktop OnlyShowIn=GNOME; AutostartCondition=GSettings org.nemo.desktop show-desktop-icons X-GNOME-AutoRestart=true NoDisplay=trueSave the text file as
~/.config/autostart/nemo-autostart-with-gnome.desktopOptional step: In case you want Nemo to behave more similarly to nautilus desktop layout, you can enable the setting running this command on the terminal:
bashgsettings set org.nemo.desktop use-desktop-grid false
Voila! And that's it! Next time you log in, nemo will automatically display icons over the desktop background. If you don't want to log out, you can also manually start it using the Alt+F2 prompt to run nemo-desktop
Poor VSCode loading time on Windows
Just add VScode executable code.exe to your antivirus exception list and see if it works!
mysql connector issues with mariadb
Date : 11 July, 2023
Springboot and probably other systems are failing issues connecting to mariadb on latest releases.
Issues is attributed with recent mariadb-11.X update that caused mysql-connector to break attributed to tx_isolation after MySQL 8.0 update.
To fix that :
Install
downgradefrom AUR (for Arch based systems).bashyay -S downgradeDowngrade mariadb to
10.10.3. You can add these package to IGNORE by choosing them on prompt while downgrading.bashsystemctl stop mariadb sudo pacman -Rs mariadb sudo downgrade "mariadb-libs=10.10.3" "mariadb-clients=10.10.3" "mariadb=10.10.3" sudo systemctl enable --now mariadbCheck if mariadb is working or not. Use old password for same.
bashmariadb -u root -pIf that doesn't work, reset the configuration
DANGER
Data loss!
bashsudo bash systemctl stop mariadb rm /var/lib/mysql mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql mariadb -u root -p MariaDB [mysql]> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password'; # new_password is your new sql password sudo systemctl enable --now mariadbAlternatively, you can reset your mysql password
i) Stop mariadb.service.
ii) Start the MariaDB server with safety features:
bashsudo bash mariadbd-safe --skip-grant-tables --skip-networking &iii) Connect to it:
bashmariadb -u rootiv) Change root password:
bashMariaDB [mysql]> FLUSH PRIVILEGES; MariaDB [mysql]> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password'; MariaDB [mysql]> exitv) Kill running mariadbd* processes:
bashkill $(cat /var/lib/mysql/$HOSTNAME.pid)vi) Start mariadb.service.
Window Subsystem for Linux (WSL) Common Troubleshooting Steps
Fixing common installation issues with WSL for Windows 11 (and also Windows 10) users.
ERROR :
Failed to attack disk........vhdx'SOLUTION
powershellwsl --unregister ubuntu wsl --installERROR :
WslRegistrationDistribution failed with error...........WSL2 requires an update to its kernel componentSOLUTION
Download this and install WSL Kernel Component, then restart your PC and then again open Powershell and run WSL, it might work now!
ERROR :
Failed to fetch distribution list from ......raw.githubusercontent.com.........OR
A connection with server failed to establishedSOLUTION
Download and install Warp, alternatively you can set your Preferred DNS Address to 1.1.1.1 in IP settings.
It might also be related to disabled windows features, so do check that out too.
General Errors : Disabled Windows Features
SOLUTION
i) Open
Turn Windows features on or off(Use Windows Search for finding it)ii) Ensure
Virtual Machine PlatformandWindows Subsystem for Linuxbox is checkediii) Restart and again try installing WSL
ERROR :
Distribution is not installed.......SOLUTION
Run
wsl --install --d Ubuntuin powershell and wait.ERROR : Invalid Username on registration
SOLUTION
Username can't contain spaces or capital letters (alternatively you can use dashes etc).
Sidenote
Remember the login password
logseq and git
INFO
For some reasons, logseq + git doesn't work the same as it should with flatpak
For logseq installed using system package, to push a commit using ssh in arch linux
Make sure you have the necessary git plugins installed in logseq from plugin marketplace.
If you're using ssh for git, you might be getting errors like
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory. For resolving those, a workaround is to installksshaskpassand symlink/usr/bin/ssh-askpassto ksshaskpass.bashsudo pacman -S ksshaskpass sudo ln -s $(which ksshaskpass) /usr/bin/ssh-askpass
Next.js 13 crashing the entire PC on Linux
systemd-run --scope -p MemoryLimit=1500M npm run devDPI issues in PDFs/while taking screenshots when using Firefox RTF (resistfingerprinting)
Text is generally fuzzy on high DPI displays on firefox due to DPI set to 1 due to RTF. This behaviour is also suplemented in firefox screenshot which has been reportedly not working the same as expected(overcropped edges) due to that, requiring you to manually scale the display for complete shoot.
- Switch from
privacy.resistfingerprintingtoprivacy.fingerprintingProtection. - Set
privacy.fingerprintingProtection.overridesto+AllTargets,-WindowDevicePixelRatio,-CSSPrefersColorScheme.CSSPrefersColorSchemeis optional, and you can ignore that by the way.