linux 프로그램 설치

592 views
Skip to first unread message

ccncneuroimage

unread,
Jun 14, 2013, 4:24:43 AM6/14/13
to linux-f...@googlegroups.com

교수님 컴퓨터 window 또는 linux로 log in 하기

부팅하자 마자 F12를 누른다.

HDD로 들어가면 Ch 00(window)과 Ch 01 SAMSUNG (linux)이 나온다.

♡ 리눅스 설치

♥ 인터넷 연결

♡ Freesurfer

♥ FSL Installation

♡ Matlab

♥ MRIcron

♡ 리눅스 설치


CD를 넣고 화면이 뜨면 Install 선택

media test ‘skip’

정해진 설정대로routine하게 진행

사용자는 ccnc 비밀번호는 15981213으로 설정

소프트웨어 옵션은 ‘Desktop’으로 선택

자동으로 재부팅

CD 다시 넣고 update 실행


♥ 인터넷연결


시스템-기본설정-네트워크연결

System eth0 선택 à ‘변경하기’

‘IPv4 설정’ 탭

방식= 수동

주소= 각 자리 IP 주소. 147.47.228.***

넷마스크= 255.255.255.0

게이트웨이= 147.47.228.1

DNS서버= 147.46.80.1

입력 후 연결


♡ FSL installation


