LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-19-2018, 02:51 AM   #1
slockna
LQ Newbie
 
Registered: Jul 2015
Location: Sweden
Distribution: Slackware, zenwalk, debian
Posts: 28

Rep: Reputation: Disabled
Vnc for slackware-current?


how do i install a vnc server in slackware-current ?

Edit: current as of March 27 that is

Last edited by slockna; 04-19-2018 at 01:39 PM. Reason: solved
 
Old 04-19-2018, 12:27 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Install tigervnc from the /extra section, then launch "vncserver" command.
If you're not happy with the default window manager, stop the VNC server ("vncserver -kill :1" will usually do it) and edit the startup script ~/.vnc/xstartup

Mine looks like this:
Code:
#!/bin/sh

vncconfig -iconic &

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

########################################################################
##  Merge in defaults and keymaps                                     ##
########################################################################

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

if [ -f $sysresources ]; then
    /usr/bin/xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    /usr/bin/xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    /usr/bin/xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    /usr/bin/xmodmap $usermodmap
fi

# Ensure that we start with a locked session:
xsetroot -solid grey
xscreensaver -no-splash &
xscreensaver-command -lock &

########################################################################
##  Start xfce Desktop Environment                                    ##
########################################################################

if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session dbus-launch --exit-with-session /usr/bin/startxfce4
else
  exec dbus-launch --exit-with-session /usr/bin/startxfce4
fi
 
1 members found this post helpful.
Old 04-19-2018, 01:38 PM   #3
slockna
LQ Newbie
 
Registered: Jul 2015
Location: Sweden
Distribution: Slackware, zenwalk, debian
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thanks !

i installed something with slackpkg that turned out to be tigervnc-1.5.0 and did not work at all.

the version in /extra was a lot better !
 
  


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
[SOLVED] Script to build always a current ISO image of Slackware (slackware-current) robertjinx Slackware 2 12-09-2010 02:00 AM
vnc into current console session syntacticalerror Linux - Newbie 1 07-05-2008 10:32 PM
How can I remote in as the current user with VNC? sureshot324 Linux - Software 1 06-03-2007 01:22 AM
viewing current session in VNC metallica1973 Linux - Software 2 07-21-2006 12:53 PM

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

All times are GMT -5. The time now is 09:21 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