Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
generic:mods:addboard [2016/01/27 23:31] theexpertnoob [Make this 2nd board unique] |
generic:mods:addboard [2018/07/28 12:23] (current) matthias [And you thought we were done] |
||
|---|---|---|---|
| Line 10: | Line 10: | ||
| Enter these commands one after the other: | Enter these commands one after the other: | ||
| - | * cd /opt/piratebox/share | + | <code>cd /opt/piratebox/share |
| - | * sudo cp -Rp board board2 | + | sudo cp -Rp board board2 |
| - | * cd /opt/piratebox/www | + | cd /opt/piratebox/www |
| - | * sudo ln -s /opt/piratebox/share/board2 board2 | + | sudo ln -s /opt/piratebox/share/board2 board2 |
| - | * sudo chown -h nobody:nogroup board2 | + | sudo chown -h nobody:nogroup board2</code> |
| Now we need to edit the config so we can execute the scripts needed for the new board. | Now we need to edit the config so we can execute the scripts needed for the new board. | ||
| - | * sudo nano /opt/piratebox/conf/lighttpd/lighttpd.conf | + | <code>sudo nano /opt/piratebox/conf/lighttpd/lighttpd.conf</code> |
| Scroll to about line 85 and duplicate this | Scroll to about line 85 and duplicate this | ||
| Line 44: | Line 44: | ||
| </WRAP> | </WRAP> | ||
| run these commands. | run these commands. | ||
| - | * sudo rm /opt/piratebox/share/board2/index.html | + | <code>sudo rm /opt/piratebox/share/board2/index.html |
| - | * cd /opt/piratebox/share/board2/res | + | cd /opt/piratebox/share/board2/res |
| - | * sudo rm *.* | + | sudo rm *.*</code> |
| - | ==== Make this 2nd board unique ==== (optional) | + | ==== Make this 2nd board unique ==== |
| - | * sudo nano /opt/piratebox/share/board2/config.pl | + | <code>sudo nano /opt/piratebox/share/board2/config.pl</code> |
| - | change the board name to whatever you want. | + | change the board name and icon to whatever you want. |
| - | <code>use constant TITLE => 'Secret Board #2';</code> | + | <code>use constant TITLE => 'Secret Board #2'; |
| - | *change the icon to whatever you want. | + | use constant TITLEIMG => '/piratebox-logo-small.png'</code> |
| - | <code>use constant TITLEIMG => '/piratebox-logo-small.png'</code> | + | save and exit |
| <WRAP center round tip 60%> | <WRAP center round tip 60%> | ||
| - | The / is relative to www and piratebox-logo-small.png is in the www root. | + | The / is relative to www, and piratebox-logo-small.png is in the www root. |
| - | remove the / and drop an image the board2 directory and point to it. | + | Remove the /, and upload an image to the board2 directory and point to it. |
| - | be sure permissions and ownership are correct or the logo may not display proplery. | + | Be sure permissions and ownership are correct or the logo may not display properly. |
| </WRAP> | </WRAP> | ||
| - | |||
| ==== To activate the board ==== | ==== To activate the board ==== | ||
| - | * wget -qO- %%http://127.0.0.1/board2/kareha.pl%% &> /dev/null | + | <code>wget -qO- %%http://127.0.0.1/board2/kareha.pl%% &> /dev/null</code> |
| reboot your box for good measure | reboot your box for good measure | ||
| Line 68: | Line 67: | ||
| ===== And you thought we were done ===== | ===== And you thought we were done ===== | ||
| How are your users going to know about this board if you don't have it linked from the main page? | How are your users going to know about this board if you don't have it linked from the main page? | ||
| - | * sudo nano /opt/piratebox/www/index.html | + | <code>sudo nano /opt/piratebox/www/content/index.html</code> |
| add this line after <li><a href="/board/">Forum</a></li> | add this line after <li><a href="/board/">Forum</a></li> | ||
| <code><li><a href="/board2/">2nd Board</a></li></code> | <code><li><a href="/board2/">2nd Board</a></li></code> | ||
| save and exit | save and exit | ||
| - | * sudo nano /opt/piratebox/share/Shared/HEADER.txt | + | <code>sudo nano /opt/piratebox/src/HEADER.txt</code> |
| add this line after <li><a href="/board/">Forum</a></li> | add this line after <li><a href="/board/">Forum</a></li> | ||
| <code><li><a href="/board2/">2nd Board</a></li></code> | <code><li><a href="/board2/">2nd Board</a></li></code> | ||
| - | save and exit | + | save and exit then redistribute the new HEADER.txt with |
| + | <code>sudo /opt/piratebox/bin/distribute_files.sh /opt/piratebox/share/Shared 'true'</code> | ||
| ==== Done ==== | ==== Done ==== | ||
| Line 81: | Line 81: | ||
| ===== But wait....There's more! ===== | ===== But wait....There's more! ===== | ||
| You COULD create a multitude of boards in this manner and point the navigation link to a page with the collection of boards;\\ | You COULD create a multitude of boards in this manner and point the navigation link to a page with the collection of boards;\\ | ||
| - | However, I will live that for you to figure out. Or may create a tutorial for that if there is a demand for it. | + | However, I will leave that for you to figure out. Or I may create a tutorial for that if there is a demand for it. |
| <WRAP center round tip 60%> | <WRAP center round tip 60%> | ||
| If you have suggestions or need help, come see us in the chat room or on the forum. | If you have suggestions or need help, come see us in the chat room or on the forum. | ||
| </WRAP> | </WRAP> | ||