LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 06-28-2009, 07:00 PM   #1
troelskn
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Rep: Reputation: 0
Imagemagick import utility hangs


Hi.

I have a virtual server running freebsd, and I have installed X11 + Xvfb + ImageMagick on it. I have managed to start the X server and take a screenshot of it, with the following incantations:

Code:
startx -- /usr/local/bin/Xvfb :99 -ac -screen 0 1280x1024x24 &
DISPLAY=:99 import -window root screenshot.png
Which gives me a nice looking screenshot. The contents of my ~/.xinitrc is as follows:

Code:
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/local/lib/X11/xinit/.Xresources
sysmodmap=/usr/local/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

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

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

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

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

twm &
exec xterm -geometry 80x66+0+0 -name login
Now, this works fine and all, but if I try to start a program up in the X session before calling import, it just hangs. Eg. If I call:

Code:
DISPLAY=:99 xclock -geometry 500x500 &
DISPLAY=:99 import -window root screenshot.png
.. then import never returns.

What could be the problem?
 
  


Reply

Tags
imagemagick



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
install ImageMagick-6.5.1-2 & ImageMagick-devel-6.5.1.2 in red hat mokkai Linux - Enterprise 4 04-16-2009 12:04 PM
Imagemagick Import command help lj4 Linux - Software 1 11-27-2006 08:35 AM
Add/Remove Software utility hangs (FC5) General Fedora 2 05-08-2006 08:49 AM
Import sys ?bash: import: command not found joirnange Linux - Newbie 4 12-28-2004 10:33 PM
rpm --import <file> hangs SheldonPlankton Linux - Software 2 08-26-2004 02:42 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

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