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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'd like to build from src but not sure where to start.
I have read all these articles but it's still not clear where I should download src from and what modules to download.
I don't want to build a module against the installed kernel but I did read the article to get understanding.
I have experience with compiling software using gcc and c++ but I haven't tried it with Slackware. I learned how to compile using Fedora. Is Slackware any different?
Which sites are safe to download src code?
How would I know if the src has been compromised or otherwise altered?
How would I know what modules to download?
Suggestions & prefered strategies that are practiced are welcomed:-
Can you be more specific? Your questions are worded in such general terms, that the answer that they can receive will be to vague to be useful in my opinion.
Can you give hindsight of what driver, or at least what kind of driver you want to compile from source?
This notwithstanding, let's try to answer.
Quote:
Originally Posted by Ztcoracat
I have experience with compiling software using gcc and c++ but I haven't tried it with Slackware. I learned how to compile using Fedora. Is Slackware any different?
I don't see a reason for Slackware being very different in that respect. Generally speaking Slackware includes a rather complete tool chain, provided you made a full installation. You almost certainly will need at the very least the a, ap, d, k and l series of packages, often x as well.
Quote:
Which sites are safe to download src code?
Generally those who are used by the developers themselves to store the source code, rather that those who store source code they didn't write.
Quote:
How would I know if the src has been compromised or otherwise altered?
It depends how you get it: through a revision control system like git, svn or mercurial for instance, or as a tarball.
In the latter case the integrity of the tarball should be verified comparing the checksum of the downloaded file with the one provided by the website.
Quote:
How would I know what modules to download?
If you mean dependencies needed for compilation or at run time, that's often stated somewhere (in a website or in one of the provided files) by the developers. You'll have to check, then case occurring to find if Slacwkare ships these dependencies else where to find them elsewhere. There are cases where you get no indication. Then you can just try to build the software and find what's missing step by step.
If you speak of a driver, you'll generally need the source code for the kernel you want to run with it.
Quote:
Suggestions & prefered strategies that are practiced are welcomed:-
Suggestion : state clearly what you want to do (which software you want to compile) and why (e.g. because there is neither a trusted package nor a trusted SlackBuild available).
Preferred strategy: hard to imagine (at least by me) not knowing your goal or aim.
Last edited by Didier Spaier; 09-18-2014 at 07:07 AM.
Can you be more specific? Your questions are worded in such general terms, that the answer that they can receive will be to vague to be useful in my opinion.
Can you give hindsight of what driver, or at least what kind of driver you want to compile from source?
This notwithstanding, let's try to answer.
I don't see a reason for Slackware being very different in that respect. Generally speaking Slackware includes a rather complete tool chain, provided you made a full installation. You almost certainly will need at the very least the a, ap, d, k and l series of packages, often x as well.
Generally those who are used by the developers themselves to store the source code, rather that those who store source code they didn't write.
It depends how you get it: through a revision control system like git, svn or mercurial for instance, or as a tarball.
In the latter case the integrity of the tarball should be verified comparing the checksum of the downloaded file with the one provided by the website.
If you mean dependencies needed for compilation or at run time, that's often stated somewhere (in a website or in one of the provided files) by the developers. You'll have to check, then case occurring to find if Slacwkare ships these dependencies else where to find them elsewhere. There are cases where you get no indication. Then you can just try to build the software and find what's missing step by step.
If you speak of a driver, you'll generally need the source code for the kernel you want to run with it.
Suggestion : state clearly what you want to do (which software you want to compile) and why (e.g. because there is neither a trusted package nor a trusted SlackBuild available).
Preferred strategy: hard to imagine (at least by me) not knowing your goal or aim.
Thank you for the reply.
The kind of driver that I want to build is for an old HP desktop (2000 or older) with a old Nvidia Corp MCP61 video card. The kernels I tried are those that come with Linux Mint 17 and Linux Mint Debian.
I'm not sure if the video card is on it's way out or not but I'm trying to install Linux on a friends old desktop.
I tried the Nvidia-304 driver but not joy. I gave thought that building a driver from src might solve the graphics
issue. (distorted images, colors and text across the screen)
The kind of driver that I want to build is for an old HP desktop (2000 or older) with a old Nvidia Corp MCP61 video card. The kernels I tried are those that come with Linux Mint 17 and Linux Mint Debian.
I'm not sure if the video card is on it's way out or not but I'm trying to install Linux on a friends old desktop.
I tried the Nvidia-304 driver but not joy. I gave thought that building a driver from src might solve the graphics
issue. (distorted images, colors and text across the screen)
I don't see the point of building a kernel from source, not knowing which driver would be appropriate. Furthermore, if one is suitable it's probably already available in a binary form or easily built using an installer or (in case of NVIDIA) a SlackBuilds available @ http://slackbuilds.org.
Anyhow we first need to know the exact model of the video card and the kernel driver in use and the kernel modules already available for it. To gather this information please provide the output of following command, typed as root:
Code:
lspci -knn | grep -A3 VGA
The answer should tell us which drivers are worth trying, as NVIDIA as well as the Nouveau developers clearly state which models are supported by each driver.
As a fallback it's always possible to try the generic vesa driver, an old nv driver or if even that fails the fbdev driver, but we will consider that only if need be, after you'll have posted the requested information.
Last edited by Didier Spaier; 09-18-2014 at 03:29 PM.
I don't see the point of building a kernel from source, not knowing which driver would be appropriate. Furthermore, if one is suitable it's probably already available in a binary form or easily built using an installer or (in case of NVIDIA) a SlackBuilds available @ http://slackbuilds.org.
Anyhow we first need to know the exact model of the video card and the kernel driver in use and the kernel modules already available for it. To gather this information please provide the output of following command, typed as root:
Code:
lspci -knn | grep -A3 VGA
The answer should tell us which drivers are worth trying, as NVIDIA as well as the Nouveau developers clearly state which models are supported by each driver.
As a fallback it's always possible to try the generic vesa driver, an old nv driver or if even that fails the fbdev driver, but we will consider that only if need be, after you'll have posted the requested information.
I'd be happy to run that cmd for you but as soon as the Live Linux CD/DVD loads and I move the mouse to anywhere on the DE the machine freezes, the DE graphics becomes distorted and scattered all across the screen.
I don't know how I could run that cmd to get you that output you need since the machine is giving me that kind of performance issue. That machine is across town and I won't be able to try again until the owner is home. (next week)
I'd be happy to run that cmd for you but as soon as the Live Linux CD/DVD loads and I move the mouse to anywhere on the DE the machine freezes, the DE graphics becomes distorted and scattered all across the screen.
I don't know how I could run that cmd to get you that output you need since the machine is giving me that kind of performance issue. That machine is across town and I won't be able to try again until the owner is home. (next week)
From your answer I assume that the live media you use starts in graphical mode (under X). You can gather this information instead in launching a Slackware installer. You don't have to actually perform the installation: as soon as (as suggested by the installer) you'll have logged in as root you can launch that command. To avoid having to write the result on a paper, just plug in an USB key, then do this: (I assume the device name of the USB key will be /dev/sdb1, check with "lsblk" and adapt accordingly):
From your answer I assume that the live media you use starts in graphical mode (under X). You can gather this information instead in launching a Slackware installer. You don't have to actually perform the installation: as soon as (as suggested by the installer) you'll have logged in as root you can launch that command. To avoid having to writing the result on a paper, just plug in an USB key, then do this: (I assume the device name of the USB key will be /dev/sdb1, check with "lsblk" and adapt accordingly):
Yes the media starts in graphical mode-
I'll try your instructions instead of writing all that down but the last time I checked that machine didn't see
my usb memory.
The owner didn't control the use of her machine and there was a virus with Windows 7. I think it was oovoo causing the problem or the live chat that folks had sent her see thinks. The machine was moving very slow.
Multiple people use her machine and she doesn't monitor what is downloaded.
I recovered Windows but I'm not sure if the usb port is working now.
(Reset back to the factory image)
I'll post the output as soon as I get across town next week.
Thanks!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.