rigbetellabs / tortoisebot

TortoiseBot is an extremely learner-friendly and cost-efficient ROS-based Open-sourced Mobile Robot that is capable of doing Teleoperation, Manual as well as Autonomous Mapping, Navigation, Simulation, etc.
112 stars 39 forks source link

Tortoisebot/Raspberry credentials #18

Closed KarthiAru closed 6 months ago

KarthiAru commented 6 months ago

Hi! I got my tortoisebot today and I've reached the step where I got the bot connected to wifi. Now, how do I connect to it from my ubuntu laptop? What are the credentials to connect via VNC or ssh?

Ashish080213 commented 6 months ago

@KarthiAru try login id: tortoisebot password: raspberry

KarthiAru commented 6 months ago

I updated the sshd_config file to enable public-key authentication instead of password authentication. I also installed tightvnc on raspberry to connect from the laptop.

Ashish080213 commented 6 months ago

@KarthiAru Did you try RealVNC Viewer?

KarthiAru commented 6 months ago

@KarthiAru Did you try RealVNC Viewer?

Yes, I used the realvnc client from the laptop

Ashish080213 commented 6 months ago

@KarthiAru Did you try that without using any HDMI cable? if yes then are you able to use realvnc without any error? I have an issue that its showing "Cannot currently show the display". But if I connect the raspi to the monitor using HDMI cable and if I connect realvnc using my laptop its working fine.

Ashish080213 commented 6 months ago

what OS are you using in raspi?

KarthiAru commented 6 months ago

what OS are you using in raspi?

Ubuntu 20.04

KarthiAru commented 6 months ago

@KarthiAru Did you try that without using any HDMI cable? if yes then are you able to use realvnc without any error? I have an issue that its showing "Cannot currently show the display". But if I connect the raspi to the monitor using HDMI cable and if I connect realvnc using my laptop its working fine.

Yes, I'm able to view the raspi desktop without issues. I didn't use any HDMI cables.

These are the steps I followed to set it up.

  1. Update VNC server settings
    tortoisebot@ubuntu:~/.vnc$ pwd
    /home/tortoisebot/.vnc
    tortoisebot@ubuntu:~/.vnc$ sudo nano xstartup
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
  1. Start VNC server

    tortoisebot@ubuntu:~$ tightvncserver
    New 'X' desktop is ubuntu:2
    Starting applications specified in /home/tortoisebot/.vnc/xstartup
    Log file is /home/tortoisebot/.vnc/ubuntu:2.log
  2. SSH connection with port forwarding in a new terminal ssh -L 5902:localhost:5902 -vNC tortoisebot@192.168.0.123

If New 'X' desktop is ubuntu:1, then port is 5901 If New 'X' desktop is ubuntu:2, then port is 5902 and so on

  1. Open the VNC client and connect to server using localhost:5902
Ashish080213 commented 6 months ago

@KarthiAru followed all the steps but its showing blank screen Screenshot from 2024-04-20 17-55-35