Skip to main content

Posts

Showing posts with the label Tech Stuff

How to Install RustDesk on Your Synology NAS

RustDesk is a remote desktop software, the open source TeamViewer / AnyDesk alternative. You have full control of your data, with no concerns about security since it only sends data to a server that you setup. You can use a public rendezvous/relay server or self-host one. In this step by step guide I will show you how to install RustDesk on your Synology NAS using Docker and DSM 7.2 I've based a significant amount of this guide on https://drfrankenstein.co.uk guides. First, Follow the following 4 guides: Step 0: Docker, Memory Recommendations and Limitations Step 1: Directory Setup Guide Step 2: Setting up a restricted Docker user Step 3: Setting up a Docker Bridge Network Following these guides will give you a nice Docker folder structure, a restricted user to run your containers on (this is more secure) and a dedicated network for your containers. Lets Begin First we need to set up some folders for RustDesk to save its configuration files and also where the Project will save th...

Making Google Calendar a responsive embed with Mobile support

Google Calendar is amazing, but the embed code is pretty old.  They haven't updated it in many years. Since everything is Mobile First today, I needed a way to display better on cell phones. The following code does the following: Define a Responsive Cal types so that it uses 100% of the frame Define a DeskContent and a PhoneContent sizes (with a width of 768 being the switch point)  Wrap all of it in the Responsive Call Div so it all resizes automatically Display the Month view of the calendar if it's a desktop resolution Display the Agenda view of the calendar if it's a mobile resolution I've formatted this so that it can be placed inline in your HTML file. The first Embed should be your calendar code set to the Month view. The second Embed should be your calendar code set to the Agenda view.

Oxidized Quickstart

Oxidized is a "RANCID replacement" that has taken on a life of it's own.  Designed to automatically store, compare, and log configuration files from network based equipment. I've never used RANCID, or rConfig, or Sweet, but I wanted to more than a fileshare of all the latest configs of our devices, which is what we were doing. Oxidized the seemed the easiest to setup. Here is how I setup one up from scratch.

Changing IP address via Batch File

I frequently have to change the IP address on my laptop to access various network devices that I'm configuring. It wasn't so bad in Windows XP, but in Windows 7 it takes far to many clicks for something I'm doing around 10 times a day. So I decided to make a Script I could just click to allow me to set the IP

DIY Christmas Tree Watering System

My family loves having a live Christmas Tree every year.  What does a live tree need to stay alive?  Water! The Base I have for the Christmas Tree has a pretty good well in it, but with a live tree, it needs to be filled at least twice a day, and four or five times a day the first few days. For years, I've been using a dipstick / funnel combo to check the water level, and refill it without having to bend over and crawl under the tree. It worked really well, especially when I had presents under the tree. I've always wanted to purchase one of the external reservoirs, but I've never seen one that I've liked. This year we're leaving for the weekend a few weeks before Christmas, so I needed one to try to keep the tree alive. Read on to see how I made one.

Theoretical Speed vs Practical Throughput

A long time ago, I found this article , which had a great graph with the speeds depicted on it. I lost the graph in an office move, and took a long time to re-find it. Here is the graph I was looking for:

Creating a Self Signed Certificate for NPS for testing

Recently I had need to create a test RADIUS server, using NPS (Network Policy Server).  In order to create PEAP policies, you need a certificate issued to the NPS server. The correct way to put a certificate on the server is to Issue a real certificate to the NPS server from a real register such as Verisign, or Entrust. You can also issue a certificate from your own CA authority. Neither of these options are quick or easy. What if you just need a certificate to see if something works. Here's how to do that. First download from Microsoft the IIS 6.0 Resource kit tools . Included in this tool kit is SelfSSL.  A tool created by Microsoft to issue and install a self-signed SSL certificate. Launch SelfSSL from Start >Programs > IIS Resources > SelfSSL > SelfSSL (Note: You must run SelfSSL elevated as an Administrator) Type in the following command to generate a new certificate of key length 1024 with a validi...

Embed a Slideshow from Picasa Web / Google Plus

One of the great features of Picasa Web was that you could embed a Flash slideshow of your albums. Google would even give you the code to do it.  There was a button that said Embed and it would give you the code. Just cut and paste and you were done. With the migration to Google Plus Photos, this disappeared. Here's a work around. Use the following link to get back to the original PicasaWeb site. https://picasaweb.google.com/ lh/myphotos?noredirect=1 Hopefully the embed button makes a re-appearance, or Google leaves the old page up forever. *******UPDATE******* One of the commenters below posted this website. http://www.slidemypics.com/ It seems to work pretty good!

Revisiting Multi User Picasa on a single computer

Awhile ago, I wrote an article about having multiple users on a single computer using Picasa. I wrote it in 2008, after I had setup a new computer at my house. In all it worked fairly well, we never had any issues with it. It's been 5 years, and we've bought a new computer again.  I figured, it's been five years, Picasa MUST have some native functionality for this now? Nope. Nada. Zilch. I could do the same symlink thing, but while searching Google's forums for Picasa trying to see if they've added native support, I found a guy that had wrote a nice utility that does the symlinks. First, a little background on why I would want to do this. My wife and I both have our own accounts on the computer.  We like it because we can personalize the computer however we want, and not bother the other. Except this sucks when you have iTunes and Picasa, and you want to share them.  For iTunes , if you want to automatically have songs the other users downloads added to ...

Programming DHCP via NETSH

If you need to configure more than two subnets on a Windows 2008 R2 DHCP server (Or all versions later), doing via the GUI is a painful way to do it. Here's a simple cut and paste script that you can run via netsh that will make the subnets much quicker. Launch netsh from the command line, and paste this in: Replace 10.1.0.50 with your DHCP server, and 10.2.0.224 with your Scope's Network (check the subnet mask and the IP range)  Just repeat each section below for each subnet.  I find it easy to just use find and replace to make lots of these. Dhcp Server \\10.1.0.50 add scope 10.2.0.224 255.255.255.224 "Name of the Subnet" "Description of Subnet" Dhcp Server \\10.1.0.50 Scope 10.2.0.224 set state 1 Dhcp Server \\10.1.0.50 Scope 10.2.0.224 set delayoffer 0 # =============================================================== # Start Add Ipranges to the Scope 10.2.0.224, Server 10.1.0.50 # =============================...

WPAD does not resolve in DNS

At work, we're doing a POC (proof of concept) with a web-proxy, specifically Ironport Websecurity Appliance. Like most all proxies, you have to get the traffic from the client to the proxy. It supports transparent traffic redirection, but we're looking at using WPAD instead. However, when I created the WPAD DNS entry, it didn't resolve. C:\>ping wpad Ping request could not find host wpad. Please check the name and try again. C:\>nslookup wpad <DNSServer1> Server: <DNSServer1>.domain.net Address: <IPofDNSServer1> *** <DNSServer1>.domain.net can't find wpad: Non-existent domain This of course, is a big problem. It took a little investigating, but I found the cause. Windows Server 2008 introduced a new feature, called "Global Query Block list", which prevents some arbitrary machine from registering the DNS name of WPAD. This is a good security feature, as it prevents someone from just joining your network, and setting himsel...

Find Stale computer accounts in Active Directory

So it's inevitable that if you run Active Directory long enough, you will have "stale" accounts. Stale accounts are accounts that no-one is using anymore, be it because the user is no-longer employed, it was a shared account that no-one uses anymore, or people just forgot the account is there. Yes, Yes, you should have good practices in place to prevent this kind of account stagnation, but it happens. The easiest way to find accounts is to use DSQuery: dsquery user domainroot -name * -inactive 18 Which will display the distinguished names of all users in only the current domain who have been inactive for 120 days (17+ weeks rounded to 18 weeks) or more. But what about computer accounts? dsquery computer -inactive 8 -limit 0 Searches for computers that have been inactive (stale) for the number of weeks that you specify (in this case 8 weeks) and displays all entries (Default is 100) But what if you want pretty output ? Joeware has a nice little utilit...

Multi User Picasa

Just setup a new family computer, and I wanted to setup a different user account for both me and Rachel. One of the programs both of us use is Picasa, and of course we want to share the same photos (and reflect edits back to each other. This guy has some nifty tips on how to do that: http://www.paraesthesia.com/archive/2008/01/04/multi-user-picasa.aspx

ASDM error: Unconnected Sockets not Implemented

I was installing ASDM on a new machine at work, and was greeted with the following Error: ASDM is unable to continue loading. Click OK to exit from ASDM. Unconnected sockets not implemented. Thankfully, this gentleman had already had this particular grief, and had found the resolution: http://the-network-guy.blogspot.com/2008/10/asdm-error-unconnected-sockets-not.html Short answer, uninstall Java6 Update 10, and roll back to Java6 Update 7.

FreeRADIUS PEAP against Active Directory

*Note* This is very old, and very outdated.  I was going to remove it, but according to google, it's still searched very often.  So it stays. *Note* Ok, this is a work in progress. I defiantly have to clean this up, and reorder my thoughts, as well as test my installation. I know there are a few steps I did that I didn't write down This is a Paste from my initial notes. I'll work on it here live. Debian 802.1x PEAP authenticating against Active Directory, using FreeRADIUS First, get OpenSSL Then get libssl Ignore the freeRADIUS package.As of this writing, it’s freeRADIUS 1.0.1-2.Due to license restrictions, it cannot contain the binaries for OpenSSL. We have to use the source. Download the latest release of freeRADIUS.Hopefully when you read this, it will be freeRADIUS 1.1.x, and the rest of the document will be redundant, because these problems will be fixed. As of this writing, the current stable version is 1.0.2 Unzip freeRADIUS Tar –zxvf freeradius-1.0.2....