LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 01-14-2007, 05:40 PM   #1
j0rd4n
LQ Newbie
 
Registered: Jan 2007
Location: Redlands, CA
Distribution: Slackware 11
Posts: 21

Rep: Reputation: 15
Question Is it possible to convert 'run' files to slackware packages?


I've downloaded a video driver for an ATI Mobility Radeon 9100 IGP card. The driver installer only comes as a .run script. If I run the script, the installer only gives me options for SUSE or Redhat distributions.

Does anyone know if it is possible to convert this to a slackware-friendly installer (or if it is possible to install anyway and it work)?

Thanks,
j0rd4n
 
Old 01-14-2007, 06:02 PM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
No, there is no direct way to convert .run to slackware-friendly installer. (You could, however, track what files the .run installs by running something like paco with it ... # paco -lD "ati-installer.run" ..., but it wouldn't do you too much good)

You should follow the guide to installing the driver:
http://www.linuxquestions.org/questi...d.php?t=402003
 
Old 01-15-2007, 12:48 AM   #3
j0rd4n
LQ Newbie
 
Registered: Jan 2007
Location: Redlands, CA
Distribution: Slackware 11
Posts: 21

Original Poster
Rep: Reputation: 15
Thumbs up

Thanks. I had figured there wasn't, but I was concerned about the script up-chucking files all over my tidy drive. I actually had an incredibly successful installation. For those of you who come across this again, this is what I did.

Compaq Presario R3000 Laptop
ATI Radeon Mobility 9000/9100 IGP (integrated)
Slackware 11 - 2.6.17.13 kernel + modules + source

1. Downloaded ATI drivers (for integrated/motherboard video) from http://www.ati.com/support/drivers.html

2. Ran the 'run' file - it "advertised" Debian/RH/SUSE/Ubuntu distros only, but it installed just fine on slackware. I just went for the automatic install. This created a log file in /usr/share/fglrx that had the paths listed for all the installed files.

3. Rebooted into runlevel 3 as root and ran 'aticonfig' using initial parameters to create a default xorg.conf file (see the end of the aticonfig help screen for parameters to do this).

And that was it! It even recognized my WXGA widescreen resolution (1280x800) without needing any seperate BIOS patches and used this as the default resolution.
 
Old 01-15-2007, 01:20 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,755

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
I've just added such a possibility to my PkgBuild software using the 'trackinstall' program which will track nearly any command you want and create a nice tgz package for you, if at all possible. It works even with interactive scripts such as the opera installer and flash_player plugin installer. Hmm, just occurred to me that I have a program that can run a GUI installer -I should check to see what happens when that runs...
Anyway, you can get PkgBuild here:
http://distro.ibiblio.org/pub/linux/...migo-PkgBuild/
Get at least the 0.9.8 version for the mentioned features.
After installing PkgBuild, running this command should do it for you:
trackinstall -S -r=".run"
You may need to refine or specify which documents to install using the -d DOCLIST option.
trackinstall, src2pkg and PkgBuild use the installwatch libraries to track the command(s) on a system level and will detect any files or directories created and create a package from that. PkgBuild also now has a very simple utility calle 'tracklist' which does nothing but create a list of files and directories created by whatever command:
tracklist sh .run
should create the list for you in the current dir.
 
Old 01-15-2007, 10:55 AM   #5
j0rd4n
LQ Newbie
 
Registered: Jan 2007
Location: Redlands, CA
Distribution: Slackware 11
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gnashley
I've just added such a possibility to my PkgBuild software using the 'trackinstall' program which will track nearly any command you want and create a nice tgz package for you, if at all possible.
gnashley,

That is awesome! I'm definitley going to use this. Does it catch the files as they are installed and package them instead or does it let the files install *and* create a package from them?
 
Old 01-15-2007, 03:26 PM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,755

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
The default strategy is to avoid having the package installed to your system.
Basically it goes like this:

Install the files and log the creation of all links, files, and directories.

Using installwatch gives a very detailed log of sys-calls from which we parse all that to get a FILELIST and a DIRLIST. But installwatch will also backup any file on your system which is about to be overwritten. We save these backups and use them below.

Having the FILELIST of files and links created on your system by whatever install command you ran, we copy those files into the package tree.

Right away we restore any backed up files from above to your system. (You can also save archives of these).

Remove any unique directories created by the installation on your system.

*At this point your system is back to its' original state
and all content generated by the command is in the package tree.

Package content gets checked and altered, etc

Final package creation

This provides both the most accurate way to track the creation of content and a way to immediately restore your system to the same state as before.
 
Old 01-15-2007, 06:50 PM   #7
j0rd4n
LQ Newbie
 
Registered: Jan 2007
Location: Redlands, CA
Distribution: Slackware 11
Posts: 21

Original Poster
Rep: Reputation: 15
Cool

Hey, that's a cool tool! That is going to be a big help. Thanks.
 
  


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
Can anyone recommend some good software to convert *.wav files into *mp3 files? Tom "Techno" Earl Linux - Software 4 10-12-2006 04:03 PM
convert of packages Crazyqdk Slackware 4 01-29-2006 05:13 AM
Convert text files to html files lothario Linux - Software 3 09-27-2005 08:48 PM
Files needed to run Slackware Kensai Slackware 1 02-17-2004 10:39 PM
convert packages huno Linux - Software 1 01-21-2004 11:01 AM


All times are GMT -5. The time now is 09:05 PM.

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