I thought I wouldn’t need to since I already had grub on my machine from the previous Ubuntu install but in the end it didn’t work without going through the GRUB install process Toward the end of the installation it tells you to install a bootloader. Eventually I got it to work when I installed NetworkManager and enabled rvice, which in turn only made sense to me after I’d read about start/enable and realised that “starting” a service sets it running in the background now, and “enabling” it means it will start automatically on startup. The network configuration step gave me some grief. It took me three tries to get a working installation, because I missed some subtle thing (e.g., the first time I didn’t have the bootable USB booting in UEFI mode, because obviously I would have thought of that at the beginning… sigh).Įverything became easier once I started feeling comfortable using pacman. The installation guide ( ) is good but dense, and I had to read a lot of the documents it links to in order to make progress. What I am going to do, however, is jot down my notes to myself on the process. My point is I have no business whatsoever in trying to guide anyone else through the installation process. The only reason any of this happened is that I happened to have a spare laptop 2 and couldn’t think of anything better to do with it. Top of that list is that I am a complete amateur when it comes to Arch and I have no idea whatsoever what I’m doing. Try running printf '%s\n' | LANG=C sort to see whether your current language prints AaBbCc etc or ABC then abc to determine what the best "last" letter prefix to use would be.I have absolutely no intention of writing a “how to install Arch” guide, for many excellent reasons. This is because depending on your language settings the "lexical sorting" the shell uses sorts numbers first and then may interleave upper and lowercase when sorting in "ascending" order. You can control the file name ordering by using a prefix of 00-99 or aa/bb/cc, though also keep in mind that if you have ANY files that don't have numeric prefix, they will load after the numbered files, overriding the settings. Keep in mind that the ordering of the FILE NAMES and of the RULES within the file is very important, the LAST one loaded wins, whether it is MORE or LESS permissive than the previous entries. If you find yourself creating lots of these sudoers.d files then perhaps you will want to create them named per user so they are easier to visualize. You can run sudo -l to see the permissions that your user has been granted, if any of the user specific NOPASSWD commands appear BEFORE any %groupyouarein ALL=(ALL) ALL command in the output you will be prompted for your password. Then save and exit and visudo will warn you if you have any syntax errors. Gatoatigrado ALL=NOPASSWD: /bin/set-slow-cpufreq You should also always use visudo to edit the file(s). Ideally if you are customizing what commands can be run via sudo you should be making these changes in a separate file under /etc/sudoers.d/ instead of editing the sudoers file directly. (sudo visudo)Īlso, having another window open switched to the root user allows you to recover any mistakes you might make while changing the sudoers file. Rather than moving my entry below the sudo line I simply removed the line I had previously added and then added NOPASSWD to the entry for %sudoĪgain only use nopasswd if you really need it (In my case it was precisely what I needed, for most users requiring a password for sudo activity is best)Īlways edit sudoers with visudo. The group sudo shows up in sudoers after the entry for my username. I was still having to password authenticate.Įnzotib's answer is the key to what's going on. NOTE if you use nopasswd on your laptop you must always lock your computer as you walk away or else a casual attacker can compromise a lot while you're getting up to put cream in your coffee I had then manually added myself to the sudoers file using sudo visudo: my_username ALL=(ALL:ALL) NOPASSWD:ALL The Ubuntu installer prompts for a non-root admin user which gets added to the group sudo. I have enabled full disk encryption (otherwise an attacker with physicall access can do anything he or she wants) I want to auth with pub key only (I will unset the password so that the "have something, know something" scheme will be a password protected keypair -root login is of course disabled entirely) My situation is I'm setting up a remote system that will run headless.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |