Fedora Linux Support Community & Resources Center
  #1  
Old 7th June 2012, 05:41 PM
hlfmanhlfamzng's Avatar
hlfmanhlfamzng Offline
Registered User
 
Join Date: Jul 2004
Location: Arris Dome
Posts: 216
linuxfirefox
TigerVNC on Fedora 17

So I'm trying to setup remote administration on a computer that's not at my house, but I'm finding that all of the FAQs on this are out of date.

As far as I'm concerned, an FAQ like this:

http://fedorasolved.org/Members/zdenek/tigervnc-server

Is highly informative, yes. But if all these hoops have to be jumped through? Then this software is by default broken. It's broken. When I do a yum - install _____________________ whatever the software happens to be, it should work after it's installed. I did the install, and it doesn't work. It's broken. I did an install of libreoffice earlier, and it was great. It worked after install. Firefox works after install.

This isn't the mid 90's anymore. We actually like software that works once installed, don't we?

Anyways, this FAQ says to go to the file "/etc/sysconfig/vncservers" but when I get there, this is what I see:

Quote:
# THIS FILE HAS BEEN REPLACED BY /lib/systemd/system/vncserver@.service
Ok. So I go to the file specified. It looks nothing like what I'm supposed to look for. I don't see a specification for software resolution, usernames, and so forth.

Anybody want to take a stab at this or point to a better FAQ which I missed? This is frustrating. It should've worked after Yum install. Type in the IP address, specify the user IDs, passwords, and go. That's not a lot to ask.
Reply With Quote
  #2  
Old 7th June 2012, 06:13 PM
smr54 Online
Registered User
 
Join Date: Jan 2010
Posts: 4,979
linuxopera
Re: TigerVNC on Fedora 17

Heh. (Not laughing at you). There's another thread. Yes, it's involved, and convoluted, and at least two people, (one other forum member and myself) consider it indicative of how most people in Fedora development and packaging don't seem to do system administration, but that's a rant for another time.....

http://forums.fedoraforum.org/showth...=272137&page=3

That should take you to page 3. Post 37 should help.

That FAQ seems to have last been updated in February of last year and should be marked as deprecated.
Reply With Quote
  #3  
Old 7th June 2012, 06:35 PM
MotherDawg's Avatar
MotherDawg Offline
Registered User
 
Join Date: Sep 2010
Location: Quebec, Canada
Posts: 26
linuxfirefox
Re: TigerVNC on Fedora 17

Ouch bud,

Maybe it's time to get involved and do something about it.
Ya know... Linux is user supported as in You ! ("sorray")

For your information, TigerVNC server actually runs pretty good on F17. It is not broken, I'm using it through TightVNC from an M$ box to write this.

You kind of need to search for treads on the subject before posting flames.

And in vncserver@.service it goes :
Quote:
Quick HowTo:
# 1. Copy this file to /etc/systemd/system/vncserver@:<display>.service
# 2. Edit <USER> and vncserver parameters appropriately
# ("runuser -l <USER> -c /usr/bin/vncserver %i -arg1 -arg2")
# 3. Run `systemctl daemon-reload`
Have you tried something along those lines ?

Here, a silver spoon for you :
Tiger VNC server on F16 & F17

Hey 54! You beat me to it... took a long time to find an appropriate quote. LoL.

You must be the change you wish to see in the world. -- Mahatma Gandhi
__________________
MotherDawg
I do RPMs
I own crappy boxes
GNU/Linux 3.7.9-104.fc17.i686

Last edited by MotherDawg; 7th June 2012 at 06:57 PM. Reason: Ah dunno how to write...
Reply With Quote
  #4  
Old 12th June 2012, 07:30 PM
hlfmanhlfamzng's Avatar
hlfmanhlfamzng Offline
Registered User
 
Join Date: Jul 2004
Location: Arris Dome
Posts: 216
linuxfirefox
Re: TigerVNC on Fedora 17

It's not personal, I've just gotten so used to things being easy, as time has gone on in linux. This was a throwback and I was voicing my frustrations. Having a visual confirmation that what I just did worked is a good thing, IMHO.(as I proceed through multiple step processes)

filename and path:

Quote:
/etc/systemd/system/vncserver@:1.service
This is what's in the file:

Quote:
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=forking
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l user -c "/usr/bin/vncserver %i"
ExecStop=/sbin/runuser -l user -c "/usr/bin/vncserver -kill %i"

[Install]
WantedBy=multi-user.target
Yes, the username for now is just user. I wasn't sure if I was going to screw this up once I saw all these config files.

And systemctl daemon-reload doesn't do anything when I run it.
Reply With Quote
  #5  
Old 14th June 2012, 02:26 AM
MotherDawg's Avatar
MotherDawg Offline
Registered User
 
Join Date: Sep 2010
Location: Quebec, Canada
Posts: 26
linuxfirefox
Re: TigerVNC on Fedora 17

Hey,

systemctl daemon-reload just reloads the configs. Since you are only changing the vncserver one, and you do... did systemctl stop vncserver@:1.service before, it reloads the changed config of a stoped service.

After you edit the config, systemctl daemon-reload then systemctl start vncserver@:1.service.

Go to the the Tiger VNC server on F16 & F17 thread and read page 2 and 3. SMR54 and me posted the link.

In my "retort", I could have mentioned that vncserver is kind of an System Administrator app.
We always edit config files all day long. Make yourself one or two backups of vncserver@.service and xstartup.

I have vncserver@.service.org.MyName and xstartup.org.MyName in the original folders and in a config folder in my home directory plus I have a GiT hub to make sure.

Cya
__________________
MotherDawg
I do RPMs
I own crappy boxes
GNU/Linux 3.7.9-104.fc17.i686

Last edited by MotherDawg; 14th June 2012 at 02:41 AM.
Reply With Quote
  #6  
Old 15th June 2012, 08:18 AM
Doward Offline
Registered User
 
Join Date: Oct 2008
Posts: 27
windows_xp_2003firefox
Re: TigerVNC on Fedora 17

So after fighting with this tonight, I got what I wanted - XFCE4 used when VNC'd on a KDE-F17 system.

Ugh.

I couldn't get the 'User=' variable to work, so I pulled it out.

Here's my setup:

Code:
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=forking
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l vncuser -c "/usr/bin/vncserver %i"
ExecStop=/sbin/runuser -l vncuser -c "/usr/bin/vncserver -kill %i"

[Install]
WantedBy=multi-user.target
Once I did that, I logged in locally as my vncuser, and ran vncserver :1, which created my xstartup scripts and such. I modified them to such:

Code:
#!/bin/sh

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
        eval `dbus-launch --sh-syntax .exit-with-session`
        echo "D-BUS per-session daemon address is: \
        $DBUS_SESSION_BUS_ADDRESS"
fi
exec  xfce4-session
Now I can vnc into my system on port 5901 and get my XFCE4 desktop!

MAJOR PITA COMPARED TO THE OLD WAY.
Reply With Quote
Reply

Tags
fedora, tigervnc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TigerVNC on Fedora 11 DrewP Guides & Solutions (No Questions) 16 30th January 2013 11:48 PM
Fedora 11 and TigerVNC configuration tringate Installation and Live Media 6 27th June 2012 08:16 PM
Help with TigerVNC Larsey Installation and Live Media 3 15th November 2011 09:16 PM
TigerVNC on F14/F15 jfleni Reviews, Rants & Things That Make You Scream 1 19th September 2011 11:53 PM
TigerVNC won't start on Fedora 14 glmarsh Servers & Networking 3 2nd December 2010 10:35 PM


Current GMT-time: 00:08 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat