LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Installing Packages (bittornado) in Slackware (https://www.linuxquestions.org/questions/slackware-14/installing-packages-bittornado-in-slackware-807694/)

take2hikes 05-13-2010 06:20 PM

Installing Packages (bittornado) in Slackware
 
Hi everyone. I installed Slackware 13 last night and have been trying to get bittornado to properly work.

Some background info, I have my partitions set up as follows:
  • Partition 1: /
  • Partition 2: /usr/local
  • Partition 3: /home
  • Partition 4: swap

I unzipped the tar.gz file and made a package using makepkg, and then installed it. Afterwords, trying to run "btlaunchmanycurses" or "btlaunchmanycurses.py" doesn't do anything.

Further examining shows me that it installed the package to my / directory. Shouldn't packages be installed somewhere in my /usr dir?

I'm new to linux, I spent some time with it a couple years ago but haven't done anything since. I'd really appreciate it if anyone could lend me a hand here!

sycamorex 05-13-2010 06:25 PM

bittornado is available in /extra - Unless you've got a specific reason not to do so, it's recommended to use slackware standard sources.

take2hikes 05-13-2010 06:29 PM

Thanks for the reply, I wasn't aware of the /extra. That being said, I can't seem to find it, either.

Apart from that, isn't still the installation of packages to my / an issue?

take2hikes 05-13-2010 06:34 PM

It also installed Firefox to the same location.

I found a Slackware source package for Bittornado and the script installed it just fine, the commands are working.

So I guess what I would like to know is how to install things myself (such as Firefox) and have them be set up correctly in the proper location. Also, is there an easy way to clean up my / directory without re-installing?

Thanks, I appreciate the help(and patience)!

sycamorex 05-13-2010 06:44 PM

Firefox is also part of Slackware - you don't have to compile it from source.

Can you post the EXACT commands you used to install bittornado?


The easiest way of installing source tarballs is via a small package called src2pkg
http://www.src2pkg.net/
It will create a slack package for you (as long as you've got all dependencies satisfied)

Try also www.slackbuilds.org which has a great deal of installation scripts for programs.
There's currently a thread here on LQ about sources of third party packages in Slackware - You might find it useful

sycamorex 05-13-2010 06:47 PM

Here's the thread:
http://www.linuxquestions.org/questi...ckware-806816/

take2hikes 05-13-2010 06:58 PM

The commands I followed are:

Code:

tar xzf [file].tar.gz
cd [dir]
makepkg ../BitTornado.tgz
cd ..
installpkg BitTornado.tgz

The same was done for the Firefox install.


[edit] Also, thanks for the SlackBuilds.org link. That is a great help!

sycamorex 05-13-2010 07:27 PM

This is how I would build a slack package from source:
Code:

./configure --prefix=/usr --libdir=/usr/lib
make
mkdir /tmp/alsa-usx
make install DESTDIR=/tmp/alsa-usx
cd /tmp/alsa-usx
makepkg -l y -c n /tmp/usx2yloader-1.0.22.txz
installpkg /tmp/usx2yloader-1.0.22.txz

You didn't specify the prefix. As bittornado consists of python files the above wouldn't work, though. Here's an example of a full slackbuild script for another python source code
http://slackbuilds.org/slackbuilds/1...ols.SlackBuild

note the line: python setup.py install --root=... [it will 'build' the package in the specified location]

btw, you can always try src2pkg.

take2hikes 05-13-2010 07:30 PM

Ok, that makes sense. Thanks for the help on that! I feel like an idiot.

Another issue here is that when I plugin my external HD it pops up, but when I open it up in Dolphin it says "Could not enter folder /mnt/hd"

Is there a way to set it so that my normal user account can access the device that I mount?

sycamorex 05-13-2010 07:40 PM

It might be the case that you didn't add yourself to additional groups:
Quote:

audio video cdrom plugdev power netdev scanner
You can check which groups you belong to by typing:
Quote:

groups
If you only belong to 'users' you can do [as root]:
Quote:

usermod -G audio,video,cdrom,plugdev,power,netdev,scanner your_username

take2hikes 05-13-2010 07:50 PM

I did exactly as you posted, but with entering my username at the end, of course. However, when I exit out of root and type "groups" again nothing has changed ..

sycamorex 05-13-2010 07:53 PM

Sorry, I forgot to add. YOu need to log out and log in back for the change to take effect.

take2hikes 05-13-2010 08:01 PM

Ok, now the changes have been made. But still Dolphin is unable to enter the /mnt/hd folder.

sycamorex 05-13-2010 08:09 PM

Ok, your external drive should be mounted somewhere in /media.
On the left-hand side panel of dolphin there should be a new entry indicating your external hd. You shouldn't enter it by trying to access '/dev/hd*'

What are the outputs of the following commands [as root]:
Quote:

fdisk -l
and
Quote:

ls /media

take2hikes 05-13-2010 08:18 PM

In attempting to correct the problem earlier I had edited the /etc/fstab file. After erasing the changes I made there, it works perfectly.


Thank you very much though. There is definitely a learning curve here. Is there any good books on Linux/Unix that you would recommend?


All times are GMT -5. The time now is 10:46 PM.