Hostname changes, etc.

Support and queries relating to third party Live CDs and DVD, VM images and other packaged distributions
wkstill
Posts: 30
Joined: Thu Jul 22, 2004 7:13 pm
Location: CLW,FL
Contact:

Hostname changes, etc.

Post by wkstill »

Ok, for the life of me, can't seem to figure out where the settings are. I have changed the hostname for the pc to something other than localhost.local.domain, however, when i access any folder on the apache server from a remote address it redirects me from

http://<ip>/zm to http://localhost.local.domain/zm

same for
http://<ip>/admin/myPhpAdmin/ to http://localhost......

I looked thru the apache conf files, and couldn't see anything.

Also, No more telnet? I suppose SSH is, but not sure of any good Win32 Clients that are FREE, and or if its enabled.. The system will be sitting behind a firewall and only access to port 80, all others will be via lan or vpn connector to the firewall.. Any ideas on an easy way to enable telnet/ssh? or should I use a remote client for X ?
wkstill
Posts: 30
Joined: Thu Jul 22, 2004 7:13 pm
Location: CLW,FL
Contact:

Post by wkstill »

ok, got somewhere.. I can start the "remote" access via configuration, and use vnc, but vncserver doesn't seem to work. will try a reboot.
wkstill
Posts: 30
Joined: Thu Jul 22, 2004 7:13 pm
Location: CLW,FL
Contact:

Post by wkstill »

ok, edited vncservers in sysconfig... to "1:user" doh, no go.. time to try :Google:
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

The hostname can be set in /etc/syconfig/network
It's set to zm.local.domain in ZMliveCD 1.21.0

ssh is installed an running. A good free Windoze client is putty. You won't have any trouble finding it with google.

If you want to use vnc use the rfbdrake utility to config the server on the zmbox. Either from the commandline or Menu --> Internet --> Remote Access --> Virtual Network Connection

Hope this helps :)

Ross
8ace
Posts: 104
Joined: Tue May 31, 2005 3:38 pm

Post by 8ace »

Is there anyway to keep the VNC server running even after a reboot?

I'm sorry, I am not an expert with scripts,etc.

thanks! :wink:
wkstill
Posts: 30
Joined: Thu Jul 22, 2004 7:13 pm
Location: CLW,FL
Contact:

Post by wkstill »

VNC..

edit /etc/sysconfig/vncservers

un-comment the line, and put in"1:user"
from user session, run vncserver , this will setup default password, ans setup xstartup, then goto configuration, system->services, and make vncserver start on boot. (just did all this lastnight, works great)

---

sshd, failes to start something about a folder or something error, and bombs out. (missing privalege seperation directory /var/empty ) this is on a fresh ZMlivecd install.

---

hostname, I edited /etc/systemconfig/network and the hostname is correct for the box. However

going to:

http://<ip>/zm redirects me to http://localhost.local.domain/zm

This appears to be some "Apache" error ????
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

sshd, failes to start something about a folder or something error, and bombs out. (missing privalege seperation directory /var/empty ) this is on a fresh ZMlivecd install.
sshd should be running on a fresh ZMliveCD install. Try "sudo service sshd status"
http://<ip>/zm redirects me to http://localhost.local.domain/zm
Use a trailing slash
http://<ip>/zm/
wkstill
Posts: 30
Joined: Thu Jul 22, 2004 7:13 pm
Location: CLW,FL
Contact:

Post by wkstill »

$user user]$ sudo service sshd status
sshd is stopped
$user user]$ sudo service sshd start
starting sshd:Missing privelege seperation directory: /var/empty [failed]


now, if i look in /var/ empty points to /initrd/loopfs/var/empty (which doesn't exist)
wkstill
Posts: 30
Joined: Thu Jul 22, 2004 7:13 pm
Location: CLW,FL
Contact:

Post by wkstill »

ok, i deleted the symbolic link, and re-created empty and did this:

mkdir /var/empty
chown root:sys /var/empty
chmod 755 /var/empty
wkstill
Posts: 30
Joined: Thu Jul 22, 2004 7:13 pm
Location: CLW,FL
Contact:

Post by wkstill »

vnc working : Check!
sshd working: Check!

..

root password changed: Checked.
user password changed: Checked.
mysql root password changed: Not yet, but thats the easy part :)

Now, is there a way to fix the '/' issue? hehe..

..

Oh, It appears I am the first that ever had this issues, cause i searched and searched and couldn't find anything :-)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

To make it so that you don't have to input the trailing slash you need to edit...
This is a different file than the one your going to think of.
You need to go into the apache folder under /etc
I'm not sure how Mandrake does this but following RH/Fedora would be
/etc/httpd/conf.d/
There you will find another zm.conf.
Change the alias so that you don't have the trailling slash.
Cheers,
Cordel
wkstill
Posts: 30
Joined: Thu Jul 22, 2004 7:13 pm
Location: CLW,FL
Contact:

Post by wkstill »

Yeah, Thats what I thought too.. but it doesn't seem to be there..

I checked httpd.conf, it loads Vhosts.conf in /conf folder, looking at the file, and all other "conf" files in the path of httpd, none have an alias loaded for zm... which is why i am at a loss.
harleydude
Posts: 17
Joined: Thu Nov 10, 2005 3:15 am
Location: Garland, TX

Post by harleydude »

I am trying to get VNC to start at boot up using the instruction provided above, but am unble to do so. I do not know where to look for error info.

Thanks
Rick
8ace
Posts: 104
Joined: Tue May 31, 2005 3:38 pm

Post by 8ace »

hi everyone - running latest liveCD - gotta question - how do I load VNC?

Tried to find rfbdrake utility to config the server on the zmbox. Did a search on the server but no luck finding it. Also tried Menu --> Internet --> Remote Access --> Virtual Network Connection - but can't find it there either?

Any tips anyone?

thanks in advance!
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

Sorry, an oversight on my part, VNC is not installed.

Run the command "urpmi rfbdrake" or use the gui package manager to install it.
Post Reply