Skip to content

Instantly share code, notes, and snippets.

@sormy
Last active March 10, 2022 09:42
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save sormy/7221a65a3becf082aaa3af2ec8dee1bc to your computer and use it in GitHub Desktop.
Save sormy/7221a65a3becf082aaa3af2ec8dee1bc to your computer and use it in GitHub Desktop.
gentoo quick install script
# Gentoo Installer has been moved to the repo
# The latest version is available here: https://github.com/sormy/gentoo-quick-installer
@Gremlingroj
Copy link

The installation is successful, but after rebooting it does not accept the root password set in livecd mode.

@mycreativecafe
Copy link

Installation is successful, but i can't login using root password set in livecd mode, it always says Wrong password.

@sormy
Copy link
Author

sormy commented Jul 25, 2020

This script doesn't allow password access by default. Only SSH using key provided in SSH_PUBLIC_KEY. If you want password access, then comment out passwd -d -l root.

@Adee1337
Copy link

any way to use it without SSH or set a regular password?

@sormy
Copy link
Author

sormy commented Jul 29, 2020

any way to use it without SSH or set a regular password?

If you want password access, then replace passwd -d -l root with passwd root and enter password when will be asked.

@Adee1337
Copy link

Adee1337 commented Aug 7, 2020

thanks it worked

@sormy
Copy link
Author

sormy commented Sep 28, 2021

to @prizde

why the hell you set a root a root passwd

I don't and script don't. passwd -d -l root removes password for root making it impossible to login with any password, this is for security purposes to avoid default passwords.

and why its asking for ssh

Usually provisioning over SSH is much easier, since you can read articles and copy/paste instructions remotely using secured shell with public key authentication. If network is not available or ssh is not an option for any reason, then you can use ROOT_PASSWORD variable to set password for root and login from tty1 using it. ROOT_PASSWORD is not set by default, you need to explicitly set to any password you want.

shitty scripter

This is not constructive dialogue, educate yourself, both hard and soft skills.

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