Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
help with emerging Xorg-server etc
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43420
Location: 56N 3W

PostPosted: Tue Dec 02, 2014 8:15 pm    Post subject: Reply with quote

mikefot,

You have two places called boot on your system. A directoury on root, called /boot ant a partition called boot (not /boot) that in mounted at /boot, when the kernel needs to read or write the contents of the boot partition.
You might want to read that several times.

When the boot partition is not mounted at /beet, the /boot directory behaves as any other directory.
Its not an error to put new kernel there but the boot loader won't find them because they are not on the boot partition.

When the boot partition is mounted at /boot, it hides the contents of the /boot directory. The files are still there but are not accessable.

By mounting the boot partition at /mnt/temp you have the opportunity to see into the boot partition and /boot directory at the same time and copy or move files between them.
The /boot directory should be empty when the boot partition is not mounted.

You can tell the two apart as a directory called lost+found will be on the boot partiton but not in the /boot directory when there is nothing mounted there.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Sun Jan 24, 2016 8:18 pm    Post subject: problem entering password in openbox session Reply with quote

Hello after a long time.

I have found a bit of time to work on the gentoo installation.

I am cheating and still using the genkernel. I want to install a basic window manager and then have a go at the kernel again.

I have installed xorg server and xdm display manager.

xdm fails because of a MTRR invalid arument (22) type error.

I tried emerging openbox and succeeded.

Same with ConsoleKit.

I put the one line command into .xinitrc and ran the start up command and then the login window appeared to my pleasure.

But the first time it did so neither the mouse nor keyboard worked.

I googled around and looked at some old Gentoo forum discussions and tried:

emerge -av xf86--input-evdev

and

emerge -av $(qlist -IC x11-drivers

This cured the mouse and keyboard problem.

But I now have an unusual remaining problem.

When the login window appears I can happily key in either root or my username and they are echoed and when I press return then the cursor moves to the password box

BUT

once you start typing it you do not see the little black dots echoed with each character you type in that I am used to seeing e.g. in the Debian xfce desktop installation I use.

It seems as though the password is just not being entered.

Pressing return after trying to key it in results in the windpw prompt for the username appearing. If you enter either the username or root then you are prompted for the password in the box below
but when you type it in no series of dots are echoed and the whole process would repeat ad infinitum and there would no successful login.

Unless I could disable the security not to require a password in some way perhaps.

Suggestions on fixing this are most welcome.

Regards

mikefot
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Sun Jan 24, 2016 8:31 pm    Post subject: Reply with quote

I can't address your main problem as I don't use Consolekit.

When you do get it working, this old article http://www.linuxjournal.com/article/3325 is of much use in customizing xdm to give a more pleasant display. Just changing the background color from black is good and, of course, replacing that hideous X logo.

It would seem that either the box doesn't have focus or one of those kits is denying you permission. I would try dumping consolekit and policykit.

Edit:
Do you have a file named /etc/X11/xdm/Xresources.custom ? And does it have a line like this in it?

Code:
xlogin*echoPasswd: true
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Sun Jan 24, 2016 9:37 pm    Post subject: checking that passwd echo turned etc Reply with quote

Dear Tony,

Many thanks for your response and suggestions.

I unmerged consolekit.

I used the openbox-sessions command in xinitrc to fire it up without needing consolekit.

unmerging policykit didn't do anything - I think it was never emerged to begin with.

I also looked for the /etc/X11/xdm/Xresources.custom file


BUT

only found Xresources. There was also an Xaccess file and another file as well.

I looked in all three files and I could not see anything that looked like x.login"echoPasswd: true" etc.

Not a sausage...

The password constipation problem has not gone away.

Comments appreciated.


Regards

mikefot
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Mon Jan 25, 2016 3:28 pm    Post subject: Reply with quote

nano /etc/X11/xdm/Xresources.custom

Add this line
Quote:
xlogin*echoPasswd: true

If it doesn't work, you can always just delete the file. The Xresources.custom overrides the standard Xresources file. It's recommended to make your changes there so they won't get wiped out on a re-install or update.

Once you get it working you can alter your prompts, colors, fonts, all sorts of stuff.

The echo password just echoes dots, at least on my system. I would assume that echoPasswd:false wouldn't echo anything.

EDIT: Ok, some quick experiments verified my assumptions. echoPasswd true echoes dots back as you type. echoPasswd false doesn't echo anything as you type. The default is "false".
I vastly prefer feedback, although no feedback is more secure as an onlooker can't even see how long your password is, unless he's got realsharp eyes on your keyboard. I'm at home. I have a password to keep out casual doodlers not professional hackers.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Mon Jan 25, 2016 4:06 pm    Post subject: bunged up password entry problem Reply with quote

Dear Tony,

Many thanks for your reply.

I am assuming that you that in addition to the Xresources file, and the Xaccess file plus the other file present in the directory, I am going to create a new fourth file.

It's name will be Xresources.custom and will have only one line in it; the one that you have specified that should echo the blank dots when I key in the password.

If this doesn't work, how do I disable the password system completely so that all I have to enter is the username itself and then I will be able to login successfully?

If I could do that I I could then gradually fix the password and other problems in a less clunky and slow way.

Comments appreciated.

Regards

mikefot
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Mon Jan 25, 2016 8:59 pm    Post subject: Re: bunged up password entry problem Reply with quote

mikefot wrote:
I am assuming that in addition to the Xresources file, and the Xaccess file plus the other file present in the directory, I am going to create a new fourth file.

It's name will be Xresources.custom and will have only one line in it; the one that you have specified that should echo the blank dots when I key in the password.

Correct, from what I've read; you can just directly cp the line from the code display here. (Select, then middle-click in destination, works with pretty much any X app, per the protocol.)
Quote:
If this doesn't work, how do I disable the password system completely so that all I have to enter is the username itself and then I will be able to login successfully?

If I could do that I I could then gradually fix the password and other problems in a less clunky and slow way.

Comments appreciated.

No to all of that; the only thing you raised as a BUT, was inability to see the dots for visual feedback of keypress.
Correct that, and that alone, without disabling password login.

As Tony said, it's not going to keep out a professional; but then a professional black-hat likely isn't going to break into your house to steal your pr0n-collection. ;)
Nonetheless, there's never a need to throw out the baby with the bathwater.

=
Note: that's a generic "your", not a specific. ;)
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Tue Jan 26, 2016 12:13 am    Post subject: password entry problem Reply with quote

I tried the Xresources.custom idea.

No change......

Suggestions appreciated.

Regds

MF
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Tue Jan 26, 2016 2:52 am    Post subject: Reply with quote

Do you have a /var/log/xdm.log? If so post it if it's short or pastebinit if it's large.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Tue Jan 26, 2016 1:10 pm    Post subject: xdm log file Reply with quote

Dear Tony,

Here is the xdm.log file:

Code:
[color=blue]xdm info (pid 2631): Starting
xdm info (pid 2631): Starting X server on :0

X.Org X Server 1.15.0
Release Date: 2013-12-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.14.14-gentoo x86_64 Gentoo
Current Operating System: Linux haywire 3.14.14-gentoo #1 SMP Mon Oct 20 21:33:24 BST 2014 x86_64
Kernel command line: BOOT_IMAGE=/kernel-genkernel-x86_64-3.14.14-gentoo root=UUID=a68b9ae9-66a1-432a-872d-bff3919e0f0c ro
Build Date: 23 January 2016  03:03:48PM
 
Current version of pixman: 0.32.4
   Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Jan 25 23:51:41 2016
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension DRI3
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
xdm info (pid 2647): sourcing /usr/lib64/X11/xdm/Xsetup_0
xdm info (pid 2647): sourcing /usr/lib64/X11/xdm/GiveConsole
xdm info (pid 2658): executing session /usr/lib64/X11/xdm/Xsession
xdm info (pid 2647): sourcing /usr/lib64/X11/xdm/TakeConsole
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 162 requests (131 known processed) with 0 events remaining.
xdm info (pid 2631): Starting X server on :0
[/color]
[color=red]error setting MTRR (base = 0xd0000000, size = 0x01000000, type = 1) Invalid argument (22)[/color]

9[color=blue] XSELINUXs still allocated at reset
SCREEN: 0 objects of 344 bytes = 0 total bytes 0 private allocs
COLORMAP: 0 objects of 8 bytes = 0 total bytes 0 private allocs
DEVICE: 0 objects of 96 bytes = 0 total bytes 0 private allocs
CLIENT: 0 objects of 176 bytes = 0 total bytes 0 private allocs
WINDOW: 0 objects of 48 bytes = 0 total bytes 0 private allocs
PIXMAP: 3 objects of 16 bytes = 48 total bytes 0 private allocs
GC: 4 objects of 16 bytes = 64 total bytes 0 private allocs
CURSOR: 1 objects of 8 bytes = 8 total bytes 0 private allocs
TOTAL: 8 objects, 120 bytes, 0 allocs
1 SELECTIONs still allocated at reset
WINDOW: 0 objects of 48 bytes = 0 total bytes 0 private allocs
PIXMAP: 3 objects of 16 bytes = 48 total bytes 0 private allocs
GC: 4 objects of 16 bytes = 64 total bytes 0 private allocs
CURSOR: 1 objects of 8 bytes = 8 total bytes 0 private allocs
TOTAL: 8 objects, 120 bytes, 0 allocs
3 PIXMAPs still allocated at reset
PIXMAP: 3 objects of 16 bytes = 48 total bytes 0 private allocs
GC: 4 objects of 16 bytes = 64 total bytes 0 private allocs
CURSOR: 1 objects of 8 bytes = 8 total bytes 0 private allocs
TOTAL: 8 objects, 120 bytes, 0 allocs
4 GCs still allocated at reset
GC: 4 objects of 16 bytes = 64 total bytes 0 private allocs
CURSOR: 1 objects of 8 bytes = 8 total bytes 0 private allocs
TOTAL: 5 objects, 72 bytes, 0 allocs
1 CURSORs still allocated at reset
CURSOR: 1 objects of 8 bytes = 8 total bytes 0 private allocs
TOTAL: 1 objects, 8 bytes, 0 allocs
1 CURSOR_BITSs still allocated at reset
TOTAL: 0 objects, 0 bytes, 0 allocs
xdm info (pid 2677): sourcing /usr/lib64/X11/xdm/Xsetup_0
xdm info (pid 2677): sourcing /usr/lib64/X11/xdm/GiveConsole
xdm info (pid 2692): executing session /usr/lib64/X11/xdm/Xsession
xdm info (pid 2677): sourcing /usr/lib64/X11/xdm/TakeConsole
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 162 requests (131 known processed) with 0 events remaining.
xdm info (pid 2631): Starting X server on :0
#################################################[/color]

Excessive # removed by NeddySeagoon

I also have what is termed a blocked package problem that is preventing me from doing emerge @world type stuff etc.

Plus I am getting some gripes about updating the packsge use file.

Here it is:

Code:
][color=blue]=dev-libs/libxml2-2.9.1-r4 python
=x11-libs/libdrm-2.4.52 libkms
=media-libs/mesa-10.0.4 xa gbm
x11-base/xorg-server udev
[/color]

Here is the make.conf fil
le

