GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My install was going fine. I has just chrooted and was working on flags when I decided to add my user I su to my user to make sure all was well. My user was in the wheel group and I know the first thing I did was add my root passwd for my install. In most of the posts I read it said use sudo su which doesn't work. I don't want to start over. suggestions please.
I would say use sudo OR su, not both.
* sudo executes one command with root owner, but your group
* su changes you to root:<group> where <group> is your user's group
* su - changes you to root:root
EDIT: * chroot <location> changes the location of / from that terminal's perspective. It's usually a major PITA, as if you try to go doing stuff you need a working /proc, /sys, & /var which are written up as the kernel goes along. But it can be useful.
Last edited by business_kid; 10-15-2017 at 10:53 AM.
It also changes your environment to root's, which su doesn't.
Quote:
EDIT: * chroot <location> changes the location of / from that terminal's perspective. It's usually a major PITA, as if you try to go doing stuff you need a working /proc, /sys, & /var which are written up as the kernel goes along. But it can be useful.
It's essential when installing Gentoo. Gentoo comes as a skeleton filesystem tarball which you unpack on a mounted partition. You have to create the dynamic directories by binding them to the ones on your host system. Then you chroot across to carry out the rest of the installation. Now that I come to think of it, it's not unlike the way you build LFS.
It also changes your environment to root's, which su doesn't.
It's essential when installing Gentoo. Gentoo comes as a skeleton filesystem tarball which you unpack on a mounted partition. You have to create the dynamic directories by binding them to the ones on your host system. Then you chroot across to carry out the rest of the installation. Now that I come to think of it, it's not unlike the way you build LFS.
This changed a bit. You only have to mount '/' somewhere on the running system (i mounted mine under '/gentoo') and when you follow the document for Gentoo install it creates the directories underneath '/' for you.
@OP: follow the document. Simple pick the type of system you are installing on and it will get you to a bare bone system that boots. I just finished install Gentoo and it's running nicely. One tip I will give you is is you plan on booting UEFI then make sure you booted the system using UEFI. Makes life a lot easier.
Thanks I'll keep that in mind. But su didn't work because it wanted my root passwd which it wasn't accepting. Since I was so far along I just had to mount my file systems and go from there.
My install was going fine. I has just chrooted and was working on flags when I decided to add my user I su to my user to make sure all was well. My user was in the wheel group and I know the first thing I did was add my root passwd for my install. In most of the posts I read it said use sudo su which doesn't work. I don't want to start over. suggestions please.
In a chroot environment, e.g. sysrescue-cd, you are already user root.
Just use the gentoo handbook just as a recommendation. It has many flaws, many incorrect things. also gentoo wiki has many typos. The advanced user sees it quite fast
You just need to do the necessary steps. The user creation is just the same as it always was. When you are unable to enter your box after reboot, just chroot again and redo the part of creating the users.
the gentoo handbook is quite wrong on mount -rebind options and such, filesystems, swap, and such. Endless topic
--
sudo su, is for linux mint based distros, not for gentoo. it gives you a permanent superuser shell, because su does not work properly on linux mint, it enforces sudo. sudo is very very very very bad.
in gentoo it's enough to login as user root, or use su as your user to get privilege
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.