LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 06-05-2017, 07:55 PM   #1
chezeburger
LQ Newbie
 
Registered: May 2017
Posts: 5

Rep: Reputation: Disabled
Exceptionally frustrated funtoo noob


OK, I know, *it's not gentoo*! But, this is the closest place I could find to ask for help. I can't get an account on the funtoo forums b/c it tells me that even my real info sounds like spam. So either they are super-duper-triple-dipple-ultra-paranoid or the bots are starting to imitate me? And I have no idea how to get on IRC to ask someone to create an account for me, nor do I really care to go through all that trouble. That's ridiculous.

Any way,

I've got a root shell, a desktop epro flavor, wifi, a user and sudo all set up.

I have a very primitive x environment so far with xinit and links for permission testing purposes.

I am following the tuts in this link Non root Xorg as I cannot find anything directly on point in the funtoo handbook.

I am trying to set things up so that X will start as a regular user.

I am also employing the alternative method at the bottom of the page to not use the group "input" to make this work, but instead use setgid.

I can

Code:
startx -- vt1
as root or as my user with sudo.

But, just as soon as I try it as my user with no elevated permissions I start throwing xauth errors.

So I am confident that Xorg is installed and working as I can initiate a root session. I just need to sort out the configuration to get it working as a regular user before I move on to installing a DE.

I have added my user to the video group and I have defined my video card (intel) in /etc/portage/make.conf.

I have done *almost* everything in the tut.

I *have not* added the keywords in /etc/portage/package.keywords to pull in the unstable packages as listed in the tut for two reasons:

1) ISFAIK this now works with the stable version?
2) Knowing literally nothing about anything yet I have read, briefly, that a lot of stuff has been moved around in funtoo and IDK if /etc/portage/package.keywords is the right place to put the defined variables.

The googles have not been my friend. I have only found one post in the webs that was even close. It was a guy over at the funtoo forums (I guess he is more real than I am) who already had a radeon driver and xfce installed and the issue turned out to be a typo in that he had named the .xinitrc file incorrectly as .xinit. As I have not even tried to configure .xinitrc yet I doubt that is my problem.

I've never worked with these aspects of the system before and therefore have no experience to guide me. In other words, I'm not even sure where or how to start troubleshooting.

Should I go ahead and try to configure .xinitrc even though I don't have a DE yet and I am just trying to work out the security permission to be able to start X manually as an unprivileged user before I move on to other issues?

Should I put the keywords in to /etc/portage/package.keywords to pull in the unstable packages?

Should I give up and go fishing?

Any help appreciated.
 
Old 06-06-2017, 01:29 AM   #2
chezeburger
LQ Newbie
 
Registered: May 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Whoooo, If you want to be the man you have to beat the man!

Chezeburgers all around, on me!

Got it, this is for google and others who get stuck.

Note: All the config work was done in a root virtual terminal (vt1). The testing was done in a user vt (vt2).

When you don't know squat start parsing the logs and googling the errors.

