Modifiering av Qnap för KINSKY JUKEBOX – för internt bruk – du är varnad!


vi lathund

command mode - vid start - återvänder hit med ESC

To do this ... Command

______________________________________________________

Insert text after the cursor a


Insert text before the cursor i


Append text at the end of the current line A


Insert text at the start of the current line I


Open a new line below the current line o


Open a new line above the current line O

-----------------------------------------------------------------------

Deleting characters


Press the ESC key to enter command mode before using these commands.


To delete Do this


current character x


previous character dh

-------------------------------------------------------------------------------

Saving changes


To quit vi and save the contents of the buffer to the file that vi is being used to edit:


ZZ


or


:wq

----------------------------------------------------------------------------------

Without saving changes


To quit vi without saving the contents of the buffer to the file:


:q!

-----------------------------------------------

1. Using an ssh client, such as PuTTY, connect to the QNAP

* User: admin

* Password: using the normal administrator password (admin by default)

2. Move to the Apache configuration directory

* cd /usr/

ls -1

cd local/

ls -1

cd apache/

ls -1

cd conf/

ls -1


3. Backup original configuration file (to allow restore on problems)

* cp apache.conf apache.conf.default2

4. Edit the apache configuration file to redirect DocumentRoot to Qmultimedia and enable Indexing.

* vi apache.conf

* For usage of vi – see above!

* Modified file segment should be as shown here

o Qweb changed to Qmultimedia in 2 places

o Indexes added to Options


#ServerName www.example.com

DocumentRoot "/share/Qmultimedia"

<Directory />

Options FollowSymLinks

AllowOverride None

</Directory>

<Directory "/share/Qmultimedia">

Options Indexes FollowSymLinks MultiViews

AllowOverride None

Order allow,deny

Allow from all

</Directory>


5. Save the modified file and logout

6. Stop (if running) and restart the HTTP server

* QNAP web interface, select Network Settings -> Web Server

* Uncheck 'Enable Web Server' and click 'Apply'

* Wait 10 seconds

* Check 'Enable Web Server' and click 'Apply'

7. Check setup by pointing web browser to http://<qnap-ip-address>


NOTE that after the server is enabled, the QNAP web interface will be available at http://<qnap-ip-address>:808