It's hacker time (thelemmy.club)
submitted 3 months ago* (last edited 3 months ago) by to c/linuxmemes@lemmy.world
 

backup config files

you are viewing a single comment's thread
view the rest of the comments
[–] 29 points 3 months ago (4 children)

Until your shit got all fucked up because you added a third party repository. And then you have to manually remove lock files and fix the pkg database and mess with .conf files and manually uninstall specific versions of dependent packages, and then manually re-enable some remote repo.

Then you actually kind of do feel like a hacker.

Until you’ve done it like 10 different times, then you are just annoyed. Still a better love story than Twilight.

  • source
  • hideshow 4 child comments
  • [–] 6 points 3 months ago* (1 child)

    You copy paste the command.

    $ sudo apt update
    -bash: sudo: command not found
    $
    

    Your distro doesn't set up/install sudo by default, so your first task is installing sudo, then understanding /etc/sudoers syntax and understanding why the command to atomically replace /etc/sudoers is visudo and why on a multiuser system there's value to atomic replacement. In the meantime, you probably learn about su and maybe, if your distro has disabled them, how to enable switching to the kernel virtual consoles on tty1 through tty7 so that in the meantime, you can do things as root while staying logged in. Also, you're going to learn about environment variables, so as to set EDITOR, and where your shell config files live, what a login shell is, and in what shells ~/.bash_profile, ~/.profile, and ~/.bashrc run. Also, you first try running visudo as a regular user, but your distro places visudo in /usr/sbin instead of /usr/bin, so you can't figure out why it's not installed and are going to learn about the FHS and mlocate and updatedb so that you can find /usr/sbin/visudo and dpkg -S so that you can figure out which package it's in and confirm that it's actually installed and learn about PATH.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 3 months ago*

    This fucking idiot here changed their debian branch to sid then wondered why the software store didnt work. Luckly I always backup config files. I mean, it's not that complicated to change some lines back, but still.

    Also it's a vbox vm so I could always restore a snapshot. And it exists to tweak so it was meant to be.

  • source
  • parent