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.
Just a couple of comments. I have been a Slack user for a little less than 2 weeks now and my reasons for installing it were to use its power and lack of "hand holding" for learning linux in its purest form. But, is the system so sensitive to every kerystroke that a novice like shouldn't use it?
Many know of the adverntures I have had of late trying to learn Slack and learn how to fix problems. So many have been so kind to help, I certainly don't want anyone to misinterpret my comments as disparaging the OS. I am not, on the contrary, in the beginning it looked like just what I need to learn linux properly. But, yet again, I appear to have broken it, and this time from some very innocent hacking. I was simply trying to install libgphoto2 to connect to my digital camera. After one attempt at:
$ installpkg libgphoto2-2.......
I can no longer access the X window with the error:
"No write access to /home/bob" .XAuthority
I know this is something to do with permissions (don't know what at this point), but I have somehow locked myself out of the X window (KDE) and I wasn't even root!
I truly would like to continue to use Slack, because, well, I liked it. But, even though I am trying to learn from the bottom up, if I can break the system so easily, I have to wonder if I should be using something a little more "idiot" friendly.
I am sure I will figure this one out, too, but sometimes breaking things so easily is just a nuisance, not learning.
2 things:
1) It's not normal to be able to install a package as non root user, probably trying as non-root, it untarred the package and changed permissions acording to that.
2) As root, it's very easy to break a system, just type: rm -rf / <---- DON'T DO THIS, IT'S A EXAMPLE
2 things:
1) It's not normal to be able to install a package as non root user, probably trying as non-root, it untarred the package and changed permissions acording to that.
2) As root, it's very easy to break a system, just type: rm -rf / <---- DON'T DO THIS, IT'S A EXAMPLE
Thank you once again. I am sure my frustration came out in my original post. And, once again, your recommendations have fixed it. I have worked with permissions and changing them a number of times, but this eluded me. Nothing was working. I could still startx with root, but just as you have so eloquently pointed out, I did not want to be playing around on the desktion as root.
It is strange though, I have studied the package installation system for Slackware, but I have not been able to use it. I WAS able to install one application using the old tradition method of ./configure,make,make install, but have never gotten intstallpkg to work. Swaret is the update tool, as I understand it, but I have not been able to install that because the one available to download on the net is corrupted (it ends in .tar, and using the instructions to rename to .tgz appraently corrupts it because it will not install.
If there is an alternative method to updating/upgrading my current system (.i.e. installing system "current", I would appreciate the instructions.
.tar is not the same as .tgz. Well, yes but no :P
.tgz Slackware packages are actually .tar.gz files (I mean the compression method) but mostly the content is not the same. You've to be sure you're getting a Slackware package to be able to use installpkg/upgradepkg/removepkg succesfully.
So how do you know that? Well, usually it's stated on the site you're downloading the program, it will say something like "Slackware package", "binary" or "source" the latest two, can't be used with Slackware install tools.
A good place with exclusive Slackware packages is http://linuxpackages.net .
Edit: Forgot to say, you'll mostly notice you've a Slackware package by opening the .tgz file and seeing if it contains a directory called install/ with at least a file called slack-desc and usually another called doinst.sh
And the files inside it are organized according to the place where they should go, like usr/bin/something, the whole directory structure must be there.
Thank you for that. You are right,I did see those items when I was trying to install Swaret. I also saw
doinst.sh, which I assumed was a shell script and attempted to run it thusly: sh doinst.sh. Would not run with the instructions to rename the files. I will have to study that some more before I attempt it again..
Note that in Slack you don't necessarily have to install packages via the command line. If you prefer, you can just download the .tgz then use KPackage to install it. To get to KPackage, just System > KPackage
As an aside, if you are looking for Slack packages, definitely bookmark LinuxPackages Have fun
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644
Rep:
I suggest you create an empty folder to play with, change there and unpack any package with "explodepkg name-of-the-package.tgz". Look what it is extracting (explodepkg won't install it, you will do no harm to your system ) and you will see how a slackware package is constructed. You may take a look at the install script doinst.sh which in most cases will only create some symbolic links.
You might even go further and try to create your own slackbuild files (shell scripts that automate the process of building a package from source).
In the beginning I srewed up my Slackware installation quite often and reinstalled it several times. But these experiences led me to a stable system and the knowledge to handle most every day problems on my own -- and I still have the freedom to screw it up on my own
I find that Slackware itself is very hard to break. It's known for its rock-solid stability. However, it can be hard to get things set up just the way you like. And for me too, in the beginning, I must reinstalled Slack what seemed like every other day. But I was determined to figure it out. Now, I sort of know what I am doing with Slack and it is like a rock to me. It does not break and runs forever.
You will appreciate this learning process once you've gotten through this initial trial-and-error phase, trust me. You will learn more about Linux while using Slackware than most every other distributions, IMHO. Stick with it -- it's worth it.
Thanks to everyone for replying. I am having difficulty grasping the install process. Everything I have read here is indeed happening (doinst.sh is creating symbolic links, but I have no idea what to do with them from there}.
I was trying to install libgphoto2 so that I could install gphoto2 for my camera. I never was successful. When I look at installed packages, it is listed, but when trying to ./configure gphoto2, it fails saying it can't find libgphoto2. I had similar problems in Fedora when I first started using it, but finally figured it out and I am sure I will here too. The process is all very new to me coming from Fedora (yum was almost idiot proof.) Some of it is almost as foreign feeling as coming from Windows to Linux, but it is all part of the learning process.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.