Remote connection to Raspbian for Robots?

Sorry, I thought you were talking about Raspbian For Robots. I don’t believe there is SSH access to DexterOS.

1 Like

Just did that with both my recent questions.

Quote from the Borg: Resistance is futile - you will be assimilated!

I just hope and pray that Dexter doesn’t completely dissolve. The fact that Dexter’s CEO “retired”, (translation: invited to leave), is not a good sign. I’ve been on “the short end” of a “merger of equals” too many times for any kind of hope for Dexter’s ultimate fate.

1 Like

No, there is SSH for DexterOS. It’s the “ssh.txt” (or maybe just “ssh”) touched inside the root directory. That’s an “on the down-low” trick for DexterOS that someone, (cleoqc?), mentioned way back when I was just cutting my teeth on this beastie. Now, instead of just cutting my teeth, it’s developed into a full-blown BD/SM experience! :crazy_face: :flushed:

I’d never heard of this for Raspbian for Robots - everything I read made me believe that Raspbian for Robots was, (supposed to be), working as installed and/or after raspi-config.

As Cleoqc has said before, Raspbian for Robots is a “Dexter Industries” bolt-on for stock Raspbian. In fact, you can install it into a Raspbian image yourself.

In defense of sensibility, the farther a user gets from downloading either the DexterOS sd image, or the Raspbian For Robots version of Stretch sd image, the less likely it is possible for DI folk to be able to “support” a user.

When we start talking about what is possible, it is quite possible to leave the safety of the herd.

1 Like

Sorry if I mis-spoke.

What I was trying to mention is that - unlike DexterOS - Raspbian for Robots is (essentially) stock Raspbian with a few bolt-ons, as far as I understand. Therefore, there should not need to be a /boot hack for SSH. Of course, “should not” is the operative phrase here. :wink:

I booted up Charlie with a monitor, keyboard and mouse and checked raspi-config. Camera, SSH, VNC, i2c, serial, spi, and the Kitchen Sink are all enabled. I’m getting ready to give Charlie a static IP for both eth0 and wlan0

Back again with more news:

  1. The “touch ssh” hack in the root directory is not necessary in Raspbian for Robots. However, being on the same wireless network instead of my open “guest network” IS. (facepalm)

  2. noVNC does NOT work for me - well, sort-of doesn’t work. . .
    I can “connect” to a noVNC web page at :8001, but it “failed to connect to server”, and there appears to be nothing I can do about it. Since the VNC included with the 'bot is a spin-off of the payware Real VNC, maybe you need an account?

  3. I really don’t like the idea of two different things trying to run the same (kind of) service at the same time. Like two AV programs, or two web servers, etc. - it seems like the fast boat to disaster. How would I go about disabling the stock server if I set up tightvnc?

That’s what you see when you change the password from Robots1234 - If you look at the URL the password is right in there - There should be a Connect button in the middle of the page, click it and the noVNC will ask for your password - enter your pi user password.

1 Like

YOU probably should not. And the flask server would still be serving the web console.

I believe this stops (persistently) the novnc.service but I really haven’t a clue if this is the “proper” way to turn it off.

Use at your own risk

sudo systemctl stop novnc 

And to restart it:

sudo systemctl start novnc
1 Like

This is getting weird!

  1. I ditched the “realvnc” server that comes pre-installed and installed tightvncserver and tightvnc-java. (Realvnc got ditched automagically by apt.)

  2. Running “tightvncserver” for the first time, as root, (running it as a non-root user is about as useful as Teats on a Boar Hog!), it asked me for a password - which I supplied - and declined to create a view-only password. Note that the password I created was NOT “robots1234”.

  3. Since I already have it - I tried Windows Remote Desktop - which fails miserably.

  4. I wasn’t sure if the “noVNC” stuff would work because I ditched the RealVNC program, so I tried it again.
    What is interesting is that when I put in my bot’s IP address, it “automagically” filled in a whole bunch of URL, password, etc. Viz.:
    http://172.31.100.20:8001/vnc.html?host=172.31.100.20&port=8001&autoconnect=true&password=robots1234&scaleViewport=true

Where did all THIS come from?!!

It DID connect, using the “default” password, not the one I specified. Interesting, but I’m still wondering what’s going on. If there’s one thing I hate in computers, it’s “magic”. I’d much rather know what the bejesus is going on and why.

Update: A thought. . .
During installation and initial config, a lot of automatic configuration stuff happened and it went by faster than I could read. (I’ll have to go find the …/vnc directory and look for the logs.) I have a sneaking suspicion that it “auto-configured” itself to “auto-connect” via the noVNC client.

A “P.S.”
I dropped the “ssh” and “ssh.txt” files in /boot and re "/boot"ed the system. Upon reboot, both of the “ssh” files were gone! (Shaking head)

I would have thought that, but it never did. Oh, and I never changed the password for the stock VNC server.

P.S.
Is there a way, using these fora, to subscribe to “your” postings? Your stuff is usually very interesting and I enjoy wandering around to find another one of your “easter egg” postings hidden away somewhere.

Yes, that is the expected behavior - SSH is enabled after the file gets eaten.

2 Likes

No follow feature, but if you click on Carl’s picture, a pop-up will appear - if you click on Carl’s picture in the popup, my profile appears with an “Activity” tab that lists every post, reply I have ever made … boring!

I think I’m overly obsessed

1 Like

Boring to YOU, maybe. . . I find your postings fascinating!

I learn more from you in ten minutes than three days spent perusing the “official” documentation! Carl is, (apparently), a kind and benevolent master and he has taught me a lot.

2 Likes

BTW, looking at your profile, it mentions that you live in West Palm Beach, Fl.

Hot Damn! I’m going to be bringing the granddaughters over to see Disney World, (Epcot, Universal Studios, etc. etc. etc.) and (if you don’t mind), maybe I could meet Carl in person?

I’ve spent a fair amount of time in Fl, in the past, (used to have a timeshare in Daytona on the beach), and I’ve probably driven past you at least a dozen times. . . .

Sure, the wife has been pestering me to get off the computer and visit the Orlando wetlands for some birding, my other obsession.

1 Like

(Laughing!)
That sounds soooo familiar!

Birding? Only if I can bring my camera. Not really National Geographic material, but I get lucky occasionally.

Hey! I’m not that stupid!

I’ve been messing with this stuff for awhile at least. And I can start/stop services without completely nuking my system :wink:

Unix joke:
In a previous job, just after 9/11, a programmer put “rm -r /bin/laden” on his whiteboard. I saw it and told him he goofed. I changed it to “rm -R /bin/laden” and he almost peed himself laughing!

On the systems we were using, the difference between -r and -R was that “-r” stood for “recursive” whereas “-R” meant “recursive, follow all links, including symlinks, (recursively!) even if the target of the link is on a different file system”!

1 Like

I’m not too sure what your exact situation is right now.

By default, Raspbian for Robots has tightvncserver enabled, SSH is open, and noVNC is running.
If you attempted to install realVNC it might have broken quite a few things.

As an aside, R4R Buster now runs on realVNC.

1 Like

Also, I used to winter in Treasure Island, near St Pete Beach. :slight_smile:

2 Likes