4

xorg, Xvfb, ImageMagick

view full story
linux-howto

http://forums.fedoraforum.org – I think that you know where i'm going with this. I've got it working on my LOCAL desktop, but not on my dedicated sever. Code: [root@XXXX]# yum list installed xorg* Installed Packages xorg-x11-apps.i386                      7.1-4.fc7              installed      xorg-x11-drv-evdev.i386                  1.1.2-3.fc7            installed      xorg-x11-drv-keyboard.i386              1.1.0-3.fc7            installed      xorg-x11-drv-mouse.i386                  1.2.1-2.fc7            installed      xorg-x11-drv-vesa.i386                  1.3.0-8.fc7            installed      xorg-x11-drv-void.i386                  1.1.0-4.fc7            installed      xorg-x11-filesystem.noarch              7.1-2.fc6              installed      xorg-x11-font-utils.i386                1:7.1-5.fc7            installed      xorg-x11-fonts-100dpi.noarch            7.1-3.fc7              installed      xorg-x11-fonts-75dpi.noarch              7.1-3.fc7              installed      xorg-x11-fonts-ISO8859-1-100dpi.noarch  7.1-3.fc7              installed      xorg-x11-fonts-ISO8859-1-75dpi.noarch    7.1-3.fc7              installed      xorg-x11-fonts-Type1.noarch              7.1-3.fc7              installed      xorg-x11-fonts-base.noarch              7.1-3.fc7              installed      xorg-x11-fonts-misc.noarch              7.1-3.fc7              installed      xorg-x11-fonts-truetype.noarch          7.1-3.fc7              installed      xorg-x11-server-Xorg.i386                1.3.0.0-17.fc7        installed      xorg-x11-server-Xvfb.i386                1.3.0.0-17.fc7        installed      xorg-x11-server-utils.i386              7.2-1.fc7              installed      xorg-x11-xauth.i386                      1:1.0.2-1.fc7          installed      xorg-x11-xdm.i386                        1:1.1.3-1.fc7          installed      xorg-x11-xfs.i386                        1:1.0.5-1.fc7          installed      xorg-x11-xinit.i386                      1.0.2-22.fc7          installed      xorg-x11-xkb-utils.i386                  1.0.2-3.fc7            installed      [root@XXXX]# And here's what i'm getting: Code: [root@XXXX]# startx -- /usr/bin/Xvfb :2 -screen 0 1024x768x24 & [1] 9443 [root@XXXX]# xauth:  creating new authority file /root/.serverauth.9443 xauth:  creating new authority file /root/.Xauthority xauth:  creating new authority file /root/.Xauthority Could not init font path element unix/:7100, removing from list! Could not init font path element catalogue:/etc/X11/fontpath.d, removing from list! xinit:  No such file or directory (errno 2):  Cannot register with ConsoleKit: org.freedesktop.CkConnector.Error: Unable to open session: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory localuser:root being added to access control list waiting for X server to shut down FreeFontPath: FPE "built-ins" refcount is 2, should be 1; fixing. Couldnt get a file descriptor referring to the console [root@XXXX]# DISPLAY=:2 firefox http://www.example.com [1]+  Exit 1                  startx -- /usr/bin/Xvfb :2 -screen 0 1024x768x24 [root@XXXX]# DISPLAY=:2 firefox http://www.example.com & [1] 10181 [root@XXXX]# DISPLAY=:2 import -window root /x.png      import: unable to open X server `:2'. [1]+  Exit 1                  DISPLAY=:2 firefox http://www.example.com Code: [root@XXXX]# startx -- /usr/bin/Xvfb :2 -screen 0 1024x768x24 & [1] 15732 [root@XXXX]# xauth:  creating new authority file /root/.serverauth.15732 Could not init font path element unix/:7100, removing from list! Could not init font path element catalogue:/etc/X11/fontpath.d, removing from list! xinit:  No such file or directory (errno 2):  Cannot register with ConsoleKit: org.freedesktop.CkConnector.Error: Unable to open session: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory localuser:root being added to access control list FreeFontPath: FPE "built-ins" refcount is 2, should be 1; fixing. waiting for X server to shut down ....Could not init font path element unix/:7100, removing from list! Could not init font path element catalogue:/etc/X11/fontpath.d, removing from list! Fatal server error: could not open default font 'fixed' Couldnt get a file descriptor referring to the console Trying to track it down, i did this: Code: [root@XXX]# ls /usr/lib/X11/fonts/misc/ ls: cannot access /usr/lib/X11/fonts/misc/: No such file or directory [root@XXX]# ls /usr/lib/X11/fonts/    ls: cannot access /usr/lib/X11/fonts/: No such file or directory [root@XXX]# ls /usr/lib/X11/      xdm [root@XXX]# uname -a Linux ip-XXX.ip.secureserver.net 2.6.18-028stab059.6 #1 SMP Fri Nov 14 14:01:22 MSK 2008 i686 i686 i386 GNU/Linux I've been digging into the man pages and forum archives, but this is a new realm for me, so it's going to take me longer to figure out. Thanks ---------- Post added at 08:17 PM CST ---------- Previous post was at 07:37 PM CST ---------- Ok, i just did a: yum groupinstall "X Window System" But i am very unhappy about this, because i have to pay more if XDM and/or GDM eat into too much memory. I don't want them to start when the server starts, but i can't remember (or find) the name of the file that says what display manager to start, so that i can say "DO NOT START A DISPLAY MANAGER". I want the server to boot into cli mode, like normal, but also, once i START a xorg server instance to take a screenshot, i cannot figure out hot to KILL it when i'm done. This will eat into my memory as well :(............ Thanx ---------- Post added at 08:23 PM CST ---------- Previous post was at 08:17 PM CST ---------- Even after installing the XORG Group packages, i get this: Code: [vectorthorn@XXXX]$ startx -- /usr/bin/Xvfb :2 -screen 0 1024x768x24 & [1] 26206 [vectorthorn@XXXX]$ xauth:  creating new authority file /home/vectorthorn/.serverauth.26206 xauth:  creating new authority file /home/vectorthorn/.Xauthority xauth:  creating new authority file /home/vectorthorn/.Xauthority _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created. Could not init font path element catalogue:/etc/X11/fontpath.d, removing from list! xinit:  No such file or directory (errno 2):  Cannot register with ConsoleKit: org.freedesktop.CkConnector.Error: Unable to open session: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory localuser:vectorthorn being added to access control list export Display=2.0 [vectorthorn@XXXX]$ firefox http://example.com & [2] 27663 [vectorthorn@XXXX]$ ls [2]+  Exit 1                  firefox http://example.com [vectorthorn@XXXX]$ import -window root screenshot.png import: unable to open X server `'. [vectorthorn@XXXX]$ startx -- /usr/bin/Xvfb :2 -screen 0 1024x768x24 & [2] 27735 [vectorthorn@XXXX]$ xauth:  creating new authority file /home/vectorthorn/.serverauth.27735 Fatal server error: Server is already active for display 2         If this server is no longer running, remove /tmp/.X2-lock         and start again. [vectorthorn@XXXX]$ ls [vectorthorn@XXXX]$ firefox http://example.com & [3] 27763 [vectorthorn@XXXX]$ import -window root screenshot.pngimport: unable to open X server `'. [3]+  Exit 1                  firefox http://example.com [vectorthorn@XXXX]$ Display=:2 firefox http://example.com & [3] 27870 [vectorthorn@XXXX]$ Display=:2 import -window root screenshot.png import: unable to open X server `'. [3]+  Exit 1                  Display=:2 firefox http://example.com [vectorthorn@XXXX]$ ---------- Post added at 09:06 PM CST ---------- Previous post was at 08:23 PM CST ---------- Ok, i figured out how to kill the x instance and i already knew how to kill the rest. I also started consolekit, but i am still getting all of this: Code: [root@XXXX]# startx -- /usr/bin/Xvfb :2 -screen 0 1024x768x24 & [1] 24388 [root@XXXX]# xauth:  creating new authority file /root/.serverauth.24388 Could not init font path element catalogue:/etc/X11/fontpath.d, removing from list! xinit:  No such file or directory (errno 2):  Cannot register with ConsoleKit: org.freedesktop.CkConnector.Error: Unable to open session: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory localuser:root being added to access control list [root@XXXX]# DISPLAY=:2.0 firefox -width 1024 -height 768 http://ionisis.com & [2] 25946 [root@XXXX]# import -window root screenshot.png -display :2.0 (HowTos)