LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-02-2018, 07:47 PM   #1
arfon
Member
 
Registered: Apr 2004
Location: Texas
Distribution: Slackware
Posts: 177

Rep: Reputation: Disabled
Can someone clue me in on using xvfb?


So on 'other' distros

Code:
xvfb-run --auto-servernum --server-args='-screen 0 640x480x24:32' wine notepad.exe
works.

On Slackware:

Code:
Xvfb :1 -screen 0 640x480x24 /usr/bin/wine notepad.exe
gets me:

Code:
(EE) Unrecognized option: /usr/bin/wine
How do you use Xvfb?
 
Old 10-02-2018, 09:45 PM   #2
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 489

Rep: Reputation: 284Reputation: 284Reputation: 284
I don't have a wine installation to try this with notepad but running some arbitrary app (gvim below) can be done with:
Code:
chris@d7:~$ Xvfb :1 -screen 0 640x480x24 &
chris@d7:~$ DISPLAY=:1 gvim
If you then want to interact with it visually, run a vncserver on its display and connect to it with vncviewer e.g.
Code:
chris@d7:~$ x11vnc -display :1
which will spew out a lot of stuff, in particular, details of servername and port to connect to; in my case
Code:
The VNC desktop is:      d7:0
PORT=5900
therefore I connect to it with:
Code:
chris@d7:~$ vncviewer d7:5900
chris
 
3 members found this post helpful.
Old 10-06-2018, 12:24 PM   #3
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 1,353
Blog Entries: 2

Rep: Reputation: 287Reputation: 287Reputation: 287
Quote:
Originally Posted by chris.willing View Post
I don't have a wine installation to try this with notepad but running some arbitrary app (gvim below) can be done with:
Code:
chris@d7:~$ Xvfb :1 -screen 0 640x480x24 &
chris@d7:~$ DISPLAY=:1 gvim
[snip]
once i did that as root:
Code:
# Xvfb :1 -screen 0 640x480x24 &
it really took of
Otherwise excellent example
 
Old 10-06-2018, 06:49 PM   #4
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 489

Rep: Reputation: 284Reputation: 284Reputation: 284
Quote:
Originally Posted by SCerovec View Post
once i did that as root:
Code:
# Xvfb :1 -screen 0 640x480x24 &
it really took of
Interesting you needed to do that as root - no need for that here.

BTW for a more desktop-like experience in a vfb environment, it may help to run a simple window manager too e.g.
Code:
DISPLAY=:1 mwm &
or
Code:
DISPLAY=:1 fvwm &
chris
 
Old 10-07-2018, 07:58 AM   #5
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 1,353
Blog Entries: 2

Rep: Reputation: 287Reputation: 287Reputation: 287
Quote:
Originally Posted by chris.willing View Post
Interesting you needed to do that as root - no need for that here.

BTW for a more desktop-like experience in a vfb environment, it may help to run a simple window manager too e.g.
Code:
DISPLAY=:1 mwm &
or
Code:
DISPLAY=:1 fvwm &
chris
to confuse things even further, (wada ya know) it is working now as common user

maybe the fact that I installed those as I was reading on, and some groups whenren't in place? or a config not loaded?

One way or the other - now it works and just great
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Xvfb Issue lux_1 Linux - General 0 12-09-2012 01:44 AM
XVFB brownie_cookie Linux - Newbie 3 04-15-2011 09:38 AM
Xvfb question ndo Linux - General 1 05-18-2007 11:49 AM
Xvfb and gnome dogalmity Linux - General 0 07-26-2006 11:23 AM
xvfb issues asyoung Linux - General 0 07-14-2003 12:49 PM

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

All times are GMT -5. The time now is 03:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration