Ubuntu 14.04 で、ruby on rails passenger をインストールして apache 連携する

passenger インストール cd ~/ rbenv exec gem install passenger rbenv rehash passenger-install-apache2-module実行 rbenv exec passenger-install-apache2-module passenger-install-apache2-module 詳細 This installer will guide you through the entire installation process. It shouldn't take more than 3 minutes in total. Here's what you can expect from the installation process: 1. The Apache 2 module will be installed for you. 2. You'll learn how to configure Apache. 3. You'll learn how to deploy a Ruby on Rails application....

2014-11-14 ·  2014-11-14 · 4 分 · 755 文字

Ubuntu14.04 visudo エディタをvimに設定する

Ubuntu14.04 visudo エディタをvimに設定する 以下コマンドでエディタを変更しておく sudo update-alternatives --config editor

2014-11-10 ·  2014-11-10 · 1 分 · 8 文字

Ubuntu 14.04 postgresql install

postgresql install sudo apt-get install postgresql sudo apt-get install libpq-dev postgresql settings sudo su postgres -c psql postgres=# CREATE ROLE [user] SUPERUSER LOGIN; postgres=# \password [user] [userpassword] [userpassword] check or list database, tables, indexes, and so on. postgres=# create database [user]; postgres=# select * from pg_user; /* ユーザ一覧 */ postgres=# \d /* 表、インデックスの一覧 */ postgres=# \dt /* 表の一覧 */ postgres=# \d [表名] /* 表の項目一覧 */ postgres=# \l /* データベース一覧、文字コード表示 */ postgres=# \q /* 終了 */ psql -l # データベース 一覧 psql [データベース名] # psql へ切り替え

2014-10-23 ·  2014-10-23 · 1 分 · 85 文字

Ubuntu 14.04 remote desktop with xrdp

install xrdp server sudo apt-get install xrdp sudo apt-get install xlde echo lxsession -s LXDE -e LXDE > ~/.xsession sudo service xrdp restart

2014-10-23 ·  2014-10-23 · 1 分 · 23 文字

Ubuntu14.04 ruby 用 vim 設定

ruby 開発環境 vim install sudo apt-get install vim vim-gtk vim-gui-common install vim-nox vim --version |grep ruby +diff +menu -ruby +writebackup sudo apt-get install vim-nox vim --version |grep ruby +diff +menu +ruby +writebackup settings mkdir -p ~/.vim/bundle cd ~/.vim/bundle/ git clone http://github.com/Shougo/neobundle.vim vim ~/.vimrc set number set nocompatible filetype plugin indent off if has('vim_starting') set runtimepath+=~/.vim/bundle/neobundle.vim call neobundle#rc(expand('~/.vim/bundle')) endif " 以下は必要に応じて追加 " NeoBundle 'Shougo/unite.vim' " NeoBundle 'Shougo/neosnippet.vim' NeoBundle 'git://github.com/Shougo/neobundle.vim.git' NeoBundle 'git://github.com/Shougo/neocomplcache.git' NeoBundle 'git://github....

2014-10-23 ·  2014-10-23 · 1 分 · 164 文字