Re: how to map pfkeys to screen -r cmds
On Sun, 16 Nov 2003 11:32, Marty Landman wrote: At 07:15 PM 11/15/2003, Malcolm Kay wrote: On my 4.7-STABLE machine I believe the default number of virtual consoles is 16 with the first 12 having by default /dev entries /dev/ttyv0 to /dev/ttyvb; certainly not /dev/stty0 ... and are selectable with Alt-f1 to Alt-f12 when active. By default the first 8 consoles are activated for login in /etec/ttys. I'm on 4.8-RELEASE and a GENERIC Kernel. When I try alt-f3 from my ssh session I get [13~. All the function keys with alt do similarly. What am I missing? I've learned to use the screen cmd although it's a bit easy to get lost in there, is this built on that or something else? I think you may have misunderstood the nature of the virtual terminals. What do you hope to do through ssh. The virtual terminal is relavent only to the local machine -- if pretends that there are 16 (or however many are set up) separate screens and keyboards and these share the real screen and keyboard by switching -- normally throgh the Alt-f? combination. Those made active in /etc/ttys can be selected locally for login -- independent of any login on a different virtual terminal. If you are logging in remotely (via ssh) then you are using a remote terminal and the virtual terminals are totally irrelevant. Login will be in a pseudo terminal /dev/pty?? Confusing perhaps, but I can't think of a way to explain more clearly. Malcolm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to map pfkeys to screen -r cmds
On Fri, Nov 14, 2003 at 07:04:18PM -0500, Marty Landman wrote: Thought I recently read something in the Handbook about being able to switch screens easily using the pfkeys but didn't see the how of it. Today learned the screen cmd following a tip from the fbds Diary but the usefulness would be greatly enhanced with some quick way to go through the screens. How hard is this effect to set up, either with or w/o screens? Also I'm ssh'ing into my session in case that matters. The way I use screen: - type 'screen' to start a new screen session - type 'ctrl-a c' to create a new screen tty - usually one screen for logfiles, one for top, one for trafshow, etc etc - to switch from one screen to another, type 'ctrl-a n' (to goto the next screen) or 'ctrl-a p' (to goto the previous screen). Note this only works when you're in a screen session - doesn't work if you're just in a normal tty/console/ssh session. - another nice way to choose which screen to jump to is to type: 'ctrl -a ' which gives you a list of current screens to scroll through with your arrow keys. You can also name the screens to make them more memorable when using this technique using 'ctrl-a A' - to 'detach' from screen type 'ctrl-a d' which will drop you back to the tty session you were originally in. - to 'reattach' to a screen session type 'screen -r (-d)' - the -d switch forces the reattachment, doing a 'detach' first if needed (ie if someone else is using that screen, they'll be detached first). Can't say I've ever really needed this since I only use screen on my box. All of this is in the manual for screen, have a look. There's also a good site for screen hosted by sven guckes which has some ok stuff on it: http://www.math.fu-berlin.de/~guckes/screen/ mmm which seems to be borked right now, hopefully by the time you read this it'll be fixed (I'll mail him now:=). -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to map pfkeys to screen -r cmds
On Sun, Nov 16, 2003 at 09:59:43AM +, Jez Hancock wrote: All of this is in the manual for screen, have a look. There's also a good site for screen hosted by sven guckes which has some ok stuff on it: http://www.math.fu-berlin.de/~guckes/screen/ This should be: http://www.guckes.net/screen/ -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to map pfkeys to screen -r cmds
At 04:13 AM 11/16/2003, Malcolm Kay wrote: I think you may have misunderstood the nature of the virtual terminals. What do you hope to do through ssh. The virtual terminal is relavent only to the local machine -- if pretends that there are 16 (or however many are set up) separate screens and keyboards and these share the real screen and keyboard by switching -- normally throgh the Alt-f? combination. Ok Malcolm, I see what you mean. When ssh'g in the alt-f combo doesn't give me a new screen but when on the master console it does. Here's what I'd like... to have the most convenient way - w/o installing X @ this time to have several sessions at once. Session may not be the right word but still. The screen cmd is kind of close but the alt-f feature you've explained seems much better, easier for me to use. My workstation is where I've been working from, su root'ing when needed. Besides letting me work on one monitor/keybd it also lets me copy/paste from the workstation easily. But right now I've got the fbsd monitor on and the keyboard behind me with 3 sessions running. Nothing's perfect I guess. :) Thanks for helping me understand this. Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to map pfkeys to screen -r cmds
On Mon, 17 Nov 2003 00:28, Marty Landman wrote: At 04:13 AM 11/16/2003, Malcolm Kay wrote: I think you may have misunderstood the nature of the virtual terminals. What do you hope to do through ssh. The virtual terminal is relavent only to the local machine -- if pretends that there are 16 (or however many are set up) separate screens and keyboards and these share the real screen and keyboard by switching -- normally throgh the Alt-f? combination. Ok Malcolm, I see what you mean. When ssh'g in the alt-f combo doesn't give me a new screen but when on the master console it does. Here's what I'd like... to have the most convenient way - w/o installing X @ this time to have several sessions at once. Session may not be the right word but still. The screen cmd is kind of close but the alt-f feature you've explained seems much better, easier for me to use. My workstation is where I've been working from, su root'ing when needed. Besides letting me work on one monitor/keybd it also lets me copy/paste from the workstation easily. But right now I've got the fbsd monitor on and the keyboard behind me with 3 sessions running. Probably not what you want; but assuming the machine you are ssh'ing from is FreeBSD or Linux or something else with virtual terminals then you can have multiple local logins and from each run a separate ssh session on the remote machine. Once setup the Alt-f? key strokes will switch between those separate ssh sessions. It is also possible to funnel other ssh sessions or other types such as telnet through the original ssh session but this can get rather complex and probably gains nothing over separate ssh connections. In other words I'm not quite sure how you do it! Malcolm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to map pfkeys to screen -r cmds
At 09:22 AM 11/16/2003, Malcolm Kay wrote: Probably not what you want; but assuming the machine you are ssh'ing from is FreeBSD or Linux or something else with virtual terminals My workstation is windoz xp. It is also possible to funnel other ssh sessions or other types such as telnet through the original ssh session but this can get rather complex and probably gains nothing over separate ssh connections. Like using the screen command for more than one other session gets rather complex, not to mention tedious. In other words I'm not quite sure how you do it! The alt-fk swapping of virtual consoles is just what I'm looking for, only with the convenience of one physical location. Hmm, I do use WinVNC to operate the desktop of 3 other windoz machines from the convenience of my own workstation; albeit maybe this is (sort of) no different than using SSH. Truth be told Malcolm I installed my fbsd box one week ago and am thrilled to have as much working as I do. With Perl, Apache, PostgreSQL and Lynx along with the ability to SSH and FTP in I can pretty much get to work moving my local web development environment from my workstation to my fbsd box. Once I get Samba working I can do so conveniently. It's not the way I would've said a week ago I was going to spend my time but it is time well spent I think. Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to map pfkeys to screen -r cmds
On Mon, 17 Nov 2003 00:52, Malcolm Kay wrote: On Mon, 17 Nov 2003 00:28, Marty Landman wrote: At 04:13 AM 11/16/2003, Malcolm Kay wrote: I think you may have misunderstood the nature of the virtual terminals. What do you hope to do through ssh. The virtual terminal is relavent only to the local machine -- if pretends that there are 16 (or however many are set up) separate screens and keyboards and these share the real screen and keyboard by switching -- normally throgh the Alt-f? combination. Ok Malcolm, I see what you mean. When ssh'g in the alt-f combo doesn't give me a new screen but when on the master console it does. Here's what I'd like... to have the most convenient way - w/o installing X @ this time to have several sessions at once. Session may not be the right word but still. The screen cmd is kind of close but the alt-f feature you've explained seems much better, easier for me to use. My workstation is where I've been working from, su root'ing when needed. Besides letting me work on one monitor/keybd it also lets me copy/paste from the workstation easily. But right now I've got the fbsd monitor on and the keyboard behind me with 3 sessions running. Probably not what you want; but assuming the machine you are ssh'ing from is FreeBSD or Linux or something else with virtual terminals then you can have multiple local logins and from each run a separate ssh session on the remote machine. Once setup the Alt-f? key strokes will switch between those separate ssh sessions. Thinking it through there is actually a more direct route to achieving this result. First make sure that the user who is about to make the ssh connections has rw access to a number of inactive local virtual terminals, say /dev/ttyv9 /dev/ttyva and /dev/ttyvb; if necessary as root: # chmod o+rw /dev/ttyv[9ab] Now as the user from a login console: ssh other.machine /dev/ttyv9 /dev/ttyv9 ssh other.machine /dev/ttyva /dev/ttyva ssh other.machine /dev/ttyvb /dev/ttyvb which should result in three ssh sessions simultaneously active on /dev/ttyv9, /dev/ttyva and /dev/ttyvb And you can switch between these sessions with Alt-f10, Alt-f11 and Alt-f12. You can only switch into these once they are active -- that is after the appropriate instance of ssh has been started. (The command lines above assume you are using the default csh (tcsh) interactive shell.) Malcolm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to map pfkeys to screen -r cmds
On Mon, 17 Nov 2003 01:12, Marty Landman wrote: At 09:22 AM 11/16/2003, Malcolm Kay wrote: Probably not what you want; but assuming the machine you are ssh'ing from is FreeBSD or Linux or something else with virtual terminals My workstation is windoz xp. Then you should be able to start multiple ssh sessions each in a separate xp window. Out of curiosity what is your ssh client under xp? PUTTY? Malcolm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to map pfkeys to screen -r cmds
At 09:55 AM 11/16/2003, Malcolm Kay wrote: On Mon, 17 Nov 2003 01:12, Marty Landman wrote: My workstation is windoz xp. Then you should be able to start multiple ssh sessions each in a separate xp window. That's true. :) And then alt-tab between these. Out of curiosity what is your ssh client under xp? PUTTY? Of course. Well I got the text screensaver going which my 12 yr old thought looked pretty cool, so one objection to working on tty0 is over, maybe I'll just leave it at that for the time being and later on learn the power saving features so I can automatically have the terminal shut down or whatever's available. BTW Malcolm, I'm having a mess trying to get Samba working. Any advice on how I can undo everything and start from scratch with a reasonable step by step guide? AFAIK the build and install went fine but everything since then has just been a mess. Then again I'm now porting my web environment by ftp'ing to my workstation from my dev website, and then from the workstation to my fbsd box, then learn the mnt command (I guess) and see if that works for my needs; I think it should. So my main concern now I guess is de-installing Samba, meaning leave the -make build install- results on the box for a future time when I have more patience/knowledge/bicarb :) but undo whatever is running now cuz it's giving me agita seeing failure messages. I have a working stable system (except for the samba stuff) and can actually start using it. This is a very cool system, fbsd. I think it'll be a blast getting into it. Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to map pfkeys to screen -r cmds
On Mon, 17 Nov 2003 01:58, Marty Landman wrote: At 09:55 AM 11/16/2003, Malcolm Kay wrote: On Mon, 17 Nov 2003 01:12, Marty Landman wrote: My workstation is windoz xp. Then you should be able to start multiple ssh sessions each in a separate xp window. That's true. :) And then alt-tab between these. Out of curiosity what is your ssh client under xp? PUTTY? Of course. Well I got the text screensaver going which my 12 yr old thought looked pretty cool, so one objection to working on tty0 is over, maybe I'll just leave it at that for the time being and later on learn the power saving features so I can automatically have the terminal shut down or whatever's available. BTW Malcolm, I'm having a mess trying to get Samba working. Any advice on how I can undo everything and start from scratch with a reasonable step by step guide? AFAIK the build and install went fine but everything since then has just been a mess. Then again I'm now porting my web environment by ftp'ing to my workstation from my dev website, and then from the workstation to my fbsd box, then learn the mnt command (I guess) and see if that works for my needs; I think it should. So my main concern now I guess is de-installing Samba, meaning leave the -make build install- results on the box for a future time when I have more patience/knowledge/bicarb :) but undo whatever is running now cuz it's giving me agita seeing failure messages. I have a working stable system (except for the samba stuff) and can actually start using it. This is a very cool system, fbsd. I think it'll be a blast getting into it. I've no real experience with Samba but I'm sure there are some Gurus reading this thread and with some luck you'll get help from them. Malcolm ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to map pfkeys to screen -r cmds
On Saturday, November 15, 2003,Marty Landman wrote: Thought I recently read something in the Handbook about being able to switch screens easily using the pfkeys but didn't see the how of it. Today learned the screen cmd following a tip from the fbds Diary but the usefulness would be greatly enhanced with some quick way to go through the screens. How hard is this effect to set up, either with or w/o screens? Also I'm ssh'ing into my session in case that matters. Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml Marty, to switch between screens (there are eight pre-configured virtual screens on FreeBSD,named /dev/stty0 to /dev/stty7, stty0 being also the console output for system messages), you use the key combination Alt-Ctrl-F1 to Alt-Ctrl-F8, or Ctrl-F1 to Ctrl-F8 (the latter ones do not work if you want to switch to screen 0-8 while you are in your desktop environment or window manager). If you started X-window,by using a window manager or a desktop environment,normally it uses virtual screen #10 (you can change the virtual screens in the /etc/ttys file). So remember that in case you switch to any of the virtual screens 0 to 7,if you want to resume your X session (your window manager or desktop environment), you have to press Alt-F10. Best regards Bruno --- [Quipo ISP - Questa E-mail e' stata controllata dal programma Declude Virus] [Quipo ISP - This E-mail was scanned for viruses by Declude Virus] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to map pfkeys to screen -r cmds
On Sun, 16 Nov 2003 09:45, [EMAIL PROTECTED] wrote: On Saturday, November 15, 2003,Marty Landman wrote: Thought I recently read something in the Handbook about being able to switch screens easily using the pfkeys but didn't see the how of it. Today learned the screen cmd following a tip from the fbds Diary but the usefulness would be greatly enhanced with some quick way to go through the screens. How hard is this effect to set up, either with or w/o screens? Also I'm ssh'ing into my session in case that matters. Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml Marty, to switch between screens (there are eight pre-configured virtual screens on FreeBSD,named /dev/stty0 to /dev/stty7, stty0 being also the console output for system messages), I must say you seem to have a rather unusual FreeBSD setup. On my 4.7-STABLE machine I believe the default number of virtual consoles is 16 with the first 12 having by default /dev entries /dev/ttyv0 to /dev/ttyvb; certainly not /dev/stty0 ... and are selectable with Alt-f1 to Alt-f12 when active. By default the first 8 consoles are activated for login in /etec/ttys. (When inside X you need Ctl-Alt-f1 etc. otherwise the combination gets captured by X) you use the key combination Alt-Ctrl-F1 to Alt-Ctrl-F8, or Ctrl-F1 to Ctrl-F8 (the latter ones do not work if you want to switch to screen 0-8 while you are in your desktop environment or window manager). Alt-f1 etc; not Ctl-f1 etc. If you started X-window,by using a window manager or a desktop environment,normally it uses virtual screen #10 (you can change the virtual screens in the /etc/ttys file). X usually starts on the first inactive virtual terminal, which usually is /dev/ttyv8. If started through ttys then it actually ignores the virtual terminal number in the entry. In this case you switch to the X display with Ctl-Alt-f9 or simply Alt-f9. Virtual consoles not otherwise active can be used for input/output consoles for your own programs. Malcolm Kay [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to map pfkeys to screen -r cmds Errata corrige
On my previous reply message,the line ...If you started X-window,by using a window manager or a desktop environment,normally it uses virtual screen #10... reads ...If you started X-window,by using a window manager or a desktop environment,normally it uses virtual screen #9 The 1st virtual screen is stty0,so the 10th is stty9, the default one allocated to X sessions. That's why you will use Ctrl-F10 while on another screen to resume X session's screen (10th:stty9). On Saturday, November 15, 2003,Marty Landman wrote: Thought I recently read something in the Handbook about being able to switch screens easily using the pfkeys but didn't see the how of it. Today learned the screen cmd following a tip from the fbds Diary but the usefulness would be greatly enhanced with some quick way to go through the screens. How hard is this effect to set up, either with or w/o screens? Also I'm ssh'ing into my session in case that matters. Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml Marty, to switch between screens (there are eight pre-configured virtual screens on FreeBSD,named /dev/stty0 to /dev/stty7, stty0 being also the console output for system messages), you use the key combination Alt-Ctrl-F1 to Alt-Ctrl-F8, or Ctrl-F1 to Ctrl-F8 (the latter ones do not work if you want to switch to screen 0-8 while you are in your desktop environment or window manager). If you started X-window,by using a window manager or a desktop environment,normally it uses virtual screen #10 (you can change the virtual screens in the /etc/ttys file). So remember that in case you switch to any of the virtual screens 0 to 7,if you want to resume your X session (your window manager or desktop environment), you have to press Alt-F10. Best regards Bruno --- [Quipo ISP - Questa E-mail e' stata controllata dal programma Declude Virus] [Quipo ISP - This E-mail was scanned for viruses by Declude Virus] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] --- [Quipo ISP - Questa E-mail e' stata controllata dal programma Declude Virus] [Quipo ISP - This E-mail was scanned for viruses by Declude Virus] --- [Quipo ISP - Questa E-mail e' stata controllata dal programma Declude Virus] [Quipo ISP - This E-mail was scanned for viruses by Declude Virus] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to map pfkeys to screen -r cmds
At 07:15 PM 11/15/2003, Malcolm Kay wrote: On my 4.7-STABLE machine I believe the default number of virtual consoles is 16 with the first 12 having by default /dev entries /dev/ttyv0 to /dev/ttyvb; certainly not /dev/stty0 ... and are selectable with Alt-f1 to Alt-f12 when active. By default the first 8 consoles are activated for login in /etec/ttys. I'm on 4.8-RELEASE and a GENERIC Kernel. When I try alt-f3 from my ssh session I get [13~. All the function keys with alt do similarly. What am I missing? I've learned to use the screen cmd although it's a bit easy to get lost in there, is this built on that or something else? Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]