- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Display picture in Command Line Interface
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 06:29 AM
тАО08-10-2006 06:29 AM
This may be a really off-the-wall question:
Is there a Linux utility that will display a JPG/PNG image from the Command Line Interface. i.e. WITHOUT X-Windows/Gnome/KDE running.
I've seen when Fedora or Solaris boot they display the TUX or Sun Logo at the start of the boot process, even though X-Windows has not started at that poing.
I would like to be able to display our company logo when the boot process is complete or maybe whenever getty/login run.
Thanks,
Tom
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 06:45 AM
тАО08-10-2006 06:45 AM
Re: Display picture in Command Line Interface
X-windows is an abstraction layer for you from the graphics hardware. The X-windowing system, figures out the capabilities and settings of the graphic display you have and figures out which pixel to put where on the screen and when you decide to move the image, where it is going to go. WIthout the help of this level of abstration, you need to figure out which pixel on the screen will be which color and write a program to read from jpg file and paint the screen accordingly. Which is not a small adventure in my regards.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 06:55 AM
тАО08-10-2006 06:55 AM
Re: Display picture in Command Line Interface
Thanks. I was afraid someone was going to say that.
So do Redhat/Sun et al write some assembly or C code to map their logo image onto the screen during boot?
Thanks,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 07:42 AM
тАО08-10-2006 07:42 AM
SolutionTo view images from console without X11 installed, framebuffer can be used. If you are a good programmer, just do it. Otherwise, follow these links and try to find out the right tool :
http://linux.bytesex.org/fbida
http://www.svgalib.org/rus/zgv
Good lcuk.
Kodjo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 08:03 AM
тАО08-10-2006 08:03 AM
Re: Display picture in Command Line Interface
There are actually various frame-buffer drivers:
- one for standard VGA. It will work with almost any hardware, but will limit you to the standardized VGA resolutions.
- one for VESA VBE 2.0 compliant display adapters (=most modern ones). It will allow you to use large resolutions and color depths, but does not use any hardware acceleration features.
- various drivers for some specific hardware, whose manufacturers have been kind enough to release the programming specifications to the public.
If your Linux distribution shows the Tux logo in the upper-left corner or a graphic "thermometer" display while Linux boots, your console is already set up in framebuffer mode.
You might not need to roll your own program to display the company logo. Many Linux distributions have at least some utilities that can use the framebuffer mode. A quick search on Debian's package lists (using search terms like "framebuffer", "frame buffer" or "fb*") revealed at least an image display program named "fbi" and a framebuffer-aware getty, "fbgetty". Even some movie player programs can use the framebuffer mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 11:31 AM
тАО08-10-2006 11:31 AM
Re: Display picture in Command Line Interface
I suggest reading http://www.linux.com/article.pl?sid=06/05/04/1621224
http://home.comcast.net/~fbui/index.html
http://www.svgalib.org/rus/zgv/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 07:35 PM
тАО08-10-2006 07:35 PM
Re: Display picture in Command Line Interface
in worst case you can even watch a movie in text mode using the caca library (supported by mplayer for example).
anyway, the last few post above provide enough information on the matter.
for video in the framebuffer you can use vlc - http://www.videolan.org/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2006 09:54 PM
тАО08-10-2006 09:54 PM
Re: Display picture in Command Line Interface
Thank you very much for the comments. You've given me a lot to research this weekend.
Tom