Support Forums
Prepping Fedora(or any yum based distro), to automagically install what you want - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Computer Support Topics (https://www.supportforums.net/forumdisplay.php?fid=4)
+---- Forum: Linux, FreeBSD, and Unix (https://www.supportforums.net/forumdisplay.php?fid=17)
+---- Thread: Prepping Fedora(or any yum based distro), to automagically install what you want (/showthread.php?tid=1947)



Prepping Fedora(or any yum based distro), to automagically install what you want - bsdpunk - 10-21-2009

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;
        }




RE: Prepping Fedora(or any yum based distro), to automagically install what you want - manipulate - 10-21-2009

That's pretty cute, I'll have to try it out soon.


RE: Prepping Fedora(or any yum based distro), to automagically install what you want - wat - 10-22-2009

[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 ;).


RE: Prepping Fedora(or any yum based distro), to automagically install what you want - manipulate - 10-23-2009

I just said beautiful and the T was definitely there, good job with the stereotypes polar bear boy.


RE: Prepping Fedora(or any yum based distro), to automagically install what you want - Elektrisk - 10-23-2009

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

Maybe if they're from some backwater part of the country.


RE: Prepping Fedora(or any yum based distro), to automagically install what you want - Gaijin - 10-23-2009

This was useful, thank you BSD...


RE: Prepping Fedora(or any yum based distro), to automagically install what you want - Uhriventis - 12-19-2009

SuSE out of box does rpm and yums. Any distro can really. Just tweak it.


RE: Prepping Fedora(or any yum based distro), to automagically install what you want - Synny - 12-21-2009

Nice tutorial from the man himself .