You are currently browsing the tag archive for the ‘Ubuntu’ tag.

A fresh install for my laptop, with some Desktop tools and all the rails/ruby stuff I need.

  1. Choose a short name for your computer, it will later show in the prompt. Only enter your firstname/alias, it will always show in the toolbar.
  2. Enable canonical partners in “Software Sources” > Other Software
  3. Install RVM
    sudo apt-get install curl zlib1g-dev libssl-dev libreadline6-dev libncursesw5-dev libxml2 libxml2-dev libxslt1-dev libsqlite3-dev -y
    install rvm following instructions in the link...
    
  4. Rubymine to /opt/rubymine Command key: Choose "meta is mapped to left win" in advanced keyboard layout options Executable: /opt/rubymine/bin/rubymine.sh and setup mine as executable then
    alias m="mine . > /dev/null 2>&1 &"
    

    Sun-java: It is no longer in ubuntu repos.

    sudo add-apt-repository ppa:ferramroberto/java
    sudo apt-get update
    sudo apt-get install sun-java6-jre
    export RUBYMINE_JDK="/usr/lib/jvm/java-6-sun/jre"
    
  5. Map unity menu from super to Super+z, so you can use it with shortcuts (see below) and with rubymine commands
    sudo apt-get install compizconfig-settings-manager -y
    open compiz application and rebind unity laucher @ "ubuntu unity plugin", dont mess with anything else, I managed to make ubuntu no longer boot into a GUI with just a few clicks
  6. Shortcuts
    Super+D = desktop
    Super+E = open home
    Super+Up = maximize
    Super+Down = minimize
    Super+Q = quit application (Alt+F4)

  7. Chrome sudo apt-get install chromium-browser -y
  8. Git sudo apt-get install git-core
  9. Ruco commandline editor gem install ruco
  10. copy important dotfiles + firefox history/forms/... database from .mozilla
  11. dotfiles
  12. Multi-clipboard sudo apt-get install clipit
    (set history shortcut: Ctrl+Alt+V)
  13. Skype + add skype to startup
    (video fix in dotfiles --> add add /home/xxxx/dotfiles/bin/video-skype to "Startup Spplications" )
  14. Mysql:
    sudo apt-get install mysql-server mysql-client libmysql-ruby libmysqlclient-dev -y
    I`d recommend no root password
  15. Redis sudo apt-get install redis-server -y
  16. Memcached sudo apt-get install memcached
  17. ImageMagic sudo apt-get install imagemagick libmagick9-dev -y
  18. Arial/Verdana etc fonts: sudo apt-get install msttcorefonts
  19. VirtualBox
  20. Nginx + Passenger
  21. Restrcited codes sudo apt-get install ubuntu-restricted-extras -y
  22. Terminal
    Set Ctrl+Shift+L for clear+reset in terminal, so the history gets removed on keypress
    Set Ctrl+t for new tab
  23. Postgres
    sudo apt-get install postgresql postgresql-devel
    gem install pg

    # change /etc/postgresql/9.1/main/pg_hba.conf from peer to trust
    local all postgres trust

    sudo /etc/init.d/postgresql restart

    use username: postgres + no password in database.yml

  24. Reverse scrolling
    If you often work on macs this can reduce your confusion.
    sudo add-apt-repository ppa:zedtux/naturalscrolling
    sudo apt-get update
    sudo apt-get install naturalscrolling -y

Lots of panel apps do not work with new natty ApplicationIndicators based panel, but you can manually whitelist them to work with the old system or just use them all :)

gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

After that restart/relogin they should show up.

in case you want to revert it, the default is “['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'hp-systray', 'scp-dbus-service']“

A fresh install for my laptop, with some Desktop tools ans all the rails/ruby stuff I need.

  1. Enable canonical partners in synaptic package manager
  2. Unmap main menu from super key (for rubymine + gnome-do)
    sudo apt-get install compizconfig-settings-manager
    open compiz application and rebind unity laucher @ “ubuntu unity plugin”

  3. Java sudo apt-get install sun-java6-jre && sudo apt-get remove openjdk-6-jre
  4. Git: sudo apt-get install git-core git-svn
  5. System wide RVM
    sudo su
    bash <<(curl -s https://rvm.beginrescueend.com/install/rvm)
    apt-get install zlib1g-dev libssl-dev libreadline5-dev
    rvm install 1.9.2
    rvm 1.9.2
    

    add rvm script to your .bashrc and to /root/.bashrc
    set defaults via rvm use xxx –default
    Re-login (or you get permisson denied on gem install).
    rvmsudo xxx to use gems as sudo.

  6. Ruco gem install ruco
  7. copy important dotfiles + firefox history/forms/… database from .mozilla
  8. dotfiles
  9. Multi-clipboard: sudo apt-get install glipper (available after restart)
  10. Skype + add skype to startup
  11. Application laucher: sudo apt-get install gnome-do + enable skype plugin
  12. Rubymine+ choose “meta is mapped to left win” in advanced keyboard layout options
    fix multi-clipboard issues:
    echo ‘idea.use.alt.clipboard.sync=true’ >> /opt/rubymine/bin/idea.properties
  13. Mysql:
    sudo apt-get install mysql-server mysql-client libmysql-ruby libmysqlclient-dev
    sudo aa-complain /usr/sbin/mysqld # fix apparmor denied bug
  14. Redis: sudo apt-get install redis-server
  15. Memcached: sudo apt-get install memcached
  16. ImageMagic: sudo apt-get install imagemagick libmagick9-dev
  17. Arial/Verdana etc fonts: sudo apt-get install msttcorefonts
  18. VirtualBox
  19. Nginx + Passenger
  20. Restrcited codes etc: sudo apt-get install ubuntu-restricted-extras
  21. Set a shortcut for clear+reset in terminal, so the history gets removed on keypress

A fresh install for my laptop, with some Desktop tools ans all the rails/ruby stuff i need. I tried using rvm for all gems, but since executables are not available it kind of sucks for things like passenger, where youd have to change the ruby path all the time, a real showstopper imo.

  1. Replace radiance theme with clearlock
  2. copy important dotfiles + firefox history/forms/… database from .mozilla
  3. install dotfiles
  4. Multi-clipboard: sudo apt-get install glipper (add to panel)
  5. install Skype
  6. Application laucher: sudo apt-get install gnome-do + enable skype plugin
  7. Ruby enterprise
  8. Java: sudo apt-get install sun-java6-jre
  9. Rubymine + add Rubymine Desktop icon + choose “meta is mapped to left win” in advanced keyboard layout options
  10. Mysql: sudo apt-get install mysql-server mysql-client libmysql-ruby
  11. Apache:  sudo apt-get install build-essential apache2 apache2-mpm-prefork apache2-prefork-dev
  12. sudo a2enmod rewrite
  13. Passenger
  14. SSL for apache/passenger
  15. gem sources -a http://gems.github.com
  16. gems…
  17. Git: sudo apt-get install git-core git-svn
  18. install redis
  19. sudo apt-get install memcached + add memcached -d to startup
  20. Arial/Verdana etc fonts:   sudo apt-get install msttcorefonts
  21. VirtualBox

Just wanted to share our setup, as reminder and help for others ;)

(do not forget to create a tmp and public folder inside your projects folder)

#/opt/nginx/conf/nginx.conf
server {
  listen 80;
  server_name xxx.yyy.com;

  access_log /var/log/xxx_access.log  main;
  error_log /var/log/xxx_error.log debug;
  root /srv/xxx/public;   # <--- be sure to point to 'public'!
  passenger_use_global_queue on;
}

#/etc/hosts
127.0.0.1       xxx.yyy.com

#config.ru
require 'app'
disable :run
set :root, Pathname(__FILE__).dirname
run Sinatra::Application

#app.rb
require 'rubygems'
require 'sinatra'

get "/" do
  "Hello world from xxx"
end
Follow

Get every new post delivered to your Inbox.

Join 63 other followers