bitcoin CPU mining with Ubuntu 12.04

blog, Linux, Ubuntu
Please do not bother responding with how worthless this is.  This is purely academic.  A few of the guys at my office were curious and I was idle for a little while this weekend and got started with the basics of the basics in bitcon mining. Prerequisites Go setup yourself a bitcoin wallet here --> http://www.trybtc.com  There will be some tutorials, feel free to go through those. You'll end up here --> https://coinbase.com This is where you can keep track of your account.  First let's pop in there and grab the bitcoin address that we will use in a bit.  You can find it under Account Settings --> Bitcoin Addresses.  This is how others can give you money. Create an account here --> https://mining.bitcoin.cz/ This is the only way that CPU mining is…
Read More

Apache2 on Ubuntu – OpenSSL CSR / Self Signed Cert

blog, Linux, Ubuntu
Seventy-five percent of the servers I have been working on over the last few months have been Linux.  Mostly Ubuntu.  This due to the fact that my company has allow me to start migrating over and building new servers on this platform.  With that, we need secure ways to access the servers.  On occasion I'll use webmin but mostly just SSH and whatever website is running on it (management, applications, etc).  Webmin takes care of itself with a self signed certificate and SSH creates its own keys.  Pretty easy there.  Now, for the website that is running on the box, out of the gate it's unencrypted TCP/80 traffic running from an Apache 2 web server.  This short tutorial will cover how to create a CSR with OpenSSL for use when…
Read More

60 second vi intro

blog, Linux, Ubuntu
vi is neat.  Most of the engineers I work with like nano or pico but I like vi.  For some reason it makes me feel more like a geek when I'm using it.  In fact, I've been using it so often lately that I have been trying to use vi command in notepad (obviously without success).  This tutorial will cover only the basics but that should be enough to get you started.  A much better tutorial is available here. vi /etc/network/interfaces - opens /etc/network/interfaces in vi i - insert / - search G - [Shift] g - go to bottom of page dd - delete the line d <- or d -> - d [left or right arrow] delete 1 character in that direction 10G - 10 [Shift] g -…
Read More

Ubuntu – Prevent a package from being updated

blog, Ubuntu
The original post for this is from the Ubuntu Geek website but I learned something new from it so I thought I would share my new favorite way to keep a package from being updated in Ubuntu.  This goes for pretty much any of the newer releases of Ubuntu.  I used to use dpkg to do this but now I like aptitude much better.  It's easier for me. To put a package on hold use this command. sudo aptitude hold snort-mysql To remove the hold use this command. sudo aptitude unhold snort-mysql To keep your entire system (I think) from being updated simply use this command. sudo aptitude hold And to remove the hold use this command. sudo aptitude unhold Very easy isn't it.  Yep, that's what I thought. I'll…
Read More

Getting Ubuntu Ready for “REAL” use…

Linux, Ubuntu
I love Ubuntu...it's undubitably the best free OS on the planet. However, there is one thing that I absolutely hate about Ubuntu.. My inability to SSH into the system from anywhere. I know it is this way by design and that it's a "security" feature but it still annoys me. So the following commands are what I use to get the system ready for use after a fresh install. apt-get install openssh-server openssh-client That's it. If you want to play around a little more you can configure Ubuntu's firewall in just a few simple steps as well. In my example I will enable tcp/80, tcp/443, tcp/22 and udp/53 inbound. ufw disable ufw allow 80/tcp ufw allow 443/tcp ufw allow 22/tcp ufw allow udp/53 ufw enable And then you can validate…
Read More