Step 4.
Now, how to customize?
All user/pass combinations I have used in this image are admin/asus
(only not for ADOS, this is a error which I made in the process, sorry, use: admin/logitech)
besides from the swat/samba login, which uses the standard password you've entered in the router (oleg's firmware) to secure it.
(if you want to see what's running now, before customizing, take a look at http://192.168.1.1:8082 (change the ip address, if you don't use the standard ip address) it will take you to the homepage where most applications are accessible.))
Step 4a. (optional)
Samba
Standard, 2 shares are configured in the system: /opt and /mnt are both shares.
use /mnt for your data, and /opt for a quick-ref to your programs and config files to be accessible from lan.
open http://192.168.1.1:901/ and login with admin and the password you've used for the default asus web site (def. configuration).
You can define your shares here.
If you want to define the shares using the console and a text editor, change the smb.conf file.
Execute:
Code:
nano /opt/etc/samba/smb.conf
Example:
Code:
# Samba config file created using SWAT
# from desktopmr.lan (192.168.1.250)
# Date: 2008/09/18 08:12:36
# Global parameters
[global]
security = SHARE
log level = 1
max log size = 100
dns proxy = No
guest ok = Yes
[opt]
path = /opt
force user = admin
read only = No
[mnt]
path = /mnt
force user = admin
read only = No
Step 4b. (optional)
MySQL
Change the MySQL database password for the root user.
Execute:
Code:
mysql -u root -p mysql
Now the MySQL password is asked: Enter 'asus' (without the quotes)
Execute the command to enter a new password
Execute:
Code:
update user set password=PASSWORD("YourNewPasswordHerePlease") where User='root';
(Where you replace "YourNewPasswordHerePlease" with your new password)
Exit MySQL console and reboot
Execute:
Then Execute:
Your (telnet/ssh) connection will be broken, so log in (give it some time -> 30sec)
Log in and in the following files, change the password so that your mysql login for phpmyadmin works.
(text-editor nano is installed, which I preferably use, so this will be used in the tutorial from now on)
Execute:
Code:
nano /mnt/AIOCP/admin/phpMyAdmin/config.inc.php
(change password at line: 73)
Save the file with CTRL+O, Exit with CTRL+X
Execute:
Code:
nano /mnt/AIOCP/shared/config/cp_db_config.php
(change password at line: 47)
Save the file with CTRL+O, Exit with CTRL+X
Execute:
Code:
nano /mnt/protected/WebUI/ados/database.conf.php
(change password at line: 29)
Save the file with CTRL+O, Exit with CTRL+X
Execute:
Code:
nano /mnt/protected/WebUI/ampjuke/db.php
(change password at line: 4)
Save the file with CTRL+O, Exit with CTRL+X
That's it for MySQL security.
Step 4c (optional)
Webserver.
The webserver it's standard root is /mnt, which means that your whole data partition is accessible through the webpage!
Not all directories are accessible by public, /mnt/protected (your data-storage) is protected, and /mnt/cgi-bin is protected.
The content management systems which are running are: Simple CMS (/mnt/cms) (standard) and AIOCP (/mnt/AIOCP) (installed, but not default CMS.)
Besides that /mnt/AIOCP is public, it also contains the phpmyadmin stuff, which is off-course protected. (if you remove the AIOCP directory, you will loose phpmyadmin.)
Now, if you absolutely don't want the root of your data-partition (/mnt) to be the root of your website, change it in:
Execute:
nano /opt/etc/lighttpd/lighttpd.conf
(change server.document-root at line: 40)
(change /mnt/ to /mnt/cms/ or /mnt/AIOCP/)
Save the file with CTRL+O, Exit with CTRL+X
Keep in mind that the installed web application will not work anymore unless you rearrange the directory structure.
Now change the password for the protected area on the webserver. (the stuff behind /mnt/protected)
Execute:
Code:
nano /opt/etc/lighttpd/.lighttpdpassword
(this file uses the 'user: password' combination (without the quotes) define you 'web' users here.)
Save the file with CTRL+O, Exit with CTRL+X
The directories which are user: password protected on the webserver are stored in lighttpd.conf file.
Open the file and go to line: 280, from this point, the file contains the protected directories. Add/remove ass you like.
Execute:
Code:
nano /opt/etc/lighttpd/lighttpd.conf
(change server.document-root at line: 280)
Save the file with CTRL+O, Exit with CTRL+X
Example:
Code:
auth.backend = "plain"
auth.backend.plain.userfile = "/opt/etc/lighttpd/.lighttpdpassword"
auth.require = ( "/protected/" =>
(
"method" => "basic",
"realm" => "Enter Password",
"require" => "user=admin"
),
"/cgi-bin/" =>
(
"method" => "basic",
"realm" => "Enter Password",
"require" => "user=admin"
),
"/AIOCP/admin/phpMyAdmin/" =>
(
"method" => "basic",
"realm" => "Enter Password",
"require" => "user=admin"
)
)
if you change anything in this file, you have to run the following command:
Execute:
Code:
/opt/etc/init.d/S80lighttpd restart
Step 4d (optional)
Configure the newsserver to download binaries.
Execute:
Code:
nano /opt/etc/hellanzb.conf
(on line: 33, change to your newsserver provider)
Step 4e (optional)
Configure transmission if you've other demands than the standard
Execute:
Code:
nano /opt/etc/transmission.conf
Step 4f (optional)
Configure user/passwords in installed webapplications.
(If you've changed your ip-address, then use it below)
ADOS: http://192.168.1.1:8082/protected/WebUI/ados/
AIOCP: http://192.168.1.1:8082/AIOCP
AmpJuke: http://192.168.1.1:8082/protected/WebUI/ampjuke
Step 4g (optional)
Configure a mac-address in /mnt/cgi-bin/wol.cgi
Execute:
Code:
nano /mnt/cgi-bin/wol.cgi
Example:
Code:
#!/bin/sh
ether-wake -i br0 00:16:17:B1:F3:99
echo "<HTML><HEAD><title>test</title></head><BODY>Magic Packet
Sent</Body></html>"
(add your mac-address at the second line at the end.)
once you've entered the correct mac-address in this file, you're able to start the machine once you access the page through a webbrowser -> http://192.168.1.1:8082/cgi-bin/wol.cgi
Step 4h (optional)
FTPserver
proftpd is installed as ftpserver.
you can configure it in :
Execute:
Code:
nano /opt/etc/proftpd.conf
End of basic configuration!
What did I get and how do I use it:
I recommend a reboot when you're reading this, this way you make sure all the services are correctly started after you have configured them. In the meantime, you can read along what this system install has installed and how to use it.
Samba2, The network share service (connect with your (window$) PC)
Samba is pretty standard configured.
On the disk, you have 2 partitions to store programs (/opt) and data (/mnt) these are also writable shares in Samba. In a windows environment (I used WORKGROUP, can be configured with swat http://192.168.1.1:901, name of device is NAS) it would show up as:
-Microsoft Windows Network
___Workgroup
______Nas
_________mnt
_________opt
Both shares are writeable, I reccommend writing your data to /mnt (look at the expanded directorystructure by using your pc.) The access to /opt is just there to give you a quick-ref to your program directory without login into your console.
Other than Samba, most of the items installed are webapplications (which has been pointed out at the beginning of this tutorial), open up http://192.168.1.1:8082 in your browser and read the homepage, there is a number of links which will lead you further.
HellaNZB
Well, there are 2 small issues with this one.
1) it doesn't start on itself after the router reboots. start with:
Execute:
/opt/bin/startHellaNZB
2) it doesn't download anymore after more than 24h of inactivity.
However, I've downloaded TB's with this application and i'm very please how well it downloads, verifies and extracts my downloads. That's why I've included this one in the package.
In my opinion it's workable, because when your are collecting your nzb files, your at your machine. A simple reboot/restart of HellaNZB to get it to download again can be executed then.
Once you've started HellaNZB with /opt/bin/startHellaNZB, you can access zussaweb WebUI in order to control HellaNZB at http://192.168.1.1:8082/protected/WebUI/zussaweb/
After starting HellaNZB, simply put your nzb's in /mnt/protected/Downloaders/HellaNZB/nzb/daemon.queue and download will start.
That's about what I can tell you, play around, if you've any questions, don't hesitate to ask. Also, if you've comments to make it better (the image, or the tutorial, please post)