LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-08-2012, 04:37 PM   #1
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
Exclamation 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.
 
Old 07-08-2012, 04:56 PM   #2
silendo
Member
 
Registered: Jun 2012
Location: Italy
Distribution: Slackware 13.37
Posts: 45

Rep: Reputation: Disabled
The ".links" there is in the home directory? I think that this can be the main problem
 
Old 07-08-2012, 06:15 PM   #3
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Original Poster
Rep: Reputation: Disabled
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
 
Old 07-08-2012, 07:35 PM   #4
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,524

Rep: Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493
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).
 
2 members found this post helpful.
Old 07-09-2012, 02:27 AM   #5
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-09-2012, 01:57 PM   #6
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
Question

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.

Last edited by ottavio; 07-09-2012 at 02:00 PM.
 
Old 07-09-2012, 02:20 PM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,110

Rep: Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180Reputation: 4180
excerpts from "man links"
Quote:
-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.

Last edited by ponce; 07-09-2012 at 02:21 PM.
 
Old 07-09-2012, 02:29 PM   #8
ottavio
Member
 
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
Ah ok, if I put together this statement:
Quote:
Originally Posted by volkerdi View Post
the libvga helper kernel module went away (it's no longer supported for anything close to a recent kernel).
with this:
Quote:
Originally Posted by ponce View Post
the -g mode can't work because svgalib isn't supported and the framebuffer is not available.
it's all clear now.
 
Old 11-19-2012, 08:53 AM   #9
Soderlund
Member
 
Registered: Aug 2012
Posts: 185

Rep: Reputation: 81
Just thought I'd add, if anyone's struggling with this:

Rebuild links from the official sources, but change the -without-x ./configure option to -with-x in the links.SlackBuild. Then it works in X with -g.
 
1 members found this post helpful.
Old 01-01-2016, 02:08 PM   #10
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
Quote:
Originally Posted by Soderlund View Post
Just thought I'd add, if anyone's struggling with this:

Rebuild links from the official sources, but change the -without-x ./configure option to -with-x in the links.SlackBuild. Then it works in X with -g.
I did this, but I still get an error message running
Code:
3 ;( jostein@jostein ~/Downloads/links $ links -g -driver x
Unknown graphics driver x.
The following graphics drivers are supported:
fb, svgalib
3 ;( jostein@jostein ~/Downloads/links $
Anyone's gotten this to work?
 
Old 01-01-2016, 02:47 PM   #11
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware64-current
Posts: 249

Rep: Reputation: 24
Try with "-g -d svgalib" or "-g -d fb" options.
 
Old 01-01-2016, 03:58 PM   #12
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
Quote:
Originally Posted by yars View Post
Try with "-g -d svgalib" or "-g -d fb" options.
I then get these errors:

Code:
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.

Last edited by jostber; 01-01-2016 at 04:00 PM.
 
Old 01-01-2016, 04:03 PM   #13
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
--with-x works here....
 
Old 01-01-2016, 04:04 PM   #14
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
Quote:
Originally Posted by jostber View Post
I then get these errors:

Code:
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.
 
Old 01-01-2016, 04:44 PM   #15
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
Quote:
Originally Posted by jostber View Post
It works outside of X in a console though, but I would like to use it in X.
I installed version 2.12 instead and now it works with X as well.
 
  


Reply



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
Broken multilingual links in apache2 even when url-encoded? michaelsanford Linux - Server 0 10-18-2007 07:04 PM
Can't open URL links in Thunderbird unixfreak Linux - Newbie 4 10-18-2004 11:00 AM
Situation with links to url with Firefox WhiteTornado Linux - Software 1 05-29-2004 11:23 PM
Is there anyway to change kmail to let mozilla open URL's in email links instead of newfish Linux - Software 3 04-23-2004 06:44 PM
Gimp::Embedding Url Links in Images rootyard Linux - Software 1 08-17-2003 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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