Reverse Engineering Synology's OpenSSH

Trying to use a non-standard shell in your Synology DS212+ NAS may be an exercise of frustration. I’m a bash-lover, and have a bunch of scripts to automate backups, so I wanted to set up default shell to /bin/bash. It worked well with root, but when a regular user tries to log in, the connection is terminated with “Permission denied, please try again.”. Weird. Maybe /etc/shells? Nops. Maybe sshd_config? No. PAM modules, then? Also not. I even tried compiling bash from source (which took me a full day, just to get ARM GCC to cross compile properly). Nada. ...

January 21, 2013

Lessig Blog, v2: Prosecutor as bully

(Some will say this is not the time. I disagree. This is the time when every mixed emotion needs to find voice.) Since his arrest in January, 2011, I have known more about the events that began this spiral than I have wanted to know. Aaron consulted me as a friend and lawyer. He… Continue reading: Lessig Blog, v2: Prosecutor as Bully Photo credit: Boston Wiki Meetup, by ragesoss on Flickr ...

January 13, 2013

Synology's "secret" telnet password

If you have a Synology NAS and had some sort of disk crash in the past, you’ve probably encountered the famous “Cannot format system partition” and “Please configure your router to forward port 23 to DiskStation and contact Synology online support”. Yeah, it sucks. It sucks even more when you know the disk is perfectly fine, and you still have hopes to recover your data. Or you simply don’t like the idea of having your port 23 open to the world for god-knows-how-long until a Synology tech support can look into your case. ...

December 8, 2012

Recovering a Failed Synology Diskstation with a Serial Console

I thought I’d post this here for anyone looking for help on troubleshooting a failed Synology Diskstation NAS. I’ve been a happy user of a Synology DS-212+. The software is robust and much better than my old DroboFS, and the fact that it is entirely open source is a big plus. I recently upgraded the firmware to DSM 2661. Everything worked fine. For 12 hours. The next morning, the device was dead, with the blue blink of death). ...

December 2, 2012

Glitch is closing. Here's why.

Glitch, the beautiful massive multiplayer game with a pixel-perfect design, announced that they’ll be closing doors soon. It’s sad to see so much work and love going nowhere. At least they were classy and wrote a candid and honest shutting-down post, and they’re even refunding users (!). That’s a level of integrity that you don’t see everyday in the startup world. If you’ve never played Glitch, it’s now too late. The game world is now restricted to existing users, and everything will shut down on December 9th 2012. Here’s some videos to give you an idea of what you missed. ...

November 16, 2012

FileZilla configuration across multiple computers

FileZilla is great, but the default configuration is to save all configuration files & sites to local folders. Here’s an elegant solution to change the default directory. Just copy fzdefaults.xml.example from [FileZilla's install dir]/docs and place it in: Linux/BSD: ~/.filezilla Mac OSX: Contents/SharedSupport/ Windows: put in same directory as filezilla.exe Alternatively you can also point to a shared folder on Dropbox, and share your config and sites across multiple computers. Just make sure you have a strong password on Dropbox, for obvious reasons. ...

November 12, 2012

Machine Learning @ Coursera

I just finished Coursera’s Machine Learning class. I did OK the first time, but wasn’t sure about some concepts, so decided to do it again. It was much easier the second time. If you’re interested in machine learning and collective intelligence, this is a great course. I can’t post the code, but would be glad to help if you have any questions. Prof. Andrew Ng did an awesome job, and it’s great to see his success with Coursera. ...

November 5, 2012

Syncing Sublime Text 2 Settings via Dropbox

I migrated to Sublime Text 2 a while ago, and not looking back. It’s by far the best editor I’ve ever used. Its packaging system is simple and efficient. But one thing that annoys me is the lack of synchronization across different computers. Not anymore. The solution is rather simple. You can just move three directories – Packages, Installed Packages, Pristine Packages – to your Dropbox, create a symbolic link for each directory (ln on Linux/OSX, mklink /d on Windows), and your packages will always be perfectly in sync across multiple computers - even using different platforms. ...

October 28, 2012

Fix ALL CAPS MENUS on Visual Studio 2012

So you just installed Visual Studio 2012 and the first thing you notice is that Microsoft now has ALL CAPS MENUS everywhere! Well, not sure about you, but I want my ProperCase menus back. Luckily there’s an easy solution (for now): Hit Win + R and enter: If you’re running Visual Studio Express 2012 for Windows Desktop: REG ADD HKEY_CURRENT_USER\Software\Microsoft\WDExpress\11.0\General /v SuppressUppercaseConversion /d 1 /t REG_DWORD If you’re running Visual Studio 2012: REG ADD HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\General /v SuppressUppercaseConversion /d 1 /t REG_DWORD If you’re running Visual Studio Express 2012 for Web: REG ADD HKEY_CURRENT_USER\Software\Microsoft\VWDExpress\11.0\General /v SuppressUppercaseConversion /d 1 /t REG_DWORD Voilà! Of course you can also use RegEdit.exe, if you prefer to adjust manually. Just navigate to the registry key above and add a DWORD for SupressUppercaseConversion, with value 1. ...

October 20, 2012

EW-7811Un wireless adapter on Raspberry Pi

After upgrading my Raspberry Pi Wheezy to the latest kernel 3.2.27+, my wireless adapter EW-7811Un stopped working. Here’s the fix: su - root mkdir ~/drivers cd ~/drivers wget http://dl.dropbox.com/u/80256631/8192cu-latest.tar.gz tar zxvf 8192cu-latest.tar.gz cd 8192cu-latest install -p -m 644 8192cu.ko /lib/modules/3.2.27+/kernel/drivers/net/wireless depmod -a cat <<EOF >> /etc/modprobe.d/blacklist.conf blacklist rtl8192cu EOF cat <<EOF >> /etc/modules 8192cu EOF shutdown -r now After reboot you should have wlan0. You may need to configure your wireless network if you didn’t so already, by editing /etc/network/interface. Recommended that you use wpa_passphrase to generate your encrypted wifi password: ...

September 16, 2012