Fedora Linux Support Community & Resources Center
  #1  
Old 12th October 2017, 09:55 AM
fedayinn Offline
Registered User
 
Join Date: Feb 2016
Location: here
Posts: 15
linuxfedorafirefox
user@192

Hi,

I use F25 with the network disabled by default at start. When I start a shell it opens on user@localhost as it should but once I start the network every new shell opens on user@192 ??

Could anybody explain to me what could happened or where to look ?

Thank you
Reply With Quote
  #2  
Old 12th October 2017, 12:46 PM
nsnbm's Avatar
nsnbm Offline
Registered User
 
Join Date: Dec 2007
Location: Australia
Posts: 1,591
linuxfedorafirefox
Re: user@192

Looks like it's replacing "localhost" with the IP address. You can control what the prompt looks like with a configuration which you write into .bash_profile. Giving your computer a name other than "localhost" might also make a difference, but I haven't checked that.

On a computer here there's
Code:
PS1="[\u@\h \W]$ "
in the .bash_profile which produces a prompt with the user (\u), hostname (\h), and the basename of the current directory (\W). See man bash for the details.

You can change the name of the computer using the hostnamectl command, that'll control the \h part.
Reply With Quote
  #3  
Old 12th October 2017, 01:50 PM
fedayinn Offline
Registered User
 
Join Date: Feb 2016
Location: here
Posts: 15
linuxfedorafirefox
Re: user@192

I wasn't aware of that command : it did the trick.
Thanks a lot !
Reply With Quote
Reply

Tags
user@192

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to access phpMyAdmin from my browser? Root user denied and regular user as we cyberdome Installation, Upgrades and Live Media 2 29th March 2016 05:28 AM
Looking for this signature-logos site (linux user, nvidia user, firefox user, ...) smurffit Wibble 3 12th March 2010 08:12 AM
Root user login warning:This session is running as a privileged user jevinlin Using Fedora 2 4th October 2008 10:46 AM


Current GMT-time: 10:16 (Saturday, 21-10-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat