Update on CPD April 2012. Objectives What constitutes CPD CEM CPD requirements Useful resources.
CPD Installation Ubuntu11.10
-
Upload
anonymous-ebk7dffqx -
Category
Documents
-
view
218 -
download
0
Transcript of CPD Installation Ubuntu11.10
-
7/26/2019 CPD Installation Ubuntu11.10
1/18
Ubuntu 11.10 Installation
Install wubi version 11.10 on the windows machine:
Updated system (360 updates or so)
Download via:https:help.ubuntu.comcommunity!ive"D"ustomi#ationthe $ollowin% pac&a%es:ubuntu'11.10'des&top'i36.iso
LiveCD Softwarekit:uc&*.+.,.tar.%#
un#ip to usrbin
sudo apt'%et install uc&run uc&'%ui
Useful general hints:
-ips everythin% in current directory#ip 'r #iple.#ip .
/emove entire directory:rm 'r$ letters
ile mana%er as root:sudo nautilus
/oot password
sudo passwd root set to c2c30104 this is the same as $or user cpd on all cpd* installations
%rep 'r 'i somethin%tosearch$or .
Install CPD2 on UU!"U 11.10:
1. sudo apt'%et install libncurses'dev wor&ed ne
2. copy aerpr% to aerpr% o&
3. 5dd lines in etcbash.bashrc (home.bashrc):
"D* settin%s4 added by 2. 7u&owiec&ie8port "D*9aerpr%cpd*!D!I7/5/5;
-
7/26/2019 CPD Installation Ubuntu11.10
2/18
e8port !D!I7/5/5;*9aerpr%cp8*
?/!!I79=?/!!I7:aerpr%cpd*srcperlmod:aerpr%perllib:aerdblib:aerpr%cpd3srcperl"D3';imearselib
e8port ?/!!I7?/!,!I79=?/!,!I7:aerpr%cpd*srcperlmod:aerpr%perllib:aerdblib:aerpr%cpd3srcperl"D3';imearselibe8port ?/!!I7
5;
-
7/26/2019 CPD Installation Ubuntu11.10
3/18
in )aer)(rg)bash)ft(2'+%l:adBust $tp lo%in and dir dataCet curl path e8plicitly on line 3,:curl9usrbincurl
crontab 'u cpd 'e
'rontab ,le:
Insert the $ollowin% (includin% line brea& at ?E):
C
-
7/26/2019 CPD Installation Ubuntu11.10
4/18
sudo apt'%et install libt+'dev o&sudo apt'%et install %MM o&sudo apt'%et install libperl'dev o&
"opy aerpr%perl4 aerdb4 aerpr%cpd34 aerpr%cp8*
Na&e sure the above bashrc entries e8ist
Na&e path adaptations $or t+ and Bava in (are mar&ed in the les):aerpr%cpd3srcperl"D3';imearseNa&ele.!aerpr%cp8*srcnativeNa&eleaerpr%cp8*srcNa&ele
Ao to="D3srccore and run Oma&eO $or Pt+ (this may be called ma&e't+dependin% on the Ubuntu version)4then Oma&eO4then Oma&e clean KK ma&e installO
Ao to="D3srcperl and do Oma&e clean KK ma&e installO
Ao to=">*src and do Oma&e clean KK ma&e installO
( ou may also need to e8plicitly rebuild ="D*srcperlmod a$ter doin% theabove4 i$ it $ailed to install the rst time)
Labiew /" .
Download rpm les:labview'*010'rte'10.0.0'1.i36.rpm
"onvert to deb usin% alien:
irst install alien:sudo apt'%et install alien
"onversion step to deb:cpdQcpd'C"?2I"'R:SDownloads= sudo alien 'd 'c labview'*010'rte'10.0.0'1.i36.rpm
ls yields:cpdQcpd'C"?2I"'R:SDownloads= lslabview'*010'rte'10.0.0'1.i36.rpmlabview'*010'rte10.0.0'*i36.deblabview'*010'rte'10.0.0'1.i36.#ipcpdQcpd'C"?2I"'R:SDownloads=
Installation:
sudo dp&% 'i labview'*010'rte10.0.0'*i36.deb
2ot sure i$ $ollowin% steps are necessary:
-
7/26/2019 CPD Installation Ubuntu11.10
5/18
In all rc les and uponcpdrestart.sh4 add:!D!I7/5/5;
-
7/26/2019 CPD Installation Ubuntu11.10
6/18
Cet to yes to ta&e the server list $rom etcntp.con$4 $rom pac&a%e ntp4 so you only have to &eep it in one place.2;D5;?UC?2;"E29no
!ist o$ 2; servers to use (Ceparate multiple servers with spaces.) 2ot used i$ 2;D5;?UC?2;"E2 is yes.2;C?/F?/C9pstime1.psi.ch
5dditional options to pass to ntpdate2;E;IE2C9
/e+asters$s
5s root4 download and apply the repository %p% &ey.
w%et 'E ' http:www.remastersys.comubunturemastersys.%p%.&ey W apt'&eyadd '
5s su4 add the $ollowin% line that corresponds to your version o$ Ubuntu to youretcaptsources.list:deb http:www.remastersys.comubuntu oneiric main
then Osudo apt'%et updateO and Osudo apt'%et install remastersysO
3%a(tations for LiveCD
3%a(t 'as(er ,le to not e5e't LiveCD on restart:
ollowin%http:ubuntu$orums.or%showthread.phpXp9LL0+L6postLL0+L6
?dit etcrc0.dCLcasper and comment out4 add or modi$y the $ollowin% lines as noted: eBect 'p 'm cdrom Jdevnull *JK1
Y =prompt Z WW return 0 5dd the $ollowin% line:return 0
>>> ' i1n NCA9lease remove the disc and close the tray (i$ any) then press ?2;?/:
Nodi$y the $ollowin% line$romsbinusplashwrite ;IN?EU; 6+00tosbinusplashwrite ;IN?EU; 0
5dded modied le to rstboot.sh:
sudo rm etcinit.dcasper
http://ubuntuforums.org/showthread.php?p=9904986#post9904986http://ubuntuforums.org/showthread.php?p=9904986#post9904986 -
7/26/2019 CPD Installation Ubuntu11.10
7/18
sudo cp aerpsidivcasper etcinit.dcasper
Startu( s'ri(t:
"reate aerpsidivuponcpdrestart.sh:
Tbinbash
"D* settin%s4 added by 2. 7u&owiec&ie8port "D*9aerpr%cpd*!D!I7/5/5;
-
7/26/2019 CPD Installation Ubuntu11.10
8/18
sudo chmod @@@ aerpsidiv
place screen picture (catcosscreen.Bp%) in aerpsidiv
"opy homecpd.con%autostartuponcpdrestart.sh.des&top toaerpsidiv
*ile a%a(tations:
in aerpr%bashaer.sh:!ine *+*: adapt perl path to usrbinperl5dd psi to station list
in aerpr%cpd*bincpd*.senddata5dded some printouts
Updated aerpr%cpd*srcclientsnephaurora3000.c($rom Dere&)then in aerpr%cpd*srcma&e clean KK ma&e
*irst boot s'ri(t:
"reate aerpsidivrstboot.sh
Tbinbash
"D* settin%s4 added by 2. 7u&owiec&ie8port "D*9aerpr%cpd*!D!I7/5/5;
-
7/26/2019 CPD Installation Ubuntu11.10
9/18
cp aerpsidivCtop[ "D*.des&top homecpdDes&topcp aerpsidivChow[ Data[ Nonitor.des&top homecpdDes&topcp aerpsidiv/estart[ "D*.des&top homecpdDes&topcp aerpsidiv"on%[ ile.des&top homecpdDes&top
rm homecpdDes&topubiuity'%t&ui.des&toprm homecpdDes&tope8amples.des&top
sudo rm etcinit.dcaspersudo cp aerpsidivcasper etcinit.dcasper
ln 's aerpsilo% homecpdDes&topData
sudo cp usrsharebac&%roundswarty'nal'ubuntu.pn% usrsharebac&%roundswarty'nal'ubuntu'ba&.pn%sudo rm usrsharebac&%roundswarty'nal'ubuntu.pn%sudo cp aerpsidivcatcosscreen.Bp% usrsharebac&%roundswarty'nal'ubuntu.pn%
sudo usermod 'a 'A dialout cpd
#ther issues:
ma&e sure no root password is set
note that the sudo will not wor& due to the password.5s a result "D*will not start here but it will on the live"D.
ac&a%e si#e:dp&%'uery 'R$ O=\Installed'Ci#e][t=\ac&a%e][nO W sort 'n
Deskto( Laun'hers: "opy desired bmp icons to aerpsidiv
"reate shell scripts in aerpsidiv:des&topstartcpd*.shdes&toprestartcpd*.shdes&topstopcpd*.shdes&topstartcursclient.shdes&topstartcp8*.shdes&topopencon$.sh
or every icon do:sudo cp aerpsidiviconcpd*start.bmp
usrshareiconshicolorscalableapps
"reate new des&top icon:
%nome'des&top'item'edit SDes&top ''create'new
2ote: ;he icon is only visible when it is selected $romusrshareiconshicolorscalableapps a$ter creation once a%ain...
-
7/26/2019 CPD Installation Ubuntu11.10
10/18
copy launcher les $rom homecpdDes&top to aerpsidiv
Cymlin& to Data $older SDes&top= ln 's aerpsilo% Data
67all(a(er:
sudo cp aerpsidivcatcosscreen.Bp% usrsharebac&%rounds
sudo %edit usrshare%nome'bac&%round'propertiesubuntu'wallpapers.8ml K
5dd entry:
^wallpaperJ^nameJ"5;"EC^nameJ^lenameJusrsharebac&%roundscatcosscreen.Bp%^lenameJ
^shadetypeJsolid^shadetypeJ^wallpaperJ
;hen select it in the system settin%s.)
Eutdated4 the wallpaper is set in the rstboot.sh script
6!autilus %efaults:
sudo %edit usrsharenautilusuinautilus'le'mana%ementroperties.ui
!ine *1,:^property name9receivesde$aultJ;rue^propertyJ) does not wor&......
Ubuntu 11.10 8no+e Shell: Clear 9/e'ent Ite+s9
rom a terminal window:= cd S.localshare
;o clear history:= rm recently'used.8bel= touch recently'used.8bel
;o disable history:= sudo chattr Mi recently'used.8bel
;o enable history:= sudo chattr 'i recently'used.8bel
C#P 7#/"4 C#!*I8 *#LD/S "# SS"; 7ID
-
7/26/2019 CPD Installation Ubuntu11.10
11/18
*#LD/S:
http:www.remastersys.com$orumsinde8.phpX
-
7/26/2019 CPD Installation Ubuntu11.10
12/18
2; server to use. ;he de$ault is almost always ne here.
d'i cloc&'setupntp'server pool.ntp.or%
Create LiveCD
1. sudo remastersys'%t&2. "lear4 adBust other settin%s3. /un Distcd$s4. 5dapt splash screen (see below)5. /un Distiso
3%a(t s(lash s'reen:
cd homeremastersysremastersysICE;Nisolinu8sudo %edit isolinu8.c$%
de$ault vesamenu.c3*prompt 0timeout 1,0
menu title Relcome to the "5;"EC "D*">* !ive"D Fer.6
menu bac&%round splash.pn%menu color title 1H3@H++ c0 00000000 std
label livepersistentmenu label livepersistent ' boot the !ive Cystem in persistent mode with UC7 stic&&ernel caspervmlinu#append le9cdrompreseedcustom.seed boot9casper initrd9casperinitrd.%# uiet splash noprompt ''
persistent
label livemenu label live ' boot the !ive Cystem&ernel caspervmlinu#append le9cdrompreseedcustom.seed boot9casper initrd9casperinitrd.%# uiet splash noprompt ''
label 8$orcevesamenu label 8$orcevesa ' boot !ive in sa$e %raphics mode&ernel caspervmlinu#append le9cdrompreseedcustom.seed boot9casper 8$orcevesa initrd9casperinitrd.%# uiet splash
''
label installmenu label install ' start the installer directly&ernel caspervmlinu#append le9cdrompreseedcustom.seed boot9casper only'ubiuity initrd9casperinitrd.%# uiet
splash ''
label memtestmenu label memtest ' /un memtest&ernel installmemtestappend '
label hdmenu label hd ' boot the rst hard dis&
-
7/26/2019 CPD Installation Ubuntu11.10
13/18
localboot 080append '
3fter ,rst LiveCD oot
1. Ctart !ive"D RI;
-
7/26/2019 CPD Installation Ubuntu11.10
14/18
En the machine $rom where you want to lo%in (client):
chmod @00 S.sshssh'&ey%en 't rsa
Aeneratin% publicprivate rsa &ey pair.
?nter le in which to save the &ey (homeb.sshidrsa):?nter passphrase (empty $or no passphrase):?nter same passphrase a%ain:
our identication has been saved in homeb.sshidrsa.our public &ey has been saved in homeb.sshidrsa.pub.
;hen copy the te8t in idrsapub and trans$er it to the !ive"D e%. 5s plain te8tin an email or so..
En the !ive"D (host): sudo %edit etcsshsshdcon%
assword5uthori#ation no sudo service ssh restart cd homecpd.ssh %edit authori#ed&eys (paste &ey te8t in there)
oot re(air
https:help.ubuntu.comcommunity7oot'/epair
sudo add'apt'repository ppa:yannubuntuboot'repair KK sudo apt'%et updatesudo apt'%et install 'y boot'repair KK boot'repair
Instru+ent %rivers
3urora
-
7/26/2019 CPD Installation Ubuntu11.10
15/18
Do not run the system with baud rate L6004 there is a rmware bu% onthe nephs (rmware 1.1+) causin% nonsense calibration constants durin%auto#ero.
"ommentate the adBust#ero calls in lines @+ and 11,@. In the newestneph rmware (1.1+) the reported #eroes are already with the /aylei%hscatterin% subtracted.
In line ,3, and 66+ we replaced * with , (adBust #ero). recompile cpd* (in aerpr%cpd*src do ma&e clean KK ma&e install)
;agee 3
-
7/26/2019 CPD Installation Ubuntu11.10
16/18
$raction 9 U;I!ato$v(tmp)H
$or (i90H i^%nchannelsH iMM) \i$ (TU;I!strin%eld(rep4 44 *Mi4 tmp4 si#eo$(tmp)))i$ (TU;I!strin%eld(rep4 44 3Mi4 tmp4 si#eo$(tmp)))
return 5!C?Hi$ (TtmpY0Z WW tmpY0Z 99 O[O)
concYiZ 9 NF"H
elseconcYiZ 9 U;I!ato$v(tmp)H
i$ (TU;I!strin%eld(rep4 44 concsendM1MiG64 tmp4 si#eo$(tmp)))i$ (TU;I!strin%eld(rep4 44 concsendM*MiG64 tmp4 si#eo$(tmp)))
return 5!C?Hi$ (TtmpY0Z WW tmpY0Z 99 O[O)
s#YiZ 9 NF"Helse
s#YiZ 9 U;I!ato$v(tmp)H
i$ (TU;I!strin%eld(rep4 44 concsendM*MiG64 tmp4 si#eo$(tmp)))i$ (TU;I!strin%eld(rep4 44 concsendM3MiG64 tmp4 si#eo$(tmp)))
return 5!C?H
i$ (TtmpY0Z WW tmpY0Z 99 O[O)s#YiZ 9 NF"Helse
sbYiZ 9 U;I!ato$v(tmp)H
i$ (TU;I!strin%eld(rep4 44 concsendM3MiG64 tmp4 si#eo$(tmp)))i$ (TU;I!strin%eld(rep4 44 concsendM+MiG64 tmp4 si#eo$(tmp)))
return 5!C?Hi$ (TtmpY0Z WW tmpY0Z 99 O[O)
r#YiZ 9 NF"Helse
r#YiZ 9 U;I!ato$v(tmp)H
i$ (TU;I!strin%eld(rep4 44 concsendM+MiG64 tmp4 si#eo$(tmp)))i$ (TU;I!strin%eld(rep4 44 concsendM,MiG64 tmp4 si#eo$(tmp)))
return 5!C?Hi$ (TtmpY0Z WW tmpY0Z 99 O[O)
rbYiZ 9 NF"Helse
rbYiZ 9 U;I!ato$v(tmp)H
i$ (TU;I!strin%eld(rep4 44 concsendM6MiG64 tmp4 si#eo$(tmp)))i$ (TU;I!strin%eld(rep4 44 concsendM@MiG64 tmp4 si#eo$(tmp)))
return 5!C?Hi$ (TtmpY0Z WW tmpY0Z 99 O[O)
attnYiZ 9 NF"Helse
attnYiZ 9 U;I!ato$v(tmp)H]
C/1000
Curs'lient %is(la$
"han%e the $ollowin% les:
-
7/26/2019 CPD Installation Ubuntu11.10
17/18
aerpr%cpd*srccontrolbuiltinsdispa%%re%ator.caerpr%cpd*srclibcpd*netdsdispa%%re%ator.haerpr%cpd*srccursclientdisplaysa%%re%ate.c
iles are on "!5"? ; server: "5;"ECtest*01*0601
!/" *ile Creation
5dded push to QI2" in aerdblibD5;5;imearse.pm4 so the perl module is$ound also when called via crontab.
5dded by 2icolas 7u&owiec&i ul# 1L *01*4 to add ability to e8ecute in crontab7?AI2 \
push QI2"4( Oaerpr%cpd3binlinu8'i66libperl,.1+.*O4Oaerpr%cpd3srcperl"D3';imearselibO )H]
5dditions to crontab:0 G G G G source =5?/?2FH data.a%%re%ate.ebas ''dir9aerb&tlo% b&t neph!02/; 1d nowJJ tmpcrontab.lo% *JK1
Nodied les in aerdbetcebas accordin% to stationImportant chan%e in neph!03w.con$
44A?2?/5;E/4base4data.%et localdata =\C;5;IE2] C11a4C11m =\C;5/;] =\?2D] b&t
created db structure $or stationdata.newstation b&t
ma&e sure the creation ta&es place properly.
U(gra%e to 12.0= L"S
er$ormed updates in 11.10then ran the up%raderestart4 then:
Updated all pac&a%es related to cp8* and cpd* (Bava4t etc.)4sudo apt'%et up%rade 88888
sudo apt'%et up%rade libperl'dev
rm 'r$ aerpr%cpd3binlinu8'i66
-
7/26/2019 CPD Installation Ubuntu11.10
18/18
cd aerpr%cpd3src rm last$orce.n .runallma&e ma&e clean KK ma&e KK ma&e install
then recompiled cp8* and cpd* accordin% instructions $urther above(installation procedure)
/erun:sudo aerpsidivrstboot.sh
Updated remastersyssudo %edit etcaptsources.list uncommented remastersys linesudo apt'%et update
;ried installin%sudo apt'%et install remastersys'%uibut does not wor&
/emastersys'%t& wor&s ne
2; Installation:sudo apt'%et install ntpsudo %edit etcntp.con$sudo service ntp restart
sudo ntp 'c lpeer
It now wor&s on 1*.0+