Go to advanced search

by Bosse_B
Wed Jul 17, 2019 12:01 pm
Forum: General discussion
Topic: Complete description of vcgencmd anywhere?
Replies: 6
Views: 291

Re: Complete description of vcgencmd anywhere?

jamesh wrote:
Wed Jul 17, 2019 9:20 am
What do you want to know?
I would like to check all of the available commands but most require an unknown argument...
by Bosse_B
Mon Jul 15, 2019 3:52 pm
Forum: General discussion
Topic: Complete description of vcgencmd anywhere?
Replies: 6
Views: 291

Re: Complete description of vcgencmd anywhere?

Is the source for vcgencmd available?
by Bosse_B
Mon Jul 15, 2019 3:02 pm
Forum: General discussion
Topic: Complete description of vcgencmd anywhere?
Replies: 6
Views: 291

Complete description of vcgencmd anywhere?

I just stumbled across the very useful vcgencmd program. I wanted to read the CPU temperature and this is available like so: $ vcgencmd measure_temp temp=60.0'C And the following command lists all available functions: $ vcgencmd commands commands="vcos, ap_output_control, ap_output_post_processing, ...
by Bosse_B
Thu Jul 11, 2019 7:31 pm
Forum: Raspbian
Topic: How to enable VNC on RPi3/Raspbian Stretch from command line?
Replies: 12
Views: 37628

Re: How to enable VNC on RPi3/Raspbian Stretch from command line?

I think this is a very old conversation.
I started it in Nov 2017 and since then RPi4 and Raspbian Buster are out....
by Bosse_B
Thu Jul 11, 2019 8:41 am
Forum: Raspbian
Topic: RPi4B with Buster - VNC not working....
Replies: 7
Views: 371

Re: RPi4B with Buster - VNC not working....

klricks wrote:
Wed Jul 10, 2019 11:32 pm
You can start vncserver as user pi from /etc/rc.local like this:

Code: Select all

sudo -u pi vncserver -randr=1400x900
Thanks,
I did not know that you could set the user when starting something from rc.local.
Now back to using this rather than cron and it works just fine!
by Bosse_B
Wed Jul 10, 2019 10:08 pm
Forum: Raspbian
Topic: RPi4B with Buster - VNC not working....
Replies: 7
Views: 371

Re: RPi4B with Buster - VNC not working....

I also modified the /etc/rc.local file by adding this at the end before exit: #Start RealVNC in virtual mode with resolution 1400x900 px vncserver -randr=1400x900 Unfortunately this was only half a solution.... The screen created by the rc.local command is inaccessible because it is owned by root a...
by Bosse_B
Wed Jul 10, 2019 8:06 pm
Forum: Raspbian
Topic: Installing Raspbian on headless RPi4 - how?
Replies: 19
Views: 780

Re: Installing Raspbian on headless RPi4 - how?

SOLUTION FOR STARTING VNC I fixed my problem of how to start the vncserver process on boot by adding this to crontab: @reboot sleep 120 && /usr/bin/vncserver -randr=1400x900 This makes the pi user run vncserver 2 min after boot and then it will be possible to log in via VNC to the virtual desktop.
by Bosse_B
Wed Jul 10, 2019 6:12 pm
Forum: Raspbian
Topic: Installing Raspbian on headless RPi4 - how?
Replies: 19
Views: 780

Re: Installing Raspbian on headless RPi4 - how?

In fact I put this into the /etc/rc.local so it would always be done on startup. Now I commented out that line in rc.local and instead after a reboot I logged in with PuTTY and executed this command: $ vncserver -randr=1400x900 Then I went back to RealVNC and used the connection that was not allowe...
by Bosse_B
Wed Jul 10, 2019 5:31 pm
Forum: Raspbian
Topic: Installing Raspbian on headless RPi4 - how?
Replies: 19
Views: 780

Re: Installing Raspbian on headless RPi4 - how?

I have started a new instance of vncserver with a specified desktop size1400x900 as shown by the process list: $ ps aux|grep vncserver root 442 0.0 0.0 8360 2116 ? Ss 18:15 0:00 /usr/bin/vncserver-x11-serviced -fg root 457 0.0 0.3 29960 14036 ? S 18:15 0:01 /usr/bin/vncserver-x11-core -service root ...
by Bosse_B
Wed Jul 10, 2019 3:14 pm
Forum: Raspbian
Topic: Installing Raspbian on headless RPi4 - how?
Replies: 19
Views: 780

Re: Installing Raspbian on headless RPi4 - how?

Thanks! I will test this ASAP! My use case is normally to go to the RPi desktop via VNC, never to connect a cable to a monitor. So the "virtual" mode is probably exactly what I need! :D Most of my RPi units are working as servers in some setting and I only use the CLI interface via PuTTY. Some of th...
by Bosse_B
Wed Jul 10, 2019 11:32 am
Forum: Raspbian
Topic: Installing Raspbian on headless RPi4 - how?
Replies: 19
Views: 780

Re: Installing Raspbian on headless RPi4 - how?

Part 2. Open a VNC connection on the pi Navigate to Menu > Preferences > Screen Configuration > Screen Layout Editor > Confgure > Screens > Resolution > Choose the configuration you enabled Return to Configure > Click Apply > OK If this screen is too big you can reduce the size by dragging a corner...
by Bosse_B
Wed Jul 10, 2019 6:54 am
Forum: Raspbian
Topic: Installing Raspbian on headless RPi4 - how?
Replies: 19
Views: 780

Re: Installing Raspbian on headless RPi4 - how?

Thanks for the link! It seems like it describes using a different VNC server from what is included in Raspbian, though (tigervnc). Since I have RealVNC now running I may stay with that, but I have one additional question regarding the shipped-with-raspbian-vnc: How can I adjust the window size of th...
by Bosse_B
Tue Jul 09, 2019 6:40 pm
Forum: Raspbian
Topic: Installing Raspbian on headless RPi4 - how?
Replies: 19
Views: 780

Re: Installing Raspbian on headless RPi4 - how?

If you're going to use your RPi headless, you might also want to disable the graphical desktop environment from raspi-config. This makes the RPi boot faster, run faster, use less memory, run cooler, use less power, etc... sudo raspi-config -> Boot Options -> Desktop/CLI -> Console One of them (the ...
by Bosse_B
Tue Jul 09, 2019 1:07 pm
Forum: Raspbian
Topic: RPi4B with Buster - VNC not working....
Replies: 7
Views: 371

Re: RPi4B with Buster - VNC not working....

I changed the raspi-config boot option to boot into the GUI but require login. I also modified the /etc/rc.local file by adding this at the end before exit: #Start RealVNC in virtual mode with resolution 1400x900 px vncserver -randr=1400x900 (I noted that this was present in my RPi3B unit where VNC ...
by Bosse_B
Tue Jul 09, 2019 1:02 pm
Forum: General discussion
Topic: PI4 how to enable VNC on a headless system?
Replies: 3
Views: 166

Re: PI4 how to enable VNC on a headless system?

So I changed the raspi-config boot option to boot into the GUI but require login. I also modified the /etc/rc.local file by adding this at the end before exit: #Start RealVNC in virtual mode with resolution 1400x900 px vncserver -randr=1400x900 (I noted that this was present in my RPi3B unit where V...
by Bosse_B
Tue Jul 09, 2019 12:13 pm
Forum: General discussion
Topic: PI4 how to enable VNC on a headless system?
Replies: 3
Views: 166

PI4 how to enable VNC on a headless system?

My Pi4B does not have a monitor attached (headless) and I have set it up via PuTTY from Windows. I want to use VNC to reach the GUI screen in teh same way I have done on my other RPi3 units. But on these I have had a monitor to attach at some time, which is not the case here. I enabled VNC in raspi-...
by Bosse_B
Tue Jul 09, 2019 12:04 pm
Forum: Raspbian
Topic: RPi4B with Buster - VNC not working....
Replies: 7
Views: 371

Re: RPi4B with Buster - VNC not working....

I have currently set my RPi4 to boot to the CLI rather than the GUI in raspi-config (B1).
Is this what is preventing the VNC connection showing the desktop?

I would have believed that the VNC desktop should be created when the user connects via VNC and not sitting there all the time with no user...
by Bosse_B
Tue Jul 09, 2019 11:14 am
Forum: Raspbian
Topic: RPi4B with Buster - VNC not working....
Replies: 7
Views: 371

