Skip to contentSkip to conversation

Trying to get GUI'ed

DISCUSSION Ray Olszewski 5 participants 13 messages Oct 25, 2002 – Oct 31, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

You forgot to cc the list with your message; I added it back in this reply, which includes your complete message at the end.

First, to avoid conflicts, you do not need to remove the various packages from your filesystem. All you need to do is not run them (or in the case of libraries, not run programs that link to them).

In principle, you could run X with no Window Manager, just starting a single xterm when the X server starts. I've never done this myself (I have read about the procedure, in a *very* old book), but perhaps when he sees this message, Lawson will sketch out the details of how he did it.

What I would suggest as a practical solution is for you to run X with one of the lightweight Window Managers ... say blackbox or icewm, or maybe XFce (I've not tried this last one myself) ... and once it starts, use its menu system just to start a single xterm. From there, start the static version of VueScan.

I would recommend that you do this (start the X server) from a console. That is, you log in to a console and run the "startx" script to run the X server, rather than using xdm or one of its cousins. By editing the config files startx (and xinit, which the script runs) loads, you can select your WM and the other items that are available in your pop-up menu.

Although X itself is pretty standard, the setup details are somewhat distribution specific, and you've reported trying so many distros hat I don't know what you are running at the moment. With Debian, for example, one way is to do a standard, minimal install, then disable the init-script link that runs xdm. Then you can configure X in any of the usual ways (the "dpkg --configure" choice works pretty well with X for me) and "startx" will work fine.

One last question ... I took a quick look at the (fairly brief) Linux notes on the VueScan site. From what they write there, VueScan looks like a command-line app, not a GUI app. If I am correct ... is there a reason why you do not want to run this from a console? Why do you need X at all (for this app)?

Quoted 8 lines · Heimo Claasen

I try to put it simplistic: If you run X you get just the ("graphcical") screen.
What is the absolute bare minimum to get this X screen _with_ some possibility to input a command (e.g., for to run some application program) - in fact, just an Xterm for instance ?

An HOW would I set it up / launch it ?

Quoted 8 lines

(The application program, Vuescan, is statically linked and wouldn't need to access any additional shared libraries thus.)

Next step: Which of the major (X window-) window management and GUI- programm packages could be safely revomed from the "system", without putting that "bare bones" X at risk ?

(Can the whole load of Gtk/Qt go, for instance ?)

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
Quoted 4 lines · Ray Olszewski

In principle, you could run X with no Window Manager, just starting a single xterm when the X server starts. I've never done this myself (I have read about the procedure, in a *very* old book), but perhaps when he sees this message, Lawson will sketch out the details of how he did it.

[whit@giftie whit]$ cat .xinitrc
xsetroot -solid SteelBlue
icewm &
xterm
[whit@giftie whit]$ cat .xsession
#!/bin/sh
icewm &
xterm

You only use .xsession for GUI login. Get rid of icewm if you want your xterm bare and immovable, or remove the entire file and xinit will start a single xterm.

Lawson
---oops---

________________________________________________________________
Sign Up for Juno Platinum Internet Access Today
Only $9.95 per month!
Visit www.juno.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#3 lore raw

Please allow a naive question.

When I boot, I arrive at a log in prompt. When I log in, I arrive at command prompt for the user.

You explained how one might start X without a window manager, and I that might have some utility.

But my question is, is there any difference in functionality between running xterm under X and the initial command prompt before starting X? Is there any difference in functionality between xterm and the command prompt before running X?

I ask because I'm trying to understand why one would go to the trouble to edit ~/.xinitrc to boot to an xterm. Why not stay in the nice DOS-like world that exists before X if all one wants to do is to issue commands.

Haines

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#4 lore raw
Quoted 13 lines · Haines Brown

Please allow a naive question.

When I boot, I arrive at a log in prompt. When I log in, I arrive at command prompt for the user.

You explained how one might start X without a window manager, and I that might have some utility.

But my question is, is there any difference in functionality between running xterm under X and the initial command prompt before starting X? Is there any difference in functionality between xterm and the command prompt before running X?

Quoted 4 lines

I ask because I'm trying to understand why one would go to the trouble to edit ~/.xinitrc to boot to an xterm. Why not stay in the nice DOS-like world that exists before X if all one wants to do is to issue commands.

If you are running X and have an open xterm, you can run a GUI-based application from the xterm's command line (actually, you can run many, if you use the & tag to detach the processes from the terminal). This method (rather than using the menu-based start that a typical WM will provide) of starting an X-based app can be quite useful, for several reasons -- you get to use command-line switches and arguments (this capability is, at least for a few apps, very handy), you get to see STDERR and STDOUT output as the app runs (if you didn't detach, that is), and perhaps others I'm not thinking of right now.

--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski -- Han Solo
Palo Alto, California, USA [email protected]
-------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#5 lore raw
In reply to Haines Brown

The command prompt you see is actually a software _emulation_ of old style 'dumb' terminals, what people used as computers before PCs came about in the 80s.

Although it responds differently to some of the details, there is little functional difference between an x-term and the virtual terminal you get before you start X - or any other terminal windowed or otherwise.

Why run X? Well, if all you ever want to do is one task at a time on a single linear text interface, there is no reason to.

I run X, but most of the work I do is command line. However, I have several terminal windows open at once and do have multiple different things going on.

Like most of Linux, it's a matter of preference.

Paul.

Quoted 27 lines · Haines Brown

Please allow a naive question.

When I boot, I arrive at a log in prompt. When I log in, I arrive at command prompt for the user.

You explained how one might start X without a window manager, and I that might have some utility.

But my question is, is there any difference in functionality between running xterm under X and the initial command prompt before starting X? Is there any difference in functionality between xterm and the command prompt before running X?

I ask because I'm trying to understand why one would go to the trouble to edit ~/.xinitrc to boot to an xterm. Why not stay in the nice DOS-like world that exists before X if all one wants to do is to issue commands.

Haines

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Signature · 11 lines
Paul Furness

Systems Manager

Steepness is an illusion caused by flat things leaning over.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#6 lore raw

Paul,

Thanks for the explanation.

The reason I asked is that I need to do some work on my X system while the X system is not running, and wanted to know the capabilities of the command prompt outside of X.

For example, if I run emacs, I might get a text-based emacs from which I do the work easily. Otherwise I'd have to run vi, which is far less familiar.

Haines
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#7 lore raw

Emacs was originally designed for text terminals; although I run emacs in it's own window, I use all the keyboard controls to do things rather than point and click. You should have no probs using it in a plain text term if you know the important shortcuts.

P.

Quoted 14 lines · Haines Brown

Paul,

Thanks for the explanation.

The reason I asked is that I need to do some work on my X system while the X system is not running, and wanted to know the capabilities of the command prompt outside of X.

For example, if I run emacs, I might get a text-based emacs from which I do the work easily. Otherwise I'd have to run vi, which is far less familiar.

Haines

Signature · 11 lines
Paul Furness

Systems Manager

Steepness is an illusion caused by flat things leaning over.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#8 lore raw

Paul,

Here I sit, almost dead in the water. Confident that I could run emacs at the command prompt outside X (I'm writing now with emacs-rmail, but have lost X altogether), I went ahead and installed the two rpm files and edited my XF86Config-4 file. The result was loss of access to my X server. I tried but failed to back out of the driver installation by reverting to the old config file with its nv driver.

RPM Installation suggested a possibly conflicting MESA or stale nVidia distribution, but I have neither. libglx.a, etc., files renamed to xxx...rpmSAVE. I don't know whether a recovery of my old set up would require renaming those file to their original names as well as reverting to the old configuration file.

When I went to start X, I got errors that nvidia had failed to initialize the NVdriver kernel module. Indeed, running lsmod does not report it, although I checked with rpm to verify the driver installed (rpm verifies the NVIDIA_kernel version number). If I tried insmod nvidia (or nVidia, NVidia, NVdriver, etc.) it says driver not found. There's nothing that looks like an nvidia driver in /usr/X11R6/lib/modules/extensions. The /dev files are present, though.

I tried running Xconfigurator. It sees my GeForce3 card, but can't probe it (it did so originally), probably because of no loaded driver. So manual configuration of the card fails.

I don't know the exact driver name I should be using, nor am I certain of where it should be located, and why insmod does not see it. I've no clue where to begin. I sent the log file off to [email protected]. Until they reply (if they reply), I'm unable to do much work.

If you have the patience, I'd like to know the name and location of the nvidia driver file so that I might verify its presence and perhaps give insmod a hand.

Haines Brown
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#9 lore raw
Quoted 9 lines · Haines Brown

Paul,

Here I sit, almost dead in the water. Confident that I could run emacs at the command prompt outside X (I'm writing now with emacs-rmail, but have lost X altogether), I went ahead and installed the two rpm files and edited my XF86Config-4 file. The result was loss of access to my X server. I tried but failed to back out of the driver installation by reverting to the old config file with its nv driver.

Quoted 5 lines

RPM Installation suggested a possibly conflicting MESA or stale nVidia distribution, but I have neither. libglx.a, etc., files renamed to xxx...rpmSAVE. I don't know whether a recovery of my old set up would require renaming those file to their original names as well as reverting to the old configuration file.

Possibly. Libraries are usually backward-compatible, though.

Quoted 8 lines

When I went to start X, I got errors that nvidia had failed to initialize the NVdriver kernel module. Indeed, running lsmod does not report it, although I checked with rpm to verify the driver installed (rpm verifies the NVIDIA_kernel version number). If I tried insmod nvidia (or nVidia, NVidia, NVdriver, etc.) it says driver not found. There's nothing that looks like an nvidia driver in /usr/X11R6/lib/modules/extensions. The /dev files are present, though.

rpm will tell you if you ask, what files are contained in a package:
rpm -ql <package name>
Sorry, I am not familiar with video drivers as kernel modules. That might be a feature of X release 4 that I haven't got around to yet. kernel modules live usually in /lib/modules/uname -r
Hmmm, try /usr/X11R6/lib/modules
What is in /usr/X11R6/bin/X ? That used to be a symbolic link to the X server.

Quoted 11 lines

I tried running Xconfigurator. It sees my GeForce3 card, but can't probe it (it did so originally), probably because of no loaded driver. So manual configuration of the card fails.

I don't know the exact driver name I should be using, nor am I certain of where it should be located, and why insmod does not see it. I've no clue where to begin. I sent the log file off to [email protected]. Until they reply (if they reply), I'm unable to do much work.

Quoted 6 lines

If you have the patience, I'd like to know the name and location of the nvidia driver file so that I might verify its presence and perhaps give insmod a hand.

Haines Brown
-

________________________________________________________________
Sign Up for Juno Platinum Internet Access Today
Only $9.95 per month!
Visit www.juno.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#10 lore raw

Lawson,

At this point I'm only trying to back out of my abortive nVidia driver install and get back to the nv driver that came with my RedHat 7.3 distribution.

To do that, I recovered my old XF86Config-4 file. The rpm install for the driver commented out lib.GLcore.a and libglx.a, which I restored.

Third, I wanted to uninstall the driver RPM. First, I used rpm -ql on NVIDIA_kernel to get the driver's name. The one return was /lib/modules/2.4.18-10/kernel/drivers/video/NVdriver. Then I ran: rpm -Uvh NVdriver. Unfortunately, "no such file." Apparently I can't run the x server without this uninstall, and apparently I'm not going about it in the right way.

Unfortunately, nVidia's support list works through a web page, and since I've lost my X server, it does me no good (I used to rely on lynx, and now I see that I've got it on Linux! I'll try to use it to reach nVidia). My gnus gets into a loop (no fun when it happens from a terminal), and so I can't pursue these issues on an appropriate newsgroup unless I can somehow telnet into the newsgroup (something I've never tried). Wow; all this takes me back to my DOS days!

Haines Brown
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#11 lore raw
Quoted 9 lines · Haines Brown

Lawson,

At this point I'm only trying to back out of my abortive nVidia driver install and get back to the nv driver that came with my RedHat 7.3 distribution.

To do that, I recovered my old XF86Config-4 file. The rpm install for the driver commented out lib.GLcore.a and libglx.a, which I restored.

Quoted 6 lines

Third, I wanted to uninstall the driver RPM. First, I used rpm -ql on NVIDIA_kernel to get the driver's name. The one return was /lib/modules/2.4.18-10/kernel/drivers/video/NVdriver. Then I ran: rpm -Uvh NVdriver. Unfortunately, "no such file." Apparently I can't run the x server without this uninstall, and apparently I'm not going about it in the right way.

Are you trying to uninstall that? Not with -U you can't. Mind I've never tried to uninstall an rpm, but uninstall is spelled -e or --uninstall
-U is upgrade, essentially the same as install.

Quoted 10 lines

Unfortunately, nVidia's support list works through a web page, and since I've lost my X server, it does me no good (I used to rely on lynx, and now I see that I've got it on Linux! I'll try to use it to reach nVidia). My gnus gets into a loop (no fun when it happens from a terminal), and so I can't pursue these issues on an appropriate newsgroup unless I can somehow telnet into the newsgroup (something I've never tried). Wow; all this takes me back to my DOS days!

Haines Brown

Lawson
--
---oops---

________________________________________________________________
Sign Up for Juno Platinum Internet Access Today
Only $9.95 per month!
Visit www.juno.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#12 lore raw
Quoted 8 lines
Quoted 6 lines

Third, I wanted to uninstall the driver RPM. First, I used rpm -ql on NVIDIA_kernel to get the driver's name. The one return was /lib/modules/2.4.18-10/kernel/drivers/video/NVdriver. Then I ran: rpm -Uvh NVdriver. Unfortunately, "no such file." Apparently I can't run the x server without this uninstall, and apparently I'm not going about it in the right way.

Are you trying to uninstall that? Not with -U you can't.

Sorry about the typo. I meant rpm -e. The problem was that I was trying to uninstall the driver rpm, not the driver package rpm, and had to uninstall the GLX package first. I had sucess when I figured out the right target. By the way, it was nice how rpm -e automatically recovered the old files it had put aside in the form xxx....RPMSAVE.

Thanks.

Haines

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#13 lore raw
In reply to Ray Olszewski
Quoted 5 lines · Ray Olszewski

In principle, you could run X with no Window Manager, just starting a single xterm when the X server starts. I've never done this myself (I have read about the procedure, in a *very* old book),

I ran X on an old 486 like this for several months. To see how it works, edit ~/.xinitrc
------------------------------------------------------
xsetroot -solid grey
xcalc -geometry 200x300-0-0 -bg lightblue -font 9x15 & xclock -geometry 240x240+0-0 -bg yellow & xterm -font 9x15
------------------------------------------------------
Then execute 'startx'

Quoted 3 lines

What I would suggest as a practical solution is for you to run X with one of the lightweight Window Managers ... say blackbox or icewm,

I agree. On my 486, I went from no-wm to icewm and there was no noticeable effect on the speed. icewm adds a lot of functionality without using a lot of resources.

Cheers,
Steven

______________________________
http://www.volny.cz/basiclinux

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs