Welcome to MacForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

"Vigor2" prefix on Terminal sessions

 
   Macintosh computer (Home) -> System RSS
Related Topics:
Nested remote desktop sessions are causing problems - Hello, I am quite new to the macintosh platform in general. I am a System for both a UNIX and Windows and have been stuck to XP and Redhat for my desktop XP has many features that I have grown used to and..

Terminal help - I'm not a unix guy but there's a few things I'd like to try that I see in books and on web pages etc. Now, my Terminal at home 10.3.4 opens just fine. Full screen with prompts etc But at work (also 10.3.4) all I see is the top left corner and the..

terminal.app - Not sure if others have noticed this but the included with mac os x 10.3 seems very slow and laggy. I ssh into my webserver a lot from my powerbook and when typing sometimes it falls behind and then all of a sudden catches up. No other..

terminal ftp - I am using the terminal in MacOS 10.2.6. I have a saved a term file which I use to invoke the ftp command. The command string is: ftp What I'd like to be able to automate is the setting of the remote path and the local path. ..

Why doesn't my X terminal use .profile? - I have a .profile in my home directory that sets some env vars and some aliases. Terminal app reads this just fine. However, the terminal window I get when I launch X11 does not. Can I get a clue? -- # John N. Alegre #..
Author Message
Ben Henley

External


Since: Sep 10, 2005
Posts: 4



(Msg. 1) Posted: Sat Sep 10, 2005 12:39 pm
Post subject: "Vigor2" prefix on Terminal sessions
Archived from groups: comp>sys>mac>system (more info?)

I've just noticed that when I start a terminal session (with any
terminal app), the command line is prefixed with a weird Vigor2
notation, like this:

Vigor2:~ ben$

where I'd expect it to be something like just

ben$

My computer's not called "Vigor2" and I'm sure it never used to do
this. Searching the hard drive for files called Vigor2 didn't turn
anything up.

Could anyone suggest what's going on here?

 >> Stay informed about: "Vigor2" prefix on Terminal sessions 
Back to top
Login to vote
Alice Faber

External


Since: Jun 28, 2003
Posts: 313



(Msg. 2) Posted: Sat Sep 10, 2005 3:57 pm
Post subject: Re: "Vigor2" prefix on Terminal sessions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <1126381169.821991.153740 RemoveThis @g14g2000cwa.googlegroups.com>,
"Ben Henley" <ben.henley RemoveThis @gmail.com> wrote:

> I've just noticed that when I start a terminal session (with any
> terminal app), the command line is prefixed with a weird Vigor2
> notation, like this:
>
> Vigor2:~ ben$
>
> where I'd expect it to be something like just
>
> ben$
>
> My computer's not called "Vigor2" and I'm sure it never used to do
> this. Searching the hard drive for files called Vigor2 didn't turn
> anything up.
>
> Could anyone suggest what's going on here?

The part before the : is your computer's hostname. The whole prompt is
generated by a default combination of hostname, username and other
details in your shell. Mine, for instance, is "[alice:~] alicefab%"
where "alice" is the computer name and "alicefab" is my short user name.
If you've just upgraded the OS the default combination might have
changed, as different versions of OS X have different default shells. In
all shells, you can change the default prompt.

As to *how* Vigor2 became your computer name, there are several
possibilities. First, at the terminal, type "hostname" (and return of
course), to verify that it *is* your host name. You could also check the
Sharing preference panel to see what your computer name is. If you don't
remember changing the name, think about any changes you might have made
to your home networking environment. At least two cable companies in my
area have their cable modems assign hostnames of the form
"255.255.255.255.some.garbage.here.comcast.net" when you make a direct
connection to the modem (which provides massive confusion for license
manager-based applications).

In any case, if Vigor2 is your hostname, there won't be any files on
your computer bearing that name.

--
AF
"Non Sequitur U has a really, really lousy debate team."
--artyw raises the bar on rec.sport.baseball

 >> Stay informed about: "Vigor2" prefix on Terminal sessions 
Back to top
Login to vote
Ben Henley

External


Since: Sep 10, 2005
Posts: 4



(Msg. 3) Posted: Sat Sep 10, 2005 6:09 pm
Post subject: Re: "Vigor2" prefix on Terminal sessions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

OK, here's the strange thing. The Sharing preference panel reports that
my computer is called Thora - which is why I thought "Vigor2" couldn't
be the host name. But the "hostname" command reports that it is caused
Vigor2. Odd.
 >> Stay informed about: "Vigor2" prefix on Terminal sessions 
Back to top
Login to vote
Ben Henley

External


Since: Sep 10, 2005
Posts: 4



(Msg. 4) Posted: Sat Sep 10, 2005 6:11 pm
Post subject: Re: "Vigor2" prefix on Terminal sessions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"reports that it is called" Vigor2, sorry, not "caused".
 >> Stay informed about: "Vigor2" prefix on Terminal sessions 
Back to top
Login to vote
schreberdp

External


Since: Dec 10, 2004
Posts: 704



