Install dependencies:
pacman -S libimobiledevice
yay -S ifuse
Enable USB service:
systemctl start usbmuxd.service
Pair:
idevicepair pair
Create a mounting directory:
mkdir /mnt/iphone
Mount phone to directory:
ifuse -o allow_other /mnt/iphone
Verify:
ls /mnt/iphone
Access files as needed.
…assuming “wpa_supplicant” and “iw” is are available, which should be the case.
Run:
sysctl -w net.ipv4.ip_forward=1
Verify a wireless driver (i.e. wlp4s0) is available with ls /sys/class/net. A common output looks like:
enp6s0f0 lo wlp4s0
Create a temporary configuration file with nano /etc/wpa_supplicant.conf and append the following lines:
network={
ssid="<ssid>"
psk="<password>"
}
Connect to the previously specified <ssid> by running the following commands in order:
ip link set wlp4s0 down
ip link set wlp4s0 up
wpa_supplicant -B -i wlp4s0 -c /etc/wpa_supplicant.conf -D nl80211,wext
dhclient wlp4s0
Verify that a connection has been established. There are several ways of doing this, put a simple ping will be sufficient:
ping www.searx.be
You may now purge the temporary configuration file with rm /etc/wpa_supplicant.conf.
Access internet as needed.
Edit .bashrc file:
nano /etc/bash.bashrc
Append text to the end of the file:
PATH=${PATH}:/<path>/<to>/<directory>
OR
export PATH=/<path>/<to>/<directory>/bin:$PATH
Re-load .bashrc file:
source /etc/bash.bashrc
Attempt to execute a binary. For elevated privelages with said binaries, enter super user mode (su):
fastboot
Set up USB:
ip link set usb0 up
Enable USB network utilization:
dhclient usb0
Initialize ADB shell:
adb shell
Uninstall:
pm uninstall -k --user 0 <package>
Re-install:
pm install-existing <package>
ADB install:
adb install <filename>.apk
Kernel release:
uname -r
All available information:
uname -a
Navigate to home folder:
cd
find -name <filename>
find . -name <filename>
Run chmod:
chmod -R a+rwx *
Add the printer’s I.P. address via lpadmin:
lpadmin -p <printer_name> -E -v "ipp://<ip_address>/ipp/print" -m everywhere
Run dmidecode:
dmidecode --type 17
Become super user:
su
Open the sudoers file:
nano /etc/sudoers
Append permission:
<username> ALL=(ALL) ALL
PDF to JPEG:
pdftoppm -jpeg -r 300 <input.pdf> <output>
JPEG to PDF:
pdftoppm '<input.pdf>' '<output>' -jpeg -r 300
GIF to JPEG:
convert -verbose -coalesce <input.gif> <output.jpeg>
Encrpt file with GPG:
gpg -c <filename>
Decrypt file with GPG:
gpg -d <filename>
Fetch IP metadata:
whois <ip>
Find printer name:
lpstat -p
Enable printer:
cupsenable <printer_name>
Download M4A in the highest quality:
yt-dlp -f 'bestaudio[ext=m4a]/m4a' <url>
Download MP4 in highest quality:
yt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/m4a' <url>
Edit config file:
nano /etc/mkinitcpio.conf
Regenerate initramfs image:
mkinitcpio -p linux
Enable and start the libvirtd service:
systemctl enable libvirtd.service %% systemctl start libvirtd.service
Add connection to virt-manager:
File -> Add Connection -> Connect
Install dependencies:
pacman -S fluidsynth soundfont-fluid
Edit config file:
nano /etc/conf.d/fluidsynth
SOUND_FONT=/usr/share/soundfonts/FluidR3_GM.sf2
OTHER_OPTS='-a alsa -m alsa_seq -r 48000'
Enable fluidsynth daemon:
systemctl –user enable fluidsynth.service
systemctl –user start fluidsynth.service
Verify in WINE settings:
winecfg
perl-rename:Replace capital characters with lowercase ones, remove spaces, etc.:\
perl-rename -f 'y/A-Z/a-z/' * && perl-rename "s/_/-/g" * && perl-rename "s/ /-/g" * && perl-rename "s/---/-/g" *
Convert:
for file in *.jpeg; do cwebp $file -o 'basename ${file%.jpeg}'.webp; done
Navigate to source folder directory:
cd /usr/local/src
Install repository:
git clone
Build:
Autotools build system:
$ ./configure
$ make
$ make install
Meson build system:
$ meson _build
$ cd _build
$ ninja
$ ninja install
Execute:
xdg-mime default org.gnome.Nautilus.desktop inode/directory
Execute:
dmidecode -s system-serial-number
To prevent Mac from sleeping when the lid is closed and connected to AC power:
caffeinate -s
“Most modern computers have at least two modes: privileged mode and user mode. In privileged mode, a program can see the actual addresses of all the memory in the system (unless there’s a hypervisor, but that’s another topic). In user mode, a program uses different addresses to refer to memory. The OS tells the MMU how to translate the addresses, so then the MMU can translate every memory address that the user program works with into actual memory addresses.” - Unknown