A collection of guides for some tasks in Linux.
Index | Title |
---|---|
1. | Mounting ISOs |
2. | Disable WebRTC in Firefox |
3. | Merge Title and Tab bar in Firefox |
4. | KGet integration in Chrome |
5. | SDDM not starting fix |
6. | Dolphin Terminal |
7. | Kvantum Theming fix on Artix |
8. | Watching Youtube videos in terminal (ASCII) |
9. | Mount NTFS partition on boot |
10. | Using different wallpapers on each virtual desktop in KDE |
To mount an ISO file, issue the following commands.
mkdir /mnt/iso
sudo mount /path/to/iso /mnt/iso
If the mounted iso is smaller in size or has files missing, use this instead:
sudo mount -o loop /path/to/iso /mnt/iso
When using custom DNS, this would prevent DNS leaks.
- Write “about:config” into your browser bar and hit Enter.
- You will be prompted with a warranty warning. Click on “I accept the risk!”.
- Search for “media.peerconnection.enabled”.
- Double click on it so that the value changes to “false” and the status changes to “modified”
While pretty straight forward to do in other browsers, merging the tab bar with title bar is not an option in firefox settings. It can be enabled as follows:
- open
about:config
- set browser.tabs.drawInTitleBar to true
Kget is a download manager for KDE plasma. It has a hassle free integration with the KDE browser Konqueror but not with other browsers. Here is how to integrate it with Chrome.
-
Clone this repository.
-
Open terminal and navigate to the cloned repository.
-
Run:
cp kget-integrator /usr/bin/kget-integrator && chmod +x /usr/bin/kget-integrator
sudo cp Conf/com.kgetdm.chrome.json /etc/opt/chrome/native-messaging-hosts
-
Open chrome://extensions
-
Click
Load unpacked
-
Select kget-integrator/chrome folder
-
Copy extension ID from chrome
-
Edit
/etc/chromium/native-messaging-hosts/com.kgetdm.chrome.json
-
Paste the following in the file. Replace
<Extension ID Goes here>
with the extension ID:"allowed_origins": [
"chrome-extension://<Extension ID Goes here>/"
]
-
Do not remove the last '/' after the extension ID. Save the file. KGet should work with Chrome now.
I once accidentally removed mesa-git
package which resulted in SDDM (Simple Desktop Display Manager/login screen) to not start. To fix it, do the following:
- Press ctrl-alt-f2 to get a terminal.
- Enter login credentials.
- Type
nmtui
and press Enter to get a terminal based network manager interface. - Use nmtui to connect to the Internet.
- Run
sudo pacman -S mesa
- Reboot.
Pressing f4
in Dolphin file manager opens the terminal which changes directory with Dolphin.
Some themes were not being applied properly on Artix (KDE). To fix it, remove qt5-styleplugins
using pacman. artix-gtk-presets
and artix-qt-presets
depend on it. Remove them too.
A cool little tool to play youtube videos in terminal using ASCII art.
- Install
mpv
from git - Install youtube-dl package from pacman:
sudo pacman -S youtube-dl
. - Run the command after replacing with the video URL you want to play:
env CACA_DRIVER=ncurses mpv -quiet -vo=caca "<Video url goes here>"
Linux usually does not mount an NTFS formatted drive on boot. To make it automatically mount the drive on boot, do the following.
-
Create a file in a location of your choice. I usually use
/usr/local/bin
by issuing the command:sudo touch /usr/local/bin/ntfs-mount
-
Add the following lines to the file. #!/bin/bash
gio mount -d /dev/sdb4
-
Run
chmod +x /path/to/this/script
. Replace path with your path (/usr/local/bin in my case). -
There are several ways of making this script run automatically at boot. I use autostart feature in KDE system settings. Go to settings, find
autostart
, click add and select the script.
- Install Vallpaper.
- Right-click desktop, select
Configure Desktop and Wallpaper
. - Change wallpaper type to
vallpaper
. - Select one or more picture as the picture source.
- Rinse and repeat for all virtual desktops.