Code Blog

Displaying 1-3 of 3 results.
2017/06/30 MacOSX

I was thinking about playing a bit of Go online again but the popular Korean Tygem Go server only has software support for Windows OS. I could have run it in Windows Parallells for Mac in a virtual computer but I found this link describing how to run it directly in Mac OS via Wineskin.

It works well for me, I'm currently running Mac OS Sierra v. 10.12.5. Wineskin is a utility to manage Wine engine versions and create wrappers so it appears like a normal Mac application.

2017/06/09 MacOSX,Printers

I had to do this after each big update of MacOS (latest being MacOS Sierra), so it is quite annoying. However I managed to get the printer working again (its a really good printer btw).

Step 1: Delete the current Canon LBP2900 printer in Printers & Scanners settings
Step 2: Restart your Mac (I didn't do this last time, still worked)
Step 3: Download and install the latest Canon LBP2900 CAPT Printer Driver (version 3.90 as of 2017.06.09)
Step 4: Restart your Mac
Step 5: Download and install the Canon LBP2900 Patcher
Step 6: Restart your Mac
Step 7: Connect the printer with USB, add the LBP2900 printer and manually select the printer driver

Note: CAPT is Canon's proprietary Canon Advanced Printing Technology (CAPT) driver, supporting the Canon i-Sensys series of laser printers.

Note 2: The LBP2900 patcher is a small executable that adds printer definitions for the LBP2900 printer. If this is not done the system cannot find the suitable printer driver when adding the printer. The LBP2900 printer is not supported by the Canon CAPT driver (not sure why) but the very similar printer LBP3000 is supported, so the patcher adds similar printer definitions as LBP3000 for the LBP2900.

2017/06/05 Network

The GL-MT300A from GL.iNet is a tiny usb-powered router with pretty good hardware that comes with OpenWRT pre-installed and with GL-iNet's on GUI on top of OpenWRT.

WDS (Wireless Distribution System) is a protocol for extending the range of wireless router, so that a secondary layer of wireless routers can act as relays to the base wireless router. GL-MT300A comes with WDS support, but for this to work the base router must also support WDS.

Obviously the best way to extend a wireless network is by connecting them with ethernet cables (aka wireless multiple AP / roaming network). If this is not possible then WDS may be the only option available. It will come with a hefty performance penalty as the base router will have to half its bandwidth to communicate with clients and relay routers (in WDS static mode).

My base router is an Apple Airport Time Capsule so had to check what's available from Apple. Apple's website actually recommends "Wirelessly Extended Network" for newer routers supporting 802.11n (2.4 & 5GHz support, up to 600Mbps) and "WDS" for older routers that only have 802.11g (54Mbps). This is somewhat confusing but from another post online it seems Apple's terminology actually refers to two types of WDS - static and dynamic. The dynamic version supports the faster 802.11n wifi standard and will also not suffer as bad for the half duplex mode of communication between base and relay routers. 

Using OpenWRT there is also another way to set up wireless bridging and that is using "relayd" (pseudobridge). This works even if WDS is not supported on the base router. This is what I will be using for my GL-MT300A router.

Click on the "advanced" link in upper right corner to enter OpenWRT Luci interface. 

1. Install relayd and luci-proto-relay (GUI) packages.

2. Go to System -> Startup and find relayd in the list. Set relayd to enabled.

3. Go to Network->Interfaces, click "Add new interface".

4. Set the name of the new interface to for example "relaybridge", set proto type to be "Relay bridge", and then click "Submit".

5. In the detailed page of this interface set the IP address to the IP address assigned from the base router. For "Relay between networks" select both "Lan" and "Wan", then click "Save".

6. Next click on "LAN" tab on the top to edit Lan settings. Set the gateway to be your main router’s IP. Set
the DNS to be your main router’s DNS. Scroll down to the "DHCP Server" section, check
"Ignore Interface" and click "Save".

7. Go to Network -> Firewall, and click to edit the "Lan" zone. 

8. In "Covered networks" select "Wan", then click "Save".

9. In the top right corner, there is a notification saying "UNSAVED CHANGES"; click on it to enter a detailed listing of changes, then click “Save & Apply”. Now the changes are applied and hopefully the router will start working as a relay bridge.


Useful links:

How to flash the router firmware via Uboot Web UI / Debricking the router:

Firmware download location:

GL.iNet article - How to set up a repeater bridge 

GL.iNet PDF guide - How to set up a repeater bridge

OpenWRT article - Routed Client with relayd (Pseudobridge) 

Wireless Distribution System (Wikipedia)