* newbie
@ 2002-08-16 22:32 Raghava Raju
2002-08-17 16:31 ` newbie Glynn Clements
0 siblings, 1 reply; 10+ messages in thread
From: Raghava Raju @ 2002-08-16 22:32 UTC (permalink / raw)
To: linux-admin
Hi
After doing stty erase "^B", it is not not erasing
after I do ctrl-B.
Is anything wrong the way I am doing, to set "^B"
to be the erase key.
Please mail to vraghava_raju@yahoo.com, I didn't
subscribe to this list.
Regards
Raghava.
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: newbie
2002-08-16 22:32 newbie Raghava Raju
@ 2002-08-17 16:31 ` Glynn Clements
0 siblings, 0 replies; 10+ messages in thread
From: Glynn Clements @ 2002-08-17 16:31 UTC (permalink / raw)
To: Raghava Raju; +Cc: linux-admin
Raghava Raju wrote:
> After doing stty erase "^B", it is not not erasing
> after I do ctrl-B.
What isn't erasing? bash?
> Is anything wrong the way I am doing, to set "^B"
> to be the erase key.
"stty erase ..." sets the erase key which is used by the kernel's tty
driver. It will work for programs which leave the tty in "cooked"
(ICANON) mode. Try running "cat" without arguments to check the
behaviour of the tty driver.
However, a program which sets the tty to "raw" mode will receive all
key codes immediately; if it wants line editing, it must implement it
itself. The GNU readline library (normally used by bash and several
other programs) does this, so you will probably need to configure
readline separately, via the ~/.inputrc file. See the readline(3)
manpage for details.
--
Glynn Clements <glynn.clements@virgin.net>
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: newbie
@ 2002-08-19 13:39 Kirkwood, David A
2002-08-20 13:07 ` newbie Uma Shankar Kayarohanam
0 siblings, 1 reply; 10+ messages in thread
From: Kirkwood, David A @ 2002-08-19 13:39 UTC (permalink / raw)
To: 'Raghava Raju', linux-admin
Try doing it this way....
stty erase control-V control-B
-----Original Message-----
From: Raghava Raju [mailto:vraghava_raju@yahoo.com]
Sent: Friday, August 16, 2002 6:33 PM
To: linux-admin@vger.kernel.org
Subject: newbie
Hi
After doing stty erase "^B", it is not not erasing
after I do ctrl-B.
Is anything wrong the way I am doing, to set "^B"
to be the erase key.
Please mail to vraghava_raju@yahoo.com, I didn't
subscribe to this list.
Regards
Raghava.
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: newbie
[not found] <15713.19246.732177.545746@cerise.nosuchdomain.co.uk>
@ 2002-08-19 21:51 ` Raghava Raju
0 siblings, 0 replies; 10+ messages in thread
From: Raghava Raju @ 2002-08-19 21:51 UTC (permalink / raw)
To: linux-admin; +Cc: glynn.clements
I don't think "bind -f file" when called from a
script will work. Because when script exits
keymap will be back to original one. Child process
can't change environment of parent.
--- Glynn Clements <glynn.clements@virgin.net> wrote:
>
> Raghava Raju wrote:
>
> > It seems to be that modifying .inputrc file is a
> good
> > option to change settings. But here I have to do
> all
> > this things from another bash script(say temp.sh),
> > like open .inputrc,modify it, then ask readline to
> > read inputrc file again. All this I have to do
> from
> > the temp.sh only. So I am unable to ask readline
> to
> > read inputrc file again from temp.sh. Because I
> cannot
> > give ctl-x,ctl-r from temp.sh. Is there any
> command to
> > have readline read inputrc again.??
>
> 1. You can force an instance of bash to use a
> different file by
> setting the environment variable INPUTRC.
>
> 2. You can modify the bindings for a running bash
> process using the
> "bind" command. "bind -f <filename>" will read key
> bindings from a
> file.
>
> --
> Glynn Clements <glynn.clements@virgin.net>
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: newbie
2002-08-19 13:39 newbie Kirkwood, David A
@ 2002-08-20 13:07 ` Uma Shankar Kayarohanam
2002-08-20 19:11 ` newbie Glynn Clements
0 siblings, 1 reply; 10+ messages in thread
From: Uma Shankar Kayarohanam @ 2002-08-20 13:07 UTC (permalink / raw)
To: Kirkwood, David A; +Cc: 'Raghava Raju', linux-admin
Glynn,
When man says "stty - change and print terminal line settings",
and readline(3), needs to be configured through inputrc..
which is unaffected by stty.. !
Something looks awkward.. right ?
why readline does not bother stty ?
--
A mistake is just another way of doing things.
On Mon, 19 Aug 2002, Kirkwood, David A wrote:
> Try doing it this way....
>
> stty erase control-V control-B
>
>
>
> -----Original Message-----
> From: Raghava Raju [mailto:vraghava_raju@yahoo.com]
> Sent: Friday, August 16, 2002 6:33 PM
> To: linux-admin@vger.kernel.org
> Subject: newbie
>
>
>
> Hi
>
> After doing stty erase "^B", it is not not erasing
> after I do ctrl-B.
>
> Is anything wrong the way I am doing, to set "^B"
> to be the erase key.
>
> Please mail to vraghava_raju@yahoo.com, I didn't
> subscribe to this list.
>
> Regards
> Raghava.
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: newbie
2002-08-20 13:07 ` newbie Uma Shankar Kayarohanam
@ 2002-08-20 19:11 ` Glynn Clements
0 siblings, 0 replies; 10+ messages in thread
From: Glynn Clements @ 2002-08-20 19:11 UTC (permalink / raw)
To: linux-admin
Uma Shankar Kayarohanam wrote:
> When man says "stty - change and print terminal line settings",
> and readline(3), needs to be configured through inputrc..
> which is unaffected by stty.. !
>
> Something looks awkward.. right ?
> why readline does not bother stty ?
stty controls the settings of the kernel's tty driver. However,
readline explicitly puts the tty driver into "raw" mode, overriding
any previous settings.
It does this so that it can provide complex line-editing facilities,
similar to those found in a text editor.
The kernel's tty driver only provides very basic line-editing
facilities, i.e. the ability to erase the previous character, the
previous word, or the entire line.
Also, the line-editing facility is only available in canonical (aka
"cooked") mode, where an entire line of input is returned when the
Return/Enter key is pressed. If a program wants to read key presses as
soon as they occur, it has to put the tty driver into "raw" mode.
Clearly, the tty driver can't provide line-editing in this mode (once
a character has been sent to the application, the tty driver can't
"unsend" it).
--
Glynn Clements <glynn.clements@virgin.net>
^ permalink raw reply [flat|nested] 10+ messages in thread
* newbie
@ 2002-08-28 21:16 Venkat Raghu
2002-08-28 21:27 ` newbie Scott Taylor
2002-08-28 21:28 ` newbie Richard Nairn
0 siblings, 2 replies; 10+ messages in thread
From: Venkat Raghu @ 2002-08-28 21:16 UTC (permalink / raw)
To: linux-admin
Hi,
I want users to be able to telnet into my linux box.
So I did
#>chkconfig telnet on
and added in /etc/hosts.allow
in.telnetd: ALL: ALLOW
then
#>/etc/rc.d/init.d/xinetd restart
I was unable to telnet into the box:
It says connection refused, it does't even come
until login prompt. So I think telnetd is not
configured properly. So what is wrong in above
process???
Regards
Venkat.
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: newbie
2002-08-28 21:16 newbie Venkat Raghu
@ 2002-08-28 21:27 ` Scott Taylor
2002-08-28 21:28 ` newbie Richard Nairn
1 sibling, 0 replies; 10+ messages in thread
From: Scott Taylor @ 2002-08-28 21:27 UTC (permalink / raw)
To: linux-admin
At 02:16 PM 28/08/2002, Venkat Raghu wrote:
>Hi,
>
>I want users to be able to telnet into my linux box.
>So I did
>#>chkconfig telnet on
>
>and added in /etc/hosts.allow
>in.telnetd: ALL: ALLOW
>
>then
>#>/etc/rc.d/init.d/xinetd restart
>
>I was unable to telnet into the box:
Have a look in /etc/xinetd.d directory
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: newbie
2002-08-28 21:16 newbie Venkat Raghu
2002-08-28 21:27 ` newbie Scott Taylor
@ 2002-08-28 21:28 ` Richard Nairn
2002-08-30 0:54 ` newbie Keith Morse
1 sibling, 1 reply; 10+ messages in thread
From: Richard Nairn @ 2002-08-28 21:28 UTC (permalink / raw)
To: Venkat Raghu; +Cc: linux-admin
You need to go into /etc/xinetd.d/ and edit telnet. It has one parameter
disable = yes, change that to no then restart xinetd. I don't think that
chkconfig will handle services within xinetd's realm.
On Wed, Aug 28, 2002 at 02:16:58PM -0700, Venkat Raghu wrote:
> Hi,
>
> I want users to be able to telnet into my linux box.
> So I did
> #>chkconfig telnet on
>
> and added in /etc/hosts.allow
> in.telnetd: ALL: ALLOW
>
> then
> #>/etc/rc.d/init.d/xinetd restart
>
> I was unable to telnet into the box:
> It says connection refused, it does't even come
> until login prompt. So I think telnetd is not
> configured properly. So what is wrong in above
> process???
>
> Regards
> Venkat.
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
---end quoted text---
--
| Richard Nairn Specializing in Linux
| Nairn Consulting Web / Database Solutions
| Calgary, AB
| Richard@NairnConsulting.ca
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: newbie
2002-08-28 21:28 ` newbie Richard Nairn
@ 2002-08-30 0:54 ` Keith Morse
0 siblings, 0 replies; 10+ messages in thread
From: Keith Morse @ 2002-08-30 0:54 UTC (permalink / raw)
To: Richard Nairn; +Cc: Venkat Raghu, linux-admin
On Wed, 28 Aug 2002, Richard Nairn wrote:
> You need to go into /etc/xinetd.d/ and edit telnet. It has one parameter
> disable = yes, change that to no then restart xinetd. I don't think that
> chkconfig will handle services within xinetd's realm.
>
>
> On Wed, Aug 28, 2002 at 02:16:58PM -0700, Venkat Raghu wrote:
> > Hi,
> >
> > I want users to be able to telnet into my linux box.
> > So I did
> > #>chkconfig telnet on
> >
> > and added in /etc/hosts.allow
> > in.telnetd: ALL: ALLOW
> >
> > then
> > #>/etc/rc.d/init.d/xinetd restart
A couple of things. "chkconfig telnet on" does update
/etc/xinetd.d/telnet parameter "disable = yes" to "disable = no"
and restarts xinetd automagically.
I really think his issue is the default firewall config for the host.
If "telnet localhost" works from that host, that is the most likely cause.
"netstat -an | grep -i listen" should report something like
tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN
He might try "service ipchains stop" and test the telnet connection then.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2002-08-30 0:54 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <15713.19246.732177.545746@cerise.nosuchdomain.co.uk>
2002-08-19 21:51 ` newbie Raghava Raju
2002-08-28 21:16 newbie Venkat Raghu
2002-08-28 21:27 ` newbie Scott Taylor
2002-08-28 21:28 ` newbie Richard Nairn
2002-08-30 0:54 ` newbie Keith Morse
-- strict thread matches above, loose matches on Subject: below --
2002-08-19 13:39 newbie Kirkwood, David A
2002-08-20 13:07 ` newbie Uma Shankar Kayarohanam
2002-08-20 19:11 ` newbie Glynn Clements
2002-08-16 22:32 newbie Raghava Raju
2002-08-17 16:31 ` newbie Glynn Clements
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).