Skip to content

Instantly share code, notes, and snippets.

@hiro345
hiro345 / install_ruby-2.2.1_for_CentOS6
Created Apr 1, 2015
Ruby 2.2.1 install script for CentOS6
View install_ruby-2.2.1_for_CentOS6
#! /bin/sh
epelRpm=epel-release-6-8.noarch.rpm
rpmforgeRpm=rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
remiRpm=remi-release-6.rpm
ruby=ruby-2.2.1
rubygems=rubygems-2.4.6
# base update
yum -y update
@hiro345
hiro345 / install_node-0.12.0_for_Ubuntu14.04.sh
Created Feb 18, 2015
Node.js install script for Ubuntu 14.04
View install_node-0.12.0_for_Ubuntu14.04.sh
#!/bin/sh
v=v0.12.0
node="node-${v}"
dst="$HOME/applications/node"
if [ ! -e "$dst}/src" ]; then
mkdir -p "${dst}/src"
fi
cd "${dst}/src"
wget http://nodejs.org/dist/${v}/${node}.tar.gz
@hiro345
hiro345 / install_ruby-2.2.0_for_ubuntu14.04.sh
Last active Aug 29, 2015
Ruby 2.2.0 install script for Ubuntu 14.04
View install_ruby-2.2.0_for_ubuntu14.04.sh
#!/bin/sh
v=2.2
ruby="ruby-${v}.0"
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential libssl-dev zlib1g-dev
dst="$HOME/applications/ruby"
if [ ! -e "${dst}/src" ]; then
@hiro345
hiro345 / create_english_link_for_Ubuntu.sh
Last active Dec 22, 2015
Ubuntuなどで日本語環境のHOMEに自動でできるディレクトリへ英語名のシンボリックリンクをつけるスクリプト
View create_english_link_for_Ubuntu.sh
@hiro345
hiro345 / install_vbox_for_fedora18.sh
Last active Dec 16, 2015
VitualBox install script for Fedora18. change "user001" to your account.
View install_vbox_for_fedora18.sh
#!/bin/sh
cd /etc/yum.repos.d/
wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
yum -y install \
binutils \
gcc \
make \
patch \
libgomp \
glibc-headers \
@hiro345
hiro345 / install_chrome_for_fedora18.sh
Created Apr 13, 2013
Google Chrome install script for Fedora18
View install_chrome_for_fedora18.sh
#!/bin/sh
cat > /etc/yum.repos.d/google-chrome.repo << EOL
[google-chrome]
name=google-chrome - 64-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
EOL
@hiro345
hiro345 / create_english_link.sh
Created Apr 13, 2013
Fedora, CentOS などで日本語環境のHOMEに自動でできるディレクトリへ英語名のシンボリックリンクをつけるスクリプト
View create_english_link.sh
You can’t perform that action at this time.