Page 1 of 2
Hostname changes, etc.
Posted: Thu Jun 23, 2005 10:57 pm
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 ?
Posted: Thu Jun 23, 2005 11:13 pm
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.
Posted: Thu Jun 23, 2005 11:25 pm
by wkstill
ok, edited vncservers in sysconfig... to "1:user" doh, no go.. time to try :Google:
Posted: Fri Jun 24, 2005 2:00 am
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
Posted: Fri Jun 24, 2005 3:50 pm
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!
Posted: Fri Jun 24, 2005 8:06 pm
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 ????
Posted: Fri Jun 24, 2005 10:42 pm
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"
Use a trailing slash
http://<ip>/zm/
Posted: Sat Jun 25, 2005 1:57 am
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)
Posted: Sat Jun 25, 2005 2:04 am
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
Posted: Sat Jun 25, 2005 2:11 am
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
Posted: Sat Jun 25, 2005 2:52 am
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
Posted: Sat Jun 25, 2005 3:02 am
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.
Posted: Wed Feb 08, 2006 9:57 pm
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
Posted: Tue Jul 11, 2006 9:13 pm
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!
Posted: Wed Jul 12, 2006 1:45 pm
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.