Skip to content

Instantly share code, notes, and snippets.

@zudsniper
Last active October 6, 2022 07:35
Show Gist options
  • Save zudsniper/055d27a9f0aa07544d63874446ed0288 to your computer and use it in GitHub Desktop.
Save zudsniper/055d27a9f0aa07544d63874446ed0288 to your computer and use it in GitHub Desktop.
I made this little succinct guide because I kept forgetting how to do things

DEBIAN GAMING

image
this is because i have dementia.

networking

  • get public IP address (from cloudflare)
$ dig +short txt ch whoami.cloudflare @1.0.0.1
  • get local IP address
$ hostname -I
  • general connection info
$ ip a

NORDVPN ovpn files

all files available here on nord website

how to install openvpn

do this stuff 0. (su root)

  1. $ apt install curl openvpn unzip
  2. $ openvpn --conf <.ovpn from nord || ovpn.conf> --daemon

usage as service like this

$ systemctl <start || stop || restart>  openvpn

gui

  • toggle GUI enabled (any distro)
# disable the gui
$ systemctl set-default multi-user.target

# enable the gui
$ systemctl set-default graphical.target

users & login

  • add existing user to sudoers
$ usermod -aG sudo <user>
  • autologin lightDM
$ vim /etc/lightdm/lightdm.conf

uncomment autologin-user= and put the autologin user you'd like after the equals duh also uncomment autologin-user-timeout=0 and set it to zero probably

autosleep / turning itself off

  • disable this (deb 11)
$ sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

nonfree firmware (pain)

  1. identify the missing files
$ sudo dmesg

this will list many files -- any that are RED are missing firmware!

  1. google them lmao figure out what firmware-nonfree subpackage they're from -- or i guess ball and install the whole damn thing? but thats not a good idea

(WITH WIFI) [FINISHED] just apt install firmware-realtek or whatever firmware it is (WITHOUT WIFI) oh boy.

prereqs

  • ideally, another debian PC ... or
  • PC or mac
  • virtualbox
  • debian .iso
  • ANOTHER flash drive besides the installation drive

steps

  1. on your PC, create a VM with the debian iso
  2. with this VM, download your deb file as a file via ftp (some client, wget, or something else idk)
  3. use dpkg-deb -xv {deb-file} /output/path to extract the damn thing -> put it on your external drive!
  4. figure out where they need to go based on the error file path shown when trying to install (mine was placing the firmware folder in the root dir of my flash drive for the debian installer to find it)
  5. plug in flash drive with necessary nonfree firmware into debian machine
  6. try until you 1. give up 2. succeed

donat πŸ’²πŸ’²πŸ’²

Donate
*click hamter
**donations will go towards upkeep of my server: I hope to avoid having to use ads or annoying ranks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment