Recent Changes - Search:

Participantes

Proyectos

Cursos

Bitacoras

Support

upload Folder

edit SideBar

P Cs Radares

back

Version Grupo Radares UABC

Installation of Ubuntu 14.04.2 LTS (Trusty Tahr) 64-bit on LERA field machines These are the master instructions, and the only ones kept up-to-date. In the instructions below, # indicates a root prompt and a command to be executed as root, and $ indicate a user prompt and a command to be executed as the current user (typically wera). Preformatted text between horizontal lines should be copied verbatim into configuration files. Hardware should consist preferably of a low power Pentium with dual core and 3 Mb cache, 8 Gb memory, 1 Tb system disk drive, one main 1 Gbs ethernet (to get data from dtacq), two auxiliary ethernet (to communication with PA and to outside network), RS232 (dtacq console), USB (DDS FTDI interface).

1. Prepare USB key with Ubuntu 14.04.2 LTS 64-bit desktop version

from an ubuntu laptop: wget --user=lera --ask-password http://www.satlab.hawaii.edu/support/lera/soft/linux/ubuntu-14.04.2-desktop-amd64.iso

Applications->System tools->Administration->Startup Disk Creator

Shutdown laptop

Plug USB key on target machine to be installed.

Start machine and select "Try Ubuntu without installing."

2. Allocate drive space.

Open terminal window and type sudo gparted.

Create a partition table of type msdos,

Then three partitions in the table: Click en Partition y luego New (para cada partición)

 /dev/sda1 Primary partition type ext4 (83)  32 Gb (New Size 32*1024=32768) MiB 
 /dev/sda2 Primary partition type linux-swap (82)  16 Gb (2x real memory) (Size 16*1024=16384) MiB
 /dev/sda3 Primary partition type ext4 (83)  remaining of the disk

Dar click en paloma verde Apply All operations. Dar click Apply en ventana.

If a GPT partition table already exists, you must delete it and recreate a msdos table; this is important for later grub installation. Be careful not to create extended partitions; their management in case of recovery/surgery is more difficult. Commit changes.

ftp://ocomex.ens.uabc.mx/Dania/configLERA/2_particion1.JPG
ftp://ocomex.ens.uabc.mx/Dania/configLERA/2_particion2.JPG

3. Select icon "Install Ubuntu 14.04.2" Poner English el lenguaje. Probable no haya internet, poner continue. Choose "Something else" when allocating disk space, and change the given partitions so that: ftp://ocomex.ens.uabc.mx/Dania/configLERA/Somethingelse.JPG
Seleccionar /dev/sda1 y dar click en change. Seleccionar ext4 journaling file system. Seleccionar Format the partition.

 /dev/sda1 is ext4, formatted, and mounted as /
 /dev/sda3 is ext4, formatted, and mounted as /home

DO NOT USE MODIFY THE PARTITION SIZE OR PARTITION TABLE TYPE! If you do, Ubuntu will create a guid partition table instead of msdos with subsequent problems.

ftp://ocomex.ens.uabc.mx/Dania/configLERA/3_particion1.JPG
ftp://ocomex.ens.uabc.mx/Dania/configLERA/3_particion2.JPG
ftp://ocomex.ens.uabc.mx/Dania/configLERA/3_men.JPG

Install Now y continue. Seleccionar ubicacion Los Angeles. Continue Keyboard Layout English (US)

ftp://ocomex.ens.uabc.mx/Dania/configLERA/3_horario_1.JPG
ftp://ocomex.ens.uabc.mx/Dania/configLERA/3_horario_2.JPG

4,5,6. Define user ocomex and set password. Your name: ocomex your computer's name: ocomex-(poner 3 letras del sitio) (ejem ocomex-ere). password: (Password para sitios) Click en login automatico. (Si la PC estara en un lugar seguro).

ftp://ocomex.ens.uabc.mx/Dania/configLERA/4_ocomex1.JPG

7. Computer will ask to restart when installation is complete; remove the USB key. If the computer does not reboot, there is a GRUB problem. This happens frequently, fix as follows: boot again using USB key and select "Try Ubuntu 14.04 without installing"

ftp://ocomex.ens.uabc.mx/Dania/configLERA/7_aviso.JPG
open a terminal window and type

 sudo su

enter ocomex password

7.45: Es muy seguro que no haya Internet, por lo que en la terminal se teclea cat /etc/resolv.conf Si en el nameserver aparece 127.0.1.1, es el IP por defecto, por lo que para habilitar el Internet hay que cambiar ese IP. Por lo que se teclea vi /etc/resolv.conf Cambiar nameserver a 148.231.192.6 (IP servidor ocomex) Para corroboar que hay Internet, en la terminal teclear ping www.google.com o abrir firefox.

mount the partition that has Ubuntu installed on it: this is should normally be

Teclear en la terminal mount /dev/sda1 /mnt

Check that the correct partition is mounted with ls /mnt you should see directories /bin, /boot, /etc ...

install GRUB: grub-install --root-directory=/mnt /dev/sda''

DO NOT INCLUDE THE PARTITION NUMBER HERE!!!

 umount /mnt
 reboot

remove the USB key before the boot sequence starts. // Al reiniciar, repetir el paso 7.45 para tener acceso a Internet.

ftp://ocomex.ens.uabc.mx/Dania/configLERA/7_45paso1.JPG
ftp://ocomex.ens.uabc.mx/Dania/configLERA/7_45paso2.JPG
ftp://ocomex.ens.uabc.mx/Dania/configLERA/7_45paso3.JPG

8. Create wera account. UID and GID must be exactly what the dtacq expects. If you do no do this, the dtacq may not be able to write the data. It is best to do these changes now to avoid problems later. Open terminal window:

 $ sudo su    (enter ocomex password)
 # useradd -u 500 -g 100 wera  
 # passwd wera                 set wera password
 # cd /home
 # mkdir wera
 # chown wera.users wera
 # vi /etc/passwd              set wera shell to /usr/bin/tcsh

el shell no existe aun, se debe instalar primero en apt-get -y install tcsh apt-get update apt-get install tcsh

Debe ser el paso 12 primero.

Buscar la linea wera:x:500.... y agregar /usr/bin/tcsh

 # vi /etc/login.defs          

edit to read:

 UID_MIN                   500
 UID_MAX                 60000
 SYS_UID_MIN               100
 SYS_UID_MAX               499
 GID_MIN                   100
 GID_MAX                 60000
 SYS_GID_MIN               61
 SYS_GID_MAX               99 //

ftp://ocomex.ens.uabc.mx/Dania/configLERA/8.JPG

9. Update and install various packages:

 apt-get update
 apt-get -y install apache2
 apt-get -y install build-essential
 apt-get -y install bvi
 apt-get -y install chromium-browser
 apt-get -y install csh
 apt-get -y install gifsicle
 apt-get -y install gimp
 apt-get -y install gparted
 apt-get -y install gpsbabel
 apt-get -y install ia32-libs
 apt-get -y install icomlib1c2
 apt-get -y install icomlib1-dev
 apt-get -y install icomlib-bin
 apt-get -y install icomlib-doc
 apt-get -y install imagemagick
 apt-get -y install isc-dhcp-server
 apt-get -y install libio-socket-inet6-perl
 apt-get -y install libio-socket-ssl-perl
 apt-get -y install libnet-ssleay-perl
 apt-get -y install netpbm
 apt-get -y install nfs-kernel-server
 apt-get -y install ntp
 apt-get -y install openjdk-6-jre-headless
 apt-get -y install openssh-server
 apt-get -y install rpm
 apt-get -y install screen
 apt-get -y install setserial
 apt-get -y install smartmontools
 apt-get -y install tcsh
 apt-get -y install traceroute //

'''vi conf. pegar todo lo del paso 12!!!!. sh conf. Se empiezan a ejecutar todas las ordenes. ''' ftp://ocomex.ens.uabc.mx/Dania/configLERA/8.JPG

10 . Enable sudoer for wera:

sudo su poner pass ocomex

 # vi /etc/group             

edit line sudo:x:27:ocomex , appending wera: sudo:x:27:ocomex,wera

 # exit

Verify by typing su wera, entering wera password, then sudo su and entering wera password again, that you can gain root priviledge. We no longer put root password in /etc/shadow, as there are security issues associated with allowing direct root login. //

su wera sudo su.

11. Add the radlab hosts:

 # vi /etc/hosts 

and add at the start of the file:

 127.0.0.1       localhost
 127.0.1.1       ocomex-abc

Abrir terminal shh wera@172.16.2.43 Yes wera password con T ocomex-vil cat /etc/host

copiar las siguientes lineas de ocomex-vil

 # hard-coded IP for real-time upload on eth0
 128.171.154.150 www.satlab.hawaii.edu

 # private net eth1 at 1 Gbs to dtacq
 172.16.2.12 dtacq

 #router net

 # private net eth2 at 10 Mbs to pa with DHCP
 172.16.3.21 pa

One may need to check what DHCP address is actually served out to the PA. If the PA is swapped for another one with a different MAC address, unless the DHCP_lease file is erased, the new one will become 172.16.3.22, etc.. See /var/lib/dhcpd.leases; you can remove this file to reset the IP of the PA. //

12. Configure the various disks:

No se ocupa si no tenemos mas discos

 # vi /etc/fstab

remove the UUID of /dev/sda1 /dev/sda2 /dev/sda3, list by the device name instead, if you later want to do cloning, otherwise leave as is. add the data disks as direct physical mounts; we prefer the ext4 journal:

 #/dev/sdb1	/media/sdb1	ext4	defaults	0	3
 #/dev/sdc1	/media/sdc1	ext4	defaults	0	3
 #/dev/sdd1	/media/sdd1	ext4	defaults	0	3

leaving them commented out, uncomment ONLY if a disk is physically attached; do NOT use UUID on removable data disks, they must remain transparently exchangeable; then

 # mkdir /media/sdb1 /media/sdc1 /media/sdd1

If for some reason you need to find the UUID of a drive, use

 # blkid

A partir de aqui se empieza!!!!!!!!!!!!!!*********!!!! Create the root crontab to backup daily /home/wera/data to data disks, as well as ensuring that raw files are owned by wera.users:

 # crontab -e

You can use:

 # env EDITOR=vi crontab -e

or specify option 3, /usr/bin/vim.tiny, at the first launch of crontab. Borrar y dejar la siguiente linea

 # m h  dom mon dow   command

copiar en otra linea

 59,19,39 * * * * chown -R wera.users /home/wera/data

Lo siguiente no!!!!!!

 #0 0 * * * rsync -av /home/wera/data /media/sdb1/
 #0 12 * * * rsync -av /home/wera/data /media/sdc1/
 59,19,39 * * * * chown -R wera.users /home/wera/data
!!!!!!!!!!!!!!!!!!!!!!

Leave the rsync entries commented out until there is a data disk physically attached. The last line ensures that the files written as root by the dtacq, get changed to wera.user for further processing. //

13. Edit exports file:

 # vi /etc/exports

Borrar TODAS las lineas Dejar las 3 primeras lineas Agregar la siguiente linea /home/wera/data 172.16.3.0/24(rw,async,no_subtree_check,no_root_squash)

Note: exports should be async rather than sync. Although async may result in lost bits on a fast linux-linux nfs networks shared with many machines, it should be fine on the dedicated point-to-point network with the dtacq, it will result in a transfer time like 20x faster. Caution! no space between hostname or IP and "(" . If you change the exports file, run exportfs -a to apply the changes.

14. Set the proper time/clock and locale:

 # vi /etc/default/rcS

change the variable UTC to yes if not yet set; this will ensure that the hardware clock runs on UTC, not local time. Then

 # dpkg-reconfigure tzdata

and set timezone to "None of above" then UTC through the menus; this will ensure that the crontabs run on UTC, not local time. It is important to do this now to avoid irreparable confusion in data files time-tags. If you installed the PC from outside the US, the installer may have outsmarted you by setting the default language based on where your IP is located, and you may see day/month in tagalog, spanish or french (this affects date, and any script that would use date).

 vi /etc/default/locale

and change back all entries to "en_US.UTF-8" Sometimes the network will delay boot. Edit /etc/init/failsafe.conf and comment out all the sleep commands.

  1. sleep 20
  2. sleep 40
  3. sleep 59
  4. sleep 1

15. Install Gnome Desktop As root

 # apt-get install gnome-session-fallback

This is the leanest gnome desktop manager distribution, which we prefer to the default unity. When you first login, click on yourname then on the gear, and select the display manager gnome-fallback (metacity). That will set gnome as the default desktop for all your subsequent logins.

 # vi /etc/lightdm/lightdm.conf add the following lines for automatic login
 [SeatDefaults]

Quitar guest account

 autologin-user=wera
 autologin-user-timeout=0

Dejar autologin-session=light Agregar user-session=gnome-fallback

16. Install the Intel Fortran compiler. NOTE: SKIP THIS STEP IF NOT LICENSED (Opcional) We're using here a pre-configured licensed ifort that seems to work under Ubuntu 14.04/64 bits. It is an old version (11.1/072) which had a free academic license. We have not been able to install more recent versions of ifort.

 # mkdir /opt
 # cd /opt
 # wget --user=wera --ask-password http://www.satlab.hawaii.edu/support/lera/soft/linux/intel.tgz
 # tar -xzf intel.tgz
 # rm intel.tgz
 # apt-get install libstdc++5

useful information on this install found here http://software.intel.com/en-us/articles/using-intel-compilers-for-linux-with-ubuntu/ Insert in .bashrc:

 sh /opt/intel/Compiler/11.1/072/bin/ifortvars.sh intel64

Insert in .cshrc:

 setenv IA64ROOT /opt/intel/Compiler/11.1/072
 source $IA64ROOT/bin/intel64/ifortvars_intel64.csh

(proper .cshrc and .bashrc come with the downloadable wera account).

17. Install matlab. NOTE: SKIP THIS STEP IF NOT LICENSED To download matlab_2007b Become root - Add a system user that will start the license manager

 # useradd -r matlablm
 # chmod -t /var/tmp
 # cd /usr/local
 # wget --user=wera --ask-password http://www.satlab.hawaii.edu/support/lera/soft/linux/matlab.tgz

Pass=(b........) (Pass hawaii)

 # tar -xzf matlab.tgz
 # cd matlab_2007b/etc

Edit license.dat and add the machines hostname on the second line: vi license.dat

 SERVER ocomex-abc ID=206159 27000

Update the symbolic links to point to the new version of Matlab (As root)

 # cd /usr/local
 # rm matlab

Aparece "cannot remove"

 # ln -s ./matlab_2007b matlab
 # cd /usr/local/bin
 # rm matlab mex mbuild mcc
 # ln -s /usr/local/matlab/bin/{matlab,mex,mbuild,mcc} .

If the following links do not exist create them: Teclear en la terminal las siguientes lineas

 # ln -s /usr/local/matlab/etc/lmboot /etc/lmboot_TMW
 # ln -s /usr/local/matlab/etc/lmdown /etc/lmdown_TMW

 # ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib64/libc.so.6

 # cp /usr/local/matlab/etc/flexnet.boot.linux /etc/init.d/flexnet
 # chmod 755 /etc/init.d/flexnet

Edit flexnet and replace the text username with matlablm: vi /etc/init.d/flexnet

  /etc/lmboot_TMW -u matlablm && echo 'MATLAB_lmgrd'

Set up the startup scripts

 # update-rc.d flexnet defaults

Start the license manager manually, and check if Matlab starts from the command line:

 $ su 
 # su - matlablm

no directory

 $ /usr/local/matlab_2007b/etc/lmstart -c /usr/local/matlab_2007b/etc/license.dat
 $ exit
 # exit
 $ matlab -nodesktop

Reboot the machine, and check if Matlab starts automatically from the command line:

 $ matlab -nodesktop

18. Install wera account and wera utilities. NOTE: SKIP THIS STEP IF NOT LICENSED Open a new terminal window as wera: sudo su cd .. rsync -av wera@172.16.2.1:ocomex-vil/wera_09_22_15 . yes password sitio.

No se hizo!!!!

 ~> cd /home
 ~> wget --user=wera --ask-password http://www.satlab.hawaii.edu/support/lera/soft/linux/wera_homedir.tgz
 ~> tar -xzf wera_homedir.tgz
 ~> cd ~
 ~> ./WeraDesk_install.sh
!!!!!****

Then, as root cd wera junk mv wera_09_22_15 wera rm -r junk mv conf /root

 # cp  ~wera/usr_local_lib/* /usr/local/lib

19.Configure apache2:

  # vi /etc/apache2/envvars 
      export APACHE_RUN_USER=wera
      export APACHE_RUN_GROUP=users
  # chown -R wera:users /var/lock/apache2
  # /etc/init.d/apache2 restart
  # a2enmod include
  # a2enmod userdir
  # a2enmod cgid
  # service apache2 restart
  # vi /etc/apache2/mods-available/userdir.conf
  add new stanza:

Agregar las siguientes lineas:

Pegar despues de </directory>

	<Directory /home/*/public_html/cgi-bin>
		Options +ExecCGI
		SetHandler cgi-script
	</Directory> 

Open a browser, type localhost in the address bar and make sure apache2 answers. The page should say "Apache2 Ubuntu Default Page. It works!"

20. Configure interfaces and check connectivity

add the following lines: ssh wera@172.16.2.43 (vil) yes cat /etc/network/interfaces

Copiar desde #the dtacq hasta #the pa network->broadcast Copiar desde #the outside hasta #lface Descomentar #lface

Copiar en vi /etc/network/interfaces

Ejemplo!!!!

 # the dtacq network interface (e1000 dedicated)
 auto eth1
 iface eth1 inet static
        address 172.16.2.1
        netmask 255.255.255.0
        broadcast 172.16.2.255

 # the pa network interface (e100 dedicated)
 auto eth2
 iface eth2 inet static
        address 172.16.3.1
        netmask 255.255.255.0
        broadcast 172.16.3.255

 # the outside network interface (e100 through router)
 auto eth0
 iface eth0 inet dhcp
 # comment in when connected static
 #iface eth0 inet static
 #	address 192.168.1.20
 #	netmask 255.255.255.0
 #	gateway 192.168.1.1
 #      dns-nameservers 4.2.2.1 4.2.2.2 8.8.8.8
!!

On new machines, it is best to have three network interfaces, one main 1 Gbs ethernet (to get data from dtacq), two auxiliary 100 Mbs ethernet (to communication with PA and to the outside network). The pa (under dhcp configuration) can share the outside network, as long as there is a router delivering dhcp. On motherboards with dual-ethernet, it is important to physically identify and mark eth0, which will go to the outside world, and eth1, which goes to the dedicated dtacq local net. On the old black rack-mount machines (Hawaii and Philippines), eth1 (1GBs to dtacq) should be on the mother board and eth0 (100 MBs to outside workd and to the pa) on the add-on board. If Ethernet Interface Logical Names are not named as eth0 and eth1,

Importante!!!!!!!

Quitar wired connections Terminal ifconfig -a ifput eth0 cat /etc/network/interface checar bound con eth de la tarjeta

Los MAC que son iguales son tarjetas iguales ifconfig -a edit file /etc/udev/rules.d/70-persistent-net.rules. To control which interface receives a specific logical name, find the line matching the interfaces physical MAC address and modify the value of NAME=ethX to the desired logical name. Adding manually a dns in /etc/resolv.conf no longer works in 14.04. nameservers should be given as a line entry in /etc/network/interfaces, as shown above.

20.5 Dtacq (usar cable Null) sudo su screen /dev/ttys0/ 38400 control+c login root@acq... ls cd /ffs vi IPO=172.16.1.13 cambiar a 172.16.1.12 en NTP client BTP client=172.16.3.1 VI STAR.NTPCCLIENT NTPHOst=12.16.3.1 cd \usr ls vi rc.usr ir hasta el final /bin/nfsmount 172.16.3.1 mkdir /mnt/$(hostname) :$ ssh dtacq pass dtacq

!!!!!!!!!!!!!!!!!!!!!!!

Como root exportfs -a

21. configure DHCPD

 vi /etc/dhcp/dhcpd.conf

for the pa to DHCP (not needed if PA is on a router)

 subnet 172.16.3.0 netmask 255.255.255.0 {
        # default gateway
        option routers 172.16.3.1;
        option subnet-mask 255.255.255.0;

        range dynamic-bootp 172.16.3.21 172.16.3.30;
        default-lease-time 86400;
        max-lease-time 86400;
 }

Note that all the ; are important. Reboot the system to commit changes.

22. Configure the d-tacq Connect and boot the d-tacq (for configuring the dtacq software, see dtacq installation). It will create automatically a data directory of the form acq164_xxx where xxx is its serial number.

 $ cd ~/data
 $ chmod 777 acq164_xxx (091)
 $ ln -s acq164_xxx abc (abc es el nombre del stio)
 $ ln -s abc asc (abc es el nombre dle sitio)

where abc is the site name. If you change the dtacq to another unit, you have to delete abc and repeat step above.

23. Configure wera account for site location Launch firefox, open http://localhost/~wera/index.shtml, click WeraDesk and set as default home page. Make radlab_icon.bmp the screen background in System->Preferences->Appearance->Background Disable power management in System->Preferences->Power Management (never put to sleep, never spin down hard disks) Disable password in System->Preferences->ScreenSaver No lock Disable automatic updates in Administration->Update Manager

Wera desk

oopiar el public_html de la quinta. location True North 304 single adquisition allow pop up from local host para abrir ora ventana working freq 13.5 Range cell 1000 m chirp 0.433 seg rango offset 200 m number or range 100 data path abc/ (sitio) submit

Edit and customize the following files the new site, based on surveys (lat, lon) and operation parameters desired: WeraDesk.default: open browser on http://localhost/~wera/WeraDesk.html, flush cache from browser, set site parameters for "RAW" acquisitions, then "submit"; this will create a new etc/WeraDesk.tmp file; you must then cp etc/WeraDesk.tmp public_html/WeraDesk.tmp and cp etc/WeraDesk.tmp etc/WeraDesk.default etc/params.cfg: use vi to set site parameters and grid file

no se necesita

create wera plot grid with Make_Grid

ctrl_data.cpy: check that file was created by WeraDesk in weractrl (file size 1147 bytes) abc.hdr files in wera_import; use bvi to modify the just created ctrl_data.cpy file (remove first 669 bytes, file size 478 bytes) work/matlab/geo/{sites.mat,sites_ang.mat}: add the coordinates and beam limiting angles for matlab postproc etc/calibration.wera: unless a box calibration has been physically done, make sure that all lines read 1.0000000 1.0000000 0.00000000 wera_import/process_DTA.sh, wera_import/do_process_DTA.sh, bin/mergebea.csh: customize site name to abc Create the wera crontab with crontab -e to start processing with wera_import/do_process_DTA.sh about 2 min after the end of each acquisition scheduled separately in the dtacq crontab. No intercommunication is necessary and the two crontab can run with no synchronization as long as the clocks are synchronized with ntpd.

Abrir crontab Borrar todo escribir lo siguiente

 m h  dom mon dow   command
 # hourly averaging, need to wait end of processing of :20
 46 * * * * /bin/csh /home/wera/bin/mergebeam.csh
 # Disk Capacity email notification
 12 17 * * * /home/wera/bin/DiskAlert
 # launch postprocessing
 13,33,53 * * * * /bin/csh /home/wera/wera_import/process_DTA.sh

Become root again teclear lo siguiente:

 # cd ~wera/sysfiles
 # csh grab

Aparece comentario need to be root crontab -ls para verificar que ya lo hizo.

 # cd ..
 # csh site_upload

24. Enable shutdown with multiple users logged in

 # vi /etc/polkit-1/localauthority/50-local.d/usershutdown.pkla    

Insert the following lines and save to create the file:

 [Allow Shutdown]
 Identity=unix-user:*
 Action=org.freedesktop.consolekit.system.stop-multiple-users
 ResultAny=yes
 ResultInactive=yes
 ResultActive=yes
 [Allow Restart]
 Identity=unix-user:*
 Action=org.freedesktop.consolekit.system.restart-multiple-users
 ResultAny=yes
 ResultInactive=yes
 ResultActive=yes

25. Enable passwordless login from this machine to target hosts (for automated data upload); as wera:

 $ ssh-keygen -t rsa

then copy/paste ~/.ssh/id_rsa.pub to ~/.ssh/authorized_keys on target machines

26. Last cleanup and update:

 # apt-get update
 # apt-get install -f
 # apt-get upgrade
 # apt-get autoremove

no se hizo!!!!

27. Check USB ports for the DDS connect USB cable to DDS unit check that you can access the primary DDS

   screen /dev/ttyUSB3 19200
   QUE
   ^Ak   answer y

check that you can access the secondary DDS

   screen /dev/ttyUSB2 19200
   QUE
   ^Ak   answer y

if serial cable connects dtacq console port to DDS db9 port

   screen /dev/ttyUSB0 38400
   hit return until login prompt
   ^Ak   answer y

If other USB devices are connected, they may be assigned /dev/ttyUSB? number randomly at boot time. This is a config file that makes the FTDI USB-serial converters always appear with the same name in the /dev directory, to access the ports in the DDS_BOX in a system-independent way.

 # vi 80-ttyUSB.rules
 ATTRS{interface}=="USB-COM232 Plus4",ATTRS{bInterfaceNumber}=="00", SYMLINK+="tty_DDS0"
 ATTRS{interface}=="USB-COM232 Plus4",ATTRS{bInterfaceNumber}=="01", SYMLINK+="tty_DDS1"
 ATTRS{interface}=="USB-COM232 Plus4",ATTRS{bInterfaceNumber}=="02", SYMLINK+="tty_DDS2"
 ATTRS{interface}=="USB-COM232 Plus4",ATTRS{bInterfaceNumber}=="03", SYMLINK+="tty_DDS3"

For example, if a USB AIS is attached, the following will map it to its own tty port:

 ATTRS{manufacturer}=="COMAR", ATTRS{product}=="AIS-Multi", SYMLINK+="tty_AIS"

se hizo anteriormente!!!

28. Check serial port for the DTACQ (if not through USB via the DDS) connect female-female-nullmodem DB9 cable to DTACQ console hit CR until you have a login prompt, login to the dtacq as root/d-t1012q screen /dev/ttyS0 38400 ^Ak Note: unless you are going to use this port for a 3-G modem driven directly by this machine, you may have to remove the modem manager which interferes with the serial interface:

 apt-get purge modemmanager

29. Serve network time to dtacq subnet and listen to outside servers make sure that the dtacq ntp is synchronized to the server ntp (otherwise the ntp will loose time if there is no outside network) edit /etc/ntp.conf vi /etc/ntp.conf descomentar #stardir /var/log/ntpstats/ eliminar server1,server2,server3...borrar servers enable ntp broadcast on the dtacq subnet, uncomment:

 Modificar broadcast ip a 172.16.3.255

no se hizo!!!!

disable listening to ubuntu servers and enable listening to local servers:

 server ntp.hawaii.edu

enable statistics logging, uncomment:

 statsdir /var/log/ntpstats/

restart ntp client:

 service ntp restart

after running for a while, do

!!!
 ntptrace

teclear service ntp restart

if properly synchronized, answer should be something like, en este oaso se debe espera hasta sincronizar.

 localhost: stratum 3, offset 0.000139, synch distance 0.004383

if instead you get stratum 16 distance 0.000, something is wrong, you're only seeing local clock full diagnostic with

 ntpdc -c sysinfo

Fin de instalacion!!!!!!!!!!!!***********!!!

30. Google earth If post-processed kml files need to be displayed:

 wget http://dl.google.com/dl/earth/client/current/google-earth-stable_current_amd64.deb
 dpkg -i google-earth-stable_current_amd64.deb
 apt-get install -f

31. Skype Useful to install for support when working on the field.

 dpkg --add-architecture i386
 add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
 apt-get update
 apt-get install skype pulseaudio:i386

32. Cloning system disk. shutdown machine physically install new disk, must be identical model than existing disk plug Ubuntu USB key start machine and select "Try Ubuntu 14.04 without installing." open terminal window and

 sudo su
 fdisk -l

the list existing disks should show sda, the original disk with partitions sda1, sda2, sda3; the new disk sdb, exactly the same size but no partition, and the USB disk sdc with partition sdc1. They may not appear in that order, look carefully. Assuming that the order is normal:

 dd if=/dev/sda of=/dev/sdb bs=4096 conv=sync,noerror

the cloning may last several hours; to monitor its status, open a second terminal window, find the pid

 sudo su
 ps ax | grep dd
 kill -USR1  pid

when cloning is complete, absolutely do not reboot with the two disks connected simultaneously gracefully shutdown the USB Ubuntu, physically remove the USB key and the old disk, and boot on the new disk check all functionalities if you did not, in step 11, to remove the UUID for /dev/sda1 /dev/sda2 /dev/sda3, reboot will fail to fix this, reboot on the USB key, figure out the device name of the disk with fdisk -l, mount it with mount /dev/sda1 /mnt, open a second terminal window, and either remove the UUID references, replacing by the device name, or find the UUID of the new disk as described in step 11.

 sudo su
 vi /mnt/etc/fstab

shutdown, remove USB key, and; the cloned disk is now totally functional on the same machine to use it on a different machine, you must suppress references to the interfaces MAC addresses and remove all SUBSYSTEM lines i.e. make this file empty (or remove it altogether, it will be recreated):

 vi /etc/udev/rules.d/70-persistent-net.rules

you must also remove all past dhcp databases

 /bin/rm /var/lib/dhcp/*

shutdown, physically move disk to new machine; boot verify that the interface numbers are in correct order and check connectivity to dtacq and pa, if not rename correctly the NAME=eth? lines:

 vi /etc/udev/rules.d/70-persistent-net.rules

verify that eth2 (pa) and eth0 (outside world) have properly configured interfaces, i.e. are not accidentally swapped. If they are, just edit the file above and exchange the names eth0 and eth2 if this disk is meant as a backup, nothing else needs to be done if this disk is meant for a new site, need to do additional steps below change site name, all site names are of the form radlab-abc (see step 5)

 vi /etc/hostname

correct host file for local host IP 127.0.1.1, inserding new name radlab-abc

 vi /etc/hosts

edit matlab license file, replace the hostname line SERVER with the new hostname

 vi /usr/local/matlab/etc/license.dat
Edit - History - Print - Recent Changes - Search
Page last modified on December 01, 2015, at 02:03 AM PST