Skip to content

JakeIsMeh/wiki-and-misc-resources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JakeIsMeh's Wiki and Misc Resources

Table of contents


Handy Commands List

Add user to sudo on Debian-based systems

# Run these as root
usermod -aG sudo [username]
reboot

Add user to sudo on Alpine-based systems

# Run these as root
addgroup sudo
addgroup [username] sudo
sed -i -r 's/\# \%sudo/\%sudo/' /etc/sudoers
# ^ Allows users in the sudo group to use sudo
reboot

Refresh user groups without relogging-in

exec su -l $USER

Credits: Edwards Research Group - Blog, retrieved 2020-06-05

Sidenote: Disable your adblocker if archive.org isnt working.


Scripts

efibootmgr Entry Generator

Ever tried adding a EFIstub entry with efibootmgr by hand? This takes the pain out by automating the grepping and substitutions for you.

GitHub:

# tbh just su into root first
wget -O efibootmgr_entry_generator.bash https://raw.githubusercontent.com/JakeIsMeh/wiki-and-misc-resources/master/res/efibootmgr_entry_generator.bash && chmod +x efibootmgr_entry_generator.bash && bash ./efibootmgr_entry_generator.bash

GitHub:

# tbh just su into root first
wget -O efibootmgr_entry_generator.bash https://gitlab.com/JakeIsMeh/wiki-and-misc-resources/raw/master/res/efibootmgr_entry_generator.bash && chmod +x efibootmgr_entry_generator.bash && bash ./efibootmgr_entry_generator.bash

Alpine Linux Post-Install Script

GitHub:

# Run this as root
wget -O post_inst_alpine.sh https://raw.githubusercontent.com/JakeIsMeh/wiki-and-misc-resources/master/res/post_inst_alpine.sh && chmod +x post_inst_alpine.sh && ./post_inst_alpine.sh

GitLab:

# Run this as root
wget -O post_inst_alpine.sh https://gitlab.com/JakeIsMeh/wiki-and-misc-resources/raw/master/res/post_inst_alpine.sh && chmod +x post_inst_alpine.sh && ./post_inst_alpine.sh

Ubuntu Server 20.04 Debloat Script

GitHub:

# Make sure you are/can be a privileged user
curl https://raw.githubusercontent.com/JakeIsMeh/wiki-and-misc-resources/master/res/ubnt_srv_20_04_debloat.bash | sudo bash

GitHub:

# Make sure you are/can be a privileged user
curl https://gitlab.com/JakeIsMeh/wiki-and-misc-resources/raw/master/res/ubnt_srv_20_04_debloat.bash | sudo bash

Post-install script for Debian-based systems running XFCE4.12+

GitHub:

$ wget -O post_inst_deb_xfce4.sh https://raw.githubusercontent.com/JakeIsMeh/wiki-and-misc-resources/master/res/post_inst_deb_xfce4.sh && chmod +x post_inst_deb_xfce4.sh && ./post_inst_deb_xfce4.sh 

GitLab:

$ wget -O post_inst_deb_xfce4.sh https://gitlab.com/JakeIsMeh/wiki-and-misc-resources/raw/master/res/post_inst_deb_xfce4.sh && chmod +x post_inst_deb_xfce4.sh && ./post_inst_deb_xfce4.sh

Put background in /usr/share/backgrounds as background.png


Miscellaneous Tips

Booting Alpine Linux on VMware Workstation

  1. Against the developers' advice, use the alpine-standard image.
  2. When setting up storage, either don't use SCSI at all, or use Paravirtualized SCSI.
  3. After creating the VM, close VMware and edit the .vmx file for the VM as follows:
- mem.hotadd = "TRUE"
+ mem.hotadd = "FALSE"
  1. Profit, voila, presto, etc.

Bug tracker on GitLab: alpine/aports #8476

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages