Re: xdm, X, fvwm2 : newbie questions
Joost Kooij wrote: >This sounds really weird. I can't help you very much I'm afraid. >I don't think so, but maybe you fiddled with /etc/securetty or >/etc/login.defs? > >What command do you use to become root, su or login? Weird is the word ! And things became even weirder since. Somehow "xinit" wasn´t doing what it was supposed to do so i reinstalled X. This may sound like i really messed up something which of course is not impossible but actually i am a bit familiar with programming so i do have my inhibitions about changing any configuration or script files at random. For two days i have basically only been reading manual pages and examining configuration and script files and the system deteriorated all by itself. Actually, i think it was the kde wind. manager or its (de)installation scripts which messed up something. Anyway, the probelm is solved. I removed the X system with dselect (as far as possible) then manually removed all the subdirectories that were left on my system ( and which i was able to discern as belonging to X or kde or any other wind.manager) and re-installed X & fvwm2 . Works fine now and when "startx" starts X, it opens an xterm for me and i see the familiar prompt for root. The installation with dselect gave me a few warnings, like: >Setting up xlib 6 (3.3-3) >ldconfig:warning:can´t open /usr/X11R6/lib/libICE.so.6 >No such file or directory, skipping but X seems to be working and that is what counts. Thank-you all for your help Gabor Kontur [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: xdm, X, fvwm2 : newbie questions
On Wed, 25 Mar 1998, Bill Leach wrote: > With a ps2 style mouse, it is either use gpm for both consoles and X or > kill gpm to run X (for whatever reasons they will not co-exist on a ps2 > style mouse). > > > I've never seen the advantages of using /dev/gpmdata as I have never > > had any problems getting my mouse to work correctly in X11. YMMV > > though. I think not using the gpmdata method makes it simpler anyhow. Hogwash. I have a ps2 mouse. Gpm and X know nothing about eachother. They both access /dev/psaux fine. I use 2.1.91pre1. Adam -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: xdm, X, fvwm2 : newbie questions
On Wed, 25 Mar 1998, Bill Leach wrote: > I don't even know 'how far back' this was (bo, rexx?) but I do know that > at one time, I had to 'kill' gpm to run X and there was a note somewhere > in the gpm stuff about the problem. Umm, yeah, I think you're right about that. IIRC that was around "buzz" (1.1) times actually that I read something like that when I first set up X11. I didn't have a ps/2 mouse at that time, so I never bothered about it. When I did get a ps/2 mouse, I remembered the warning, but tried to get it to work "straight" and it just did. It has always done so since, on several different systems and mice. Cheers, Joost -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: xdm, X, fvwm2 : newbie questions
I don't even know 'how far back' this was (bo, rexx?) but I do know that at one time, I had to 'kill' gpm to run X and there was a note somewhere in the gpm stuff about the problem. > Really, this has never been a problem for me. The only problem I had with > X11 and a ps2 mouse is related to StarOffice4. It freezes when you click > on the menus with a ps2 mouse. Stardivision has released a patch now, but > I haven't tested it, because I found a Logitech 3-button serial mouse. > -- best, -bill [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] from a 1996 Micro$loth ad campaign: "The less you know about computers the more you want Micro$oft!" See! They do get some things right! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: xdm, X, fvwm2 : newbie questions
On Wed, 25 Mar 1998, Bill Leach wrote: > With a ps2 style mouse, it is either use gpm for both consoles and X or > kill gpm to run X (for whatever reasons they will not co-exist on a ps2 > style mouse). > > > I've never seen the advantages of using /dev/gpmdata as I have never > > had any problems getting my mouse to work correctly in X11. YMMV > > though. I think not using the gpmdata method makes it simpler anyhow. Really, this has never been a problem for me. The only problem I had with X11 and a ps2 mouse is related to StarOffice4. It freezes when you click on the menus with a ps2 mouse. Stardivision has released a patch now, but I haven't tested it, because I found a Logitech 3-button serial mouse. Cheers, Joost -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: xdm, X, fvwm2 : newbie questions
With a ps2 style mouse, it is either use gpm for both consoles and X or kill gpm to run X (for whatever reasons they will not co-exist on a ps2 style mouse). > I've never seen the advantages of using /dev/gpmdata as I have never > had any problems getting my mouse to work correctly in X11. YMMV > though. I think not using the gpmdata method makes it simpler anyhow. -- best, -bill [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] from a 1996 Micro$loth ad campaign: "The less you know about computers the more you want Micro$oft!" See! They do get some things right! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: xdm, X, fvwm2 : newbie questions
On Tue, 24 Mar 1998, Gabor Kontur wrote: > I have your setup now. Works fine except that the responsiveness has not > changed in X. I've never seen the advantages of using /dev/gpmdata as I have never had any problems getting my mouse to work correctly in X11. YMMV though. I think not using the gpmdata method makes it simpler anyhow. About the mouse responsiveness: you've obviously not read the xset manpage very thoroughly yet as it explainss it all (I think.) > When i try to remedy the situation by starting a login bash that will run > my regular profile scripts, i cannot login as root: Invalid (or incorrect) > login. The password is strictly alphanumeric and i couldn´t possibly > misspell it a dozen times. Also, CAPS LOCK is not activated ( or otherwise > i would login as ROOT and not as root ). > I can login as another user just fine. This sounds really weird. I can't help you very much I'm afraid. I don't think so, but maybe you fiddled with /etc/securetty or /etc/login.defs? What command do you use to become root, su or login? I'm not sure if you got this right: - if you start bash as a login shell, it will read ~/.bash_profile - if you start bash as a (sub)shell, it will read ~/.bashrc Cheers, Joost PS: If you want to make changes to the /etc/rc.? setup, have a look at the update-rc.d manpage which documents the Debian interface for this. If you use update-rc.d, packages will respect your changes when they get upgraded (otherwise, they might reinstall links that you removed.) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: xdm, X, fvwm2 : newbie questions
== Hi Joost , Thank you and the others for your expertise and your time. Joost Kooij wrote: >Hmm, ae, yes.. well, ae seems not to work very well in xterm. If you want >an easy editor, try joe. Or learn vi. You're advised to learn ed and ex >too if you want to be a vi power-user. I just noticed that page-up and page-down do not work with "most " when i´m in xterm. Strangely enough, the arrow keys (those that do not work with "ae") work here. Maybe i should just forget about xterm altogether and use a VC ?! Joost Kooij wrote: >Try running gpmconfig as root. It is a nice script (you can read in >/usr/sbin/gpmconfig what it does) that takes you by the hand when setting >up gpm. If you still have a hard time, spell out the gpm and gpm.conf >manpages and try again. I did that ( run gpmconfig) and now i know how i came about to have entries like "device=help" in my /etc/gpm.conf: During installation gpmconfig was started and i entered "help" when i did not know what to enter. Joost Kooij wrote: >Never just delete scripts from /etc/init.d . That is a senseless thing to >do, because it isn't necessary at all. All that is needed is to delete the >link to /etc/init.d/gpm in /etc/rc*: > >[EMAIL PROTECTED]:/home/kooij> $ find /etc/rc* -type l -name "*gpm*" >/etc/rc0.d/K20gpm >/etc/rc1.d/K20gpm >/etc/rc2.d/S20gpm >/etc/rc3.d/S20gpm >/etc/rc4.d/S20gpm >/etc/rc5.d/S20gpm >/etc/rc6.d/K20gpm Actually, i had just inserted the line exit 0 at the beginning of /etc/init.d/gpm, but i will heed your advice for the future. Thank-you again Gabor Kontur [EMAIL PROTECTED] == -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: xdm, X, fvwm2 : newbie questions
== Hi David Thank-you and the others for your adept advice and your extra time. But, as you probably already know: answers unfortunately have a tendency of producing new questions. David Wright wrote: >My /etc/gpm.conf has (through gpmconfig) > >device=/dev/psaux >responsiveness=30 >type=ps2 >append="-R" > >The -R means, of course, that I have > >Section "Pointer" >Protocol"MouseSystems" >Device "/dev/gpmdata" > >in /etc/X11/XF86Config I have your setup now. Works fine except that the responsiveness has not changed in X. I set it to 70 and in text mode ( on a VC) it really moves fast but i noticed no change in X ( Still too slow zapping those pesty xbills ) . Also, when X starts it leaves the VC from where it was started with a screenfull of text. The last line says now: "Warning: /dev/gpmdata unable to get status of mouse fd (Invalid argument) " Is that normal ? David Wright wrote: >I'm not quite sure when you mean that you have to login, but two thoughts: >does your root password contain any funny characters that might be >misplaced because of your keyboard selection; I've yet to find how to >correct typos when typing a password into su. I stopped fooling around with xdm and first i will try to get the system working with startx, (as Joost Kooij had suggested it). The only noticeable difference is that there is no xconsole icon now. So i have an empty fvwm2 desktop and when i start xterm, i am still logged in as root but i can see from the prompt right away that the script /root/.bashrc was executed. When i try to remedy the situation by starting a login bash that will run my regular profile scripts, i cannot login as root: Invalid (or incorrect) login. The password is strictly alphanumeric and i couldn´t possibly misspell it a dozen times. Also, CAPS LOCK is not activated ( or otherwise i would login as ROOT and not as root ). I can login as another user just fine. Thank-you again Gabor Kontur [EMAIL PROTECTED] == -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: xdm, X, fvwm2 : newbie questions
On Mon, 23 Mar 1998, Gabor Kontur wrote: > Is there a way to influence the typematic delay of the keyboard? Characters > start to duplicate themselves when i keep a key pressed longer than about > one fifth of a second. #!/bin/sh # mS DELAY=500 # cps REPEAT=15 /sbin/kbdrate -r $REPEAT -d $DELAY exit 0 Put a file like that into /etc/rc.boot > When i start ae in an xterm window i cannot use the arrow keys to scroll. Annoying, isn't it. Just use a VC instead. > the script /etc/init.d/gpm produced the following message at startup: > gpm -m help -t ps2 -r help/usr/sbin/gpm: help: No such file or directory > My mouse is indeed PS2 and at startup i get this message as well: > PS/2 auxiliary pointing device detected. driver installed > The mouse works fine with X so i simply scratched the useless call to > /etc/init.d/gpm. Overcleaning. So, there was an error message. At best, if you make changes to these sorts of configuration files, you'll make a lot of work for yourself when you upgrade, because the upgrade scripts will detect these changes and think the files must be preserved. At worst, you could break the system. > The question is: how do i adjust the responsiveness of the mouse which is > rather slow at the moment ( meaning that the distances the mouse travels on > my mouse pad are too large). My /etc/gpm.conf has (through gpmconfig) device=/dev/psaux responsiveness=30 type=ps2 append="-R" The -R means, of course, that I have Section "Pointer" Protocol"MouseSystems" Device "/dev/gpmdata" in /etc/X11/XF86Config > So i reverted to using twm for a while but now i use fvwm2. > With that i have one major problem: At the initial login (as root) it does > not execute the profile scripts as for a login shell but rather another > script (probably the one that ends with a rc). What gets called, and when, is quite complicated. I stick most stuff in .bachrc and call it from .bash_profile, others use links to achieve similar ends. > When i start xterm (which is not started automatically) i can login just > fine as another user but not as root. It says "incorrect login" or > something to that effect. > What might be the cause of this problem ? I'm not quite sure when you mean that you have to login, but two thoughts: does your root password contain any funny characters that might be misplaced because of your keyboard selection; I've yet to find how to correct typos when typing a password into su. > I thought i´d mention though that i had a crash. Now if this was windows > 95, i´d say that´s absolutely normal, but this really worries me. It > started with one of my terminals freezing up ( it was displaying a manual > page). If and when a VC freezes on me, I just switch to another VC and kill the first. init will respawn it. > So i decided to shut down quickly but i wasn´t quick enough because > the terminal i ran shutdown from froze up during shutdown . Well, it would, wouldn't it? I don't know the order in which shutdown works, but I assume things must stop working! > Finally i had to press the reset button. The best way to shut down in an orderly fashion is Ctrl-Alt-Del. About the only thing you lose is updating .bash_history for logged-in sessions. > I wasn´t really doing anything unusual, except maybe restarting xdm many > times over (to figure out how it works) (with twm) . Well X can freeze things, particularly if it captures all your keystrokes etc. though some people use joystick tricks. I just log in through the network (or an old vt220 at home) and kill X. Very little actually stops linux. Cheers, -- David Wright, Open University, Earth Science Department, Milton Keynes MK7 6AA U.K. email: [EMAIL PROTECTED] tel: +44 1908 653 739 fax: +44 1908 655 151 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: xdm, X, fvwm2 : newbie questions
Gabor Kontur <[EMAIL PROTECTED]> writes: > >I've recently reinstalled Debian 1.3 (on a system with a new > >disk) and found that after installing xbase and xserver-svga, xdm > >wouldn't start. After looking about a bit, I found that > >/etc/init.d/xdm was empty and that the start up script was in > >/etc/init.d/xdm.dpkg-dist. > > >Can anyone help me sort out where I went wrong? Or is this a > >feature that I don't understand? > > What i simply did was copy the file /etc/init.d/xdm.dpkg-dist to > /etc/init.d/xdm. > Is that all there is to it ? Is this script complete as it is now? Yes, that should be enough to do. You might want to have a look at the links /etc/rc*.d/[SKsk]*xdm and at the /usr/X11/config (?) file. Where you might have to add a start-xdm or something like this. > 3rd question: > I did a silly thing, which is "cat /proc/kcore" > ( but then they say you have to try everything once in life ). > After a while all the characters on that tty became gibberish and i found > no way of fixing the problem but i am sure the solution is simple even > though unknown to me. (rebooting solved it but there must be a nicer way > of doing it) Type "reset" while ignoring what you see. This should make it more readable. If you still got problems, you can switch to another console , log in there, ignoring the other terminal. > 4th question: > When i start ae in an xterm window i cannot use the arrow keys to scroll. > They work fine with other programs though. I think this should be reported as a bug to ae and sure will be solved in the upcoming debian 2.0. > 5th question: > Does cdwrite or a similar program support drives with an ATAPI interface ? Newest versions do AFAIK. > 6th question: > Mouse support > The file /etc/gpm.conf has the following entries: > device=help > responsiveness=help > type=ps2 > append="" gpm is useful for Cut & Waste on consoles. You should run gpmconfig and change the default values to whatever is appropriate. Running gpm might solve the responsiveness problem in X, if you use the "redistribution" option of gpm. HTH, Jens P.S.: I can´t give any help on the other (deleted) questions. --- [EMAIL PROTECTED] [EMAIL PROTECTED] Key ID: 2048/E451C639 Jens Ritter Key fingerprint: 5F 3D 43 1E 24 1E CC 48 1E 05 93 3A A7 10 73 37 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: xdm, X, fvwm2 : newbie questions
On Mon, 23 Mar 1998, Gabor Kontur wrote: > What i simply did was copy the file /etc/init.d/xdm.dpkg-dist to > /etc/init.d/xdm. > Is that all there is to it ? Is this script complete as it is now? Lets hope so. You can have a look at the script's contents and if inside it looks like a real script, just trust that it is ok. You also have to have a line "start-xdm" in /etc/X11/config and in /etc/X11/xdm/Xservers a line ":0 local /usr/X11R6/bin/X" for xdm to work. Last but not least, the xserver must actually work; if startx doesn't work, you're in for trouble. First get "startx" to work reliably, then see if you can get "/etc/init.d/xdm start" (as root) working and only then edit /etc/X11/config. > Is there a way to influence the typematic delay of the keyboard? Characters > start to duplicate themselves when i keep a key pressed longer than about > one fifth of a second. [EMAIL PROTECTED]:/home/kooij> $ apropos typematic typematic: nothing appropriate. [EMAIL PROTECTED]:/home/kooij> $ apropos keyboard dumpkeys (1) - dump keyboard translation tables getch (3ncurses) - get (or push back) characters fromcurses terminal keyboard getstr (3ncurses)- accept character strings fromcurses terminal keyboard kbd_mode (1) - report or set the keyboard mode kbdrate (8) - reset the keyboard repeat rate and delay time keytables (5)- keyboard table descriptions for loadkeys and dumpkeys loadkeys (1) - load keyboard translation tables setleds (1) - set the keyboard leds setmetamode (1) - define the keyboard meta key handling showkey (1) - examine the scan codes and keycodes sent by the keyboard setxkbmap (1x) - set the keyboard using the X Keyboard Extension xkbcomp (1x) - compile XKB keyboard description xkbprint (1x)- print an XKB keyboard description [EMAIL PROTECTED]:/home/kooij> $ dpkg -S kbdrate util-linux: /sbin/kbdrate util-linux: /usr/man/man8/kbdrate.8.gz So, util-linux has a tool kbdrate, I've never used it myself though. Also, in X11 "xset" lets you control a lot of things like the keyboard, mouse and monitor properties. With the "-r" option you can apparently set some keyboard options. Better read the manpages yourself. > I did a silly thing, which is "cat /proc/kcore" > ( but then they say you have to try everything once in life ). > After a while all the characters on that tty became gibberish and i found > no way of fixing the problem but i am sure the solution is simple even > though unknown to me. (rebooting solved it but there must be a nicer way > of doing it) This happens because there are 8-bit characters in /proc/kcore. The terminal driver interprets those as commands and it can get confused. Use reset to clean up the terminal's state. You can read about this in the "tset" manpage (reset is a sort of alias for tset.) > When i start ae in an xterm window i cannot use the arrow keys to scroll. > They work fine with other programs though. Hmm, ae, yes.. well, ae seems not to work very well in xterm. If you want an easy editor, try joe. Or learn vi. You're advised to learn ed and ex too if you want to be a vi power-user. > Does cdwrite or a similar program support drives with an ATAPI interface ? I believe the latest and greatest versions of either cdwrite or cdrecord (probably the latter) do this. Another option is to let the kernel (also a very recent version - probably even recent 2.1.x) do scsi emulation for ide devices. > Mouse support > The file /etc/gpm.conf has the following entries: > device=help > responsiveness=help > type=ps2 > append="" > > the script /etc/init.d/gpm produced the following message at startup: > gpm -m help -t ps2 -r help/usr/sbin/gpm: help: No such file or directory > My mouse is indeed PS2 and at startup i get this message as well: > PS/2 auxiliary pointing device detected. driver installed > The mouse works fine with X so i simply scratched the useless call to > /etc/init.d/gpm. > The question is: how do i adjust the responsiveness of the mouse which is > rather slow at the moment ( meaning that the distances the mouse travels on > my mouse pad are too large). This looks like an incomplete setup. Mine (a ps2 mouse) has: device=/dev/psaux responsiveness= type=ps2 append="-l \"a-zA-Z0-9_.:~/\300-\326\330-\366\370-\377\"" (I admit not to know what the append string is all about.) Try running gpmconfig as root. It is a nice script (you can read in /usr/sbin/gpmconfig what it does) that takes you by the hand when setting up gpm. If you still have a hard time, spell out the gpm and gpm.conf manpages and try again. Never just delete scripts from /etc/init.d . That is a senseless thing to do, because it isn't necessary at all. All that is needed is to delete the link to /etc/init.d/gpm in /etc/rc*: [EMAIL PROTECTED]:/home/kooij> $ find /etc/rc* -type l -
xdm, X, fvwm2 : newbie questions
= While everyone is eager to get the latest versions of the unstable system, i would be truly happy to get my stable version of debian (1.3.1) up and running. My first obstacle was that xdm was not starting but luckily Mike Miller encountered the same thing. He wrote on Jan.24: >I've recently reinstalled Debian 1.3 (on a system with a new >disk) and found that after installing xbase and xserver-svga, xdm >wouldn't start. After looking about a bit, I found that >/etc/init.d/xdm was empty and that the start up script was in >/etc/init.d/xdm.dpkg-dist. > >Can anyone help me sort out where I went wrong? Or is this a >feature that I don't understand? What i simply did was copy the file /etc/init.d/xdm.dpkg-dist to /etc/init.d/xdm. Is that all there is to it ? Is this script complete as it is now? Alas, this is only the first of many questions. The 2nd is: Is there a way to influence the typematic delay of the keyboard? Characters start to duplicate themselves when i keep a key pressed longer than about one fifth of a second. 3rd question: I did a silly thing, which is "cat /proc/kcore" ( but then they say you have to try everything once in life ). After a while all the characters on that tty became gibberish and i found no way of fixing the problem but i am sure the solution is simple even though unknown to me. (rebooting solved it but there must be a nicer way of doing it) 4th question: When i start ae in an xterm window i cannot use the arrow keys to scroll. They work fine with other programs though. 5th question: Does cdwrite or a similar program support drives with an ATAPI interface ? 6th question: Mouse support The file /etc/gpm.conf has the following entries: device=help responsiveness=help type=ps2 append="" the script /etc/init.d/gpm produced the following message at startup: gpm -m help -t ps2 -r help/usr/sbin/gpm: help: No such file or directory My mouse is indeed PS2 and at startup i get this message as well: PS/2 auxiliary pointing device detected. driver installed The mouse works fine with X so i simply scratched the useless call to /etc/init.d/gpm. The question is: how do i adjust the responsiveness of the mouse which is rather slow at the moment ( meaning that the distances the mouse travels on my mouse pad are too large). 7th question: Window Managers First i tried kde but it proved unreliable so i had it removed with dselect. That process left me without a Xsession file so i renamed /etc/X11/Xsession.tmp to Xsession. (While kde was installed, /etc/X11/Xsession was a symlink to /etc/X11/Xsession.kde) I certainly hope this is the only messup the kde (de)installation scripts caused. So i reverted to using twm for a while but now i use fvwm2. With that i have one major problem: At the initial login (as root) it does not execute the profile scripts as for a login shell but rather another script (probably the one that ends with a rc). When i start xterm (which is not started automatically) i can login just fine as another user but not as root. It says "incorrect login" or something to that effect. What might be the cause of this problem ? That´s it. No more questions! I thought i´d mention though that i had a crash. Now if this was windows 95, i´d say that´s absolutely normal, but this really worries me. It started with one of my terminals freezing up ( it was displaying a manual page). So i decided to shut down quickly but i wasn´t quick enough because the terminal i ran shutdown from froze up during shutdown . Trying to run shutdown from another terminal didn´t work: it realized that it was running already. So i tried shutdown -c 0 but that process froze as well. I had a look at those shutdown processes with ps and their status was D. Finally i had to press the reset button. I wasn´t really doing anything unusual, except maybe restarting xdm many times over (to figure out how it works) (with twm) . I beg for forgiveness that this message has turned out this long. I won´t comit it again (i hope). thank-you all Gabor Kontur [EMAIL PROTECTED] != -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]