Skip to content

Instantly share code, notes, and snippets.

@DarinDev1000
Created February 12, 2019 05:53
Show Gist options
  • Select an option

  • Save DarinDev1000/7b08260a6cf5bd906b6f7609f8ce5bad to your computer and use it in GitHub Desktop.

Select an option

Save DarinDev1000/7b08260a6cf5bd906b6f7609f8ce5bad to your computer and use it in GitHub Desktop.
# this disables the graphical login - use startx to start X
vi /etc/default/grub
# change to
GRUB_CMDLINE_LINUX_DEFAULT="text"
update-grub
# from the CLI
systemctl set-default multi-user.target
# to fix vi arrow keys
apt install vim-nox
# fix /root/.bashrc
export PATH="$PATH:$HOME/bin:."
# here is the update script - also for future reference
cd; mkdir bin; cd bin; vi upit; chmod +x upit
#!/bin/bash
# /root/bin/upit
# run the update upgrade
apt-get check
apt-get clean
apt-get update
apt-get -y upgrade
apt-get -y dist-upgrade # warning - will update kernel
apt-get -y autoclean
apt-get -y autoremove
lsb_release -a
cat /proc/version
cat /etc/os-release
# to fix the repos
#dpkg --configure -a
#apt-get -f install
#--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment