Make sure your BBB is connected (USB) and powered on
- Install Tight VNC
- Download Putty (you only need putty itself)
- In Putty: connect (SSH) to 192.168.7.2 port 22
- Login as 'root', no password
- Install & start VNC server (still in Putty):
- Type 'opkg install x11vnc'
- Type 'x11vnc -bg -o %HOME/.x11vnc.log.%VNCDISPLAY -auth /var/run/gdm/auth-for-gdm*/database -display :0'
- Connect to 192.168.7.2 in your VNC client.
You might encounter an error connecting in Putty, mentioning the server closed unexpectedly. Try running this code in cloud9 directly to your BBB:
var fs = require('fs');
var destroyed_key_file = '/etc/dropbear/dropbear_rsa_ host_key';
fs.readFile(destroyed_key_ file, function (err, data) {
if (err) throw err;
if( data===null || data.length===0 )
{
console.log("we have a corrupted host key file... try do delete it");
fs.unlink(destroyed_key_file, function (err) {
if (err) throw err;
console.log('successfully deleted ' + destroyed_key_file);
console.log('you should now reboot your beaglebone.');
console.log('the /etc/init.d/dropbear script will create a new rsa host key file for you.');
console.log('after the reboot you should be able to login over ssh');
});
} else {
console.log("it seems that you have another problem, sorry");
}
});
No comments:
Post a Comment