Re: F18: ~/.vnc/xstartup example

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> do us a favor for archive sake, post what you had/used for the F17
> version.


First time I used this info
(http://www.oracle-base.com/articles/linux/configuring-vnc-server-on-linux.php)
to correlate the old and the new config.

To use the display number 10 this is the recipe:

1. Install tigervnc-server:

yum install tigervnc-server

2. Create the .service file:

cp /lib/systemd/system/vncserver@.service \
   /lib/systemd/system/vncserver@:10.service

3. In the new file are instruccions to customize vncserver@:10.service.
You need to change the "username" that will use this access. In a command:

sed -i -e 's/<USER>/username/g' /usr/lib/systemd/system/vncserver@:10.service

   or, like me, customize the start line with "-geometry 800x600 -nolisten
tcp -localhost". In a command:

sed -i -e 's/<USER>/username/g' \
    -e 's/ExecStart\(.*\)"/ExecStart\1 -geometry 800x600 -nolisten tcp
-localhost"/g' \
   /usr/lib/systemd/system/vncserver@:10.service

4. Reload systemd config files:

systemctl daemon-reload

5. Enable the new service:

systemctl enable vncserver@:10.service

6. Before start the new service set a VNC password for "username":

su - username
vncpasswd
exit

7. Start the new service:

systemctl start vncserver@:10.service




When you want to access your VNC server you must open a SSH connection
redirecting the port 5910 and then connect to localhost:10:

ssh -l username -L 5910:localhost:5910  your-vnc-server
vncviewer localhost:10



Regards,
Fernando.




-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux