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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-15-2009, 07:57 AM
|
#1
|
Member
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707
Rep:
|
/etc/issue.net
Hi all..
I wanted to know, weather the file /etc/issue.net is created every time system is booted ?
OR
It got created when OS is installed...
|
|
|
12-15-2009, 08:06 AM
|
#2
|
Member
Registered: May 2006
Location: Italy
Distribution: Ubuntu, ArchLinux, Debian, SL, OpenBSD
Posts: 274
Rep:
|
/etc/issue and /etc/issue.net files
They are normal text file created during the installation of the OS.
Obviously you can change the content if you like.
|
|
|
12-15-2009, 08:18 AM
|
#3
|
Member
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707
Original Poster
Rep:
|
Quote:
Originally Posted by AleLinuxBSD
|
Dear AleLinuxBSD,
Thanks for the reply,
I have commented the contents of /etc/issues.net
Code:
#Welcome to SUSE LINUX Enterprise Server 9 (i586) - Kernel %r (%t).
~
~
Also I dont have blank line after the commented line, when i try to login from remote machine
Code:
[vinay@localhost webhuddle]$ telnet 172.21.109.60
Trying 172.21.108.65...
Connected to 172.21.108.65.
Escape character is '^]'.
linux login: root
Password:
You have new mail in /var/mail/root.
Last login: Tue Dec 15 04:13:08 from 172.17.70.143
linux:~ #
I am getting a blank line after Escape character is '^]'., I dont want this blank line to appear, Is there any way to remove this blank line....
Any help will be greatly appreciated.....
Thanks again...
|
|
|
12-15-2009, 08:43 AM
|
#4
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
Make sure there is no Carrier return at the beginning of
/etc/issue.net
Code:
cannabis:/home/repo# cat /etc/issue.net
Debian GNU/Linux squeeze/sid
cannabis:/home/repo# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Debian GNU/Linux squeeze/sid
cannabis login: Connection closed by foreign host.
cannabis:/home/repo# cat /etc/issue.net
Debian GNU/Linux squeeze/sid
cannabis:/home/repo# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Debian GNU/Linux squeeze/sid
cannabis login: Connection closed by foreign host.
cannabis:/home/repo#
BTW, you should use ssh instead of telnet
Last edited by repo; 12-15-2009 at 08:46 AM.
|
|
|
12-15-2009, 08:54 AM
|
#5
|
Member
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707
Original Poster
Rep:
|
Quote:
Originally Posted by repo
Make sure there is no Carrier return at the beginning of
/etc/issue.net
Code:
cannabis:/home/repo# cat /etc/issue.net
Debian GNU/Linux squeeze/sid
cannabis:/home/repo# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Debian GNU/Linux squeeze/sid
cannabis login: Connection closed by foreign host.
cannabis:/home/repo# cat /etc/issue.net
Debian GNU/Linux squeeze/sid
cannabis:/home/repo# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Debian GNU/Linux squeeze/sid
cannabis login: Connection closed by foreign host.
cannabis:/home/repo#
BTW, you should use ssh instead of telnet
|
Thanks repo,
I have pasted Ocatal dump of the file
Code:
linux:~ # od -t c /etc/issue.net
0000000 W e l c o m e t o S U S E
0000020 L I N U X E n t e r p r i s e
0000040 S e r v e r 9 ( i 5 8 6 )
0000060 - K e r n e l % r ( % t
0000100 ) . \n
0000106
Do you mean to say, I have to remove \n character which is at the end ?
can you suggest how to remove that...?
Can you please suggest me ?
|
|
|
12-15-2009, 09:22 AM
|
#6
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
Quote:
Do you mean to say, I have to remove \n character which is at the end ?
can you suggest how to remove that...?
|
The problem is the beginning of the file.
At least in debian, if I add a carrier return (blank line)
at the beginning of the file /etc/issue.net
I get the output you have => space after
Escape character is '^]'.
If I remove the blank line it is OK
Don't know if suse uses the same files though
|
|
|
12-15-2009, 05:56 PM
|
#7
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
http://www.linuxquestions.org/questi...-login-775757/
In this case I closed the original because the dupe seems to be more active.
|
|
|
All times are GMT -5. The time now is 10:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|