Skip to main content
Welcome guest. | Register | Login | Post

problem starting X in GNU system

9 replies [Last post]
Whistler's picture
Offline
Joined: 2006-01-03

Just installed the Debian GNU K10 version and it's working perfectly in console. The 2GB partition size limitation of Hurd also doesn't seem to exist in this distro, and the system still hasn't crashed, except the installation is kinda tricky and my WinModem is not supported Sticking out tongue This is already far beyond what I expected in an Alpha software Sticking out tongue

However I had a problem when trying to start X. I followed the instructions in the hurd-doc/Cook-book file and it says something like this:

Quote:

Xfree86.
This replaces 8.5 - 8.6 (Page 7) of "Installing the Hurd".
If you use gui.sh to install the XFree86 packages you will able to walk through
the usual Xfree configuration. However this is GNU/Linux based.
Initially I would suggest minimum specs for Xfree86, e.g. 640x480,
colour depth 8. <dpkg-reconfigure xserver-xfree86> can be used later.
Some tweaks needed for the Hurd.
Edit /etc/X11/XF86Config-4 so that the mouse section reads;
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/mouse"
Option "Protocol" "osmouse"
Option "Emulate3Buttons" "true"
# Option "ZAxisMapping" "4 5"
EndSection
Note:- Emulate3Buttons may cause problems on some systems and need to
be commented out.
Make these symlinks. ln -s /dev/cons/kbd /dev/kbd
ln -s /dev/cons/mouse /dev/mouse
The symlinks will dangle at this stage. Then run

# console -d vga -d pc_kbd --repeat=kbd -d pc_mouse --repeat=mouse
-c /dev/cons /dev/vcs (all on one line!)

You will now have virtual terminals.
"startx" should now start a x-window session.

however when I typed the "console" command it says "too many non-parameter options". I read the help of the "console" command and changed the "-c /dev/cons" to "-c=/dev/cons" and the command worked, but when typing "startx" it just says "Could not open keyboard: no such file" and stopped there. Anyone has experience on this and knows how to solve the problem?

a thing's picture
Offline
Joined: 2005-12-20

Do you have InputDevice "Keyboard0" "CoreKeyboard" in the ServerLayout section and something like

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
EndSection

If those don't help try coping your config from Debian GNU/Linux.

AndrewB's picture
Offline
Joined: 2005-12-18
"a thing" wrote:

If those don't help try coping your config from Debian GNU/Linux.

Remembering to back up the old one Eye

Whistler's picture
Offline
Joined: 2006-01-03

well it's a bit weird. I tried the full option names instead of short ones (such as "--console-node" instead of "-c") and it worked Sticking out tongue
The X is still a bit unstable and it jumps back to console from time to time, but it already rocks Smiling

libervisco's picture
Offline
Joined: 2006-05-04

I've gotten a bit interested in giving GNU/Hurd (or just "GNU" as we can call it) a spin myself and a guy from #hug channel on freenode actually allowed me to download his QEMU image of already installed and set up GNU/Hurd on a 2GB partition. It's actually around 315 MB's tar.gz that extracts two images, one floppy and other as 2GB disk partition (one really has to admire the power of gzip compression) Smiling

Anyway, he also gave me a qemu command to issue to start it up so it wasn't a problem. It boots pretty much alright, with some apparently not so critical warnings and errors and I could even startx to window maker. It is very slow though, as its just an emulation so I couldn't really do much with it except open window maker menus and look at them. :smt104 Smiling

The intent was actually to download the latest Debian GNU/Hurd K10, but since they told me USB is not yet supported by hurd I couldn't bother since both my mouse and keyboard are USB which makes it pointless.

Still though, if anyone knows of a workaround for this (to enable USB support somehow, including detection of my keyboard at boot of course) I'd be glad to hear it.

Whistler's picture
Offline
Joined: 2006-01-03

afaik that is a limitation of the GNU Mach and there would be no solution other than changing the source code of Mach.

However is it possible to plug the USB Keyboard/Mouse to the PS/2 port via an adapter? I have an USB mouse which is able to do so

libervisco's picture
Offline
Joined: 2006-05-04
"Whistler" wrote:

afaik that is a limitation of the GNU Mach and there would be no solution other than changing the source code of Mach.

Well, in that case modifying the source of Mach becomes a necessity if Hurd is ever to support this critical feature.

"Whistler" wrote:

However is it possible to plug the USB Keyboard/Mouse to the PS/2 port via an adapter? I have an USB mouse which is able to do so

I also have a mouse like that (Logitech) with an USB to PS/2 adapter. However, I think it cannot work for a keyboard which is more important than the mouse.

Offline
Joined: 2006-01-31
"libervisco" wrote:
"Whistler" wrote:

afaik that is a limitation of the GNU Mach and there would be no solution other than changing the source code of Mach.

Well, in that case modifying the source of Mach becomes a necessity if Hurd is ever to support this critical feature.

Once they fully port the L4 microkernel to the GNU Hurd, hardware problems like these shouldn't be an issue. Not to mention, the system will run blazingly fast. :smt025

Whistler's picture
Offline
Joined: 2006-01-03
"olive" wrote:

Once they fully port the L4 microkernel to the GNU Hurd, hardware problems like these shouldn't be an issue. Not to mention, the system will run blazingly fast. :smt025

It's porting Hurd to l4 rather than porting l4 to Hurd. However it seems that the hurd-l4 CVS repository at the savannah.gnu.org hasn't been updated for nearly 6 months, and so is the hurd repository. Only the one at Debian gets updated frequently.

Also from what I've seen the Hurd has nothing to do with hardware support, it's the File System/Memory Management/Process Management and etc. part of the kernel. Only Mach handles hardware.

Offline
Joined: 2005-12-20

Yeah, I would definitely give hurd a try, the only problem is though, that it is for x86 only Sad

It sounds really cool, I have tried it once on my old PC, and it was pretty fast iirc, but my usb kb/m didnt work so i had to borrow my dad's Sticking out tongue

Im not a great fan of windowmaker though Sad

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activat