LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 06-28-2009, 08:00 PM   #1
troelskn
LQ Newbie
 
Registered: Apr 2009
Posts: 9
Thanked: 0
Imagemagick import utility hangs


[Log in to get rid of this advertisement]
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?
troelskn is offline  
Tag This Post ,
Reply With Quote

Reply

Bookmarks


Thread Tools

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 01:04 PM
Imagemagick Import command help lj4 Linux - Software 1 11-27-2006 09:35 AM
Add/Remove Software utility hangs (FC5) General Fedora 2 05-08-2006 09:49 AM
Import sys ?bash: import: command not found joirnange Linux - Newbie 4 12-28-2004 11:33 PM
rpm --import <file> hangs SheldonPlankton Linux - Software 2 08-26-2004 03:42 PM


All times are GMT -5. The time now is 10:37 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration