Musings of a programmer, father, husband and geek. (Sounds like the beginning of a bad joke)
Tuesday, August 17, 2010
Use Sandwich Bags to Untangle your Cords
Each cable now is in its own individual sandwich baggy. All of the cables fit into that bin and take up about 1/4th the size they previously did. You could use twist ties or Velcro instead but I had neither of those. This is also a good idea if you are moving and you can label or write on the bag to more easily identify the cable.
Anyone else have any cable management tips? Those Velcro cable ties work wonders on in-use cables. I can never seem to optimally route my desktop cables both inside and outside.
Sunday, August 15, 2010
Setting up SSH on your Wireless Router with DD-WRT
The Ideal Solution
After doing some quick research, I learned I could install new firmware on my router from an open source project called "DD-WRT". DD-WRT has at least all the features I took advantage of on my router (port forwarding, upnp, web interface). It also had the feature I wanted, an ssh server daemon. It is an open source project based on Linux. You can check to see if your router hardware is supported here.Note: Flashing your router with new firmware can result in it no longer working! I won't be held responsible by anything you do to your router and you should be confident before attempting anything recommended here!
The nice thing about the DIR-615 is that it provides a web interface for updating your firmware. This is also a means to easily install DD-WRT. Just download the firmware file and upload it via the web interface. These are the instructions I used. Remember to check your hardware revision (letter) because it might be different and cause problems. The main DD-WRT router hardware page should tell you what is compatible. I was actually surprised at how easy everything was to setup. The only gotcha with the firmware upgrade was using IE instead of Chrome for the upload. Also, I put my router into a reduced state by holding the reset button until the Internet light flashed on the front. This will reset everything(including admin password) and make sure the router isn't too busy to complete the update. Always wire in when doing the upgrade since it will reset the wireless settings! Don't forget to download everything you need including instructions before starting since you might not have Internet access afterwards! Download your router's original firmware and know how to restore before starting as well. If you need Internet, reroute your cable modem to your computer instead of through your router. Don't attempt on borrowed or rented hardware!
After the firmware update, your router will now be accessible from http://192.168.1.1 since its IP is changed. Set your wired settings to use the 192.168.1.* subnet in order to see it. That url should bring up the following:
This is the router's info screen. At some point the router will ask you to make an admin username and password.
To get SSH working, I reviewed the following Wiki pages:
http://www.dd-wrt.com/wiki/index.php/SSH_access_from_internet
http://www.dd-wrt.com/wiki/index.php/Easy_SSH_tunnels
http://www.dd-wrt.com/wiki/index.php/Telnet/SSH_and_the_Command_Line
If you are lazy [Note: you are responsible for your own security]:
- Navigate to Services -> Services
- Scroll down to Secure Shell
- Turn on SSHd
- Turn on SSH TCP Forwarding
- Enable password login or provide public keys for login (if you don't know, just go with password)
- Give it a port
- Navigate to Administration -> Management
- Scroll down to Remote Access
- Turn on SSH Management
- Give SSH a port to run on
- For my ports I use 443 since 443 is usually open in firewalls and represents encrypted https traffic
- Setup a Dynamic DNS service on the router or a pc (Setup -> DDNS)
- You can't enable https for the web GUI since it will use port 443. Give your SSHd a different port to run on and then you can use https
- You can only have one user if using password login and that user is "root" with admin password
- I use Putty Tray as my ssh client because it is powerful and minimizes to the system tray.
Other Things to Do With Your Router
Enable Remote Access -> Web GUI Management
This is useful for performing maintenance remotely or rebooting your router. Especially nice if you won't have anyone to help your troubleshoot your router while you are away or if those people aren't tech savvy.Setup static IPs for your computers
Leave your computers as DHCP and setup the DHCP server on the router to associate a specific MAC address with a specific IP address. Use these IPs in your port and firewall rules.Setup a PPTP VPN
This should let you use Window's to connect your your home VPN without any computers running the VPN server.Add a second way to connect to your wireless
This tutorial might get you started.Some other things you can do with this:
- Create a temporary wireless point for guests with a different password.
- Create an access point using a less secure encryption but set access restrictions.
- Create a public wireless network but with lower signal so only in-house guests can access the wireless
- Create a public wireless network but make it ad supported using the other DD-WRT services such as Chilispot, WifiDog, or AnchorFree under Services->Hotspot or Services->My Ad Network
- User DD-WRT to provide a wirelss hotspot for customers but a private network for your business
Bridge two different LANs with wireless or Add a wireless repeater
This is good if you have a computer in a different part of the house without wireless and you have a spare router r have a big house.http://www.dd-wrt.com/wiki/index.php/Linking_Routers
Run a VoIP PBX via Asterisk on your router
Watch out, this is tricky!http://www.dd-wrt.com/wiki/index.php/Asterisk
Add network storage via SMB or FTP
Only if you have a USB port in your routerhttp://www.dd-wrt.com/wiki/index.php/USB_storage
Block websites, time restrict access to certain websites
Stop yourself from playing too much farmvilleLeft as an exercise for the reader.
Many, many more ideas
http://www.dd-wrt.com/wiki/index.php/TutorialsRemember, some things your router might need more memory or specific hardware that you don't have. I know my router doesn't support jffs so that prevents me from doing some things.
Let me know what project you decide to undertake.
Sunday, August 8, 2010
#GoneGoogle - Letting Go
I originally micro-blogged about staring to use Google on my twitter @MatthewMMorrow but here is a some more.
The first part of this series: #GoneGoogle - Taking off into the Cloud
Browser
I have been using Internet Explorer as my browser of choice since IE was indistinguishable from Netscape Navigator and Microsoft made it the Window’s default. At times I’ve fervently defended the browser and dreamed of the next version. At work I still use IE but that is mostly for development reasons.
As part of my Google experience, I decided to test out Google Chrome [Get Chrome]. For some reason IE was giving me some speed problems and so I figured it was as good of a time as any. I had dabbled with Chrome when it first came out; it was nice, fast, and sleek, but it didn’t quite grab me then. This time my experience was different.
The install process for Chrome is smart. It installs itself to your user application data directory. This means you don’t need administrator access to perform the install. The install is little more than going to a specific link. Later on I switched to the Dev channel [how to switch] to get the newest features and again it automatically changed itself just by visiting a webpage. Chrome also keeps itself up-to-date. No more multiple versions to support (curse you IE6, die already).
This isn’t going to be a review of Chrome, try it out for yourself if you want one. But instead I’ll focus on the neat features and extensions that I use.
The first feature I appreciate is syncing. I can sync bookmarks, settings, and extensions between my laptops and desktops. Currently extensions are only able to be synced in the Dev channel [Lifehacker].
Feature #2 is tab pinning. Not terribly useful all the time but it helps me keep where I left off.
Feature #3 are all the extension I use. There is a better collection than those available for IE.
Here are the extension I use:
- Google Mail Checker Plus - https://chrome.google.com/extensions/detail/gffjhibehnempbkeheiccaincokdjbfe
- Google Calendar Checker w/Popup - https://chrome.google.com/extensions/detail/eaipgbekceebhbboemgghnjhnamflgmp
- Google Reader Notifier - https://chrome.google.com/extensions/detail/apflmjolhbonpkbkooiamcnenbmbjcbf
- Toodledo - https://chrome.google.com/extensions/detail/ballhmoamkbbfadiealjmgmhbbnellbc
- Google Voice - https://chrome.google.com/extensions/detail/kcnhkahnjcbndmmehfkdnkjomaanaooo
- Chromed Bird – Twitter Client - https://chrome.google.com/extensions/detail/encaiiljifbdbjlphpgpiimidegddhic
- Craigslist Preview – Adds the images of the listings to the search page. Saves time! - https://chrome.google.com/extensions/detail/jmcbgcbedienblgnfeecolmmcgocefnf
- Facebook Ads Hider - https://chrome.google.com/extensions/detail/leeebdddeggoocipdjiokmjcpidnmoah
- Facebook for Google Chrome – Easy notification and wall updates - https://chrome.google.com/extensions/detail/lkdedmbpkaiahjjibfdmpoefffnbdkli
- Google Quick Scroll – This is awesome, click it and it will jump to the text you searched in Google - https://chrome.google.com/extensions/detail/okanipcmceoeemlbjnmnbdibhgpbllgc
- Good Habits – Keep track of your habits - https://chrome.google.com/extensions/detail/eoeffklnhhikjcgnehoglndikmidlgca
- Pirate Bay Ad Remover – Of course - https://chrome.google.com/extensions/detail/hkggcdanhcfibkhpfiogkoaodjalekcc
- RSS Subscription Extension – Lets me add RSS feeds to Google Reader - https://chrome.google.com/extensions/detail/nlbjncdgjeocebhnmkbbbdekmmmcbfjd Anyone have any others they like?