SUN CONFIGURATION PROCEDURES (USER)

R.E.E. Robinson
Speech Hearing and Language Research Centre
Macquarie University
For SHLRC use only


PRINTING   FROM  MAILTOOL

To configure Mailtool for printing,
Use the menu Buttons:
Edit
Properties
Message Window
change the Edit Script to what you require
Apply

To print mail normally on lp4039, it is:
laser
or
lp -dlp4039

To print mail normally on the lexmark, it is:
prtext

To print mail with a header on lp4039, it is:
mailp -dlp4039
filep -dlp4039

To print mail with a header on the laserjet, it is:
mailp -dlexmark
filep -dlexmark


PRINTING   FROM   DTMAIL


To configure DTmail for printing,
Use the menu Buttons
Message
Print
change the Printer field to what you require
Print

To print mail normally on lp4039, it is:
lp4039

To print mail with on the lexmark, it is:
can't do it yet!
 


WAVES

The configuring information for Waves is located in .wave_pro in your home directory. You can edit this with a text editor to personalise your Waves session.
You can edit your .cshrc fiule to set search paths.

PROBLEMS
If you get an "xwaves license server" timeout error
You are using the wrong version
Set your path in .cshrc to  /home/apps/esps531.sol/bin

If the audio won't work on a sun,
check to see if there is a play or splay running, with:
ps -aux | grep play
kill it and try again


EPG

If you get some epg files from elsewhere, they may not have vaild file headers.
There is a script you can run to fix this.
Change to the directory which has the files,
and run the command

convert_EPG     *

This should be found automatically, as /usr/common/bin is in your default path list. This will look for any file of the form filename.EPG and add an ESPS/Waves header. It assumes a 100hz sample rate and BYTE sized pallette data.

Similarly, any files from the same source that have a .WAV header can have valid ESPS/Waves headers added with

convert_WAV    *

This will look for any file in the current directory, of the form filename.WAV
and add an ESPS/Waves header. It assumes an 8khz sample rate and SHORT type data from a PC, so byte swapping is done.


SSH  (SETUP for a USER)

As a user, on a local machine (e.g. srsunm)
run the command to generate your local keys
ssh-keygen2

To add remote hosts (e.g. srsuna),
run the command
ssh-pubkeymgr
when prompted, enter some phrase that you can remember (it can contain spaces and numbers)
when prompted, enter the username and host you wish to add access to
when prompted, enter the host you wish to update.

To login into the remote host
ssh srsuna
enter the phrase you used before,
you now have secure access (encrypted login)
logout with
lo

To read the man pages for ssh,
setenv MANPATH /usr/local/man
(or add this to your ~/.cshrc file)
then
man ssh
man ssh-pubkeymgr
man ssh-keygen2
man sftp


CD WRITER

1/. make an image
nice /usr/common/bin/mkisofs -r -l -o yourname.raw /home/accounts/jim/cdrom
make the cd
/usr/common/bin/cdrecord -v -eject fs=32m speed=6 dev=6,0 yourname.raw

2/. if you want to READ a cd in the drive,
turn ON the volume management
/etc/init.d/volmgt start
use file manager turn OFF the volume management when finished with
/etc/init.d/volmgt stop
otherwise the volmgt program will eject the cd midway through cdrecord and thus corrupt the recording. throw the cd away if this happens.

3/. there is also a GUI front end for it called
BurnIT
available from
http://sunsite.dk/BurnIT/

4/. there is an audio cdplayer called
Workman
available from
http://www.midwinter.com/ftp/WorkMan/


FIXING A FULL DISK (Finding Large Files)

list all files and their size
ls -la

du -k
list all files and follow the tree down.

du -sk
just give you the directory size, without listing all the files.

locate core dumps
find / -name core -print
remove them

locate files 10 mb or larger
find / -size +10000000c -print
remove them

Remove all backups and duplicate copies


CRONTAB Functions


Edit your crontab file with
crontab -e
add the lines for your job that you need executed at a specific time
see the man page for the time field specifications
ALWAYS use the complete path for the command and file location

#
# nightly mail backup (R.Robinson 20 May 2001)
01 00 * * * /usr/bin/cp /var/mail/robinson/ /home/accounts/ray/mail


CONVERTING SUN ESPS AUDIO FILES TO PC WAVE FILES


METHOD 1.

There is a program to convert ESPS files to WAV files.

It is called
esps2wav
and is used like this

esps2wav infile.sd

It examines the input file (called infile.sd) and makes a new output file (called infile.wav)
It sometimes makes a mistake and introduces some noise on the output waveform.
For help, type
esps2wav -h
To debug it or see what parameters are extracted
esps2wav -x infile.sd
The file is located in /usr/common/bin
check the result of one conversion before doing lots of them.

METHOD 2.

Another file is called
ch_wave
for "change wave"

and is used like this

ch_wave infile.sd -o outfile.wav

It examines the input file (called infile.sd) and makes a new output file (called outfile.wav)
It can convert both ways and supports formats nist, est, esps, snd, riff, aiff, audlab, raw, ascii.
For help, type
ch_wave -h
The file is located in /usr/common/bin
check the result of one conversion before doing lots of them.


CONVERTING PC WAVE AUDIO FILES TO SUN ESPS FILES


METHOD 1.

There is a program to convert WAV files to ESPS files.

It is called
wav2esps
and is used like this

wav2esps iinfile.wav

It examines the input file (called infile.wav) and makes a new output file (called infile.sd)
For help, type
wav2esps -h
To debug it or see what parameters are extracted
wav2esps -x infile.wav
The file is located in /usr/common/bin
check the result of one conversion before doing lots of them.

METHOD 2.

Xwaves can be used to examine and cut up WAV files.

Use the command
xwaves infile.wav

It will display the WAV file and show the normal parameters.
Mark the section to be converted, start and finish, with the cursors,
use the drop down menu and select
save segment in file

It will create a new file from the name in the OUTPUT file field,
with a .d extension, this is the new ESPS file.
Change the extension to .sd (this is too prevent confusion with existing .sd files)
Remember that the OUTPUT filename field, is not active until you press the ENTER key.
If the filename has a trailing digit, it will be incremented, as a way to track cutting names.

To convert a whole file, just mark the start and end, and save it.

METHOD 3.

Another file is called
ch_wave
for "change wave"

and is used like this
ch_wave infile.wav -o outfile.sd

It examines the input file (called infile.wav) and makes a new output file (called outfile.sd)
It can convert both ways and supports formats nist, est, esps, snd, riff, aiff, audlab, raw, ascii.
For help, type
ch_wave -h
The file is located in /usr/common/bin
check the result of one conversion before doing lots of them.


CONVERTING SUN ESPS AUDIO FILES TO SSFF EMU FILES

There is a program to convert ESPS files to SSFF files.

It is called
esps2ssff
and is used like this

esps2ssff infile.sd

It examines the input file (called infile.sd) and makes a new output file (called infile.ssff)
For help, type
esps2ssff
The file is located in /usr/common/bin
check the result of one conversion before doing lots of them.


CONVERTING EMU SSFF AUDIO FILES TO SUN ESPS FILES

There is a program to convert SSFF files toESPS files.

It is called
emu2esps
and is used like this

emu2esps infile.sd

It examines the input file (called infile.ssff) and makes a new output file (called infile.sd)
For help, type
emu2esps
The file is located in /usr/common/bin
check the result of one conversion before doing lots of them.



end