View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Tue Jun 05, 2007 10:31 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Hi,

I'm having a bit of trouble getting webmin working on this version of Knoppmyth. I've had it working before pre R5D1, but not recently and not since upgrading to R5F!. I've tried to follow the instructions on the wiki but to no avail.

My current miniserv.conf file looks like this:
Code:
port=10000
root=/usr/share/webmin
mimetypes=/usr/share/webmin/mime.types
addtype_cgi=internal/cgi
realm=Webmin Server
logfile=/var/webmin/miniserv.log
errorlog=/var/webmin/miniserv.error
pidfile=/var/webmin/miniserv.pid
logtime=168
ppath=
ssl=1
env_WEBMIN_CONFIG=/etc/webmin
env_WEBMIN_VAR=/var/webmin
atboot=1
logout=/etc/webmin/logout-flag
listen=10000
denyfile=\.pl$
log=1
blockhost_failures=5
blockhost_time=60
syslog=1
session=1
userfile=/etc/webmin/miniserv.users
keyfile=/etc/webmin/miniserv.pem
passwd_file=/etc/shadow
passwd_uindex=0
passwd_pindex=1
passwd_cindex=2
passwd_mindex=4
passwd_mode=0
preroot=blue-theme
passdelay=1
sudo=1



When I try to navigate to 192.168.1.0:10000 using firefox it doesn't connect.
Oh and I've done the other bits too /etc/init.dwebmin start and update-rc.d webmin defaults with and without the allow=127.0.0.1 192.168.1.0

Any help greatfully recieved.

Thanks in advance Chris

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Last edited by tophee on Wed Jun 06, 2007 9:55 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 05, 2007 11:40 am 
Offline
Joined: Wed Dec 21, 2005 1:14 pm
Posts: 145
Location: Charlotte NC USA
Is 192.168.1.0 the address that you are trying to use to connect, or are you substituting the 0 for somthing else?

192.168.1.0 is not a valid ip address so just wanted to make sure it wasn't a simple oversight.

192.168.1.0 should be ok for the config file. It tells it that 192.168.1.1 -192.168.1.255 are allowed to connect to the webmin service.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 05, 2007 2:51 pm 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Thanks for the reply databin1. The tail "0" at the tail end of the address (192.168.1.0) is there to allow the wider range of ip addresses of 1-255. Should I be specifying a single address?

So with the wide range of available addresses I've tried (https://192.168.1.1:10000 and several revisions of that address i.e. 192.168.1.10:10000;192.168.1.30:10000; etc.), I've had no luck connecting to the server.

I added the "allow=127.0.0.1 192.168.1.0" line to my config file, rebooted and still no dice.

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 05, 2007 5:59 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
See the hints. Do not restore your old config, edit the new one as indicated, and you need to reboot the machine before it will work. This is the script I use and which is summarized in the hints.
Code:
root@black2:~/setup# cat setup_webmin.sh
#!/bin/bash

[ $# -ne 1 -o -z "$1" ] && {
    echo "You need to supply the webmin password for root"
    exit 1
}

mv /etc/webmin/miniserv.conf /etc/webmin/miniserv.conf.orig
sed -e "/\(host=\)dev\.mysettopbox\.tv/s//\1$(hostname)/" \
    -e '/allow=/d' \
    </etc/webmin/miniserv.conf.orig >/etc/webmin/miniserv.conf
echo >>/etc/webmin/miniserv.conf
echo 'allow=127.0.0.1 192.168.1.0' >>/etc/webmin/miniserv.conf

/usr/share/webmin/changepass.pl /etc/webmin root "$1"

update-rc.d webmin defaults


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 06, 2007 12:06 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Hi tjc,
I did follow the wiki, but I'll go through it again and let you know how I got on. When I upgraded I didn't restore my old webmin, this is me modifying the file manually.

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 
PostPosted: Wed Jun 06, 2007 5:21 am 
Offline
Joined: Wed Nov 09, 2005 1:21 pm
Posts: 161
Location: Manchester UK
you seem to be implying your trying different ip addressed to access the webmin site

Quote:
So with the wide range of available addresses I've tried (https://192.168.1.1:10000 and several revisions of that address i.e. 192.168.1.10:10000;192.168.1.30:10000; etc.), I've had no luck connecting to the server.


the allow= tells the server which clients to respond to not the ip address of the server.

you access the server by

https://{your myth boxes ip}:10000

you can check wether your server is running by typing (on the server)

wget 127.0.0.1:10000

if you get index.html saved its running (this is just a message saying youve selected none SSL mode )

i dont know off the top of my head how to determin your boxes ip address my is allways allocated the same one by my router so ive never needed to know.

If ive missinterpreted what you said ime sorry

Simon

_________________
Running:-
Intel 930 3GHz dual Core
Thermaltake Fanless CPU Cooler
Asus P5GS
Samsung 750G Sata HDD
8400 512m Video Card
2 * jetway DVB-t
1 * Haupage DVB-S2 Card
Samsung Sata 16x DVDRW
2048M Ram
1 * Netop Ion 330


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 06, 2007 9:54 am 
Offline
Joined: Tue Sep 13, 2005 10:48 am
Posts: 852
Location: London, UK
Ah... a light went on there.
I didn't realise it was the IP address of the boxen.
So by stipulating the correct IP address in my browser I've got access to Webmyth from my windows box!
Fantastic!
It's all a question of understanding what is going on. And previously I obviously didn't.
Thanks for shining the flashlight of knowledge in my dark corner.

_________________
Version:R8
Intel C2D 7400, Nvidia 5600 via HDMI to Samsung B37B650TW (PAL), Asus P5QL-E mobo, 4Gb PC6400 DDR2 ram, Samsung Spinpoint 500 Gb & 1Tb drive, Nova-HD-S2 (x2)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu