LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2012, 03:22 AM   #1
tushii012
LQ Newbie
 
Registered: Jan 2012
Posts: 4

Rep: Reputation: Disabled
i want to set display settings in telnet .


Actually when i telnet to a machine
and opens any file then its output is garbelled on screen.
how to set these settings.
by opening a file means in vi editor .

Last edited by tushii012; 03-28-2012 at 12:18 AM.
 
Old 03-27-2012, 01:26 PM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,653

Rep: Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569
telnet to ... what now?

Quote:
Actually when i telnet to a machine
and opens any file then its output is garbelled on screen.
how to set these settings.
1. Why in the world are you using telnet? That is terribly 1980s, unsecure and primative. Try ssh or putty. (Putty adds some real terminal emulation features, and works much the same on both *nix and Windows hosts.)

2. What do you mean by "opens any file"? Are you viewing in view or less, did you cat the file, open it in vi or another editor?

I suspect it is something like your terminal type is incompatible with telnet or not being set properly. It is difficult to tell from the way you posted your question what you are really asking. Please explain a bit and we will try to help.

[ And I recommend avoiding telnet if you can. It is a useful tool for testing ports, but I never use it for sessions. ]
 
Old 04-08-2012, 03:49 PM   #3
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,653

Rep: Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569
telnet to ... what now?

@tushii012: dude! Are you still alive?
If you have a solution, please mark this thread solved. If not, please provide some information so we can help you!
 
Old 04-17-2012, 01:07 AM   #4
tushii012
LQ Newbie
 
Registered: Jan 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
by using ssh the same behaviour takes place
i am opening a file in vi editor and it says terminal too wide if it is full screen window of vi.
and shortening the width does not properly show the content of a file.
 
Old 04-18-2012, 01:39 PM   #5
wpeckham
Senior Member
 
Registered: Apr 2010
Location: USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 1,653

Rep: Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569Reputation: 569
Check your terminal type.

1. What OS are you connecting from, and what is your terminal type there?
2. What is the command line or software you are using the build the session/connection?
3. Once you have a session, what is your terminal type on the other end?
4. I may have missed that you specified this already, but what is the OS of the target server?

I use putty (from both windows and Linux) as well as OpenSSH to connect to many different versions and distributions of Linux on physical and virtual machines and have never seen that message. I see no reason why we should not be able to trak down and kill this problem.
 
Old 04-19-2012, 01:35 AM   #6
tushii012
LQ Newbie
 
Registered: Jan 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
i use bash shell from my desktop terminal utility in linux 10.10.

ssh communication is used .

the target machine is solaris 5.9 generic of sparc ,where file exists

ther i use bash shell.

i am using vi editor in it .
 
Old 04-19-2012, 01:38 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
there was a trick, execute it after resizing the window:
eval `resize`
maybe it helps
 
Old 04-20-2012, 04:45 AM   #8
tushii012
LQ Newbie
 
Registered: Jan 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
where is to execute i have tried at both solaris does not have resize command
and at linux shell executing above command
same results as before (terminal too wide)
 
Old 04-20-2012, 05:21 AM   #9
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
terminal too wide cannot be solved this way, in this case you need to narrow your window or use another editor. Maybe vim will work.
I have /usr/openwin/bin/resize on solaris.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The difference in settings: console from desktop & ssh as DISPLAY not set when ssh in wikapuki Linux - Newbie 10 07-02-2010 10:44 AM
Telnet session timout settings in Redhat Linux 5 ssanwar80 Linux - Newbie 2 02-23-2010 02:36 AM
[mandriva] Widescreen (15:9) Laptop Display Settings - cannot set resolution properly swilliams2006 Linux - Hardware 2 02-13-2006 09:23 AM
Telnet Settings bobaidan Linux - Networking 1 08-27-2003 02:33 PM
Telnet Settings def1014 Linux - Newbie 3 08-25-2002 07:43 PM


All times are GMT -5. The time now is 12:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration