Showing posts with label linux mint. Show all posts
Showing posts with label linux mint. Show all posts

10 March, 2015

Fail2Ban

Fail2Ban works by scanning through log files and reacting to offending actions such as repeated failed login attempts, by using iptables to generate blocking-rules for any defined (listening) protocols / services, aimed at specific offending IP-addresses.

I used to utilize DenyHosts, but as the project was discontinued I had to adapt. And so I also had to retract all my recommendations of DenyHosts and update them all to endorse Fail2Ban instead.

If using Ubuntu or Linux Mint, setting up and using Fail2Ban is easy.

It comes pre-configured (on Ubuntu) to detect malicious SSH-activity with basic notification action,

Firstly, you just have to apt-get it:

sudo apt-get install fail2ban
Then, you just copy over the standard (Ubuntu) "skeleton"-config:
sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
 Then stop and (re-)start Fail2Ban to load and run the config:
sudo service fail2ban stop && \
sudo service fail2ban start
It can be customized to send e-mail alerts to designated addresses, and various other "actions_".

Protocols and / or services are easily added to the config-file if they aren't already present. Fail2Bans config-file uses an easy syntax (layout-format) for somebody with basic networking- and logging-knowledge.

I tend to also enable the "ssh-ddos" detection, since these days we're seeing more and more distributed attacks. There are more SSH-specific detection's, but they're not necessary.

22 May, 2014

NVIDIA stable/current

Woke up this morning, logged onto my workstation, realized nothing was behaving like it should.

Windows were tearing, whole screens were acting weird and I could not for the life of me surf the web with ANY browser I had installed. Which wouldn't be as irritating right then and there, if it wasn't for the fact that I needed to log into my online bank-account!

After an hour of aggravation, and another hour of testing with different graphics-drivers (NVIDIA stable/current), I found out my GPU (GeForce GT520) did not play well with the new experimental driver from NVIDIA.

sudo apt-get purge nvidia-current && \
sudo apt-get install nvidia-current

The above command resolved my issue by removing the bleeding-edge nvidia-driver and replacing it with a version-rollback (v319 instead of v331).

After a warm reboot everything worked perfectly! Spotify, Steam, Chromium and Thunderbird all started, worked and rendered like they should.

Dunno if I'll be re-installing the experimental driver any time soon. Time will show.

For now, the stable current-version does it's job.

Who knows, maybe the time is right to replace my NVIDIA GeForce card with a more recent AMD Radeon HD card? I'm quite sure I read somewhere that the Catalyst Linux driver had ironed out most of the major bugs (fullscreen HD crashes / screen tearing / etc.).

02 February, 2014

Steam for Linux...

Ok, time for a little summary of my "Steam for Linux"- / "SteamOS"-testing:

All of my current Linux-based Steam-games (50 out of 67) run flawlessly on both Linux Mint v13 (with backports) and Ubuntu Desktop v12.04 (vanilla).

  • They do not require a top-of-the-line gaming graphics-card.
  • They (also) do not require vast amounts of memory (8GB will do fine).
List of mentioned games is available on my Steam-profile.

Will be adding a new picture-album entitled "Linux-gaming" on my G+ profile soon. Stay tuned!

"Linux-gaming" Google+ photos:
https://plus.google.com/photos/104557379246577572135/albums/5977405744473413313

SteamOS is still in it's early testing-stage(s). You basically have to posess a fair amount of advanced Linux-tinkering skills to be able to utilize it properly, but things are progressing. There are some automated versions being made (custom ISO-images) to let anyone install, test and even debug it on hardware (without the earlier requirement of a EFI-capable motherboard, you can manage with a BIOS-version now).

22 October, 2013

Interview: Linux Mint founder

Funny :P Clement Lefebvre actually started using Slackware Linux in 1997, just like me :)

Here is the networkworld-article:
http://www.networkworld.com/news/2013/102113-lefebvre-linux-mint-274911.html

04 May, 2013

sshlog v1.6

Bash scripts for generating and viewing simplified SSH access-logs in a console.

My reason for creating sshlog (and consequently sshloglist and sshlogviewer) was to have an easily available command-line toolchain, capable of generating and viewing simplified SSH access-logs through a console (plain-text interface, usually SSH+Bash).

sshlog generates a logfile based on command-line options given, then pipes the results to sshlog-viewer. Or, it can simply pipe the results into a timestamped text-logfile, in a directory called "ssh-logs" in your home-directory.

https://code.google.com/p/sshlog/

sshlog - showing direct results with 'less'


sshloglist is used to generate a box-based, selectable list of the logs already present in the ssh-logs directory, when a log is selected, it pipes the selected list filename to sshlog-viewer.

https://code.google.com/p/sshlog/

sshlogviewer is a box-based log-viewer interface. It prints the content from a given sshlog (from a datastream piped directly by sshlog, or given as a filename at the command-prompt or by sshlog-list). It then lets you flip through the sshlog-pages with the Page Up and Page Down keys. Press 'q' to quit (using less, if dialog is not installed) or spacebar/enter to press the "OK" button (using sshlog-viewer + dialog).



https://code.google.com/p/sshlog/

19 February, 2013

Steam for Linux

Steam for Linux has officially been released to the public :) I have been beta-testing the client and various Steam-powered Linux-games. I'm also beta-testing Spotify Linux preview at the moment (and have been for the past two years). Comparing the two projects wouldn't be fair, since the Spotify-team have limited development-resources compared to the Steam for Linux-team.

But, I have to admit, the few (about 2) months spent beta-testing Steam for Linux really showed real development progress throughout. Bugs were rapidly being adressed and worked out, properly. Thus the Linux-client beta-phase just flew by.

The link below shows how to install Steam for Linux on a Ubuntu-machine ;)

http://www.zdnet.com/how-to-install-the-steam-gaming-client-on-ubuntu-gallery-7000011391/