May 13

vps hosting $20 Gentoo and BSD no frills vps hosting

VPS Hosting

I’m offering another round of Gentoo or Open BSD vps hosting in the near future depending on demand. What does no frills mean? Simple: I’m happy to offer VPS to the community at a reasonable price. In order to keep that price reasonable, I do not plan on paying extra for a package web management portal. Instead, you give me your public key and you can log into a shell-based menu system (below) to take care of any reboots that you need.

vps hosting CLI menu

You are also be able to tunnel a VNC session to access a command prompt or the livecd environment (below).

vps hosting livecd boot

Here is a VPS booted with the gentoo livecd and access via the VNC tunnel, all ready for installation.

vps hosting vnc over tunnel


  • Platform: Xen
  • VCPU: 1
  • ipv4: 1
  • ram: 8
  • disk: 900GiB
  • bandwidth: 500GiB outgoing/month
  • price: $20/month or $210/year
  • payment: bitcoin or paypal*

*an additional fee will be charged for paypal payments.

Find Out More (just a link to the contact form)

(I get spammed too often to post my email in text, sorry)

vps hosting options

There are many vps hosting options available to you. I do not plan to dominate the hosting market or quit my ‘day job’ (which I love). My goal is to provide a way for linux users (specifically Gentoo users) to maintain a small presence for themselves on the web. If you would like to talk more, please use the contact form.

If you’re interested in intalling another operating system CentOS, Ubuntu, etc, feel free to contact me. If there is demand for it, I’ll get around to it eventually.

Also, if there is a different balance of memory, cpus, and hard disk space you’d like, let me know. I can also send a test file if you want to check the download speed.

Permanent link to this article:

Feb 03

Top 10 IPs Trying to SSH into Your Server with Invalid User

I was playing around with fail2ban (probably an upcoming article) today and wanted to share a one-liner for viewing the top ten ips trying to ssh into your server. Here’s the code.

IPs Trying to SSH into Your Server

top ten ips trying to ssh into your server

# cat /var/log/messages | grep "Invalid user" | sed 's/.*from \([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\)/\1/' | uniq -dc | sort -r | head -n 10


change this to wherever your sshd logs
match the “Invalid user” string … which is what sshd prints
pull out the ip address only. This is probably not the most elegant patten, but it works.
I didn’t even know this was on my system. It will (with the -dc flags) count duplicates in a list
sort the list of ips in reverse (most entries per ip first)
keep the top ten (or whatever you choose)

IPs Trying to SSH into Your Server with whois Information

Here is a slightly more complex version that will run a whois search on each ip and send the results to less.

Viewing info for ips

# for domain in `cat /var/log/messages | grep "Invalid user" | sed 's/.*from \([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\)/\1/' | uniq -dc | sort -r | head -n 10 | sed 's/.*[0-9]* //'`; do whois "$domain"; done | less


Permanent link to this article:

Jan 20

tab complete ssh host

tab complete ssh host

tab complete ssh host

I ran across this accidentally the other day. Apparently, you can tab complete your host after you use the @ character. I cannot speak to other shells, but this works in bash and is quite useful for typing out ssh commands etc.

tab complete ssh host

$ ssh rot@[tab tab]
$ ping @[tab tab]

Permanent link to this article:

Jan 06

mplayer play directories recursively

Can mplayer play directories recursively? Yes. Here is the one liner using find and mplayer.

mplayer play directories recursively


$ find {$DIR01,$DIR02,$DIR03} \( -iname "*\.mp3" \) -exec mplayer -loop 0 -shuffle '{}' +

Find will recursively search the directories listed (here as $DIR01,$DIR02, and $DIR03) searching for the text ".mp3" (with a case insensitive search). All of the results are passed to mplayer. I’ve also added the "loop 0" and "shuffle" flags.

You could also replace mplayer with another command. This leverages find’s ability to executive a command using the located files as a parameter list. You can also use the large collection of find flags to narrow your results to exactly what you need. Hopefully this is helpful.

Permanent link to this article:

Dec 25

Christmas 2013

gentoo happy holidays

Thanks for another great year of learning and sharing.

Permanent link to this article: