|

xcmd.cgi installation
and configuration
Installation under
Freesco:
PLEASE NOTE:
THIS IS THE INSTALLATION FOR XCMD version:2.1
It will OVERWRITE YOUR OLD XCMD.CGI versions: 1.0.1
to 2.0.9
Log in as Root on your
Freesco-Router
type:
installpkg http://www.frysianfools.com/freesco/xcmd21
Now open your browser and type this url:
http://freesco-router:adminport/cgi/xcmd.cgi?help
Example:
http://192.168.1.1:82/cgi/xcmd.cgi?help
Installation under Freesco (the difficult way):
Unzip this file
and copy xcmd.cgi in freesco to:
mnt\router\wwa\cgi\
YES
to \wwa\cgi NOT \www\cgi that would make it public.
Then type:
chmod 755 mnt\router\wwa\cgi\xcmd.cgi
Open a browser and launch this url:
http://freesco-router:adminport/cgi/xcmd.cgi?help
Example:
http://192.168.1.1:82/cgi/xcmd.cgi?help
If you like to customize
the script:
Open xcmd.cgi in your editor and change the setup options.
SETUP
I recommend to run this script before pooking arround in the setup.
Start your browser and check realtime if it works.. If something
is not found, the scripts tells it to you..
Just look trough the scriptsetup below and change the path's
when wrong. I tried to make it as default as possible.
But walk trough it and be sure!
If you do
not have Apache as a webserver but the default thttpd read this:
Modify the /rc/rc_httpd file.
Change:
thttpd -p $WWWPORT -u nobody -d /www -l /wwa/logs/thttpd.log && $DONE
Now setup the codered.cgi by the line:
WORMLOG="/mnt/router/packages/apache/logs/access_log"
and change is in the path of your choice. in this case:
WORMLOG="/mnt/router/wwa/logs/thttpd.log"
USE AT OWN RISK...
Goodluck and have fun!
The default setup for
xcmd.cgi
(version 2.1)
# GOODIE OPTIONS
# Freeware registration ;)
# but looks kinda cool!
CM="Your name here"
# FILES and there path's and names
# path to Routerdirectory
M="/mnt/router"
# name of command and link
NAME1="start"
# path to FreeSCO startuplog
SL="/var/log/log"
NAME2="ftpd"
NAME2B="ftpd-stop"
NAME2C="ftpd-start"
# path to FTPd logfiles
F1="/mnt/ftp/log/errlog"
F2="/mnt/ftp/log/ftpd.log"
# path to rc_ftpd
F3="/mnt/router/rc/rcuser/rc_ftpd"
NAME3="samba"
NAME3B="samba-stop"
NAME3C="samba-start"
# path to samba installdir logfiles
S1="/mnt/router/packages/smb/var/samba.smb"
S2="/mnt/router/packages/smb/var/log.nmb"
S3="/mnt/router/etc/smb.conf"
# path to rc_smbd
S4="/mnt/router/rc/rcuser/rc_smbd"
NAME4="uptime"
# path to uptime files
U1="/mnt/router/packages/uptime/uptime.log"
U2="/mnt/router/etc/uptime.record"
NAME5="edna"
NAME5B="edna-stop"
NAME5C="edna-start"
# path to Edna logs
DI1="/mnt/router/packages/edna/edna.log"
# path to rc_edna
DI2="/mnt/router/rc/rcuser/rc_edna"
NAME6="report"
# a backup of the old report.txt is named:
RP="report.bak"
NAME7="thttpd"
NAME8="codered"
# path to thttpd or apache logfiles for viewing the logs and
# viewing of the codered-cans
WORMLOG="/mnt/router/packages/apache/logs/access_log"
# HTML/COLOR OPTIONS
# link
C1="#CC3300"
# text
C2="#000000"
# background
C3="#CCCCCC"
# borders and lines
C4="#999999"
# font size (1 tot 5)
FS="3"
# Font-type
FT="Verdana"
# advanced link option. 1=enabled
# If you do not want the start/stop/reboot options as links in your #
browser just put a zero (0) to disable it.
ADVANCED="1"
# LANGUAGE OPTIONS
T1="Registered to"
T2="Date"
T3="Command"
T4="View logfiles"
T5="options"
T6="Valid commandline options are"
T7="Special commandline options"
# Note: I use $NAMEx for finding the right commandname
#
do not change the tag. only change the language..!!!!!!
T8="View $NAME2
logs *If available"
T8B="Try to stop $NAME2"
T8C="Try to start $NAME2"
T9="View $NAME1 messages"
T10="View $NAME3 logs *If available"
T10B="Try to stop $NAME3 Daemon"
T10C="Try to start $NAME3 Daemon"
T11="View $NAME4 logs *If available"
T12="Make and display"
T13="View this screen"
T14="Not a valid command"
T15="click here"
T16="for more options"
T17="Please wait while router goes down."
T18="Rebooting FreeSCO router"
T19="Making backup of old"
T20="View $NAME5 log *If available"
T20B="Try to stop $NAME5"
T20C="Try to start $NAME5"
T21="View $NAME7 log *If available"
T22="View $NAME8 log *If available"
ERR="Not installed or proper configured in this script."
Back
to mainpage for freesc
|