-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
##Installation
Create a VPS with Ubuntu 12.04 LTS This is the choice because it will be supported untill 2017.
Enables at Digital Ocean
- VitrIO
- Back Ups
Sign into root at the server.
###Installation Script.
###Update After you have created a VPS you will need to update it first.
apt-get update && apt-get upgrade
Because the 12.04 doesn't support ppa's out of the box we must add the support, and add some ppa's.
apt-get install -y python-software-properties
add-apt-repository -y ppa:keithw/mosh #mosh
add-apt-repository -y ppa:fish-shell/release-2 #fish
apt-get update
Install all at onces.
apt-get install -y mosh byobu fish
The
-yis for "yes" when the console asks do you want to install.
###Install Mosh on your local machine Use the repository from above, and
apt-get install mosh
###Make sure an initial language of English is selected
Make sure /etc/defaults/locale looks like this:
root@dev:~# more /etc/default/locale
LANG="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LC_BYOBU-1
###Setting default group. A default group is required for option collaborative coding.
addgroup devstar
adduser <name>
usermod -g devstar <name>
Giving group conky sudo right without password Everybody who is in group Devstar, will be able to use sudo without password. This is accomplished by adding the group to `/etc/sudoers.d/devstar'
%devstar ALL(ALL:ALL) PASSWD:ALL
Make sure the rights are according sudo's expectation.
chmod 0440 /etc/sudoers.d/devstar
###Build default Devstar directory The default directory is needed to store every Devstar thing. This will become the collaborative folder with all the main development tools and scripts.
mkdir /devstar
mkdir /devstar/sites
mkdir /devstar/tools
mkdir /devstar/fish
mkdir /devstar/config
chown -r root:devstar /devstar /devstar/fish /devstar/sites /devstar/tools /devstar/config
And to get the fish functions folder in the Devstar folder you must create a symlink for /devstar/fish
ln -s /conky/fish /etc/fish/functions
Make sure that all the rights in the folder and subfolders are set to 775.
###Default file permissions
To be able to make Devstar the default group of every file and folder created you edit line 151 in /etc/login.defs where it says UMAKS 022 it should say UMAKS 002
The magical line for this is:
sed -i 's/UMASK\s*022/UMASK 002/g'
###Set Default Shells
To be able to still connect with your server via mosh and ssh, you will need to first open byobu before executing fish. This is because fish doesn't cooperate well with mosh or ssh.
To open fish as default shell in byobu you need to make /etc/tmux.conf looks like this
user@dev:/etc$ more /etc/tmux.conf
set -g default-shell /usr/bin/fish
set -g default-command /usr/bin/fish
Because byobu's default configuration it doesn't allow the sublime color settings of fish. It how ever does have the option to set 256 color scheme. Because the work around is a bit tricky we made it into a fish function. Check fish functions for more info on this.
The rest of all the configurations will be done with fish script. If you have cloned the git and added the fish functions to
/devstar/fish/
You can just execute to following function.
ds-upgrade
This function is also the update function.