Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 11

Software Miscellaneous Procedures for

LightSpeed 5.X, LightSpeed 7.X,


HiSpeed NXi (Linux), CTe (Linux), CTe Dual (Linux)
and HiSpeed Dual
Table of Contents:
Facts You Need To Know
How to mount a USB Flash Drive on non-VCT systems running Software
Version 05MW14.5
or 04MW44.X; HiSpeed NXi (Linux) CTe Dual , CTBe1 and CTBe2
How to mount a USB Flash Drive on VCT and non-VCT systems running
06MW03.X
Files of Interest
How to copy the messages log from the DARC
How to copy the messages log from IGx (where x can be 1, 2 or 3):
How to copy images
How to copy images on VCT
How to take Snap Shots
Printing to a network (postscript only) printer from LightSpeed 5.X or
Discovery ST.

Rev. 3

A. Cortez / J. Getchel
April 12, 2006

Facts You Need To Know

You need to have Javista loaded on your laptop to be able to look at the
images.
You can load Javista from globe -> globepro -> javista.
You need to load 2 folders and run the executable file of each folder:
1. JavaRunTimeEnvironment v1.4
2. Javista
Run the executable files.
GOC5 (VCT Console) and GOC3/ GOC4 with USB Trackball - The USB Flash
Drive can be connected on the USB Trackball port console located on the
back of the console.
GOC3 and GOC4 with PS2 Trackball connector - The front cover needs to be
removed to have access to the USB ports of the HP Computer.
Open the logs/files using Microsoft Word or Wordpad (NOT Notepad!).

USB Flash drive

Rev. 3

A. Cortez / J. Getchel
April 12, 2006

Rev. 3

A. Cortez / J. Getchel
April 12, 2006

How to mount a USB Flash Drive on non-VCT systems running


Software Version 05MW14.5 or 04MW44.X; HiSpeed NXi (Linux),
CTe Dual , CTBe1 and CTBe2
1. Open a unix shell to identify the name given to USB (Do not install the USB flash drive key at this
time).
2. Become root:
{root@msec5x3}[1] cd /var/log
{root@msec5x3}[2] tail -5f messages
3. IF you have a Console with a USB Trackball, you can insert the USB Flash Drive on the USB Trackball
port located on the back of the console. If your console has a PS2 Trackball connector, you will need
to remove the front cover of the console to get access to the USB ports located on the front of the
HP computer.
Insert the USB key in one of the ports to verify what device name is assigned to the key.
You will get the following on the screen
Sep 7 12:11:01 msec5x3 -- root[3458]: ROOT LOGIN ON pts/3 FROM 3.231.32.86
Sep 7 12:13:04 msec5x3 fwmgr: CUP ERROR in queueUtils.c line 144 pid 2615: inva
lid response from filter 0x401705ac
Sep 7 12:13:04 msec5x3 last message repeated 6 times
Sep 7 12:14:39 msec5x3 login(pam_unix)[3458]: session closed for user root
Sep 7 12:14:42 msec5x3 login(pam_unix)[2291]: session closed for user root

-------- the above 5 lines (or something different) will show when the command is typed---------- the below lines will show when the USB Flash Drive is installed---Sep 7 12:28:55 msec5x3 kernel: hub.c: USB new device connect on bus3/2, assigne
d device number 2
Sep 7 12:28:55 msec5x3 kernel: usb.c: USB device 2 (vend/prod 0xd7d/0x1600) is
not claimed by any active driver.
Sep 7 12:28:58 msec5x3 /etc/hotplug/usb.agent: Setup usb-storage for USB produc
t d7d/1600/100
Sep 7 12:28:58 msec5x3 kernel: Initializing USB Mass Storage driver...
Sep 7 12:28:58 msec5x3 kernel: usb.c: registered new driver usb-storage
Sep 7 12:28:58 msec5x3 kernel: scsi5 : SCSI emulation for USB Mass Storage devi
ces
Sep 7 12:28:58 msec5x3 kernel:
Vendor:
Model: USB DISK 20X
Rev
: 1.01
Sep 7 12:28:58 msec5x3 kernel:
Type:
Direct-Access
ANS
I SCSI revision: 02
Sep 7 12:28:58 msec5x3 kernel: Attached scsi removable disk sde at scsi5, chann
el 0, id 0, lun 0
Sep 7 12:28:58 msec5x3 kernel: SCSI device sde: 243712 512-byte hdwr sectors (1
This is the device name assigned to the
25 MB)
USB flash drive. It might be different on
Sep 7 12:28:58 msec5x3 kernel: sde: Write Protect is off
each system
Sep 7 12:28:58 msec5x3 kernel: sde: sde1
Sep 7 12:28:58 msec5x3 kernel: USB Mass Storage support registered.
Sep 7 12:29:44 msec5x3 su(pam_unix)[4161]: session opened for user root by ctuser(uid=100)

3. Create a directory, in this case the directory will be named flash.


{ctuser@msec5x3}[3] su
[enter]
Password: #bigguy
[enter]
[root@msec5x3]# cd /
[enter]
[root@msec5x3]# mkdir flash [enter]
4. Mount the USB key using the device name assigned.
[root@msec5x3]# mount t vfat /dev/sde1 /flash
NOTE: If the above command fails or doesn't successfully mount the device, try using the same
command
with "t msdos" substituted in the command line.
5. Copy the files you want. Example below shows the procedure to copy the gesys log.
cd /usr/g/service/log
Rev. 3

A. Cortez / J. Getchel
April 12, 2006

ls -al gesys*
(this will list the gesys log)
cp gesys_xxxx.log /flash (where xxxx is the host name)
6. Unmount the USB key
[root@msec5x3]# cd /
[root@msec5x3]# umount /dev/sde1
7. Delete flash directory
[root@msec5x3]# rm r flash

How to mount a USB Flash Drive on VCT and non-VCT systems


running 06MW03.X
1. Open a shell and become root
2. Insert the USB key on the USB Trackball port located on the back of the console.
3. Mount the USB key
cd /usr/g/scripts
mountUSB
4. Copy the files you want. Example below shows how to copy the gesys log:
cd /usr/g/service/log
ls -al gesys*
(this will list the gesys log)
cp gesys_xxxx.log /USB (where xxxx is the host id)
5. Unmount the USB key
cd /usr/g/scripts
unmountUSB

Procedimiento para GOC6


mountUSB workaround for GOC6 consoles
To get the mountUSB command to work on a GOC6 console you may need to use the following
commands. Procedure
summary: insert USB drive, then run tail -1 /etc/fstab to get the device name, then mountUSB -d
<device> .
1) Insert a USB flash drive into any of the USB ports available on the GOC6 console.
2) Wait for the HP-Computer to see USB flash drive.
3) Enter tail -1 /etc/fstab
Get the device name from the output
4) Enter mountUSB -d <device>
See example below:
A) tail -1 /etc/fstab
output -> /dev/sdd1 /media/Kingston vfat pamconsole, exec,noauto,utfb,managed 0
0
B) mountUSB -d /dev/sdd1
C) df -h
{ctuser@msec8x1}[7] df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 6.3G 4.7G 1.7G 74% /
/dev/sda1 99M 9.4M 85M 10% /boot
/dev/shm 3.9G 0 3.9G 0% /dev/shm
/dev/sda6 9.4G 544K 9.4G 1% /usr/interchange
/dev/sda7 12G 1.1M 12G 1% /data
/dev/sda8 102G 12G 91G 12% /usr/g
/dev/sdb5 137G 694M 136G 1% /usr/g/sdc_image_pool
/dev/sdd1 241M 178M 63M 74% /USB
4) unmountUSB ( to unmount the USB drive )
Rev. 3

A. Cortez / J. Getchel
April 12, 2006

How to copy the gesys log - GOC5 Console (VCT)


1.

Copy the files you want. Example below shows how to copy the gesys log:
cd /usr/g/service/log
ls -al gesys*

(this will list the gesys log)

cp gesys_xxxx.log /USB
2.

(where xxxx is the host id)

Unmount the USB Flash Drive

ADDITIONAL INFORMATION
Files of Interest
File Name
HOST gesyslog
messages
gencal.hhs_scan.report
DARC messages
IG
messages

Directory
/usr/g/service/log
/var/log
/usr/g/service/log
/var/log
/var/log

Note: there is more than one messages log in the HOST as well as in the DARC and IG.

Rev. 3

A. Cortez / J. Getchel
April 12, 2006

How to copy the messages log from the DARC


1. Open a shell
2. rsh darc
3. cd /var/log
3a.
ls al message*
4. rcp messages oc:/tmp
(messages files will be copied on tmp directory on the Host, you
could also copy other messages files).
5. ~.
(will close the connection to the DARC)
6. cd /tmp
7. ls messages (to make sure the file is there)
8. cp messages /flash
(for GOC3 and GOC4)
or
cp messages /USB
(for VCT)

How to copy the messages log from IGx (where x can be 1, 2 or


3):
1.
2.
3.
4.
5.
6.
7.
8.
9.

Open a shell
rsh darc
rsh igx
(where x can be 1, 2 or 3)
cd /var/log
rcp messages oc:/tmp
(messages files will be copied on tmp directory on the Host).
~. (will close the connection to the DARC)
cd /tmp
ls messages (to make sure the file is there)
cp messages /flash
(for GOC3 and GOC4)
or
cp messages /USB
(for VCT)

How to copy images


You need to know the exam, series and image number you want to copy in the USB key
1. Open a shell and login as root.
2. listselect [enter] (In the example below, exam 427, series 2, image 1 will be copied)
================================================
MAIN MENU
================================================
Exam_No = 0, Series_No = 0, Image_No = 0
A. Select Exam
B. Select Series
C. Select Images
D. List/Select Exam
E. List/Select Series
F. List/Select Image
Q. Quit
YOUR CHOICE : a [enter]

Enter A Select

Exam No. = 427 [enter]


================================================
MAIN MENU
================================================
Rev. 3

A. Cortez / J. Getchel
April 12, 2006

Exam_No = 427, Series_No = 1, Image_No = 1


A. Select Exam
B. Select Series
C. Select Images
D. List/Select Exam
E. List/Select Series
F. List/Select Image
Q. Quit
YOUR CHOICE : b [enter]
series No. ? 2

Enter B Select

[enter]

================================================
MAIN MENU
================================================
Exam_No = 427, Series_No = 2, Image_No = 1
A. Select Exam
B. Select Series
C. Select Images
D. List/Select Exam
E. List/Select Series
F. List/Select Image
Q. Quit
YOUR CHOICE :c [enter]

Enter C Select

Type in the start image number and end image number you want to copy
with a space in between.
1 1 [enter]
(We only want to copy Image 1 - we enter image 1 two times with a space in
between)
The console will display the following:
The image file will be copied to /usr/g/insite/tmp/e427s2i1

Press Q to Quit
4. cd
5. cp
or
cp

/usr/g/insite/tmp
[enter]
e427s2i1.gz /flash
(for GOC3, GOC4, CTBe1 and CTBe2)
e427s2i1.gz

(for VCT)

/USB

Note: Once you transfer the file from the USB key onto your laptop, you will need to unzip the
image and then save it on your hard drive. Open Javista and display the image.

Rev. 3

A. Cortez / J. Getchel
April 12, 2006

How to copy images on VCT


1. Open a unix shell
2. Type in:
listselect [enter]
3. The system will prompt you the
Please enter exam number:
Please enter series number:
Please enter image number:

following:
53 [enter]
1
[enter]
1
[enter]

Is exam: 53 series: 1 image: 1 correct? [Y/N]: Y [enter]


image successfully created in /usr/g/ctuser/insite/e53s1i1.jmp
4. Make sure the USB flash drive is mounted (see procedure: "How to mount a USB flash Drive
on VCT")
cp /usr/g/ctuser/insite/e53s1i1.jmp
/USB
[enter]
5. Un-mount the USB flash drive.
unmountUSB [enter]
6. Plug the USB flash drive on your laptop and copy the image file (e53s1i1.jmp)
Rename the image image:
Original filename: e53s1i1.jmp
Rename filename: e53s1i1.jmg
(Note: extension jmp was replaced by jmg)
7. Double click on the file and Javista should come up displaying the image.

How to take Snap Shots


1. Open a unix shell and become superuser, then type in:
gimp [enter]
Welcome screen will pop up, click on continue.
The following 4 screens will come up: Personal GIMP Folder, User Installation Log, GIMP
Performance Tuning, Monitor Resolution, click on continue on each of those screens.
The following image will be displayed:

Picture 1

Picture 2

2. Click on File -> Acquire -> Screen Shot. Picture 3 will pop up.
Make sure Single Window is selected and then press OK.
Rev. 3

A. Cortez / J. Getchel
April 12, 2006

Picture 3

- The cursor will change from an arrow to a crosshair.


- Put the crosshair on the image you want to take the snapshot and press the left button of the
mouse. The snapshot picture will pop up.
- Place the cursor on the snapshot picture and press the right button of your mouse and select
File -> Save As. Picture 4 will show up:
Creates a Directory

You can select on what directory


you want to save the image
- VCT the directory is USB
- GOC3/GOC4 the directory is
flash
Selects the file type, usually JPEG.

Enter a name for the snapshot

Picture 4
3. Click on OK once you have selected the directory, the file type and named the image.
Picture 5 will pop up, select the Quality and click on OK and the image will be saved in the
Directory
you previously selected.

Selects the Quality

Picture 5

Rev. 3

10

A. Cortez / J. Getchel
April 12, 2006

To copy the snapshot, go to the directory where the snapshot was saved
1. cd /directoryname
[enter]
2. cp snapshotfile /flash
(for GOC3 and GOC4)
or
cp snapshotfile /USB
(for VCT)
snapshotfile is the name you gave to the snapshot

Printing to a network (postscript only) printer


from LightSpeed 5.X or Discovery ST.
1. Open a shell and log in as root user.
2. In the shell window, type: printtool
3. In the GUI window that pops up, follow the instructions on screen to set up the network printer
(refer to the instructions in the Discovery ST Software Installation Manual, PET Software Loading
procedures).
Basic steps are:
a. In the GUI select "New".
b. Give the printer queue a name (no spaces or non-alpha characters).
c. Input the printer's IP Address. Port should always be 9100, unless you know otherwise.
d. Select the printer driver for the manufacturer and model of printer. Make certain that you
drill-down to and select the appropriate driver, or else select the 'generic postscript'
driver if you cannot locate your printer in the list.
4. Ensure that you can print a test page successfully. (Test menu on the printtool GUI).
5. Now you will be able to print from various PET Desktop programs on Discovery ST (DQA, Singles
Calibrations, Sinograms, etc.) that were designed with a 'print' selection, or on any LINUX
system from the 'gimp' program that you use to capture a screen snapshot (file > print).
6. To print any text file to the network printer, type the following in a shell window:
(to know if a file is a text file, if it can be viewed on-screen using 'cat' or 'more', you will be able
to print it)
lp <directory/filename>
(Note: the printed text will not be formatted in any way just plain text)
7. To print text in a page-formatted manner (with filename and page number printed at the top of
each page), type:
pr <directory/filename> | lp
(Note: the | symbol in the above command is the "pipe" symbol usually <shift>\ on a US
English keyboard)
8. If you can view the file with 'more' or 'cat', you can print it.

Rev. 3

11

A. Cortez / J. Getchel
April 12, 2006

You might also like