LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-05-2006, 10:05 AM   #1
ursinus
Member
 
Registered: Aug 2005
Location: Milan, Italy
Distribution: Ubuntu
Posts: 54

Rep: Reputation: 15
localhost.localdomain


Hi there,
could someone explain me briefly how I could find out localhost and localdomain info? I'm about to use VNCViewer. And the command should be simple as "vncviewer" (address)? So what would be the correct address if the computer is called for example "pc3" and the localhost "host" and the domain "domain" - pc3@host.domain:0? Or do I simply put it 'pc3.localhost.localdomain'? And what to do with the firewall if...? Well, I'm lost!

And one question more: I managed to use remote desktop on my computer but the windows appears all confused. Solutions? This is the report that comes out:

Quote:
Originally Posted by ursinus
Desktop name "LibVNCServer"
Connected to VNC server, using protocol version 3.3
VNC server default format:
32 bits per pixel.
Least significant byte first in each pixel.
True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Warning: Cannot convert string "-*-helvetica-bold-r-*-*-16-*-*-*-*-*-*-*" to type FontStruct
Using default colormap and visual, TrueColor, depth 24.
Got 256 exact BGR233 colours out of 256
Using BGR233 pixel format:
8 bits per pixel.
True colour: max red 7 green 7 blue 3, shift red 0 green 3 blue 6
Cheers,
ursinus

Last edited by ursinus; 08-05-2006 at 10:58 AM.
 
Old 08-05-2006, 11:15 AM   #2
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
The windows hostname is not the same as the linux hostname. The windows hostname is tied with the file and printer sharing service, and broadcast to everyone else in the network it's hostname to tie it with an IP address...

Now, in linux, there is no service that really does that unless you install extra software, the hostname you give your computer will not be broadcasted to other computers.

So if you call your computer pc3, the other computers won't know pc3 is equal to 192.168.0.102 , for example.
If you want to call your computers by hostname, you have to specify the IP and hostname match in the host file.

localhost will always point to the computer itself, and not another computer, same with 127.0.0.1.
If you launch a VNC server on your computer, you can access it from the same computer by connection to localhost.

The domain name... I never had to bother with that too much :P
 
Old 09-07-2006, 08:56 AM   #3
ursinus
Member
 
Registered: Aug 2005
Location: Milan, Italy
Distribution: Ubuntu
Posts: 54

Original Poster
Rep: Reputation: 15
Ok, got it. Thanks a lot! I've one question though: How can I determine the IP-number of the computer that I'm using? There must be a command, or how?

Last edited by ursinus; 09-07-2006 at 09:08 AM.
 
Old 09-07-2006, 09:09 AM   #4
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
You can use "ifconfig" to know your ip address.

I use "ifconfig | grep 192" . grep will search for the string 192, and print out the lines that contain it. Since my ip pretty much always begins with that, it'll pretty much always tell me my ip
 
Old 09-07-2006, 09:17 AM   #5
ursinus
Member
 
Registered: Aug 2005
Location: Milan, Italy
Distribution: Ubuntu
Posts: 54

Original Poster
Rep: Reputation: 15
Thanks again. Now I'll just need to find the command and download it.
 
  


Reply



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
localhost.localdomain steve007 Linux - Newbie 3 07-27-2005 03:48 AM
localhost name localdomain name assyrian1 Linux - Newbie 9 07-05-2005 04:17 AM
localhost.localdomain RJEmery Linux - Newbie 21 05-30-2005 03:59 PM
localhost.localdomain cryzpene Linux - Software 1 06-05-2004 11:57 AM
localhost.localdomain blankx87@m-i-m. Linux - Newbie 1 11-17-2002 04:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:52 PM.

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
Open Source Consulting | Domain Registration