New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Web page #219

Closed
GoogleCodeExporter opened this Issue Mar 24, 2015 · 5 comments

Comments

Projects
None yet
1 participant
@GoogleCodeExporter

GoogleCodeExporter commented Mar 24, 2015

It would be nice if the default web page were useful. 

* Add relevant SecurityOnion related links
* Add links to the varions tools website snort/bro/daemonlogger/pads/etc...
* Add links to Snorby and Squert running on the server.

Original issue reported on code.google.com by Jason.R....@gmail.com on 7 Feb 2012 at 4:56

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 24, 2015

Hi Jason,

Are you referring to the default web page in Firefox 
(/etc/skel/Desktop/README.html), or the default web page in Apache (It works!)?

Original comment by doug.bu...@gmail.com on 29 Feb 2012 at 11:58

  • Added labels: ****
  • Removed labels: ****

GoogleCodeExporter commented Mar 24, 2015

Hi Jason,

Are you referring to the default web page in Firefox 
(/etc/skel/Desktop/README.html), or the default web page in Apache (It works!)?

Original comment by doug.bu...@gmail.com on 29 Feb 2012 at 11:58

  • Added labels: ****
  • Removed labels: ****
@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 24, 2015

The default page in Apache. This would make a great SO splashpage.

Original comment by Jason.R....@gmail.com on 29 Feb 2012 at 12:41

  • Added labels: ****
  • Removed labels: ****

GoogleCodeExporter commented Mar 24, 2015

The default page in Apache. This would make a great SO splashpage.

Original comment by Jason.R....@gmail.com on 29 Feb 2012 at 12:41

  • Added labels: ****
  • Removed labels: ****
@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 24, 2015

[deleted comment]

GoogleCodeExporter commented Mar 24, 2015

[deleted comment]
@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 24, 2015

Added the following to security-onion-upgrade.sh:


sed -i 's| |=|g' $CONF
source $CONF
if [ "$VERSION" = "20120329" ]; then
        NEW="20120405"
        echo "**********************************************"   | $LOGGER
        echo "* Upgrading from $VERSION to $NEW."               | $LOGGER
        echo "**********************************************"   | $LOGGER
        DIR="/nsm/backup/$NEW"
        mkdir -p $DIR                                           | $LOGGER
        cd $DIR

        for FILE in securityonion-web-page_20120405_i386.deb; do
                echo -n "* Downloading $FILE..."                | $LOGGER
                wget -q http://sourceforge.net/projects/security-onion/files/$NEW/$FILE -O $FILE | $LOGGER
                if [ $? -eq 1 ]; then
                        echo "FAIL"     | $LOGGER
                        exit 1
                else
                        echo "OK"       | $LOGGER
                fi
        done

        echo -n "* Installing downloaded packages..." | $LOGGER
        dpkg -i *.deb                                           >> $LOG
        if [ $? -eq 1 ]; then
                echo "FAIL"     | $LOGGER
                exit 1
        else
                echo "OK"       | $LOGGER
        fi

        echo "* Fixing existing Desktop shortcuts"              | $LOGGER
        rm -f /etc/skel/Desktop/README.html
        rm -f /home/*/Desktop/README.html
        cat << EOF > /etc/skel/Desktop/securityonion-readme.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=ReadMe
Comment=ReadMe
GenericName=ReadMe
Exec=/usr/bin/firefox https://localhost
Icon=firefox
Terminal=false
Type=Application
Categories=SecurityOnion;NSM;
StartupNotify=true
# vi:set encoding=UTF-8:
EOF
        for i in /home/*; do cp /etc/skel/Desktop/securityonion-readme.desktop $i/Desktop/; done | $LOGGER
        sed -i 's|/etc/skel/Desktop/README.html|https://localhost|g' /etc/skel/.mozilla/firefox/*/prefs.js /home/*/.mozilla/firefox/*/prefs.js | $LOGGER

        sed -i "s|VERSION=$VERSION|VERSION=$NEW|g" $CONF        | $LOGGER
        echo "* Upgrade to $NEW complete."                      | $LOGGER
        echo 
fi

Original comment by doug.bu...@gmail.com on 5 Apr 2012 at 10:00

  • Added labels: ****
  • Removed labels: ****

GoogleCodeExporter commented Mar 24, 2015

Added the following to security-onion-upgrade.sh:


sed -i 's| |=|g' $CONF
source $CONF
if [ "$VERSION" = "20120329" ]; then
        NEW="20120405"
        echo "**********************************************"   | $LOGGER
        echo "* Upgrading from $VERSION to $NEW."               | $LOGGER
        echo "**********************************************"   | $LOGGER
        DIR="/nsm/backup/$NEW"
        mkdir -p $DIR                                           | $LOGGER
        cd $DIR

        for FILE in securityonion-web-page_20120405_i386.deb; do
                echo -n "* Downloading $FILE..."                | $LOGGER
                wget -q http://sourceforge.net/projects/security-onion/files/$NEW/$FILE -O $FILE | $LOGGER
                if [ $? -eq 1 ]; then
                        echo "FAIL"     | $LOGGER
                        exit 1
                else
                        echo "OK"       | $LOGGER
                fi
        done

        echo -n "* Installing downloaded packages..." | $LOGGER
        dpkg -i *.deb                                           >> $LOG
        if [ $? -eq 1 ]; then
                echo "FAIL"     | $LOGGER
                exit 1
        else
                echo "OK"       | $LOGGER
        fi

        echo "* Fixing existing Desktop shortcuts"              | $LOGGER
        rm -f /etc/skel/Desktop/README.html
        rm -f /home/*/Desktop/README.html
        cat << EOF > /etc/skel/Desktop/securityonion-readme.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=ReadMe
Comment=ReadMe
GenericName=ReadMe
Exec=/usr/bin/firefox https://localhost
Icon=firefox
Terminal=false
Type=Application
Categories=SecurityOnion;NSM;
StartupNotify=true
# vi:set encoding=UTF-8:
EOF
        for i in /home/*; do cp /etc/skel/Desktop/securityonion-readme.desktop $i/Desktop/; done | $LOGGER
        sed -i 's|/etc/skel/Desktop/README.html|https://localhost|g' /etc/skel/.mozilla/firefox/*/prefs.js /home/*/.mozilla/firefox/*/prefs.js | $LOGGER

        sed -i "s|VERSION=$VERSION|VERSION=$NEW|g" $CONF        | $LOGGER
        echo "* Upgrade to $NEW complete."                      | $LOGGER
        echo 
fi

Original comment by doug.bu...@gmail.com on 5 Apr 2012 at 10:00

  • Added labels: ****
  • Removed labels: ****
@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 24, 2015

Published:
http://securityonion.blogspot.com/2012/04/security-onion-20120405-now-available.
html

Original comment by doug.bu...@gmail.com on 5 Apr 2012 at 10:00

  • Added labels: ****
  • Removed labels: ****

GoogleCodeExporter commented Mar 24, 2015

Published:
http://securityonion.blogspot.com/2012/04/security-onion-20120405-now-available.
html

Original comment by doug.bu...@gmail.com on 5 Apr 2012 at 10:00

  • Added labels: ****
  • Removed labels: ****
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment