Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added some more functionality and system settings

  • Loading branch information...
commit 2dd2da1a84613ce1ce163f08980f0879cdbe7e50 1 parent 3452571
Isa Goksu authored
28 README.md
View
@@ -8,7 +8,7 @@ Here we go.. One side note here is, I'm not planning to solve everyone's problem
## Installation
-For Ubuntu and OSX you can use the **boot.sh** and for Windows you should use **boot.ps1**. There are of course some pre-conditions for your machines. I'll explain why in a bit. But these are something you have to do anyways. Just follow the instructions for each platform.
+For Ubuntu and OSX you can use the **boot.sh** and for Windows you should use **boot.ps1**. There are of course some pre-conditions for your machines. I'll explain why in a bit. But these are the things you have to do it anyways. Just follow the instructions for each platform.
### OSX
@@ -28,15 +28,37 @@ Current setup does following:
* groovy
* mercurial
* fantom
+ * wget
+ * tree
3. After finishing all, it starts installing my minimum required apps:
* Google Chrome
* LaunchBar
* iTerm2
* Speed Download Lite
-4. After above packages are installed, it tries to setup the user's home directory by:
- * Download and configure my [**Vim**vironment](http://github.com/isa/vim-vironment)
+4. After above packages are installed, it tries to setup the user's home directory:
+ * Downloads and configures my [**Vim**-vironment](http://github.com/isa/vim-vironment)
* Creates all the symbolic links necessary to work with anything (.profile, .git-config, .hgrc, etc)
### Ubuntu
Coming soon..
+
+### Windows
+
+Coming soon..
+
+## What's Next?
+
+Well, there are couple more steps for you to be ready.
+
+First let's make your **Vim** awesome. Just launch vim and type:
+
+ :BundleInstall
+
+This will setup your vim plugins.
+
+## Done?
+
+For now, but you can always add more confgiuration any time. The idea is just making things easier. This works for me, and I'm not intending to replace any of the devops solutions out there. This is not a devops tool. This is just a bunch of scripts that speeds up machine setup.
+
+Hope you like it.
BIN  osx/bin/dockrw
View
Binary file not shown
8 osx/boot.sh
View
@@ -17,12 +17,19 @@ require "fantom;fansh|tree;tree|wget;wget"
# install mac apps
require "Google Chrome" "https://dl.google.com/chrome/mac/stable/CHFA/googlechrome.dmg"
require "LaunchBar" "http://www.obdev.at/downloads/launchbar/LaunchBar-5.1.3.dmg"
+require "DropBox" "http://cdn.dropbox.com/Dropbox%201.2.51.dmg"
require "Speed Download Lite" "http://mirror.nscocoa.com/~yazsoftc1/files/sdl/sdl.zip"
require "iTerm2" "http://iterm2.googlecode.com/files/iTerm2-1_0_0_20120123.zip"
# and finally
+setup_system
setup_user
+# also download some necessary packages
+download "http://pqrs.org/macosx/keyremap4macbook/files/PCKeyboardHack-7.2.0.pkg.zip" "PCKeyboardHack.zip"
+download "http://pqrs.org/macosx/keyremap4macbook/files/KeyRemap4MacBook-7.5.0.pkg.zip" "KeyRemap4MacBook.zip"
+
+
# don't forget
# apply iTerm settings
@@ -31,6 +38,5 @@ setup_user
# keyboard speed
# tap to click
# touchpad speed
-# desktop background
# desktop icon size
# dock magnification, dock size, minimize to app
58 osx/functions.sh
View
@@ -15,6 +15,10 @@ function message() {
echo -e "$1${NORMAL}"
}
+function download() {
+ curl "$1" -o $HOME/Downloads/$2
+}
+
function homebrew() {
exists=`which brew`
@@ -114,6 +118,60 @@ function link_user_folder() {
ln -s $HOME/.vim-vironment/vimrc $HOME/.vimrc
}
+function setup_dock() {
+ # dock
+ defaults write com.apple.dock mineffect suck
+ # these are for macbook air, change if you need it
+ defaults write com.apple.dock tilesize -int 42
+ defaults write com.apple.dock magnification -bool true
+ defaults write com.apple.dock largesize -int 56
+
+ # enable iTunes notifications
+ defaults write com.apple.dock itunes-notifications -bool TRUE
+
+
+}
+
+function setup_system() {
+ # show IP address in the login screen
+ defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo IPAddress
+
+ # change background
+ # login window
+ curl -s "http://ns223506.ovh.net/rozne/16fddb6222d841e447f89002e4554593/wallpaper-444284.jpg" -o $HOME/Pictures/login.jpg
+ defaults write /Library/Preferences/com.apple.loginwindow DesktopPicture "$HOME/Pictures/login.jpg"
+ # desktop
+ curl -s "http://ns223506.ovh.net/rozne/b47a59331f4f1ba89c13d494cdefe08e/wallpaper-314929.jpg" -o $HOME/Pictures/desktop.jpg
+ defaults write com.apple.desktop Background '{default = {ImageFilePath = "~/Pictures/desktop.jpg"; };}'
+
+ # fix iTunes zoom button
+ defaults write com.apple.iTunes full-window 1
+
+ setup_dock
+
+ # require password when waking from sleep
+ defaults -currentHost write com.apple.screensaver askForPassword -int 0
+
+ # disable re-opening apps on logon
+ defaults write com.apple.loginwindow TALLogoutSavesState -bool false
+
+ # revert back to real "natural scrolling"
+ defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
+
+ # enable keyboard access for all controls
+ defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
+
+ # enable subpixel font rendering on non-Apple LCDs
+ defaults write NSGlobalDomain AppleFontSmoothing -int 2
+
+ # show all file extensions
+ defaults write NSGlobalDomain AppleShowAllExtensions -bool true
+
+ # speed up the keyboard
+ defaults write NSGlobalDomain InitialKeyRepeat -int 4
+ defaults write NSGlobalDomain KeyRepeat -int 0.02
+}
+
function setup_user() {
configure_vim
link_user_folder
Please sign in to comment.
Something went wrong with that request. Please try again.