Announcement

Collapse
No announcement yet.

HOWTO: Setup Firestarter and Moblock autostart correctly

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HOWTO: Setup Firestarter and Moblock autostart correctly

    Firestarter is a simple-to-use Linux firewall and Moblock is an IP filter, mostly used by peer-to-peer file sharing users. Moblock should always be run after other firewalls start, otherwise it won't work correctly. This tutorial explains how to set up the correct autostart sequence for both programs. I use a plain text editor for terminal called "nano", but you can use other GUI editors, such as Kate, Kwrite, etc.


    1) With text editor open the file sudo nano /etc/sudoers:
    Code:
    sudo nano -w sudo nano /etc/sudoers
    2) At the end of the file add the following two lines and save the file:
    Code:
    <user> ALL= NOPASSWD: /usr/sbin/firestarter
    <user> ALL= NOPASSWD: /usr/bin/blockcontrol
    note: substitute "<user>" with your username.

    3) In terminal execute this command:
    Code:
    echo -e '#'\!'/bin/sh\nsudo firestarter --start-hidden' > ~/.kde/Autostart/firestarter
    4) Change permissions for firestarter shell script:
    Code:
    chmod a+x ~/.kde/Autostart/firestarter
    5) With text editor open the file ~/.kde/Autostart/firestarter:
    Code:
    nano -w ~/.kde/Autostart/firestarter
    and change it so it will look like this:
    Code:
    #!/bin/sh
    sudo firestarter --start-hidden & sleep 15 && sudo blockcontrol start &
    6) With text editor open the file /etc/blockcontrol/blockcontrol.conf
    Code:
    sudo nano -w /etc/blockcontrol/blockcontrol.conf
    search for the line INIT. It has to look like this: INIT="0"

    7) Restart you computer and it should work.

    Note: If you don't run the latest Moblock versions, you may have to use the following parameters instead:
    • /usr/bin/blockcontrol --> /usr/bin/moblock-control
    • sudo blockcontrol start --> sudo moblock-control start
    • /etc/blockcontrol/blockcontrol.conf --> /etc/default/moblock
    In a world without windows and fences who needs Gates?

    #2
    Re: HOWTO: Setup Firestarter and Moblock autostart correctly

    Excellent howto! I don't need to type a password every time I start the machine for firestarter to autostart

    I don't do peer-to-peer so I didn't incorporate the moblock portions, but excellent all the same!

    Cheers,

    Jimbo

    Comment

    Working...
    X