본문 바로가기

Hello Android

install jenkins on ubuntu 12.04

  1. sudo apt-get install winbind
  2. sudo apt-get install libnss-winbind
  3. sudo gedit /etc/nsswitch.conf and append "wins" after "files"


[init.sh ] - auto mount server

sleep 60

echo -e "dsic-iclab" |sudo -S mount -t cifs //192.168.203.222/osteam_drive/FTP/00_OS /home/osteam/.jenkins/jobs/DS2/workspace/mountserver -o user=osteamadmin,pass=dsic-iclab,uid=1000,gid=1000


[/etc/rc.local ]  시작 할 때 실행
su - osteam "/home/osteam/bin/init.sh"

[mount window server ]

# echo -e "dsic-iclab" |sudo -S mount -t cifs //192.168.203.222/osteam_drive/FTP/00_OS $UPLOAD_SERVER_DIR -o user=osteamadmin,pass=dsic-iclab,uid=1000,gid=1000

[need to install ]

sudo apt-get install realpath

copy to bin folder what mkimage file


[etc/fstab] // auto mount

UUID=f3467abf-2400-4652-ad80-d5cc9480c090 /media/sdb    ext4    defaults
UUID=95fdf5e8-b0f4-46c7-a173-48a76a66d237 /media/sdc    ext4    defaults
/home/osteam/swapfile none swap sw 0 0


[get uuid of disk ]

sudo blkid


[etc/rc.local] // auto execute

su - osteam "/home/osteam/bin/init.sh"



[jenkins on ubuntu 12.04]

# jenkins 접속 키 추가
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -

# jenkins 저장소 위치 추가
sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ > /etc/apt/sources.list.d/jenkins.list'

# apt-get 갱신
sudo apt-get update

# jenkins 설치
sudo apt-get install jenkins

# jenkins.war 위치 파악
dpkg -L jenkins

# 수동으로 jenkins 구동
java -jar /usr/share/jenkins/jenkins.war

Jenkins requires Java7 or later, but you are running 1.6.0_45-b06 from /usr/lib/jvm/jdk1.6.0_45/jre
java.lang.UnsupportedClassVersionError: 50.0
at Main.main(Main.java:90)

# jdk 1.7 사용
/home/hello/utils/jdk1.7.0_67/bin/java -jar /usr/share/jenkins/jenkins.war

[git 서버에 암호 없이 접근]

# key file 만들기
ssh-keygen -t rsa
ssh-keygen -t dsa
ssh-keygen -t ecdsa

# server 에 key file 추가($ssh git@192.192.192.192 로 접속)
cat id_dsa.pub >> ./authorized_keys
cat id_rsa.pub >> ./authorized_keys
cat id_ecdsa.pub >> ./authorized_keys

[윈도우 네트웍 마운트]

sudo apt-get install cifs-utils


[ubuntu 시작 프로그램실행]

$sudo vi rc.local
su hello -c '/home/hello/bin/init_program.sh'





'Hello Android' 카테고리의 다른 글

complete 함수  (0) 2015.09.15
리눅스에서 쉘 ftp  (0) 2015.08.20
camera  (0) 2015.03.16
[eclipse] java version 변경  (0) 2014.08.05
your project contains errors) please fix them before running your application  (0) 2014.08.05