For those not to familiar with SSH (had to do a bit of a refresher myself) here are step by step instructions to reset your Vera-Lite since it appears that the reset button is not working and the reset script (cmh_Reset.sh) is missing a small attribute that errors out. Special thanks to PurdueGuy for figuring out the error with the script in a previous post listed at the bottom.
1. Locate the Root Password.
On Vera Lite’s, the root password isn’t printed on the bottom. So you need to access to the ‘Tech Support’ settings. Depending on your UI version, this is either under the Advanced tab, the Settings tab, or the Account tab. But if you can not currently access these tabs since you are locked out of the UI you will have to wait till your Vera session times out. After it times out you should be presented with 3 clickable options, you will want to select the 3rd (Contact Tech Support). After clicking this you will be brought to new screen that will allow you to turn on remote access. There will be an ‘enable’ button. Click that to turn on the tech support service. You will see a message like this:
Tech support full control enabled, access code 3000000-436969
The first number is your serial number, which is always printed on the bottom. The second number is a temporary password created for a user called “remote”.
2. SSH into your Vera
If you are using a Windows machine you will need to download the PuTTY tool to be able to use SSH. It can be found at: [url=http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html]http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html[/url]
After installation use the following configuration to access your Vera;
A. Under type the IP address of your Vera (for example: 192.168.1.24), leave Port number 22 alone, if needed, change connection type to SSH (default) and click .
B. At Login type: ‘remote’
C. Instead of using the normal password, use that temporary password, 436969 in this case. Once you have gotten in to the console, you will need to retrive the actual root password using this command: nvram show | grep pass
D. You’ll see something like this:
root@MiOS_30000000:~# nvram show | grep pass vera_wifipass=shade83forest
So in this case, shade83forest, is the actual root password. Write it down, and disconnect from the Vera.
E. Login as ‘root’ and use the password obtained from step D. The temporary password for the remote user will only be valid for 24 hours or until you click ‘Disable it’ on the tech support page.
3. Update Vera Reset Script
After logging in type:
vi /usr/bin/cmh_Reset.sh
Once the file loads within the command prompt, press “i” to enter “insert mode” so you can type and copy/paste. Use the down arrow key to move to line 74 within the file. Update line 74 to look like the “New Line” listed below - note you will be adding in dropbear.
OLD line:
[code]ps ax | grep -vE 'Command|init|\[[a-z]|kill|ps|ash|cmh_Reset|upgrade|mtd|\[loop.+\]|klogd|syslogd' | awk '{ print $1 }' | grep -v PID | xargs kill -KILL[/code]
NEW line:
ps ax | grep -vE 'Command|init|\[[a-z]|dropbear|kill|ps|ash|cmh_Reset|upgrade|mtd|\[loop.+\]|klogd|syslogd' | awk '{ print $1 }' | grep -v PID | xargs kill -KILL
Once you have completed the update press “Esc” to exit “insert mode” when you are done modifying the file. Type “:wq” to save and quit.
4. Factory Reset your Vera-Lite
Now type the following command into the command prompt and wait 5 minutes and your Vera should be back up and running:
/usr/bin/cmh_Reset.sh all
Resources:
Step 1&2 - [url=http://wiki.micasaverde.com/index.php/Logon_Vera_SSH]http://wiki.micasaverde.com/index.php/Logon_Vera_SSH[/url]
Step 3 (PurdueGuy) - [url=http://forum.micasaverde.com/index.php/topic,10382.msg71475.html#msg71475]http://forum.micasaverde.com/index.php/topic,10382.msg71475.html#msg71475[/url]