SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep:
Not able to run 'links -g <URL>
I installed Slackware 13.37 and everything was working fine but then due to some (stupid) reasons I reinstalled. I installed some software from source (mainly tripwire and so on). But apart from that I installed nothing else.
This was a simillar configration I had and everything was working properly.
But now when I run links -g <URL> it shuts down with the error 'svgalib: Cannot open /dev/mem' (?!?!?). Are you running this program as root or suid-root.
Any pointers would be appereciated.
Thanks for reading.
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Original Poster
Rep:
Sorry that did not work. I looked at the .links directory but it only contained bookmarks.
Anyway I deleted the directory and but still the same error.
Any more suggestions?
I looked up the permissions of links. It seems ok (0755). I ran 'ldd /usr/bin/links' and it has /usr/lib/libvga.so.1.
Hope this helps.
Last edited by honeybadger; 07-08-2012 at 06:20 PM.
Reason: Additional info
Were you previously using a framebuffer but no longer are? As far as I'm aware, what you're describing has been normal for non-framebuffer "links -g" since the libvga helper kernel module went away (it's no longer supported for anything close to a recent kernel).
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Original Poster
Rep:
Framebuffers - thats it.
I am dual booting with BT and so I had some parameters passed to grub to make my screen resolution 800x600 (got bad eyesight. Made the grub parameters to default and everything is working fine.
Thanks a lot for the obervation volkerdi.
You've marked this thread as solved but I have exactly the same error, the difference with me is that this happens only in X, not when run from pure console, in which case it's fine. What should I look at? I have removed the ~.links directory. My system is 13.37 32-bit. Thanks
EDIT: I have vga=default in lilo.conf if this can help.
-g Run Links in graphics mode. If not given, Links will run in text mode. Running in graphics mode means that Links will probe all compiled-in graphics devices and run on the first found. If none found, links will not run in text mode. This option works only if --enable-graphics was given to ./configure.
...
-driver <driver name>
Graphics driver to use. Drivers are: x, svgalib, fb, directfb, pmshell, atheos. List of drivers will be shown if you give it an unknown driver. Available drivers depend on your operating system and available libraries.
Code:
$ links -g -driver x http://www.google.com
Unknown graphics driver x.
The following graphics drivers are supported:
fb, svgalib
when you run links -g in console it probably works for you because you have a framebuffer console, so links uses the fb driver.
if you launch X and you don't run it using the framebuffer driver, the -g mode can't work because svgalib isn't supported and the framebuffer is not available.
links -g -driver svgalib www.db.no
svgalib: Cannot open /dev/mem
Are you running this program as root or suid-root?
links -g -driver fb www.db.no
Could not initialize graphics driver fb:
Could not get VT mode.
links -g -driver svgalib www.db.no
svgalib: Cannot open /dev/mem
Are you running this program as root or suid-root?
links -g -driver fb www.db.no
Could not initialize graphics driver fb:
Could not get VT mode.
It works outside of X in a console though, but I would like to use it in X.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.