Custom laptop battery notifications

Since i bought my laptop, i was concernead of the long-term effects of keeping it plugged in constantly. A lot of people do this and apparently, it shortens the battery life. I wanted an app or a script that could show me the battery notifications that i wanted – notify me when the battery is charged or discharged at a custom level. I think it’s optimal to keep it charged until 90% and not let it discharge below 20%. Since i didn’t find anything that fitted my needs i decided to make my own script. Continue reading “Custom laptop battery notifications”

How to add a new Debian repository

Debian and derivated linux distros (Ubuntu, Linux mint) use APT to manage software and software locations. It is so easy that you can install everything with a simple command like :

apt-get install “something”

Where “something” can be a an app that you know about or it can be something that you don’t remember, and just use TAB to see what suggestions there are. When you can’t install a certain app (that you know for sure it can be installed) you typically see this error:

E: Unable to locate package “something”  Continue reading “How to add a new Debian repository”

How to install Eclipse with Git, Bash, PHP, Python support

Eclipse is an integrated development environment or an IDE. In other words these pieces of software are playgrounds for programmers, having all sorts of useful features such as autocomplete, searching entire projects, syntax highlighting and so on. I have been introduced to this during my Python courses.

There was a mass frustration in the first hours of Python, because everybody had to have a problem with the Eclipse and plugin installation. In this post i’m going explain how i installed Eclipse with all the plugins that i need. I usually do Python, Bash and PHP scripting. I need plugins that can provide the necesary features for each of these programming languages. I also use Github to share and version control my code. Continue reading “How to install Eclipse with Git, Bash, PHP, Python support”

Professional Special Subject – w2 log

Week 2 was about an early development phase, where i just install necesary software and play around to see what posiblities i have.

The plan was to:

– install Snort with a front-end interface and start playing with to see what can i do. You can read a detailed walkthrough here. It took much more longer than i expected, because of the lack of proper documentation related to the acidbase software and things simply not working. This turned out to be a total waste of time, becase it was too much of a hastle and i didn’t acomplish anything.

– install already made solutions out there, that can provide an inspiration to my development phase or can stop me from reinventing the wheel, thus saving time. It turned out that there are a few really interesting open-source projects that can be of use. The projects below resemble my idea, but not entirely:

– setup a test environment with a server/PC running a Snort and a front-end solution, a hub and some machines that can generate traffic. I can get the traffic needed from another class that has a networking project running. Initially, i wanted to use a pfsense powered machine that can mirror traffic from the network to me. I ran into more problems than i expected but you can read about it here.

This is part of a series of blogposts that serve as my weekly log for my professional special subject project. It has documentation purposes and it is a nice way to present your work to the teachers. For further information about my work and what i’ve learned and did follow the inbound/outbound links within these posts.

How to install Snort and AcidBase GUI

I needed to install Snort and a nice GUI for it for one of my projects. I have used a virtual machine running Debian 7. I have followed some tutorials but none of helped me install everything succesfully. I ran into some weird errors but i managed to fix them.

Basically, all software needed to have a nice front-end to the IDS of choice (Snort) are:

– apache2 (webserver), php5(main backend programming language), mysql (databases), phpmyadmin (gui for databases)

– snort (what good is a front-end if we don’t have a backend), ACIDBASE (basic analysis and security engine) Continue reading “How to install Snort and AcidBase GUI”