Difference between revisions of "Installflashpolicyd"

From IRC Wiki
Jump to navigation Jump to search
(Created page with ''''This demonstrates how to run flash without root. Login via ssh then do:''' <pre> cd flash* ./flashpolicyd.rb --xml flashpolicy.xml --logfile flashpolicyd.log --port 8002 ps x …')
 
(Added some information regarding lightirc and a non-root policyd port. Added a temporary fix for the crash problem.)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''This page demonstrates how to install a flash policy deamon that must be installed to use web chats like [[LightIRC]]
'''This flash policy deamon requires ruby to be installed.'''
==Install without root==
'''This demonstrates how to run flash without root. Login via ssh then do:'''
'''This demonstrates how to run flash without root. Login via ssh then do:'''
<pre>
<pre>
cd flash*
wget http://www.lightirc.com/release/flashpolicyd.zip
unzip flashpolicyd.zip
cd flashpolicyd
chmod a+x flashpolicyd.rb
./flashpolicyd.rb --xml flashpolicy.xml --logfile flashpolicyd.log --port 8002
./flashpolicyd.rb --xml flashpolicy.xml --logfile flashpolicyd.log --port 8002
ps x  
ps x
</pre>
</pre>
''(then check flashpolicy is in the list that appears, is so it has worked/been started.)''
''(then check flashpolicy is in the list that appears, if so it has been installed successfully)''


You will have to change the policyPort to 8002 for Lightirc to recognize the different Flashpolicy deamon port.


'''Should this fail to work do this after logging in via ssh:'''
==Install with root==
 
If you have root access start flashpolicyd like this:
<pre>
<pre>
rm -r flashpolicy*
wget http://www.lightirc.com/release/flashpolicyd.zip
wget http://www.lightirc.com/release/flashpolicyd.zip
unzip flashpolicyd.zip
unzip flashpolicyd.zip
cd flashpolicyd
cd flashpolicyd
chmod a+x flashpolicyd.rb
chmod a+x flashpolicyd.rb
./flashpolicyd.rb --xml flashpolicy.xml --logfile flashpolicyd.log --port 8002
./flashpolicyd.rb --xml flashpolicy.xml --logfile flashpolicyd.log
ps x
ps x
</pre>
</pre>
''(then check flashpolicy is in the list that appears, is so it has worked/been started.)''
''(then check flashpolicy is in the list that appears, if so it has been installed successfully)''
 
==Please note==
Sometimes this flashpolicy deamon may crash, if this happens lightirc users wont be able to connect.
Simply go through the above steps to restart it or set --logfile to /dev/stdout or /dev/null.


----
==More information==
*[http://redmine.lightirc.com/projects/1/wiki/Flash_Policy_setup_instructions Flash Policy deamon setup instructions on Lightirc wiki]


If you have root access start flash policy like this:
<pre>./flashpolicyd.rb --xml flashpolicy.xml --logfile flashpolicyd.log</pre>
[[Category:Tutorials]]
[[Category:Tutorials]]

Latest revision as of 10:02, 20 January 2012

This page demonstrates how to install a flash policy deamon that must be installed to use web chats like LightIRC

This flash policy deamon requires ruby to be installed.

Install without root

This demonstrates how to run flash without root. Login via ssh then do:

wget http://www.lightirc.com/release/flashpolicyd.zip
unzip flashpolicyd.zip
cd flashpolicyd
chmod a+x flashpolicyd.rb
./flashpolicyd.rb --xml flashpolicy.xml --logfile flashpolicyd.log --port 8002
ps x

(then check flashpolicy is in the list that appears, if so it has been installed successfully)

You will have to change the policyPort to 8002 for Lightirc to recognize the different Flashpolicy deamon port.

Install with root

If you have root access start flashpolicyd like this:

wget http://www.lightirc.com/release/flashpolicyd.zip
unzip flashpolicyd.zip
cd flashpolicyd
chmod a+x flashpolicyd.rb
./flashpolicyd.rb --xml flashpolicy.xml --logfile flashpolicyd.log
ps x

(then check flashpolicy is in the list that appears, if so it has been installed successfully)

Please note

Sometimes this flashpolicy deamon may crash, if this happens lightirc users wont be able to connect. Simply go through the above steps to restart it or set --logfile to /dev/stdout or /dev/null.

More information