10-21-2009, 01:31 PM
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.
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
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;
}
}