RPi4B with Buster - VNC not working....

I have installed and upgraded the Raspbian Buster on my new RPi4B 4GB box. It is all up to date. The installation was done headless because I have no monitor for the RPi4, so I have access only vua PuTTY and want to use the desktop via VNC. So in raspi-config I have enabled VNC too. But when I try t...
by Bosse_B
Mon Jul 08, 2019 10:37 pm
Forum: Raspbian
Topic: Installing Raspbian on headless RPi4 - how?
Replies: 19
Views: 780

Re: Installing Raspbian on headless RPi4 - how?

Thanks all! I got this going by creating the ssh file and editing the wifi supplicant file as described above. Had some other issues so I moved to a different thread for that and forgot about this discussion, hence my absence. Problem solved for both the RPi4 (built-in wifi works fine of course) but...
by Bosse_B
Mon Jul 08, 2019 11:46 am
Forum: Raspbian
Topic: Raspbian Buster Lite on RPi2B cannot update/upgrade trough apt
Replies: 9
Views: 726

Re: Raspbian Buster Lite on RPi2B cannot update/upgrade trough apt

I downloaded all 3 versions of the Buster image last week when I installed on my new RPi4 and an older RPi2. Now I don't remember which version I chose for he RPi2... Is there a way to check this after the fact? I.e. a terminal command to display the version of Raspbian? I have yet to run the update...
by Bosse_B
Mon Jul 08, 2019 6:25 am
Forum: Raspbian
Topic: Raspbian Buster Lite on RPi2B cannot update/upgrade trough apt
Replies: 9
Views: 726

Re: Raspbian Buster Lite on RPi2B cannot update/upgrade trough apt

I also got this today but I see a longer message: $ sudo apt update Hit:1 http://archive.raspberrypi.org/debian buster InRelease Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB] E: Repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' changed its 'Suite' val...
by Bosse_B
Sun Jul 07, 2019 4:03 pm
Forum: Raspbian
Topic: Raspbian Buster Lite on RPi2B cannot update/upgrade trough apt
Replies: 9
Views: 726

Re: Raspbian Buster Lite on RPi2B cannot update/upgrade trough apt

Looks like our posts crossed... Network problems most certainly, either WiFi in my end or busy servers at RPi foundation while doing the apt upgrade. Since my problems happened around midnight (Europe) and was OK 6 hours later there just might have been a "rush hour" problem.... I speed tested the W...
by Bosse_B
Sat Jul 06, 2019 4:42 am
Forum: Raspbian
Topic: Raspbian Buster Lite on RPi2B cannot update/upgrade trough apt
Replies: 9
Views: 726

Re: Raspbian Buster Lite on RPi2B cannot update/upgrade trough apt

FWIW: it looks like a network problem from the errors. I found an Ethernet cable and wired up the network to the RPi2B unit, then logged in via the eth0 IP address to shut down the WiFi interface. Turns out that I was hit by the change in command syntax... sudo ifdown wlan0 does not work with Buste...
by Bosse_B
Sat Jul 06, 2019 3:29 am
Forum: Raspbian
Topic: Raspbian Buster Lite on RPi2B cannot update/upgrade trough apt
Replies: 9
Views: 726

Raspbian Buster Lite on RPi2B cannot update/upgrade trough apt

I have installed Raspbian Buster Lite on a RPi2B and it looked OK when done. I can SSH into it and run raspi-config to complete the setup. After the installation was done I tried to use apt to update it: sudo apt update sudo apt upgrade What happens is that update reports that 28 upgrades are availa...
by Bosse_B
Fri Jul 05, 2019 10:40 pm
Forum: General discussion
Topic: PI2B headless with Raspbian Buster - installation with WiFi
Replies: 1
Views: 187

Re: PI2B headless with Raspbian Buster - installation with WiFi

Sorry for the noise! Turns out that the Edimax adapter is recognized and the RPi2B connects just fine to the WiFi upon first installation after fixing the two files in the boot section of the SD-card as described in the linked to thread. "Just test it" is the command to use.... PS: I used the Buster...

Go to advanced search