This error in /home/user/.local/share/xorg/Xorg.?.log:
(note: dep on # of vt's open ?=0-8)

Code:
modeset (G0): drmSetMaster Failed: Permission Denied
lead me to this bug report:

Bug#833182: xserver-xorg-core regression on Intel HD Graphics: drmSetMaster(): Permission denied

Which was not actually my problem, but got me to tinkering on the right track.

I have stupid, friggin hate it, horrible nasty, didn't know what I was getting when I bought it 5 years ago, dang Optimus graphics.

It is the bane of my existence!

Sooooooooo, long story short, it was not my permissions per se; at least not directly.

I ran

Code:
X :3 -configure
(I used the ":3" switch b/c you have to export it to a not currently running vt to avoid a reboot)

This generated a new root xorg.conf file.

Then

Code:
cp /root/xorg.conf.new /etc/X11/xorg.conf
This generated the new version of a good old fashion xorg.conf file; which is still the keys to the kingdom and over-rides all other Xorg configs that are now scattered around various parts of the system.

Then

Code:
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bu
to generate a backup file so I could bang around on the original to my hearts content.

And bang around and tinker fart I did.

And here is what I figured out:

Even though I have not started any of the work to even start messing with getting the Nvidia Optimus card set up yet Xorg was still detecting it and trying to load the "modesetting" driver for it; which according to the above bug report has a permission regression that can be over-ridden with a properly configured xorg.conf file.

So, for now I just commented out that driver under the second video card

Code:
..............
Section "Device"
        <lots of config stuff, too many lines to free hand retype>
        Identifier Card1 
        #Driver     "modesetting"
        BusID      "PCI:1:0:0"
EndSection
..............
(card 1, since the count starts at 0) since I'm not ready to start messing with that pile of worms yet.

And Bob's you're uncle, Fanny's your aunt:

Code:
startx -- vt2
initiated an X session as an unprivileged user!!!!

I'll monkey with all the Optimus crud later: baby steps.

Google tag lines:

funtoo, gentoo can't start X xorg non-root nonroot unprivileged user optimus intel modeset
 
Old 06-06-2017, 01:51 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Hi, welcome, and I am glad that you are on the right track to solve your problem.

About the Gentoo forum issue, if you have problems getting registered there and need some help, I can act as an intermediary.

Please, provide me with some info about the concrete issues you are facing and I will gladly try to help.
 
Old 06-07-2017, 12:28 AM   #4
chezeburger
LQ Newbie
 
Registered: May 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by i92guboj View Post
Hi, welcome, and I am glad that you are on the right track to solve your problem.

About the Gentoo forum issue, if you have problems getting registered there and need some help, I can act as an intermediary.

Please, provide me with some info about the concrete issues you are facing and I will gladly try to help.

I didn't try to sign up at the **gentoo** forums. From what I've read if I ask for help there I'm going to be told to go away b/c I installed funtoo? Is that not true any more? Can I get help with funtoo over at the gentoo forums now? If so I will go sign up.

When I tried to sign up at the funtoo forums I was rejected by some kind of screening mechanism that threw up a warning box stating that my info (name, email address) sounded like I was a spammer and that I needed to go over to IRC and ask the lead dev to set up an account for me. (It even did that when I used my real name!)

That's just over the top and I'm not going to bother. Heck, at this point I'm almost tempted to reformat, start over from scratch and install gentoo if I'm not going to be able to get any help with funtoo. And I can't find anybody with a funtoo section in any of the large *nix boards. The only place I've found for support so far is the one place I can't get an account; at the funtoo forums.

Can you get me an account set up over at the funtoo forums?
 
Old 06-07-2017, 01:56 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by chezeburger View Post
I didn't try to sign up at the **gentoo** forums. From what I've read if I ask for help there I'm going to be told to go away b/c I installed funtoo? Is that not true any more? Can I get help with funtoo over at the gentoo forums now? If so I will go sign up.
Sorry. I missread you then. I thought you had problems signing at forums.gentoo.org. I know nothing about funtoo and have no "superpowers" there hehe.

At the Gentoo forums, you can ask questions in the "unsupported" section, which, regardless of the name, will probably be of help with standard stuff. Obviously, lots of things can be funtoo specific, and non-funtoo users really don't have the info to help you with those. But they might help you with some issues.

It's important in any case that you don't obfuscate the fact that you are not using Gentoo, but Funtoo instead. And it is also important that you state that you couldn't get help at the funtoo forums. As everything in life, you will find people that's willing to help, and some other that might be more picky. And, as with everything in life, you should just ignore attacks and thank whoever is willing to help you, and you'll be fine.

Sorry about the confussion.

Cheers, see you around.
 
Old 12-02-2017, 02:24 PM   #6
_roman_
Member
 
Registered: Dec 2017
Location: _Austro_Bavaria_
Distribution: gentoo / linux mint
Posts: 433

Rep: Reputation: 29
That's the issue with sabayon, funtoo, calculate guys to assume it's gentoo, when it definitely is not.

I have no idea why those guys spammed the gentoo forum and when you ask in detail you see they run some fishy unsupported distro.

they all use some fishy ebuilds which are not in the gentoo tree. Different repro means different distro.
Only the package manager may be the same and I highly doubt that, as I looked a few days ago into funtoo.

Those distros are all loosely based on gentoo, so they can advertise hey were are similar to gentoo. Same as those ubuntu / debian based distros do, hey we are all based on debian, than they realized ubuntu has a bigger userbase of newbies, so tehy now advertise we are all based on ubuntu.

With my elven years+ on gentoo, I looked into these distros from their forums and documentation, they are all loosely based, use other extra configuration tools, nothing similar at end of the day. It's kinda easy to tell, read the gentoo handbook, than go to the sabayon, funtoo installation docs and you see tools which are not gentoo specific, sections which are definitely not gentoo specific, and these introduce the first section of friction.

As the long term gentoo guy, above said, unsupported forum at forums.gentoo.org, states clearly for other linux related things, .... clearly explained. I have no idea why guys spammed than the multimedia, desctop section when they run some loosely based superglue distro like funtoo, sabayon and such.

@ i92guboj lol ignore attacks is kinda the usual behaviour, but when your account get banned so what. Kinda mature behaviour to kick out guys with other opinions. No way to wipe own topics, do anything when you are just getting banned. No directions nothing. That's it. Cocky moderators, but when you criticise them, as they did to others, you get a ban. I just wrote, to a guy who complained why his topic is not answered, that some guys are muted by other guys, especially moderators in personal messages. I also do not get the point why they did not wipe topics like they did with other guys first. No notifications nothing. When you wonder since when, since a few days. It has a reason why there is a video on youtube from a developer claiming all gentoo developers are XXXXXX.

--

@ first topic: its dbus related. its clear and obvious that you have issues with dbus
startx is not the proper way these days

use something like xdm, lxdm and such, they properly start the x server

also bear in mind that there at least 10 config files, no idea in which order they are parsed when you fire up a x server, so its better to use lxdm for example

also /etc/init.d/xdm start or restart should be used

--

@ Should I put the keywords in to /etc/portage/package.keywords to pull in the unstable packages?


nope, ether run ~amd64 or amd64, no mix as this is very problematic for a new user

Last edited by _roman_; 12-02-2017 at 02:30 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Software updater runs exceptionally slow Yuhan Linux - Laptop and Netbook 16 02-23-2017 03:19 PM
help a noob with an install, getting frustrated backcast Linux - Laptop and Netbook 2 03-20-2007 12:52 PM
frustrated noob is searching and not finding answers stereosour Linux - Software 5 07-13-2005 02:16 PM
I have an exceptionally old laptop redfedora88 Linux - Laptop and Netbook 5 10-09-2004 09:35 AM
Host lookup takes exceptionally long time vincebs Linux - Networking 32 02-24-2004 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 08:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration