Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prepping Fedora(or any yum based distro), to automagically install what you want
#1
This is brought to you by the http://bsdpunk.blogspot.com blog, thanks.

These scripts can be used generically to install anything you wish, there really easy to reverse engineer and custom retrofit. The bash one even does a couple tar balls, the perl one just does yum. I do development, with perl, and python, on computers and robots, and audio editing, so what I install reflects that.

The first one is bash, so you can save it as install.sh, and run it by typing:
bash install.sh
as long as you are in the directory you saved it in.
PHP Code:
#!/bin/bash
#run as root
#prep
cd /root
mkdir 
/root/tar
#Necessities for existence/development
yum -y install xchat
yum 
-y install screen
yum 
-y install cpan
yum 
-y install wget
yum 
-y install PCRE
yum 
-y install cmake
yum 
-y install gtk+
yum -y install pygame
yum 
-y install python-devel
yum 
-y install cmake
yum 
-y install cmake-devel
yum 
-y install liblo
yum 
-y install liblo-devel
yum 
-y install gcc-c++-devel
yum 
-y install cmake-gui
#robotics
yum -y install nxt_python
yum 
-y install pybluez
#Audio programs setup
yum -y install libsndfile
yum 
-y install libsndfile-devel
yum 
-y install qjackctl
yum 
-y install zynaddsubfx
yum 
-y install vkeybd
yum 
-y install qtjack-devel
yum 
-y install csound
yum 
-y install csound-devel
yum 
-y install portmidi
yum 
-y install rosegarden4
yum 
-y install jamin
yum 
-y install jack-audio-connection-kit-devel
yum 
-y install ctapi-cyberjack-devel
yum 
-y install zynjacku
yum 
-y install ardour
#installs of utilities through tar balls
#Yes, you can get nmap through yum, however Fyodor reccommends a source install
#and to be honest, it isn't that hard
cd /root/tar
wget http
://nmap.org/dist/nmap-5.00.tar.bz2
tar -xvf nmap-5.00.tar.bz2 
cd 
/root/tar/nmap-5.00
./configure
make
make install
cd 
/root/tar
wget http
://download.gna.org/algoscore/AlgoScore-081112.tar.bz2
tar -xvf AlgoScore-081112.tar.bz2
cd 
/root/tar/AlgoScore
./make_build 

This next one is in perl, so you can save it as install.pl, and then run it by typing:
perl install.pl
as long as it is in the same directory you saved it in
PHP Code:
#!/usr/bin/perl
use strict;
use 
warnings;

my $yum;

my @yum_installs qw(
    
xchat    screen    cpan
    wget    pcre
-devel    cmake
    gtk
+    pygame    python-devel
    cmake    cmake
-devel    liblo
    liblo
-devel gcc-c++-devel    cmake-gui
    libsndfile    libsndfile
-devel    qjackctl
    zynaddsubfx    vkeybd    qtjack
-devel
    csound    csound
-devel    portmidi
    rosegarden4    jamin    jack
-audio-connection-kit-devel
    ctapi
-cyberjack-devel    zynjacku    ardour
    nxt_python    pybluez
);

array_cracker();

sub array_cracker(){
    foreach(@
yum_installs){
            print 
$_;
            
$yum = `yum -y install $_`;
            print 
$yum;
        }

Reply
#2
That's pretty cute, I'll have to try it out soon.
[Completely Honest. Seriously.]

Protip: Anonymous Reputation Points are for Pussies
Reply
#3
[Australian Accent]

BEAU-IFUL

[/Australian Accent]

I left out the 't', because Australians don't pronounce t's.

The perl script's awesome, I love how you're able to add any package to the array ;).
Reply
#4
I just said beautiful and the T was definitely there, good job with the stereotypes polar bear boy.
[Completely Honest. Seriously.]

Protip: Anonymous Reputation Points are for Pussies
Reply
#5
Quote:I left out the 't', because Australians don't pronounce t's.

Maybe if they're from some backwater part of the country.
Reply
#6
This was useful, thank you BSD...
Reply
#7
SuSE out of box does rpm and yums. Any distro can really. Just tweak it.
[Image: Uhriventis.gif]
Reply
#8
Nice tutorial from the man himself .
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Fedora 14 and a Asus Netbook mrnapolean1 0 1,003 12-09-2011, 08:20 PM
Last Post: mrnapolean1
  What Do You Think of Fedora 15? Phoenix 7 1,563 07-20-2011, 07:30 AM
Last Post: Phoenix
  Fedora OS mrnapolean1 7 1,397 06-30-2011, 05:06 AM
Last Post: #Reality
  Some body tell me what distro this is? RDCA 18 4,307 04-04-2011, 05:07 PM
Last Post: AceInfinity
  Quickest Linux Distro? Beano 13 8,351 01-29-2011, 07:52 PM
Last Post: Epicly

Forum Jump:


Users browsing this thread: 1 Guest(s)