Category: Linux

This is the most insecure thing you can do to your linux system. That said however, when working on development systems at home I like to logon as SSH. Granted this is behind a firewall to a linux system with no access from the internet. This was tested on Ubuntu 14.x on a Raspberry Pi. … Continue reading Allow Root to SSH for Ubuntu

Share this:

Like this:

This works for Linux and Mac command lines. It's fast and easy to remember. Ready? curl ifconfig.me That's it. It just returns your external IP. If you have curl under Windows it should work there too.

Share this:

Like this:

After making an image of a physical linux box (Dell hardware running CentOS), I converted the IMG file to a VDH file and after booting had many issue. One of which was the following error which caused all databases on the respective volume to fail because the volume was in read-only mode. EXT3-fs error (device … Continue reading CentOS to MS Hyper-V Volume Issues

Share this:

Like this:

I use several QNAP devices from the large 24 drive down to a personal 2 drive. I've found that they are pretty good and you can do a lot with them as they're basically Linux boxes with a pretty web interface. Here are some useful console commands for restarting specific services. First, to restart basically … Continue reading QNAP NAS SSH Service Commands

Share this:

Like this:

Setting up SNMP (Simple Network Management Protocol) on a CentOS machine is a very quick and easy process and I often forget so here's a quickie on how. Install the SNMP daemon by running the following command: yum install net-snmp Once SNMP is installed you want to install the configuration utility. I always forget this. … Continue reading Enabling SNMP On CentOS / RHEL

Share this:

Like this:

I don't know why I didn't have notes on this already. I've done it dozens of times. So here's the write up. I use Ubuntu and it uses the syslog facility/daemon called rsyslogd. Its configuration file is located here: /etc/rsyslog.d/50-default.conf This file tells the deamon where to log each type of message. For example the … Continue reading Sending Syslog logs from Ubuntu to a remote syslog server

Share this:

Like this:

I just had the need to truncate all the tables in of my databases. Basically I wanted the data gone but the schema to stay. Below is the linux shell command I used to truncate the tables. I've also included how to straight up drop the tables too- just keep in mind dropping tables dumps … Continue reading MySQL Truncating or Dropping All Tables in a Database

Share this:

Like this:

Just for fun and, well, a learning experience I have SSL'd my site. Why? Why not. Every good Infrastructure Engineer/Manager should know how and now I do. It was much simpler than I thought. If you need a good, simple SSL certificate that will cost you nothing I recommend http://www.startssl.com They offer a simple Class … Continue reading Holy SSL Batman…

Share this:

Like this:

I'm always needing to do this so here's two quick ways. Or if you prefer curl: The ifconfig.me site If you browse this website with your normal browser it will show how to get a lot of information from the command line, using curl, to get just the IP you can use: Now if windows was just … Continue reading Get You External IP From Linux via the Command Line

Share this:

Like this:

Easy! Use this command to see the cpu info:: cat /proc/cpuinfo Use this command to see the memory info: cat /proc/meminfo This gives a lot of hardware related info: dmesg Use this command to get PCI bus info: lspci I tested this on centOS. You can get the OS from this command: cat /proc/version Happy … Continue reading How do I get a Linux computer’s hardware info?