LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-26-2016, 10:01 PM   #1
Toonses82
Member
 
Registered: Sep 2004
Location: Calhoun, TN, USA
Distribution: openSUSE
Posts: 131

Rep: Reputation: 15
Run X11VNC at Startup - Debian 8.3.0 - Cinnamon 2.2.16


I set up my daughter's Debian PC and everything is working except the X11VNC autorun. It runs fine when launched from the command line, but when I enter it into Startup Programs, it doesn't start like it's supposed to. I still have to launch it manually.

Here's the command I'm using:
Code:
x11vnc -logfile ~/.xllvnc.log -forever -bg
Enter that into command prompt, and everything works great. Enter it into the "command" field of the "Add Startup Program" window and it doesn't work. I've tried adding a 10-second and 30-second delay, and still no dice. To check if Startup Programs work at all, I made an entry for LibreOffice Calc to launch 10 seconds after login. I rebooted the machine and it worked great. So I tried X11VNC again and still nothing.

I don't get it. What am I missing here? If the command works when manually entered at a prompt, shouldn't it work just fine in the command field of the startup applications?
 
Old 02-27-2016, 06:43 AM   #2
oldtechaa
Member
 
Registered: May 2015
Location: US
Distribution: Fedora
Posts: 364

Rep: Reputation: 83
I discovered that autorun programs should not use "~" in place of "/home/user". I had the same problem, but it was fixed by switching to "/home/user". Probably because as the display manager starts and starts the desktop environment, it uses a virtual user to start, so it doesn't have a home directory and can't log there. When you enter it into a prompt, however, you are a real user, and you can use "~". I'm also not sure if anything other than Bash can replace that symbol with $HOME.
 
1 members found this post helpful.
Old 02-27-2016, 12:01 PM   #3
Toonses82
Member
 
Registered: Sep 2004
Location: Calhoun, TN, USA
Distribution: openSUSE
Posts: 131

Original Poster
Rep: Reputation: 15
Talking

Thank you, that worked! I replaced the "~" with the full path and now it starts up normally. I didn't use $HOME or any variant of that because I thought I tried that before and it didn't work. I'd have to check again to be sure. Either way, here's the command that now launches at startup:
Code:
x11vnc -logfile /home/<USER>/.x11vnc.log -forever -bg
Everything works as it should. Thank you for your help.
 
  


Reply

Tags
autorun, cinnamon, debian, startup, x11vnc



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
LXer: Try the New Makulu Cinnamon Debian Edition – Gaming-Ready, Cinnamon at Its Peak LXer Syndicated Linux News 0 10-28-2014 09:02 PM
x11vnc / SUSE SLES 11.3 / Boot / Startup DBrenchley Linux - Server 1 05-28-2014 01:39 PM
[SOLVED] x11vnc at startup igor012 Linux - Software 6 07-03-2012 11:22 AM
LXer: How to run Linux Mint Debian Cinnamon in VirtualBox LXer Syndicated Linux News 1 04-26-2012 07:17 PM
Debian run MySQL on Startup baandar Linux - Software 3 09-02-2004 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:16 AM.

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