xRDP under Ubuntu

Screen Shot 2016-04-28 at 2.30.01 PM
I found an excellent article that got me up and running. I’m connecting a Mac OS X 10.11 box to Ubuntu 14. VNC just wasn’t behaving no matter what I did. The new Microsoft client for Mac is pretty slick too.

I almost forgot. I had to punch a hole in the firewall to get it to work:
# ufw allow 3389

Another useful command is:

# ufw status
Status: active

To Action From
-- ------ ----
XXXX/tcp ALLOW Anywhere
XXXX/tcp (v6) ALLOW Anywhere (v6)
XXXX (v6) ALLOW Anywhere (v6)
XXXX (v6) ALLOW Anywhere (v6)
XXXX (v6) ALLOW Anywhere (v6)
XXXX (v6) ALLOW Anywhere (v6)

snmpwalk rudimentary basics

I’m on the side of terse here. Just some reminders about syntax. This snippet presumes you already have an SNMP agent running on your equipment and a read-only community configured to send traps (snmp-statistics) to your machine’s IP address.

If was trying to get an SNMP utility like MRTG working I would need to verify that SNMP works prior to running cfgmaker.

Let’s suppose my community is called “cheese”:

$snmpwalk -Os -c cheese -v 1 system

Output looks something like this:
sysDescr.0 = STRING: Cisco IOS Software, CXXXX Software (CXXXX-UNIVERSALK9-X), Version XX.X(X)M2, RELEASE SOFTWARE (XXX)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2015 by Cisco Systems, Inc.
Compiled Fri 06-Feb-15 17:01 by prod_rel_team
sysObjectID.0 = OID: enterprises.9.1.1191
sysUpTimeInstance = Timeticks: (1669944) 4:38:19.44
sysContact.0 = STRING: \"Brad Pemberton XXX/XXX-XXXX\"
sysName.0 = STRING: xxx.xxxxxxxxxxxxxxxxx.com
sysLocation.0 = STRING: Boise ID
sysServices.0 = INTEGER: 78

Once I get some feedback from snmpwalk I know I’m ready to tell mrtg to format the graph files into HTML.

$ cfgmaker --global 'WorkDir: /Path/To/Server/docroot/mrtg_subdirectory_name' --global 'Options[_]: bits,growright' --output /Path/To/Server/docroot/mrtg_subdirectory_name/cfg/output.cfg cheese@

How to export a man page to a text file

So I have to give credit to nixCraft where I stole most of this from.

All I wanted to do is output to a text file so I can print for an upcoming open book exam which includes silk, tcpdump and snort.  If you’ve looked at the man pages for each of those it’s like alphabet soup options.

The command you’re looking for is:

DeusEx:~ italisman$ man tcpdump | col -b > tcp_manpage.txt

The ‘other’ Applications folder in El Capitan

So I’ve been hiding under a rock for the last 6+ years. Sue me. I’m not even certain when Apple did this – but today while looking for Chicken of the VNC – now just renamed Chicken (https://sourceforge.net/projects/chicken/?source=typ_redirect) I found another article from ancient days about Apple’s Built-in VNC client called “Screen Sharing”. You won’t find it under /Applications/Utilities – neither will you find Network Utility and some other usual suspects.

It turns out they are still there – just “conveniently” tucked away.

The “usual suspects” in /System/Library/CoreServices/Applications/

Archive Utility
Directory Utility
Feedback Assistant
Network Utility
RAID Utility
Screen Sharing
System Image Utility
Wireless Diagnostics

Screen Shot 2016-04-01 at 10.08.25 AM

El Capitan with MySQL, WordPress and Apple’s Server 5.1

IMG_1563 (1)

It’s been a long while since I’ve attempted to get this running.  It’s really just been a personal goal to put MySQL, Mac OS X Server, PHP, Apache and WordPress on my own box and make it work.  It’s not that I haven’t done it before.  It’s that I put it down and didn’t touch it for about seven years.   Not all things that are forgotten are lost.

The website here was immensely useful and took me about 90% of the way here.

Where I jumped into the world of WordPress is where I ran aground for a moment.  The permissions for editing files on a Mac are a bit tricky because the user and group “_www” need permissions to get things working.  When you’re looking at file permissions in the Finder the group _www isn’t an option and the process httpd needs to be looked at carefully because Mac OS X Server spawns Apache under root but it only lets the child processes run by the user _www actually answer anything.  AFP and FTP may want a different set of permissions so shared folders used by both of those need to have some common permissions setup.

Ultimately the
sudo chgrp -R _www *
command fixed my (Unable to create directory wp-content/uploads/2013/02)problem.

So you want to NAT on your cisco router and you have your own server

So why don’t I just put a big target on my back.  It’s too late for that I guess.

Anyway – this blog is my personal notes library anyway.  If you’re finding it useful – good times.

Here is the syntax for allowing a private address to be trafficked by a Cisco router:

ip nat inside source static tcp 21 21 extendable

ip nat inside source static tcp 80 80 extendable

ip nat inside source static tcp 443 443 extendable