FSL 홈페이지(http://fsl.fmrib.ox.ac.uk/fsldownloads/)에서 Personal Information입력

Linux용 fslinstaller.py 다운로드

‘다운로드’디렉토리에 ‘fslinstaller.py’ 파일이 생김

Fslinstaller 파일이 보이는 디렉토리에서 python fslinstaller.py –o 입력

다운로드 완료되면 Fsl~~.tar.gz 파일 생성됨

tar xvzf fsl~~.tar.gz로 압출풀기

fsl폴 생성됨

su 접속해(password 15981213) fsl폴더를 /usr/local/ 이동


FSLDIR 설정

vi ~/.bashrc 접속

FSLDIR=/usr/local/fsl

. ${FSLDIR}/etc/fslconf/fsl.sh

PATH=${FSLDIR}/bin:${PATH}

export FSLDIR PATH

입력

vi에서 나와서

source ~/.bashrc

enter 누른후 fsl 실행


fslview

♥ MRIcron

은 bin에 설치!

vi ~/.bashrc

alias dcm2nii=”/home/ccnc/bin/mricron/dcm2nii”

하고 나와서(esc :exit)

source ~/.bashrc

which dcm2nii

확인하고

dcm2nii 실행

bin에다

rdesktop

yum install rdesktop


♥ FREESURFER

http://surfer.nmr.mgh.harvard.edu/fswiki/Download

에 가서 우리 버젼에 맞는 freesurfer 를 다운로드

http://surfer.nmr.mgh.harvard.edu/fswiki/LinuxInstall

에 가서 순서대로 실행

tar tzf freesurfer-Linux-<platform>-<release>-full.tar.gz (tar tzf 파일이름)

vi ~/.bashrc

#freesurfer

export FREESURFER_HOME=usr/local/freesurfer

source $FREESURFER_HOME/FreesurferEnv.sh


esc

:exit

source ~/.bashrc

해 주어야 한다.


free surfer licence e-mail입니다.

소장하고 계시다가 freesurfer 설치 하실 때 사용하시면 될 것 같습니다.


Here is your FreeSurfer license.  Place the three lines between the

CUT HERE markers in a file named ".license" in the directory pointed to

by the $FREESURFER_HOME environment variable (see the FreeSurfer documentation).


#---------------CUT HERE---------------

cke...@hotmail.com

12835

*C9W1CM2hBEdo

#---------------CUT HERE---------------


The information you submitted was:


title=Mr

firstname=Kevin

lastname=CHO

institution_name=Seoul National University

institution_type=nonprofit_

education_research

user_email=cke...@hotmail.com

address1=B101-2

address2=Biomedical science building, Seoul National University Hospital

city=Seoul

state=

zipcode=110-210

country=Korea

telephone=010-0000-0000

fax=

OS/Platform=Linux/Intel



The information in this e-mail is intended only for the person to whom it is

addressed. If you believe this e-mail was sent to you in error and the e-mail

contains patient information, please contact the Partners Compliance HelpLine at

http://www.partners.org/complianceline . If the e-mail was sent to you in error

but does not contain patient information, please contact the sender and properly

dispose of the e-mail.


MATLAB

www.mathworks.co.kr에서 사용자등록하고 다운로드

activation key

java 설치하고

matlab_.zip 폴더 다운로드

unzip한 후

root로 로그인해서 ./install (superuser로 로그인 su)

설치프로그램 실행되면 하라는대로

폴더 디렉토리는 /usr/local/MATLAB으로 지정


SPM installation(SU 모드가 아닌 모드에서 실행)

spm8.zip을 Download

http://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Linux



spm8.zip와 업데이트를 bin에다가 푼다


setpath는 수동으로 한다.

spm8이 있는 폴더에 직접 가서 setpath 해 준다(아래 subfolder까지 하는 걸로 설정)

vi ~/.bashrc

PATH=/usr/local/MATLAB/bin:${PATH}

export PATH

source ~/.bashrc

login Super User

cd /home/login/spm8/src

make distclean

make && make install

make toolbox-distclean

make toolbox && make toolbox-install

make external-distclean

make external && make external-install

VBM installation

download vbm from

http://dbm.neuro.uni-jena.de/vbm8/

unzip the file

vbm folder

spm8 폴더 안에 toolbox라는 폴더에 넣는다.

교수님 자리 그래픽 카드

소프트 웨어 다운로드에 있음

Colorful NVIDA

http://www.colorful.cn

window

endnote

한컴office

SPSS

ssps : http://my.snu.ac.kr à campus license SW

147.47.xxx.xxx에서만 다운가능

Programs(English only)

Linux & Windows

Background saying

‘put all your analysis data into c:\data\<yourName_day_forwhichstudy>’

‘do not put your personal data on this computer, it will be deleted’

MRI 데이터 받는 법

ssh ro...@147.47.228.192

비번을 친다.

DiskStation에서 mri로 들어간다.

원하는 파일을 찾아서

Pwd를 경로를 찾는다.

새로운 창을 띄운다

복사해서 담을 폴더에 들어가서

scp ro...@147.47.228.192:~~~~ (pwd에서 구한 경로를 붙여넣는다)/* ./

(참고로 ./는 현재 디렉토리라는 뜻이다)

For Loop 사용해서 Skull 잘라내는 법

for i in {01..N..1}

> do

> bet ${i}.nii ${i}_bet.nii.gz

> done


for i in *

> do

> bet ${i}.nii ${i}_bet -f 0.3

> done

Slicesdir 사용하는 법

slicesdir -o *nii*

ctrlC

firefox

ctrlV

For Loop 사용해서 IntraCranial Volume 구하는 법

for i in *.nii.gz

do

echo ${i} >> ICV.txt

fslstats ${i} -V >> ICV.txt

echo >> ICV.txt

done

copying files from other computers

ssh name(server2)


R Installation

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

and then just doing

yum install R

http://stackoverflow.com/questions/9468164/problems-installing-r-on-linux-centos-6-2


프린터 세팅하는 법

go to administrative options and find printer


add new and find samba

put the exact sharef name of the printer after the server computer’s IP address


like

http://147.47.228.229/CLX-6220

Kevin Kangik Cho

unread,
Jun 14, 2013, 4:27:49 AM6/14/13
to linux-f...@googlegroups.com
test
멋지네요

ccncneuroimage

unread,
Jun 14, 2013, 6:12:07 AM6/14/13
to linux-f...@googlegroups.com


2013년 6월 14일 금요일 오후 5시 24분 43초 UTC+9, ccncneuroimage 님의 말:

system->administration->printing


add new (printer) insert PIN

 

network printer->windows printer via samba

 
smb://147.47.228.229/CLX-6220

set authentication detail as
ccnc
15981213

choose provide ppd file
ask kang-ik or youngwoo for the
ppd file
OR
copy CLX-6220ps.ppd from
server1 or server2 computer
/home/ccnc/Download


put the exact shared name of the printer after the server computer’s IP address


like


ccncneuroimage

unread,
Jun 14, 2013, 6:13:18 AM6/14/13
to linux-f...@googlegroups.com


2013년 6월 14일 금요일 오후 7시 12분 7초 UTC+9, ccncneuroimage 님의 말:
Reply all
Reply to author
Forward
0 new messages