LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 09-25-2011, 05:07 AM   #31
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-14.1
Posts: 160

Rep: Reputation: 26

Quote:
Ok, so now I am having trouble trying to learn how to install packages. I down load the file and then its in ARK, what do I do next extract right? Then there's the pkgtool. If someone could just give me a step by step I would appreciate it. I have done all the reading but im not getting it.
There are many linux applications already packaged for slackware, available at various repositories, like alien's slackbuilds, linux packages, and slacky.eu
. The packages are usually specific to the version of slackware they were compiled for. So if you are using slackware-13.37, you download packages for slackware-13.37, or slackware64-13.37, etc. The packages usually end in .txz or tgz. Create a folder somewhere for saving slackware packages... ( mine is /home/slackware/slackware64-13.37/pax ) and then open up a terminal application and navigate to the folder to where you saved a slackware package.

Code:
cd /home/slackware/slackware64-13.37/pax
Then, you can install a package with the installpkg command, provided you have administrative privileges. (When you first logged in as root, and were creating your first user, you could also have given that user some administrative privileges with the visudo command. When logged in as root, when you type visudo, it opens up a file where you search for a line that says to "uncomment" to allow users in the group "wheel" to have administrative privileges. To uncomment it, you just delete the "#" that begins the line. Then you also edit the file /etc/group, and add the user name to the end of the line for the group wheel. From then on, that user will be able to assume administrative privileges by typing sudo before any command they need such privileges.) So, provided your user has administrative privileges, to install the slackware package, simply type

Code:
sudo installpkg packagename.txz
A description of the package will be displayed while it is being installed. It should take less than a few minutes... usually only seconds!

One great feature of this packaging system, is that if you don't like the application or the result of installing the application, you can easily remove it with the removepkg command:

Code:
sudo removepkg packagename

Sometimes a prepackaged binary installed in this method might not work. When this happens, I do the removepkg as above, and then head over to http://www.slackbuilds.org, where they have scripts, called slackbuild scripts, that compile source code into packages that can be installed with the installpkg command. The benefit to this is that these scripts customize the application for slackware; also, during the compilation, the application is being cross linked with the exact libraries on your system, and not the libraries on some developer's system, and for this reason, packages created with slackbuild scripts often work when the precompiled binary failed. The downside to the slackbuild scripts is that you have to wait for the software to compile before you get to install it with installpkg.

Things to avoid while managing slackware packages: try not to install software packaged for other distros... you will end up getting components installed in the wrong places. If you can't find a precompiled binary or a slackbuild script for linux software, then, if you can get the source code to the software, you can tackle compiling it yourself, and even creating your own slackbuild script for it.... 99% of the time I find that there are already slackbuild scripts for what I need.

Welcome to Slackware. You can check out anytime you like...
 
Old 09-27-2011, 05:00 AM   #32
scottfree
LQ Newbie
 
Registered: Sep 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by slac-in-the-box View Post
There are many linux applications already packaged for slackware, available at various repositories, like alien's slackbuilds, linux packages, and slacky.eu
. The packages are usually specific to the version of slackware they were compiled for. So if you are using slackware-13.37, you download packages for slackware-13.37, or slackware64-13.37, etc. The packages usually end in .txz or tgz. Create a folder somewhere for saving slackware packages... ( mine is /home/slackware/slackware64-13.37/pax ) and then open up a terminal application and navigate to the folder to where you saved a slackware package.

Code:
cd /home/slackware/slackware64-13.37/pax
Then, you can install a package with the installpkg command, provided you have administrative privileges. (When you first logged in as root, and were creating your first user, you could also have given that user some administrative privileges with the visudo command. When logged in as root, when you type visudo, it opens up a file where you search for a line that says to "uncomment" to allow users in the group "wheel" to have administrative privileges. To uncomment it, you just delete the "#" that begins the line. Then you also edit the file /etc/group, and add the user name to the end of the line for the group wheel. From then on, that user will be able to assume administrative privileges by typing sudo before any command they need such privileges.) So, provided your user has administrative privileges, to install the slackware package, simply type

Code:
sudo installpkg packagename.txz
A description of the package will be displayed while it is being installed. It should take less than a few minutes... usually only seconds!

One great feature of this packaging system, is that if you don't like the application or the result of installing the application, you can easily remove it with the removepkg command:

Code:
sudo removepkg packagename

Sometimes a prepackaged binary installed in this method might not work. When this happens, I do the removepkg as above, and then head over to http://www.slackbuilds.org, where they have scripts, called slackbuild scripts, that compile source code into packages that can be installed with the installpkg command. The benefit to this is that these scripts customize the application for slackware; also, during the compilation, the application is being cross linked with the exact libraries on your system, and not the libraries on some developer's system, and for this reason, packages created with slackbuild scripts often work when the precompiled binary failed. The downside to the slackbuild scripts is that you have to wait for the software to compile before you get to install it with installpkg.

Things to avoid while managing slackware packages: try not to install software packaged for other distros... you will end up getting components installed in the wrong places. If you can't find a precompiled binary or a slackbuild script for linux software, then, if you can get the source code to the software, you can tackle compiling it yourself, and even creating your own slackbuild script for it.... 99% of the time I find that there are already slackbuild scripts for what I need.

Welcome to Slackware. You can check out anytime you like...
Wow Thank You!, That was pretty comprehensive. Let me give it a shot.
 
Old 09-27-2011, 06:09 AM   #33
scottfree
LQ Newbie
 
Registered: Sep 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
Ok now I have been working on it for a few hours(lol) and I am not able to login as root, I don't think I set up my user correctly. I set up the file and downloaded the audacity tar package and everything was a go and I don't have root. I saw that in your post so now I know I have to reconfigure that. Almost there, will start fresh tomarrow.
 
Old 09-27-2011, 09:51 AM   #34
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
It is most likely that sudo is not configured on your system, just use
Code:
su -
to become root.
 
Old 09-27-2011, 08:28 PM   #35
scottfree
LQ Newbie
 
Registered: Sep 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
Ok guys, I appreciate your patience (in advance) I can't login as root, I created a user in KDE and I can't login as root. su - is not working it keeps saying authentication failure when I type in my password. I wonder if I am putting in the wrong password? How do I reset the root password? Package is ready to go I just need the password! Any help appreciated. So close!!

Last edited by scottfree; 09-27-2011 at 08:30 PM.
 
Old 09-28-2011, 03:06 AM   #36
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,501

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Are you logging in in the CLI, or in KDE?
From the CLI:
Code:
su
password from root
You can't and shouldn't login as root in the login screen from KDE.
To verify the password from root, type the password in the user field.

Kind regards
 
Old 09-28-2011, 03:11 AM   #37
scottfree
LQ Newbie
 
Registered: Sep 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
Ok thanks!
 
Old 09-28-2011, 11:00 PM   #38
scottfree
LQ Newbie
 
Registered: Sep 2011
Posts: 24

Original Poster
Rep: Reputation: Disabled
Damn! Well guys 3 days straight trying to install a package, very close but no go. I know its easy and I'm right there but its not happening. Its saying the sucker cannot be read or something. Lol does someone have any help? Basically I don't think I have my user set up correctly. I made a new user and I was in VI and added wheel as a group but I think I uncommented the wrong one but there was not an uncomment for administration. I uncommented two things and saved in VI when I exited. I could message someone my phone # if they would b willing to walk me through it.

Last edited by scottfree; 09-28-2011 at 11:09 PM.
 
Old 09-29-2011, 04:07 AM   #39
alekow
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 127

Rep: Reputation: 17
You don't have to use sudo. Login as a root in your console or use "su -" and then try to use installpkg (if it actually IS a tgz/txz package).

EDIT:

I just thought, that you probably configured sudo right, but you didn't use the absolute path to installpkg, which is located in /sbin. /sbin is not part of ordinary user's PATH variable.
Try the following commands as an ordinary user:

Code:
echo $PATH
whereis installpkg
and also as a root
Code:
echo $PATH
to see the differences

Last edited by alekow; 09-29-2011 at 04:21 AM.
 
Old 09-29-2011, 04:19 AM   #40
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,257

Rep: Reputation: Disabled
There is a ##slackware IRC channel full of helpful people on the Freenode IRC network. You can try and get your issues sorted out in a more interactive way there.
To me it looks like you need to read the Slackware Book at http://slackbook.org/ at least a few more times so that you understand how Linux, and Slackware in particular, actually works.

If you want real help, you will have to do better than "Its saying the sucker cannot be read or something lol" and "I think I uncommented the wrong one but there was not an uncomment for administration".

Eric
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Some Slackware Install Questions TheStarLion Slackware - Installation 3 12-08-2009 01:09 PM
Slackware Laptop Install - Questions Sir Edwin CBE Slackware 7 11-13-2009 08:14 PM
Slackware 10.2 Install: A Few Questions garyozzy Slackware - Installation 7 10-03-2005 05:59 PM
Slackware 9.1 install, partition questions slackman Linux - Newbie 6 11-02-2003 02:30 PM
Slackware install questions Ghaz Linux - Newbie 1 10-16-2003 05:47 PM


All times are GMT -5. The time now is 04:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration