Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
hubot init script for centos 6.4
yum install
yum install qtwebkit.i686 webkitgtk.i686
yum groupinstall -y "Desktop"
yum groupinstall -y "Development Tools"
yum install tigervnc-server -y
yum install wget telnet -y
yum install sqlite-devel
yum install nodejs npm -y
yum install redis -y
yum install python-setuptools python-setuptools-devel -y
yum update
easy_install pip
pip install Skype4Py
#config/enable vnc
#modify /etc/sysconfig/vncservers
echo -e "VNCSERVERS="1:vnc"\n VNCSERVERARGS[1]="-geometry 1024x768" >> /etc/sysconfig/vncservers
useradd vnc
su - vnc
#put password: vnc123456
#amend iptables
echo "-A INPUT -m state --state NEW -m tcp -p tcp -m multiport --dports 5900:5902,5901:5903,6001:6003 -j ACCEPT" >> /etc/sysconfig/iptables
service iptables restart
#or just do service iptables stop
#install skype
tar skype- -C /opt/
ln -s skype- skype
ln -s /opt/skype/skype /usr/bin/skype
#install hubot
npm install
npm install -g coffee-script hubot
#automate start redis and vnc service
chkconfig vncserver on #put it in start script
chkconfig redis on
service redis start
service vncserver start
#create hubot
mkdir hubot && cd hubot
hubot -c .
#add hubot-skype into depencies of package.json
#"hubot-skype": "0.0.2"
#add karma into hubot-scripts.json
["", "", ""]
#run hubot-skype
./bin/hubot -a skype &
#if you want to use hubot-control, these are the things you need to do
#use rvm to install ruby 2.0.0
\curl -sSL | bash
echo "source /usr/local/rvm/scripts/rvm" >> ~/.bash_profile
source ~/.bash_profile
sed -i 's!!!' $rvm_path/config/db
rvm install 2.0.0
#start hubot-control
cd /opt && git clone
cd hubot-control
bundle install --without test development
rails s & >/dev/null
#unicorn_rails -p 8080 -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.