maxnet / berryboot

Berryboot -- Boot menu / OS installer
http://www.berryboot.com/
Other
805 stars 133 forks source link

Headless VNC server does not work #396

Open oiskenny opened 7 years ago

oiskenny commented 7 years ago

Hello,

I am trying to get a wired headless bootberry working - I have tried both a PI2 and PI3 - no luck. I have used the download from the website, unzipped to SD and appended the following to cmdline.txt vncinstall ipv4=192.168.1.99/255.255.255.0/192.168.1.1

The Pi boots into bootberry fine, but it takes an IP address from DHCP (not the 192.168.1.99) and then does not respond to VNC connections in Tight VNC "no connection could be made....actively refused" Is a change to the cmdline.txt needed? Thank you so much.

oiskenny commented 7 years ago

Just tried to continue without VNC, seems oto be not saving anything to the SDcard...I installed an OS setup all my settings, rebooted and I'm back to square one. Is there something wrong with the image on the website currently?

maxnet commented 7 years ago

Image is fine. Suggest you zero out your SD card and retry.

oiskenny commented 7 years ago

ok, thanks Hmm.....I have tried two seperate cards but I used a program called SDFormatter to format them in both cases, I'll try another way to format. Any reccomendations?

coderxx commented 7 years ago

Try using Etcher or Rufus on Windows. Most websites reccommend Win32 Disk Imager. Check the SHASUMS of your download to make sure the download is not getting corrupted.

MalibuKoKo commented 7 years ago

Hi,

I have the same issue, i used the following tutorials:

I adapted the settings to my network , I tried with the wired & wireless configuration ( i create a file named "wpa_supplicant.conf" near cmdline.txt ) and I tried multiple vnc clients like vncviewer, Remmina & SSVNC.

I don't have DHCP server (In fact it is my Pi which acts as a DHCP / DNS server via dnsmasq service under a docker) and especially I can not ping my Pi during boot.

Any suggestion ?

Many thanks.

coderxx commented 7 years ago

@MalibuKoKo @oiskenny - Have you guys tried connecting keyboard display mouse to your pi directly and running raspi-config. Enable SSH and VNC there.

oiskenny commented 7 years ago

@coderxx - I actually intended to do that (had a keyboard/display hooked up). I was not able to find a way to go the the command prompt. Can I somehow exit the Bootberry GUI? (I have not yet had time to try bootberry with another SDcard formatted in another way)

coderxx commented 7 years ago

@oiskenny Redo the entire SD format process through Win32Disk Imager and afterwards, create an empty file on your SD Card called ssh without any extension. This file should be placed at the root directory and not inside any folder.

This will enable SSH access. Try logging in with this method and update your experience here. For any further issues, I suggest you first post at https://raspberrypi.stackexchange.com/

Zownax commented 7 years ago

Same issue for me, tried with different SD Cards and software for formatting, the Rpi3 gets internet and the AP's DHCP assigns it an IP different than the one written in cmdline.txt, tried to force mapping the MAC address in the router to the written IP in the cmdline.txt with no succeed in helping to connect with the Vnc, it still say connection refused. I am aware of the configuration for the VNCs etc..

Im going to try the SSH access to force installing Vnc and then try as @coderxx said. I'm also going to try the whole process from macOS and maybe with "dd" to be sure everything gets written on the SD Card.... if anyone solved it please say, thank you in advance. Will write back if anything works and this still open.

SOLVED HERE:

What I've done is to use the microSD Card to SD Card adapter, and use the SD Card port of my Macbook Pro instead of the USB microSD adapter (USB microSD adapter creates stealth folders when formatting in macOS becouse it's recognised as a USB "I think that's why it won't work").

When using the microSD adapter (not the USB microSD adapter..) on the MBP SD port it shows up as a SD Card ICON, next steps are just going to Disk Utility macOS app Select the inserted SD card (be sure to choose the correct one to format), hit "Erase," and for the file format, select "MS-DOS FAT," and click "Erase" again. Then unzip the Berryboot files and change the cmdline.txt to whatever you need, see here. After that I used tightVNC from my Windows 10 machine to connect into berryboot and it worked.

I haven't tried to do the same with the SDcard adapter in my Windows 10 machine, it might work too.

PD: for the IP, I've mapped the main AP (modem/router) to assign an specific IP for the RaspberryPi MAC address. I haven't tried to fight against DHCP (keeping default config without mapping IP at MAC adress) but it should work without doing this, I write it here too for anyone to debug other possible problems.