Month: September 2008

How-To: Crack Open a WRT54G Router

How-To: Crack Open a WRT54G Router

My main goal here is not exactly to just crack open a Linksys WRT54G. As a more noble reason, the real plan is to make an outdoor wireless using consumer-grade (read: cheap) readily-available access points to be used for one of my deployments.

If you are looking for a more descriptive or more technical how-to on the subject, this one from TechRepublic may be a better option. My post is more of a personal account of my achievement for the day — when i’m supposed to do VHDL and not this, haha! Plus, i’m not a good teacher, ain’t I? It’s also been years since i posted wireless stuff around here, it’s just time to break the ice.

Read More Read More

How-To: NCVHDL Compile Problem

How-To: NCVHDL Compile Problem

Heya! I’m back to acad mode BUT only for a day or two. It’s been a whole month since i last touched this tool, and when i came back, the compiled files were changed..

Here’s the error when compiling:
ncvhdl_p: *F,DLUNNE: Can’t find STANDARD at $LOCATION/ius53/tools/inca/files/STD

Not sure what happened with the server.. but all standard libraries doesn’t show up in the NcLaunch window pane. It does seem like they are not compiled.

Solution:
Locate the install script. Usually it’s in $INSTALL_DIR/ius53/tools.lnx86/inca/files/install.
Then run ncvhdl.ins (or ncvlog.ins, whichever’s appropriate).
Double check using the command “ncls -lib STD”

You should see something like:

ncls: 05.30-s008: (c) Copyright 1995-2004 Cadence Design Systems, Inc.
package STD.STANDARD (AST)
package STD.STANDARD (COD) <0x6ca7fa36>
package STD.TEXTIO (AST)
package STD.TEXTIO (COD) <0x6ca7fa36>
package body STD.TEXTIO:BODY (AST)
package body STD.TEXTIO:BODY (COD) <0x6ca7fa36>

However, if this shows up, then it’s not yet installed or was not installed properly. (Note: you can also use the command before installation, just to check…)

ncls: *E,NOROPN: cannot open logfile ‘ncls.log’.
ncls: 05.30-s008: (c) Copyright 1995-2004 Cadence Design Systems, Inc.
ncls: *W,NOMTCH: No matching object found for ‘STD’.

How-To: MAMP Password and Hibernate Mode

How-To: MAMP Password and Hibernate Mode

Here are some resolved issues i had a while back (early August to be specific), which i again failed to post in an attempt to post more content, but now i’m forced to just post rather than deleting. I know it might be useful sometime soon. Haha, oh well…

(1) MBP won’t wake from sleep. This problem happens at random. Just when i have too many open applications …

Solution: Turn off safe sleep.

pmset -g | grep hibernatemode
sudo pmset -a hibernatemode 0

*note: I’m not sure yet what those hibernatemode values stand for.

(2) MAMP password

/Applications/MAMP/bin/mysql4/bin/mysqladmin -u root -p password NEWPASSWORD

Edit the ff. files:

  • ‘/Applications/MAMP/bin/phpMyAdmin-X.X.X/config.inc.php’

$cfg[‘Servers’][$i][‘password’] = ‘root’;

  • /Applications/MAMP/bin/mamp/index.php

$link = @mysql_connect(’:/Applications/MAMP/tmp/mysql/mysql.sock’, ‘root’, ‘root’);

  • ‘/Applications/MAMP/bin/stopMysql.sh’

# /bin/sh
/Applications/MAMP/bin/mysql4/bin/mysqladmin -u root -proot –socket=/Applications/MAMP/tmp/mysql/mysql.sock shutdown

(3) SSH

I added a startup item for the named service on a Mac server then reboot (/Library/StartupItems). After that, i can’t connect via ssh to the server. So VNC instead.

  • Check if ssh is running.

root> ps ax | grep ssh
SSH daemon path: /usr/sbin/sshd -i

  • Try ssh to localhost. ~still not working

ssh [email protected]

  • Run ssh. Check ssh version. Check hash/md5.

ssh -v
md5 ssh

  • Run ssh daemon in debug mode.

sshd -d

  • Disable or turn off Remote Login. Reboot.
  • Enable Remote Login.

This last two steps did it for me.. not sure what, why or how it happened. What a perfect way to tease me as the clock is ticking to 5pm and a long weekend is up ahead!

🙂