Need vino to run before login

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Need vino to run before login

Post by eiger3970 »

Hello, I need vino to run before login.
/etc/rc.local doesn't seem to run vino before login when I enter the script below?
Any suggestions please?

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

/usr/lib/vino/vino-server

echo "'date': Hello dude, I am just booting." > ~/Desktop

exit 0
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
reddot

Re: Need vino to run before login

Post by reddot »

dump the script. use "Desktop Sharing" in administration or control panel. no need for scripts. it should autostart, unless you removed the entry in startup applications.
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Re: Need vino to run before login

Post by eiger3970 »

Thanks. I don't see Desktop Sharing in Startup Programs.
I have added Vino to the auto startup

Code: Select all

/usr/lib/vino/vino-server
however Vino still only starts after login, not after boot and before login.

I have not removed Desktop Sharing from Startup Programs.
Is there a way to add Desktop Sharing to Startup Programs, as Linux Mint 17.3 hasn't added Desktop Sharing to Startup Programs?
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Re: Need vino to run before login

Post by eiger3970 »

Okay, I installed x11vnc, but same problem https://help.ubuntu.com/community/VNC/Servers
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
Habitual

Re: Need vino to run before login

Post by Habitual »

eiger3970 wrote:Any suggestions please?

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

/usr/lib/vino/vino-server
exit 0
will start vino-server after system-level services start but before going graphical.
So the net effect is vino-server starts regardless of who logs in.
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Re: Need vino to run before login

Post by eiger3970 »

Okay, so added x11vnc code as per https://help.ubuntu.com/community/VNC/Servers Have x11vnc start automatically via upstart in any environment (<=Utopic).
Now my remote client can connect to the host, but the remote host only flashes for a split second on the client, then disconnects.
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Re: Need vino to run before login

Post by eiger3970 »

Fixed.
Turned off vino and used VNC.
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Re: Need vino to run before login

Post by eiger3970 »

Ok, I need a solution, as I installed VNC Server and VNC Viewer.
VNC Server allows remote before login.
However I can only remote view with VNC Viewer, which is mega buggy. Keyboard strokes are all messed up with uppercase, lowercase and Ctrl+C on the host and client computers.
So, I tried Remmina with VNC Server running, but VNC Server allows the Remmina connection for 0.5 seconds and disconnects.
Trying to think how to remote control before login, without the extremely buggy VNC Server and VNC Viewer.
SSH or a local machine to SSH in before login?
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Re: Need vino to run before login

Post by eiger3970 »

Refreshing this thread, the VNC Viewer is so buggy that keys repeat themselves and backspaces delete numerous characters, rather than 1 character.
So, I prefer to remove VNC Viewer, so I can use LinuxMint's Viewer.
Remmina is also great, but VNC Server locks out Remmina.

My idea is to run VNC Server, so I can log in from VNC Viewer. Then once logged into Mint, shutdown VNC Viewer and run Vino. Vino will allow Remmina to connect. Problem is how to run Vino when VNC Server is shutdown and there's no remote control.
I do have access to a 2nd Apple Mac on the LAN, which is always on, so I can ssh into Mint from there if a .rc command is needed.
Any suggestions?
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
eiger3970
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2012 9:48 am

Re: Need vino to run before login

Post by eiger3970 »

Well, for now I'm using the better viewer Remmina...VNC is no good.

However, this is only after log in.
I think I might need PXE boot or some xserver command to enable before boot and use Remmina as the viewer.
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
Locked

Return to “Installation & Boot”