-
Recent Posts
- Hwarang Spirit
- Alchemy
- ListView minHeight, typeface
- Clear All Lint Markers Errors
- android.permission.INTERNET
- eclipse Korean character problem
- OnItemCLickListener not working gridview
- G is G!
- Eclipse shortcut to comment selection in an XML file
- android.app.activitythread.performlaunchactivity nullpointerexception
- How to uninstall Windows Live Essentials via CMD line parameter
- vi fold method
- android.os.NetworkOnMainThreadException
- android socket
- socket2
Tags
Archives
Category Archives: Ubuntu
vi fold method
.vimrc configuration
1 2 3 4 5 6 7 8 9 10 |
setlocal foldmethod=expr setlocal foldexpr=(getline(v:lnum)=~'^$')?-1:((indent(v:lnum)<indent(v:lnum+1))?('>'.indent(v:lnum+1)):indent(v:lnum)) set foldtext=getline(v:foldstart) set fillchars=fold:\ "(there's a space after that \) highlight Folded ctermfg=DarkGreen ctermbg=Black nnoremap <S-Left> zo inoremap <S-Left> <C-O>zo nnoremap <S-Right> zc inoremap <S-Right> <C-O>zc |
vi command mode
1 |
:set foldmethod=indent |
zR -> unfold all zM -> fold all za -> fold/unfold
vimrc configuration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
set cindent set autoindent set smartindent set showcmd set incsearch set bg=dark set visualbell set nu set shiftwidth=4 set tabstop=4 set hlsearch set showmode set ruler set noignorecase set title set tagbsearch set history=1000 filetype on syn on hi PreProc term=underline cterm=bold ctermfg=1 set tags=./tags,/usr/src/linux/tags set csprg=/usr/bin/cscope set csto=0 set cst set nocsverb if filereadable("./cscope.out") cs add cscope.out else cs add /usr/src/linux/cscope.out endif set csverb map <F2> :Tlist<cr> map <F3> <c-w><c-w> map <s-f> <c-f> map <s-b> <c-b> |
bash_profile configuration
1 2 3 4 5 6 7 8 9 10 |
$ vi .bash_profile # alias .(source) .aliases # vimrc configuration . .vimrc # develop configuration . .configuration |
cygwin, git Install
< Cygwin Installation > http://cygwin.com/install.html http://cygwin.com/setup-x86.exe run setup-x86.exe as Administrator Next > Install from Internet or Install from Local Directory > Root Directory=C:\cygwin, All User(recommended) check Select, Devel -> git Net -> openssh Setup Comleted, Cygwin Terminal shortcut created < … Continue reading
Redmine installation
Ubuntu 12.04 LTS 32bit 기준
1 |
$ sudo apt-get install tasksel |
1 |
$ sudo tasksel |
하여 메뉴를 선택하거나 또는 command line에서
1 |
$ sudo tasksel install lamp-server |
; man tasksel -> https://help.ubuntu.com/community/Tasksel
1 2 3 4 |
$ sudo apt-get install python-software-properties <-변화없음 $ sudo add-apt-repository ppa:ondrej/redmine $ sudo apt-get update $ sudo apt-get install redmine redmine-mysql |
Redmine installed directory ->/usr/share/redmine ->/etc/redmine
1 |
$ sudo ln -s /usr/share/redmine/public /var/www/redmine |
1 2 3 4 5 6 7 8 |
$ sudo vi /etc/apache2/mods-available/passenger.conf PassengerDefaultUser www-data <-IfModule내에 라인추가 $ sudo vi /etc/apache2/sites-available/default <Directory /var/www/redmine> <- VirtualHost내에 블럭추가 RailsBaseURI /redmine PassengerResolveSymlinksInDocumentRoot on </Directory> |
1 2 |
$ sudo a2enmod passenger <- 변화없음 $ sudo service apache2 restart <-아파치 재시작 |
ifconfig로 ip확인 http://ip/redmine admin/admin <- 기본 로그인 … Continue reading
Raspberry Pi Kernel Compile
Ubuntu 12.04 LTS 32bit 기준 sudo apt-get install vim(선택사항) sudo apt-get update <- gcc-4.6-arm-linux-gnueabi 설치가 안될경우 sudo apt-get install git-core sudo apt-get install gcc-4.6-arm-linux-gnueabi sudo ln -s /usr/bin/arm-linux-gnueabi-gcc-4.6 /usr/bin/arm-linux-gnueabi-gcc mkdir raspberrypi cd raspberrypi git clone https://github.com/raspberrypi/tools.git <- 다운로드 40분 정도 … Continue reading