Code:
[[color=blue]# These settings were set by the catalyst build script that automatically
 #built this stage.
#Please consult /usr/share/portage/config/make.conf.example for a more
 #detailed example.
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
 #WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.

USE="introspection X mmx sse sse2 gtk gtk3 sound gnome cdr dvd kde dbus udev wayland (-aqua) hald xdm egl xkb udisks alsa gles2 opengl geoloc gstreamer jit webgl orc qt3support nls -debug -test-doc -test"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"

SYNC="rsync://rsync3.uk.gentoo.org/gentoo-portage"

SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"

SYNC="rsync://rsync2.uk.gentoo.org/gentoo-portage"

SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"


MAKEOPTS="-j2"

ABI_X86="64" 

LINGUAS="en_GB"

VIDEO_CARDS="nouveau vesa"

INPUT_DEVICES="evdev keyboard mouse"[/color]


What should I do to update the package.use file here?

Regards and thanks

MF


Last edited by mikefot on Wed Jan 27, 2016 4:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Wed Jan 27, 2016 1:43 am    Post subject: Reply with quote

After a cursory google search, it looks like "error setting MTRR (base = 0xd0000000, size = 0x01000000, type = 1) Invalid argument (22)" is a hardware error. Can you launch an xterm with startX ? Are you using an xorg.conf or letting X decide the configuration for itself (Usually recommended).

Finally, since Xorg was emerged with the udev flag, it needs to have udev or eudev installed and running. I'm assuming portage installed one or the other but did you add it to rc-update, if you are using openRC?
Back to top
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Wed Jan 27, 2016 2:36 pm    Post subject: Reply with quote

If you're going to paste long dumps in-forum, can you please use a code tag? You can still edit the above post and insert them, which will stop the formatting of other posts going doolalley.

Following on from what Tony said, rc-update show and scan across.

Although the udev ebuild has been silently adding itself to runlevel sysinit, even if the user already has it elsewhere, for years now, thanks to Hubbs' usual approach of: "I know best, even when I self-evidently do not."
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Wed Jan 27, 2016 3:46 pm    Post subject: Reply with quote

Following up on SteveL's post, way up near the beginning of this thread, NeddySeagoon posted how to emerge pastebin. Please use it for long data dumps.

Steve, didn't know that about udev. I'm glad I dumped it for mdev. I'm going to have to review ALL of his projects and either replace them with alternates or mask "upgrades" as I did with OpenRC.


Last edited by Tony0945 on Wed Jan 27, 2016 4:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Wed Jan 27, 2016 3:55 pm    Post subject: fixing udev etc Reply with quote

Dear Folks,

Thanks for the advice. I will put some code tags on the previous posting. How do you edit an old post?

I did rc-update for udev sysinit and was informed it had already been taken care of.

I emerged udev in case that might alter things a bit and I emerged xorg drivers and xserver-org again for good measure.

In the case of xserver-org I got an error message about dependency problems and was advised to try again with ==backtrack increased from the default of 30.

I tried it at100 and that cured the problem.

I also emerged xterm. I can fire up xterm and I get three windows which I can actually enter text in and the mouse works.

That is an advance.

I xdm again and the login window still doesn't work properly.

I tried to emerge links2 but it does not seem to know what links2 is unlike debian for example which does.

If you install www-client/links it installs links 2.8 .....

That made me think it had perhaps installed links2 after all.

But the only executable name I could find was links. But in debian an executable called links2 is created when you install links2.

If you try links2 -g in debian you get the graphical colour diisplay of web pages etc.

If you try links2 -g in gentoo it has no clue what you are trying to do.

Trying links -g gave me the same response. In debian it would be illogical to enter links -g if you had links rather than links2 installed.

In that case the executable (strangely enough) would also be called links and since there is no graphical display option in it then you would know not to bother entering links -g etc.

But this is gentoo not debian......................................................

A google search suggested emerging www-client/elinks was the same thing as emerging links2, but I am not sure that I believe that.

There were other postings that said the framebuffer graphics stuff may not work if you don't have the right settings in the kerner so even if I manage to emerge the real links2 and then do links2 -g it could still not work in gentoo as I have set it up at present.

But it's worth a try.

Lynx works.


Regards

MF
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Wed Jan 27, 2016 4:06 pm    Post subject: Re: fixing udev etc Reply with quote

mikefot wrote:
Dear Folks,

Thanks for the advice. I will put some code tags on the previous posting. How do you edit an old post?
MF


Way off to the right of the post you will see three buttons for "report" "quote" "edit". You will see the edit button only for your own posts.
With the text running so far right, it's off screen. On firefox there is a slider on the bottom of the screen.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Wed Jan 27, 2016 4:11 pm    Post subject: Re: fixing udev etc Reply with quote

mikefot wrote:

I also emerged xterm. I can fire up xterm and I get three windows which I can actually enter text in and the mouse works
.[SNIP]

Lynx works.


OK, so the X server is working and our problem is with xdm.

Got to go right now, but in the meantime, research Xorg-server and that MTTR message and see if you can figure it out.

EDIT:
And PLEASE put in the code tags in the old post!
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Thu Jan 28, 2016 11:54 am    Post subject: MTRR problem Reply with quote

Dear Tony,

I have managed to get links working inside the xterm window. The graphical display for it works there, so I believe it really is links2 now.

I looked up the MTRR error problem on google.

A few sites I found suggest that it can be a poor interaction between the kernel and X etc

https://bbs.archlinux.org/viewtopic.php?id=68093

[url] https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/314928
[/url]
suggesting a kernel patch might be required here.

I am using a bog standard genkernel kernel here.

Someone on this gentoo forum site once had this error:

[url] https://forums.gentoo.org/viewtopic-t-808882-start-0.html
[/url]
I am not sure whether they resolved it correctly in the end or not.

Some other people suggested making sure that hald was enabled etc.

The uevents updating function during the login process now takes ages.

Suggestions welcome

Regards

MiF
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Thu Jan 28, 2016 4:48 pm    Post subject: emerge @world log file blocked packages Reply with quote

Dear Tony,

I ran emerge @world and got blocked packages.

The logfile is here:


[url] http://paste.debian.net/375183/
[/url]
Comments appreciated on the conflicts.

Regards

MF
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Thu Jan 28, 2016 5:08 pm    Post subject: Reply with quote

Code:
X3 ~ # emerge -pv udev-init-scripts openrc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-apps/openrc-0.17::gentoo  USE="ncurses netifrc pam -audit -debug -newnet (-prefix) (-selinux) -static-libs -tools -unicode" 0 KiB
[ebuild   R    ] sys-fs/udev-init-scripts-27::gentoo  0 KiB

Total: 2 packages (2 reinstalls), Size of downloads: 0 KiB


But I have higher revisions of OpenRC blocked, some, such as SteveL, have blocked at an even earlier level than mine.

the new versions of attr & man-pages should co-exist. Since the blocker is the old version of attr, try this before updating world.
Code:
emerge -a1v attr
The "1" means don't put it in the world file (one-shot"). attr is a dependency of many packages and should not be in world as a standalone.

I've got to say that these blockers are coming at an increased frequency. Has portage reached it's limit of useability? I wonder.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43420
Location: 56N 3W

PostPosted: Thu Jan 28, 2016 5:29 pm    Post subject: Reply with quote

mikefot,

Looking at your blockers.
Code:
[blocks B      ] <sys-apps/attr-2.4.47-r2 ("<sys-apps/attr-2.4.47-r2" is blocking sys-apps/man-pages-4.03)
[blocks B      ] <sys-fs/udev-init-scripts-27 ("<sys-fs/udev-init-scripts-27" is blocking sys-apps/openrc-0.19.1)


Code:
<sys-apps/attr-2.4.47-r2" is blocking
So you need a higher version of sys-apps/attr.
Tony0945 has already covered that.

Code:
<sys-fs/udev-init-scripts-27" is blocking
is the same sort of issue but you say you have sys-apps/openrc masked by version.
You may want to consider your sys-apps/openrc mask before you deal with that.

Dealing with your blocks may help with your conflicts too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Sun Jan 31, 2016 1:12 pm    Post subject: I did something dumb.... Reply with quote

Dear Tony and Ned,

I did something dumb.

I unmerged openrc (I was trying to figure out how to unmerge a specific version of openrc but could not seem to do it).

But I could not emerge openrc again because of the blockages.

So now I cannot login.

I have been watching a video on youtube explaining the mask option.

I will have a go at that next.

I did try

emerge -auvDN --with-bdeps=y --complete-graph --keep-going world

and was told there were 3 blocked packages and then asked to merge a whole load of packages.

I entered yes.

Eventually it crashed and amongst other errors xorg-server could not be built because I was using too old a version of gcc.

It thought I had a version lower than 4.0.......

But I am using 4.9.3.

Suggestions on fixing openrc appreciated.

Regards

MF
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43420
Location: 56N 3W

PostPosted: Sun Jan 31, 2016 3:34 pm    Post subject: Reply with quote

mikefot,

You can only have a single version of openRC installed at any time, so removing a specific version is not useful.
OpenRC is not slotted, unlike gcc or the kernel.

OpenRC manages the startup of your system, so removing it is a very bad thing but you will have discoved that by now.

In the chroot,
Code:
emerge -1 openrc
should work unless it tries to update lots of dependencies too.
If you are sure you only removed openrc, the dependencies will still be there' in which case --nodeps is worth trying.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3121
Location: Illinois, USA

PostPosted: Mon Feb 01, 2016 1:53 am    Post subject: Reply with quote

Not as bad as accidentally unmerging gcc as I once did. Once you have your system rebooting, use "gcc-config"
Code:
gentoo ~ # gcc-config -l
 [1] x86_64-pc-linux-gnu-4.8.5 *
 [2] x86_64-pc-linux-gnu-4.9.3
To set your gcc version. Gcc isn't on the "eselect" system. Then "emerge -a1v glib" so that glib is built with the same version of gcc.

To try and get around the blockers, try the --exclude option on your world emerge. See "man emerge" for syntax.

EDIT: Start a new thread about the blockers when you get the system booting again.
Back to top
View user's profile Send private message
mikefot
Guru
Guru


Joined: 19 Nov 2014
Posts: 458

PostPosted: Mon Feb 01, 2016 12:36 pm    Post subject: chroot and debootsrap Reply with quote

Dear Tony and Ned,

When it was suggested that use chroot to reinstall openrc I assume that I was supposed to use the gentoo install disk and follow the procedure in the gentoo manual to use chroot and fix the problem etc.

But I then remembered that I more than one Linux OS on the same hard drive on my pc.

The debian installation I use is set up to mount the other partitions (including the one gentoo is installed on).

Could I use debootstrap and chroot in debian to access the gentoo installation if I mount the partition containing and fix openrc that way?

Regards

MF
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43420
Location: 56N 3W

PostPosted: Mon Feb 01, 2016 6:17 pm    Post subject: Reply with quote

mikefot,

Boot a linux with the right bitness kernel to support your Gentoo install. Almost any distro will do.

Code:
mkdir /mnt/gentoo
, since most distros don't have that mountpoint.
Following the handbook, mount your Gentoo install there. Mount order is important.
Mount /dev /proc, /sys etc inside the chroot as described in the handbook.
Follow the chroot steps.

You are now inside your Gentoo but its being supported by another distro.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum