LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How can I display the weather info. (graphics)on a /dev/tty7 ? (no win.manager) (https://www.linuxquestions.org/questions/linux-general-1/how-can-i-display-the-weather-info-graphics-on-a-dev-tty7-no-win-manager-591676/)

PatrickNew 10-15-2007 03:42 PM

Okay, unfortunately fbdev is a dead end - it's a way of running X, it cannot be used without X. I think one point needs clarifying. SVGAlib and directFB are two distinct things that should not be mixed. SVGAlib is a venerable old library that handles graphics, more or less by directly interfacing with the graphics through svga standards. DirectFB is a library that makes use of the /dev/fbX devices provided by the operating system. The advantages and disadvantages are listed below.

SVGAlib
-plays to the lowest common denominator of hardware support
-does not require kernel support

DirectFB
-Allows better accelleration
-Requires no special (root) privileges

If kernel support is not a problem, I'd recommend directfb backends. Links2 provides svgalib and directfb, as does mplayer. I am uncertain, but I think zgb supports only svgalib.

frenchn00b 10-15-2007 03:55 PM

Quote:

Originally Posted by PatrickNew (Post 2925256)
Okay, unfortunately fbdev is a dead end - it's a way of running X, it cannot be used without X. I think one point needs clarifying. SVGAlib and directFB are two distinct things that should not be mixed. SVGAlib is a venerable old library that handles graphics, more or less by directly interfacing with the graphics through svga standards. DirectFB is a library that makes use of the /dev/fbX devices provided by the operating system. The advantages and disadvantages are listed below.

SVGAlib
-plays to the lowest common denominator of hardware support
-does not require kernel support

DirectFB
-Allows better accelleration
-Requires no special (root) privileges

If kernel support is not a problem, I'd recommend directfb backends. Links2 provides svgalib and directfb, as does mplayer. I am uncertain, but I think zgb supports only svgalib.

Thanks a lot !


I found this but for X / gtk : http://www.directfb.org/wiki/index.p...TK_on_DirectFB
sounds fast indeed directfb

(zgv works in ttyX)

I can compile easily the kernel ... to let fb there if it is the case...

digging digging ...

frenchn00b 10-15-2007 03:59 PM

that's wicked what he can do with the windows with directfb:

http://www.directfb.org/screenshots/...D_Windows2.png

frenchn00b 10-15-2007 04:01 PM

Then, let's go for it, fbdev ! ;-) ;-)

I am now compiling the tar.gz :
http://www.directfb.org/downloads/Co...B-1.1.0.tar.gz

OK

frenchn00b 10-15-2007 04:09 PM

Quote:

Originally Posted by frenchn00b (Post 2925278)
Then, let's go for it, fbdev ! ;-) ;-)

I am now compiling the tar.gz :
http://www.directfb.org/downloads/Co...B-1.1.0.tar.gz

OK

Ok, just compiled.
I made a package for who is interested (debian stable).
http://yellowprotoss.ye.funpic.org/deb/ => directfb

Now, getting it work .. ugrr :)

PatrickNew 10-15-2007 04:09 PM

From what you said you wanted, I still recommend just adding a cron job. I think it would be much easier to write a tiny script that kills the last instance of links2 from the pid you stashed in a file, theb launch links2 again, storing its pid in the file.

frenchn00b 10-15-2007 04:18 PM

I got the links vers 2.1, ./conf...bla ; make ; make install with directfb
but get this now:
Code:

links-2.1pre30$ ./links
./links: error while loading shared libraries: libdirectfb-1.1.so.0: cannot open shared object file: No such file or directory

what a fight

frenchn00b 10-15-2007 04:19 PM

Quote:

Originally Posted by PatrickNew (Post 2925286)
From what you said you wanted, I still recommend just adding a cron job. I think it would be much easier to write a tiny script that kills the last instance of links2 from the pid you stashed in a file, theb launch links2 again, storing its pid in the file.

Oups', sorry, I do not understand .. (I am newbie)

frenchn00b 10-15-2007 04:24 PM

Quote:

Originally Posted by frenchn00b (Post 2925294)
I got the links vers 2.1, ./conf...bla ; make ; make install with directfb
but get this now:
Code:

links-2.1pre30$ ./links
./links: error while loading shared libraries: libdirectfb-1.1.so.0: cannot open shared object file: No such file or directory

what a fight


pretty weird, ... looks like this :libdirectfb-1.1.so.0
is nowhere ... hmm

seeked there: http://packages.debian.org/etch/links2

frenchn00b 10-15-2007 04:28 PM

weird after apt-get install links,

it gives me that links:
Code:

$links --version
ELinks 0.11.1 (built on Nov 27 2006 10:22:51)

Features:
Standard, Fastmem, IPv6, gzip, bzip2, Periodic Saving, Timer, Cascading Style Sheets,
Protocol (File, FTP, HTTP, NNTP, URI rewrite, User protocols), SSL (GnuTLS),
MIME (Option system, Mailcap, Mimetypes files), LED indicators, Bookmarks,
Cookies, Form History, Global History, Scripting (Lua, Perl), Goto URL History,
Search History

OK, I got it now :

links2 -version
Links 2.1pre26



Now, permissions with directfb...
http://www.directfb.org/index.php/ma.../msg00119.html

frenchn00b 10-15-2007 04:41 PM

Quote:

Originally Posted by frenchn00b (Post 2925298)
pretty weird, ... looks like this :libdirectfb-1.1.so.0
is nowhere ... hmm

seeked there: http://packages.debian.org/etch/links2

found the dude !

let's ln -s ...

Code:

/usr# find /usr/local/ -iname "*directfb-1.1*"
/usr/local/share/directfb-1.1.0
/usr/local/lib/libdirectfb-1.1.so.0.0.0
/usr/local/lib/libdirectfb-1.1.so.0
/usr/local/lib/directfb-1.1-0


frenchn00b 10-15-2007 04:47 PM

beware if you compile the links .tar.gz you've to put /usr/local stuff in appropriate debian place locations

/usr/local/bin/links is my just compiled links last stable versino

but still no directfb ...

pff
done for today :)

PatrickNew 10-15-2007 04:48 PM

Try a script like this, run as root:

Code:

#!/bin/sh
kill `cat /tmp/weatherpid`
rm ~/.links2/socket
echo $! > /tmp/weatherpid
links2 -g www.weather.whatever

Have cron run this script every time you want to refresh the display, say every 1/2 hour or whatever. The second line takes care of a socket that's not being cleaned up since we kill links2, instead of letting it clean itself up.

To any gurus, how do you/can you instruct cron to run this on a specific tty.

It may be a less techincal solution, but you can always just run it as root and use control-r to refresh. Could save you some trouble.

frenchn00b 10-15-2007 04:51 PM

I just found that interesting ... http://www.directfb.org/wiki/index.php/XDirectFB:About

frenchn00b 10-15-2007 04:53 PM

Quote:

Originally Posted by PatrickNew (Post 2925331)
Try a script like this, run as root:

Code:

#!/bin/sh
kill `cat /tmp/weatherpid`
rm ~/.links2/socket
echo $! > /tmp/weatherpid
links2 -g www.weather.whatever

Have cron run this script every time you want to refresh the display, say every 1/2 hour or whatever. The second line takes care of a socket that's not being cleaned up since we kill links2, instead of letting it clean itself up.

To any gurus, how do you/can you instruct cron to run this on a specific tty.

It may be a less techincal solution, but you can always just run it as root and use control-r to refresh. Could save you some trouble.

thank you... I'll try that too in meanwhile as alternative of no solution to run links2 -g ... thnkx


All times are GMT -5. The time now is 07:08 PM.