Category: software

Centos fail2ban error

With the latest version of Fail2ban I got this error on some Centos servers that Fail2ban would not start anymore.

This is the quick fix:

Add to your jail.conf:

Found the above solution here: https://github.com/fail2ban/fail2ban/issues/44

 

 

Fix mount issues Linux and Windows 8 NTFS

Windows 8 has a option that you can boot faster. It stores (hibernates) your system. Sometimes Linux can’t mount your local disks and it will give you this kinda error:

Unable to mount location

Error mounting /dev/sda2 at /media/pieter/DATA: Command-line `mount -t “ntfs” -o “uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177” “/dev/sda2” “/media/pieter/DATA”‘ exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount ‘/dev/sda2’: Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the ‘ro’ mount option.

What worked for me was to disable the “fast start” option in windows 8.

1. Open Control Panel and choose Power Options.
2. Click on “Choose what the power buttons do”.
3. Click on “Change settings that are currently unavailable”.
4. Uncheck “Turn on fast startup (recommended)”.

If you want to try some more options this page might help you:

http://www.hecticgeek.com/2013/01/mount-windows-8-partition-ubuntu-hybrid-boot/

 

 

Fail2ban and wordpress

If you use fail2ban on your server and you are running WordPress you could use this plugin:

https://wordpress.org/plugins/wp-fail2ban/

“WP fail2ban logs all login attempts, whether successful or not, to syslog using LOG_AUTH.”

So now when kiddies try to “hack” your login page, Fail2Ban will kick in and do its job.

wordpress.conf:

WP fail2ban plugin:

 

Very cheap ebooks till 5 July

Some time ago I did a review about a well written linux mint book from Packt Publishing.

Because they celebrate their 10 years anniversary you can get any book from their bookshelf for only 10 dollars. So if you want that copy of the “Raspberry Pi Cookbook for Python Programmers” or some “Advanced Penetration Testing” books. You can now get them very cheap.

As they mention on their web site:

This month marks 10 years since we embarked on our mission to deliver effective learning and information services to IT professionals. To celebrate this huge milestone, we are offering ALL of our eBooks and Videos at just $10 each for 10 days – this promotion covers every title and you can stock up on as many copies as you like until July 5th.

Some of the categories you can choose the books from:

  • Application Development
  • Big Data and Business Intelligence
  • Business Skills
  • CMS and eCommerce
  • Enterprise Products and Platforms
  • Game Development
  • Instant
  • Mobile Application Development
  • Networking and Servers
  • Video
  • Virtualization and Cloud
  • Web Development

Anyway, just a few day’s left to get some of the 2000 good books for a low price.

ssh stuff

As reference:

Some handy tips: SSH Kunfu:
http://blog.tjll.net/ssh-kung-fu/

Or the putty tunnel way:
http://www.howtoforge.com/ssh_key_based_logins_putty_p3

Putty .PPK key to SSH key

command line:

log onto your system:

Add your key to your linux shell:

More to come I think 🙂