Need vino to run before login

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
eiger3970
Level 4
Level 4
Posts: 278
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
My machine specs:
Linux Mint 19 Tara 64-bit.
Kernel Linux 4.15.0-54-generic x86_64
MATE 1.20.1
Memory: 1.9 GiB
Processor: Intel Celeron(R) CPU N3060 @ 1.6GHz x 2
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: 278
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?
My machine specs:
Linux Mint 19 Tara 64-bit.
Kernel Linux 4.15.0-54-generic x86_64
MATE 1.20.1
Memory: 1.9 GiB
Processor: Intel Celeron(R) CPU N3060 @ 1.6GHz x 2
eiger3970
Level 4
Level 4
Posts: 278
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
My machine specs:
Linux Mint 19 Tara 64-bit.
Kernel Linux 4.15.0-54-generic x86_64
MATE 1.20.1
Memory: 1.9 GiB
Processor: Intel Celeron(R) CPU N3060 @ 1.6GHz x 2
Habitual
Level 13
Level 13
Posts: 4863
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

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: 278
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.
My machine specs:
Linux Mint 19 Tara 64-bit.
Kernel Linux 4.15.0-54-generic x86_64
MATE 1.20.1
Memory: 1.9 GiB
Processor: Intel Celeron(R) CPU N3060 @ 1.6GHz x 2
eiger3970
Level 4
Level 4
Posts: 278
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.
My machine specs:
Linux Mint 19 Tara 64-bit.
Kernel Linux 4.15.0-54-generic x86_64
MATE 1.20.1
Memory: 1.9 GiB
Processor: Intel Celeron(R) CPU N3060 @ 1.6GHz x 2
eiger3970
Level 4
Level 4
Posts: 278
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?
My machine specs:
Linux Mint 19 Tara 64-bit.
Kernel Linux 4.15.0-54-generic x86_64
MATE 1.20.1
Memory: 1.9 GiB
Processor: Intel Celeron(R) CPU N3060 @ 1.6GHz x 2
eiger3970
Level 4
Level 4
Posts: 278
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?
My machine specs:
Linux Mint 19 Tara 64-bit.
Kernel Linux 4.15.0-54-generic x86_64
MATE 1.20.1
Memory: 1.9 GiB
Processor: Intel Celeron(R) CPU N3060 @ 1.6GHz x 2
eiger3970
Level 4
Level 4
Posts: 278
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.
My machine specs:
Linux Mint 19 Tara 64-bit.
Kernel Linux 4.15.0-54-generic x86_64
MATE 1.20.1
Memory: 1.9 GiB
Processor: Intel Celeron(R) CPU N3060 @ 1.6GHz x 2
Post Reply

Return to “Installation & Boot”