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/28 01:04] theexpertnoob [Make this 2nd board unique] |
generic:mods:addboard [2018/07/28 12:23] (current) matthias [And you thought we were done] |
||
---|---|---|---|
Line 17: | Line 17: | ||
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. | ||
- | <code>sudo nano /opt/piratebox/conf/lighttpd/lighttpd.conf<code> | + | <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 53: | Line 53: | ||
<code>use constant TITLE => 'Secret Board #2'; | <code>use constant TITLE => 'Secret Board #2'; | ||
use constant TITLEIMG => '/piratebox-logo-small.png'</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. | ||
Line 58: | Line 59: | ||
Be sure permissions and ownership are correct or the logo may not display properly. | Be sure permissions and ownership are correct or the logo may not display properly. | ||
</WRAP> | </WRAP> | ||
- | save and exit | ||
==== 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 67: | 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 ==== |