(Msg. 5) Posted: Sat Sep 10, 2005 8:40 pm
Post subject: Re: "Vigor2" prefix on Terminal sessions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-09-11, Ben Henley <ben.henley.RemoveThis@gmail.com> wrote:
> OK, here's the strange thing. The Sharing preference panel reports that
> my computer is called Thora

This is the host's rendezvous/bonjour name. Your shell prompt knows
nothing about this.

As you see from `hostname`, the host's ip name is Vigor2. So no mystery
here at all. You're apparently running the default shell with the
default configuration, and that configuration defines the prompt to
include the short ip name of the host. Thus, Vigor2 in the prompt.

You can change your prompt if you want to, though offhand I can't think
of any reason to do so. Including the ip name is handy if you ever
connect remotely and harmless if you don't. You can also change your
shell, to tcsh or ksh or zsh. There are certainly reasons you might
want to consider that, but this has nothing to do with the question you
asked.
 >> Stay informed about: "Vigor2" prefix on Terminal sessions 
Back to top
Login to vote
user638

External


Since: Jan 13, 2005
Posts: 926



(Msg. 6) Posted: Sat Sep 10, 2005 8:55 pm
Post subject: Re: "Vigor2" prefix on Terminal sessions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
<1126381169.821991.153740 RemoveThis @g14g2000cwa.googlegroups.com>,
"Ben Henley" <ben.henley RemoveThis @gmail.com> wrote:

> I've just noticed that when I start a terminal session (with any
> terminal app), the command line is prefixed with a weird Vigor2
> notation, like this:
>
> Vigor2:~ ben$
>
> where I'd expect it to be something like just
>
> ben$
>
> My computer's not called "Vigor2" and I'm sure it never used to do
> this. Searching the hard drive for files called Vigor2 didn't turn
> anything up.
>
> Could anyone suggest what's going on here?

Assuming your shell is bash, then you can modify PS1 in .profile
or .bash_profile, or .bashrc to specify whatever prompt you want
via PS1.

Mine looks like

PS1="\![\[\e[41;30;1m\]iBook\[\e[0m\]]\[\e[34;1m\]\w\[\e[0m\]>"
export PS1

The simple form of this is

PS1="\![iBook]\w >"
export PS1

Which looks like

23[iBook]~/Documents >

Except all the extra junk adds coloring to my prompt, so "iBook"
is Bold Black on Red background, and the directory is Bold Blue.

I use different color combinations for the different systems I
frequently use, and if I log into root I use some of the most
glaring colors I can so I know it is different from my normal mode.

Bob Harris
 >> Stay informed about: "Vigor2" prefix on Terminal sessions 
Back to top
Login to vote
Dave Sankey

External


Since: Oct 16, 2003
Posts: 8



(Msg. 7) Posted: Sun Sep 11, 2005 6:55 am
Post subject: Re: "Vigor2" prefix on Terminal sessions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <VImdnftEuJqRFr7eRVn-hQ RemoveThis @comcast.com>, D P Schreber
<schreberdp RemoveThis @rayban.net> wrote:

> On 2005-09-11, Ben Henley <ben.henley RemoveThis @gmail.com> wrote:
> > OK, here's the strange thing. The Sharing preference panel reports that
> > my computer is called Thora
>
> This is the host's rendezvous/bonjour name. Your shell prompt knows
> nothing about this.
>
> As you see from `hostname`, the host's ip name is Vigor2.

Further to which, I would hazard a guess that you've got your Mac
connected to a Draytek Vigor ADSL router and you've assigned a static
address to your Mac of 192.168.1.2.

Dave
 >> Stay informed about: "Vigor2" prefix on Terminal sessions 
Back to top
Login to vote
Ben Henley

External


Since: Sep 10, 2005
Posts: 4



(Msg. 8) Posted: Tue Sep 13, 2005 1:11 pm
Post subject: Re: "Vigor2" prefix on Terminal sessions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On further investigation, it is connecting to that make of router
that's done this. It's assigned me Vigor2 as an IP hostname while my
computer retains the name "Thora" for Bonjour purposes.

I'm sure my previous router assigned the hostname Thora, which is the
name I chose for my iBook when I installed OS X. The Draytek behaviour
seems needlessly confusing, because most people won't realise (as I
didn't) that the IP hostname isn't necessarily the same as the
"computer name" seen in Sharing.
 >> Stay informed about: "Vigor2" prefix on Terminal sessions 
Back to top
Login to vote
Randy Howard

External


Since: Apr 27, 2005
Posts: 465



(Msg. 9) Posted: Sat Sep 24, 2005 3:55 pm
Post subject: Re: "Vigor2" prefix on Terminal sessions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Keep it to Usenet please wrote
(in article
<idontreadthis56-EC180C.06500715092005.RemoveThis@netnews.asp.att.net>):

> I ran into this too. I would have thought that the value in $HOSTNAME
> would have been the same as the machine name you set. Any feedback on
> how to keep the two in sync? I tried using 'hostname', but that only
> lasts until the next reboot.

Add a startup script to reassign on each boot cycle, or buy a
better router.


--
Randy Howard (2reply remove FOOBAR)
 >> Stay informed about: "Vigor2" prefix on Terminal sessions 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> System All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]