-
Notifications
You must be signed in to change notification settings - Fork 2
Arch
If a application doesn't work properly even though packages are installed, check that all optional packages for app are installed
Pressing ctrl+shift+i (on Linux) and the Devtools window will open. Then click on Application -> Service Workers And check the option Bypass for network.
Now press ctrl+r to reload. And ctrl+shift+i to close the Devtools.
Whenever you open your whatsapp the problem will occur, but since the Bypass for network option has already been enabled, you only need to press ctrl+shift+i (open devtools), ctrl+r (reload), ctrl+shift+i (close devtools)
f5fpc -s -x -t https://upclink.upc.edu
f5fpc --stoparchlinux-java <COMMAND>
COMMAND:
status List installed Java environments and enabled one
get Return the short name of the Java environment set as default
set <JAVA_ENV> Force <JAVA_ENV> as default
unset Unset current default Java environment
fix Fix an invalid/broken default Java environment configuration
Format as exFAT for most compatibility with every OS and over 4GB files compatible.
https://wiki.archlinux.org/index.php/Desktop_entries
/usr/share/applications
/home/$USER/.local/share/applications
To use microphone on bluetooth headset swap from A2DP profile in bluetooth manager or pavucontrol to HSP/HFP
- https://wiki.archlinux.org/index.php/Bluetooth_headset
- https://bbs.archlinux.org/viewtopic.php?id=116895
- https://www.philips.co.in/c-f/XC000008687/what-is-a-bluetooth-profile-hsp,-hsp,-a2dp,-avrcp
Use debug option with
/usr/lib/bluetooth/bluetoothd -n -d
Print all environment variables:
envRemove a package and its dependancies:
sudo pacman -RsRemove all orphan packages:
pacman -Rns $(pacman -Qtdq)List all AUR packages:
pacman -QmList installed packages
pacman -Qqe > pkglist.txtRemove cache:
yay -ScIdentify which package owns a file
pacman -Qo /path/to/filePacman failed to commit transaction:
sudo pacman -S $PACKAGE --overwrite '*'- --needed: prevent pacman from reinstalling packages that were already installed
Remove Usb safely:
Option 1:
sync
umount /dev/sdXOption 2:
udisksctl unmount -b /dev/sdXY
udisksctl power-off -b /dev/sdXShow where a executable is at:
which firefox
whereis firefox
See who is connected to your computer:
":0" if its yourself and different ip if its an outsider
who
Check who is connected to the same router
arp
See Default gateway
route
Print PATH:
pathPrint environment variables:
printenvPrint out installed packages by Homebrew:
brew leavesFind out class of an app:
xpropView resources usage:
htopView disk usage:
ncduShow all attached devices:
lsblkTo copy files from one place to another place:
ddShow swap memory:
swapon --showGives information about a disk:
fdisk -l /dev/sdxList blocks with label and UUID
lsblk -fList currently running services:
systemctl --type=serviceShow systemd Journal:
journalctlChange user owner of a file:
chown $user $fileChange group of a file:
chgrp $group $fileUse cfdisk instead of fdisk
cfdiskpacstrap /mnt base linux linux-firmware man-db man-pages texinfo vim sudoInstall a key
gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys CB9387521E1EE0127DA804843FDBB55084CC5D84- hkp://pgp.mit.edu:80
- hkps://pgp.mit.edu
- hkps://keyserver.ubuntu.com
- hkp://p80.pool.sks-keyservers.net:80
View all background jobs
jobsTake a job from the background to the foreground
Takes job number 1 to the foreground
fg %1Kill a specific job
Kills job number 2
kill %2Pressing ‘CTRL+Z’ will suspend the current foreground job.
Making a command execute in background when suspended
bg %1brace expansion:
mkdir Teoria\ {1..4}
Result: creates folders named Teoria 1, Teoria 2, Teoria 3, Teoria 4
Steps: https://www.reddit.com/r/antergos/comments/9h7grw/how_to_wayland_with_lightdm/
-
Verify that you have a Gnome session in /usr/share/wayland-sessions.
-
Using root privilege open a text editor of your preference and edit the /etc/lightdm/lightdm.conf file and uncomment the following line: sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
-
Using root privilege (su or sudo) go to /usr/share/xsessions and move (mv) the gnome.desktop file to gnome.desktop.bak or whatever extension you want at the end of that file name: i.e $ sudo mv gnome.desktop gnome.desktop.bak
-
DO NOT change the name of the other session called gnome-xorg.desktop. Be sure that you are renaming that file under /usr/share/wayland-sessions.
-
Now reboot the machine and select the appropriate sessions in the lightdm sessions list. There are no more duplicated Gnome names, but one called Gnome and other for xorg called Gnome-xorg. Try the Gnome one and check in gnome-terminal if the Wayland protocol is being used: echo $XDG_SESSION_TYPE The response of that command should be wayland.
Here you'll find all things i've learnt from linux thus far, enjoy!