diff --git a/linux/automount_fstab.md b/linux/automount_fstab.md new file mode 100644 index 0000000..3b661d5 --- /dev/null +++ b/linux/automount_fstab.md @@ -0,0 +1,5 @@ +# fstab + +1. Get the devices UUID `sudo blkid` +2. Create a mount point. e.g. `/mnt/usb/` +3. Add to fstab `vim /etc/fstab` diff --git a/linux/ffmpeg.md b/linux/ffmpeg.md new file mode 100644 index 0000000..00a93b7 --- /dev/null +++ b/linux/ffmpeg.md @@ -0,0 +1,3 @@ +`ffmpeg -y -f x11grab -s 1280x800 -i :0.0 -f alsa -i default out.mkv` + +`ffmpeg -y -i /dev/video0 out.mkv` diff --git a/linux/hdd_partition_nuke.md b/linux/hdd_partition_nuke.md new file mode 100644 index 0000000..7670e94 --- /dev/null +++ b/linux/hdd_partition_nuke.md @@ -0,0 +1,25 @@ +# + +# Find drives + + lsblk + +The above command can be used to see all drives and partions, as well as where they're mounted. + +# Nuke + +To remove all data from a drive and replace it with nothing do + + dd if=/dev/zero of=/dev/ bs=1M + +You can append `status=progress` to the end to see how far it's going. + +This also words on partitions, you just need to make sure it's selected. + + dd if=/dev/urandom + +Above is an alternative to replace the data blocks with random data. This is better for when giving the device to another person, but will take longer. + +# Parition + +This can be done with a number of utilities, such as `parted` and `fdisk` diff --git a/linux/install_with_apt_dpkg.md b/linux/install_with_apt_dpkg.md new file mode 100644 index 0000000..0f32428 --- /dev/null +++ b/linux/install_with_apt_dpkg.md @@ -0,0 +1,13 @@ +# Install with apt/dpkg + +Install from the repositories + + apt install + +Install a local .deb file + + apt install + +another way to install local .deb files + + dpkg -i diff --git a/linux/systemd.md b/linux/systemd.md new file mode 100644 index 0000000..eca6387 --- /dev/null +++ b/linux/systemd.md @@ -0,0 +1,7 @@ +# Systemd + +It does too much for an init system, and lots of what it does is overwritten with other systems. + +The actual init system portion is fine though. + +https://www.howtogeek.com/687970/how-to-run-a-linux-program-at-startup-with-systemd/ diff --git a/wifi_cli b/wifi_cli new file mode 100644 index 0000000..abbcdb5 --- /dev/null +++ b/wifi_cli @@ -0,0 +1,8 @@ +wpa_passphrase > /etc/wpa_supplicant/wpa_supplicant.conf + + +sudo ip link set dev down // up + +systemctl restart wpa_supplicant.service + +