Bigstack
01-24-2011, 09:05 PM
This Tutorial is for a Fresh install of a CentOS 5.5 64x System. (Just install the base) You can attempt to install this on a already established system however you might need to not do some steps or change others. I am not responsible for you messing up your server. However I have done extensive testing on fresh installs of CentOS 5.5 64x and it has worked every time for me.
# --- BIGSTACK'S CLIP BUCKET INSTALL ----- #
# --- Needed Files Stored Safely on -------- #
# --- Bstack.net Repo to prevent from ------- #
# --- link changes. --------------------------#
#-------- Start System Base ----------#
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
################################################## ###########
#INSTALL RPM FORGE *** If not installed already ***#
#This example is for 64x
cd
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm
rpm -i rpmforge-release-0.5.2-2.el5.rf.*.rpm
# ------ end rpm forge -------- #
################################################## ############
#-------- Install Updates and Services ----------#
yum update -y
yum groupinstall 'Development Tools' -y
yum install httpd httpd-devel -y
/etc/init.d/httpd start
yum install mysql mysql-server mysql-devel -y
/etc/init.d/mysqld start
yum install php php-mysql php-common php-gd php-mbstring php-devel php-xml -y
yum install yasm subversion -y
chkconfig mysqld on
chkconfig httpd on
cd
cd ..
yum install nano -y
#-------- Webmin Install (if wanted / needed) ----------#
#The next section will install WebMin if you are going to use
#a different control panel or already have one dont install webmin
nano /etc/yum.repos.d/webmin.repo
# --- Paste this --------- #
[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1# ---- End Paste ----------#
# -- to SAVE hit: ctrl o --then hit Enter --- then ctrl x ---#
rpm --import http://www.webmin.com/jcameron-key.asc
yum install webmin -y# -------- End webmin ----------#
# --------- FFMPEG / Codecs Install ------------#
cd
wget http://www.repo.bstack.net/clipbucket/ffmpegauto.zip
unzip ffmpegauto.zip
chmod 777 ffmpegauto
cd ffmpegauto
chmod 777 install.sh
./install.sh## --- This will take Long time go grab a snack --- #
# --------- END FFMPEG / Codecs Install ------------#
# --------- MP4Box Install ------------#
cd /usr/local/src/
wget http://www.repo.bstack.net/mp4box/gpac-0.4.5.tar.gz
wget http://www.repo.bstack.net/mp4box/gpac_extra_libs-0.4.5.tar.gz
tar -zxvf gpac-0.4.5.tar.gz
tar -zxvf gpac_extra_libs-0.4.5.tar.gz
cd gpac_extra_libs
cp -r * /usr/local/src/gpac/extra_lib
cd ..
cd gpac
chmod 755 configure
./configure
make lib
make apps
make install lib
make install
cp bin/gcc/libgpac.so /usr/lib
ln -s /usr/lib64/libglut.so.3 /usr/lib64/libglut.so
install -m644 bin/gcc/libgpac.so /usr/local/lib/libgpac.so
chmod +x /usr/local/lib/libgpac.so
ldconfig
#- You "MIGHT" Need to change the ClipBucket MP4Boc location: -#
/usr/local/bin/MP4Box
# --------- MP4Box END ------------#
#------------------- Clip Bucket Install --------------------------#
nano /etc/php.ini#** Find "short_open_tag" ** will be down toward bottom
#Set to "on":
short_open_tag = on
#Restart httpd so that changes take effect:
service httpd restart# This Will Solve the msgs.php on line 21
# If all is well you will be missing FLVtool and MP4Box on clipbucket below we install
# --------- Download Clip Bucket ------------#
#This is just a sample setup you are free to install however you want
#Since im running webmin the path to public folder is /var/www/html
# I will be installing it to /var/www/html/clip
# Which will then make domain.com/clip the URL
cd
cd ..
cd /var/www/html
wget http://www.repo.bstack.net/clipbucket/clipbucket.zip
unzip clipbucket.zip# Thats it for the Download there will be a clip folder in html
# You can now go install clipbucket -- below is optional but will help
# To make it easier on you later set the permissions onthe files
cd clip
chmod 777 files
chmod 777 files/conversion_queue
chmod 777 files/logs
chmod 777 files/original
chmod 777 files/temp
chmod 777 files/thumbs
chmod 777 files/videos
chmod 777 files/mass_uploads
chmod 777 files/temp/install.me
chmod 777 images
chmod 777 images/avatars
chmod 777 images/backgrounds
chmod 777 images/category_thumbs
chmod 777 images/groups_thumbs
chmod 777 cache
chmod 777 install
chmod 777 includes#Now go install the permissions should show up green when you get to that page
#Extras:
# --------- This is only if the auto installer doesnt install it ------ ##
# --------- FLVtool Install -----------#
yum install ruby -y
cd /usr/local/src
wget http://www.repo.bstack.net/flvtool/flvtool2-1.0.6.tgz
tar zxvf flvtool2-1.0.6.tgz
cd /usr/local/src/flvtool2-1.0.6/
ruby setup.rb config && ruby setup.rb setup && ruby setup.rb install
# --- BIGSTACK'S CLIP BUCKET INSTALL ----- #
# --- Needed Files Stored Safely on -------- #
# --- Bstack.net Repo to prevent from ------- #
# --- link changes. --------------------------#
#-------- Start System Base ----------#
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh
################################################## ###########
#INSTALL RPM FORGE *** If not installed already ***#
#This example is for 64x
cd
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm
rpm -i rpmforge-release-0.5.2-2.el5.rf.*.rpm
# ------ end rpm forge -------- #
################################################## ############
#-------- Install Updates and Services ----------#
yum update -y
yum groupinstall 'Development Tools' -y
yum install httpd httpd-devel -y
/etc/init.d/httpd start
yum install mysql mysql-server mysql-devel -y
/etc/init.d/mysqld start
yum install php php-mysql php-common php-gd php-mbstring php-devel php-xml -y
yum install yasm subversion -y
chkconfig mysqld on
chkconfig httpd on
cd
cd ..
yum install nano -y
#-------- Webmin Install (if wanted / needed) ----------#
#The next section will install WebMin if you are going to use
#a different control panel or already have one dont install webmin
nano /etc/yum.repos.d/webmin.repo
# --- Paste this --------- #
[Webmin]
name=Webmin Distribution Neutral
baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1# ---- End Paste ----------#
# -- to SAVE hit: ctrl o --then hit Enter --- then ctrl x ---#
rpm --import http://www.webmin.com/jcameron-key.asc
yum install webmin -y# -------- End webmin ----------#
# --------- FFMPEG / Codecs Install ------------#
cd
wget http://www.repo.bstack.net/clipbucket/ffmpegauto.zip
unzip ffmpegauto.zip
chmod 777 ffmpegauto
cd ffmpegauto
chmod 777 install.sh
./install.sh## --- This will take Long time go grab a snack --- #
# --------- END FFMPEG / Codecs Install ------------#
# --------- MP4Box Install ------------#
cd /usr/local/src/
wget http://www.repo.bstack.net/mp4box/gpac-0.4.5.tar.gz
wget http://www.repo.bstack.net/mp4box/gpac_extra_libs-0.4.5.tar.gz
tar -zxvf gpac-0.4.5.tar.gz
tar -zxvf gpac_extra_libs-0.4.5.tar.gz
cd gpac_extra_libs
cp -r * /usr/local/src/gpac/extra_lib
cd ..
cd gpac
chmod 755 configure
./configure
make lib
make apps
make install lib
make install
cp bin/gcc/libgpac.so /usr/lib
ln -s /usr/lib64/libglut.so.3 /usr/lib64/libglut.so
install -m644 bin/gcc/libgpac.so /usr/local/lib/libgpac.so
chmod +x /usr/local/lib/libgpac.so
ldconfig
#- You "MIGHT" Need to change the ClipBucket MP4Boc location: -#
/usr/local/bin/MP4Box
# --------- MP4Box END ------------#
#------------------- Clip Bucket Install --------------------------#
nano /etc/php.ini#** Find "short_open_tag" ** will be down toward bottom
#Set to "on":
short_open_tag = on
#Restart httpd so that changes take effect:
service httpd restart# This Will Solve the msgs.php on line 21
# If all is well you will be missing FLVtool and MP4Box on clipbucket below we install
# --------- Download Clip Bucket ------------#
#This is just a sample setup you are free to install however you want
#Since im running webmin the path to public folder is /var/www/html
# I will be installing it to /var/www/html/clip
# Which will then make domain.com/clip the URL
cd
cd ..
cd /var/www/html
wget http://www.repo.bstack.net/clipbucket/clipbucket.zip
unzip clipbucket.zip# Thats it for the Download there will be a clip folder in html
# You can now go install clipbucket -- below is optional but will help
# To make it easier on you later set the permissions onthe files
cd clip
chmod 777 files
chmod 777 files/conversion_queue
chmod 777 files/logs
chmod 777 files/original
chmod 777 files/temp
chmod 777 files/thumbs
chmod 777 files/videos
chmod 777 files/mass_uploads
chmod 777 files/temp/install.me
chmod 777 images
chmod 777 images/avatars
chmod 777 images/backgrounds
chmod 777 images/category_thumbs
chmod 777 images/groups_thumbs
chmod 777 cache
chmod 777 install
chmod 777 includes#Now go install the permissions should show up green when you get to that page
#Extras:
# --------- This is only if the auto installer doesnt install it ------ ##
# --------- FLVtool Install -----------#
yum install ruby -y
cd /usr/local/src
wget http://www.repo.bstack.net/flvtool/flvtool2-1.0.6.tgz
tar zxvf flvtool2-1.0.6.tgz
cd /usr/local/src/flvtool2-1.0.6/
ruby setup.rb config && ruby setup.rb setup && ruby setup.rb install