LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-12-2023, 01:13 PM   #1
Mastiff
LQ Newbie
 
Registered: Nov 2023
Posts: 5

Rep: Reputation: 0
Can somebody please help me with a working systemd file for TigerVNC Scraping server in Debian Bookworm?


This command starts the server from a command line window:

Code:
x0vncserver -display :0 -localhost no -passwordfile /home/mastiff/.vnc/passwd
But I can't get it to work as a systemd service file. Can somebody please help me out there? I have trieda few different files from the web, but nothing has worked. This is what I have now:

Code:
[Unit]
Description=Remote desktop service (VNC) for :0 display
Requires=display-manager.service
After=network-online.target
After=display-manager.service

[Service]
ExecStartPre=/bin/sleep 10
Type=simple
ExecStart=x0vncserver -display :0 -localhost no -passwordfile /home/mastiff/.vnc/passwd
Restart=on-failure
RestartSec=10s

[Install]
WantedBy=multi-user.target
It looks on status like it's working, but I can't connect to it:

Code:
● tigervncserver.service - Remote desktop service (VNC) for :0 display
     Loaded: loaded (/lib/systemd/system/tigervncserver.service; enabled; prese>
     Active: activating (start-pre) since Sun 2023-11-12 20:11:48 CET; 4s ago
Cntrl PID: 4001 (sleep)
      Tasks: 1 (limit: 2454)
     Memory: 168.0K
        CPU: 1ms
     CGroup: /system.slice/tigervncserver.service
             └─4001 /bin/sleep 10

nov. 12 20:11:48 virtuell-HomeAssistant systemd[1]: Starting tigervncserver.ser>
lines 1-11/11 (END)...skipping...
● tigervncserver.service - Remote desktop service (VNC) for :0 display
     Loaded: loaded (/lib/systemd/system/tigervncserver.service; enabled; preset: enabled)
     Active: activating (start-pre) since Sun 2023-11-12 20:11:48 CET; 4s ago
Cntrl PID: 4001 (sleep)
      Tasks: 1 (limit: 2454)
     Memory: 168.0K
        CPU: 1ms
     CGroup: /system.slice/tigervncserver.service
             └─4001 /bin/sleep 10

nov. 12 20:11:48 virtuell-HomeAssistant systemd[1]: Starting tigervncserver.service - Remote desktop service (VNC) for :0 displa>
~
Can somebody who knows what they're actually doing please help me out here?
 
Old 11-13-2023, 06:00 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,923

Rep: Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319
you can check pages like this: https://superuser.com/questions/1717...ine-separately
Otherwise need to know what's happening to be able to fix it
 
Old 11-13-2023, 07:19 AM   #3
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,375

Rep: Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754Reputation: 2754
Perhaps section 4.2 from this ArchWiki page?
 
Old 11-14-2023, 12:19 PM   #4
Mastiff
LQ Newbie
 
Registered: Nov 2023
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you, but those pages are amongst those I have tried. I have never gotten any further than that the service is activated on startup and then deactivated. Journalctl doesn't show anything else either.

What can I say more about what happens? That's all the info I get from journalctl:

Code:
nov. 14 19:15:32 virtuell-machine sudo[3225]: pam_unix(sudo:session): session closed for user root
nov. 14 19:15:32 virtuell-machine systemd[1]: Started tigervncserver.service - Remote desktop service (VNC) for :0 display.
nov. 14 19:15:32 virtuell-machine x0vncserver[3235]: New X0tigervnc server 'virtuell-machine.MY-DOMAIN-NAME:0 (root)' on p>
nov. 14 19:15:32 virtuell-machine x0vncserver[3235]: Use xtigervncviewer -SecurityTypes VncAuth -passwd /tmp/tigervnc.p17U>
nov. 14 19:15:33 virtuell-machine systemd[1]: tigervncserver.service: Deactivated successfully.
And the log isn't really telling me much either:

Code:
Tue Nov 14 19:07:00 2023
 Geometry:    Desktop geometry is set to 1440x900+0+0
 XDesktop:    Using evdev codemap
 XDesktop:    
 XDesktop:    XTest extension present - version 2.2
 Main:        Listening for VNC connections on local interface(s), port 5900
3NI3X0 New X0tigervnc server 'virtuell-HomeAssistant.MY_DOMAIN:0 (root)' on port 5900 for display :0.
3NI3X0 Use xtigervncviewer -SecurityTypes VncAuth -passwd /tmp/tigervnc.BES9Fb/passwd :0 to connect to the VNC server.
 Main:        Terminated
Killing X0tigervnc process ID 1581... success!
So it seems like it's getting a kill signal as soon as it's started up.
 
Old 11-14-2023, 12:59 PM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,923

Rep: Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319
Quote:
Originally Posted by Mastiff View Post
Thank you, but those pages are amongst those I have tried.
Would be better to explain what did you try and what's happened, otherwise we cannot give you any help. Probably next time will will suggest you something that you have already tried again...

Quote:
Originally Posted by Mastiff View Post
I have never gotten any further than that the service is activated on startup and then deactivated. Journalctl doesn't show anything else either.

What can I say more about what happens? That's all the info I get from journalctl:

Code:
nov. 14 19:15:32 virtuell-machine sudo[3225]: pam_unix(sudo:session): session closed for user root
nov. 14 19:15:32 virtuell-machine systemd[1]: Started tigervncserver.service - Remote desktop service (VNC) for :0 display.
nov. 14 19:15:32 virtuell-machine x0vncserver[3235]: New X0tigervnc server 'virtuell-machine.MY-DOMAIN-NAME:0 (root)' on p>
nov. 14 19:15:32 virtuell-machine x0vncserver[3235]: Use xtigervncviewer -SecurityTypes VncAuth -passwd /tmp/tigervnc.p17U>
nov. 14 19:15:33 virtuell-machine systemd[1]: tigervncserver.service: Deactivated successfully.
And the log isn't really telling me much either:

Code:
Tue Nov 14 19:07:00 2023
 Geometry:    Desktop geometry is set to 1440x900+0+0
 XDesktop:    Using evdev codemap
 XDesktop:    
 XDesktop:    XTest extension present - version 2.2
 Main:        Listening for VNC connections on local interface(s), port 5900
3NI3X0 New X0tigervnc server 'virtuell-HomeAssistant.MY_DOMAIN:0 (root)' on port 5900 for display :0.
3NI3X0 Use xtigervncviewer -SecurityTypes VncAuth -passwd /tmp/tigervnc.BES9Fb/passwd :0 to connect to the VNC server.
 Main:        Terminated
Killing X0tigervnc process ID 1581... success!
So it seems like it's getting a kill signal as soon as it's started up.
this is not the log we need. Why it was killed, what terminated this service?
 
Old 11-14-2023, 01:04 PM   #6
Mastiff
LQ Newbie
 
Registered: Nov 2023
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the patience, and sorry that I wasn't precise enough in my first message! Where do I find the log you need? The first was journalctl and the second was Tigervnc's own log, which ends up in the directory .vnc. Where do I find out what killed it?

Edit: I don't think it was the kernel, there's lots of CPU available, and the memory should be enough:

MemTotal: 2158488 kB
MemFree: 514376 kB
MemAvailable: 1238000 kB

Last edited by Mastiff; 11-14-2023 at 01:10 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Debian Bookworm systemd-networkd need some help chriskruijntjens Linux - Networking 1 10-11-2023 06:17 AM
Web scraping but not scraping changes rjvencken Programming 5 08-25-2022 11:08 PM
[SOLVED] Update on Debian-Bookworm and Why Did Bookworm Remove Some Packages? kevinbenko Linux - Newbie 4 07-09-2022 09:00 AM
LXer: How to start a vnc server for the actual display (scraping) with TigerVNC LXer Syndicated Linux News 0 10-18-2018 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration