Simple Problems to Solve!

Hi,

I'm pretty poor at using UNIX but I'm learning. Please help me with these simple problems! Much appreciated!

  1. I've changed my shell from bash to csh but I prefer bash. How do I change back? I've tried using chsh -s but it's not working!

  2. I'm trying to download TopCat. I've done this successfully and set an alias but when I try to load it I get the following error:

"Exception in thread "main" java.awt.HeadlessException
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:173)
    at java.awt.Window.<init>(Window.java:437)
    at java.awt.Frame.<init>(Frame.java:419)
    at java.awt.Frame.<init>(Frame.java:384)
    at javax.swing.JFrame.<init>(JFrame.java:174)
    at uk.ac.starlink.topcat.AuxWindow.<init>(AuxWindow.java:95)
    at uk.ac.starlink.topcat.ControlWindow.<init>(ControlWindow.java:218)
    at uk.ac.starlink.topcat.ControlWindow.getInstance(ControlWindow.java:673)
    at uk.ac.starlink.topcat.Driver.getControlWindow(Driver.java:470)
    at uk.ac.starlink.topcat.Driver.runMain(Driver.java:379)
    at uk.ac.starlink.topcat.Driver.main(Driver.java:177)"

I have Java 1.6 running and the website says you need 1.5 or higher.

  1. I am trying to use the ZHTools package for DS9. I have been following the online installation guide and I have got to stage 5 where I need to 'make' the file. I get the following errors:
"making in ./src/ds9
make[1]: Entering directory `/pool/zhtools-3.0.4/src/ds9'
make[1]: Leaving directory `/pool/zhtools-3.0.4/src/ds9'
making in ./src/util/src
make[1]: Entering directory `/pool/zhtools-3.0.4/src/util/src'
f95  -e -O -DF95 -xlang=f77  -I/pool/zhtools-3.0.4/include -DZHDATA="''" -c -o dataenv.o dataenv.F
f95: language lang=f77 not recognized
f95: language lang=f77 not recognized
f95: dataenv.F: linker input file unused because linking not done
......
f95  -e -O -DF95 -xlang=f77  -I/pool/zhtools-3.0.4/include  -c -o sort2.o sort2.f
f95: language lang=f77 not recognized
f95: language lang=f77 not recognized
f95: sort2.f: linker input file unused because linking not done
ar cruv /pool/zhtools-3.0.4/lib/libzhtools.a abs_path.o       first3w.o      newunit.o      sort3.o ad_rad.o       fixstring.o      no.o          sort4.o atrousimg.o       fk45z.o      none.o      splitwords.o atrousstep.o       floodfill.o      norm.o      splitwords_char.o atrousstep_0.o       floor.o      o_f_i.o      strbcat.o ccorr2d.o       fmin.o      open_fits.o      strcat.o check_cl.o       fourn.o      poi.o          strchr.o check_naxis.o       fscanf_.o      poidev.o      strcmp.o cl_or_read_par.o   ft_printerr.o  poiprob.o      strcpy.o cmplx_mult.o       ft_same_f.o      prebn.o      strlow.o conv_gauss.o       g_cl.o      prec.o      strncat.o conv_mex.o       g_i_size.o      preces.o      strncmp.o conv_rect1.o       g_image.o      quanc8.o      strncpy.o conv_rect1_1D_d.o  g_num_p.o      r_f_i.o      strrchr.o cr_f_i.o       g_p_or_a.o      r_f_i_u.o      strstr.o crmvblk.o       g_p_v.o      ran1.o      svbksb.o daf2r.o           g_p_v_d.o      ran2.o      svdcmp.o dafin.o           gamma.o      ranref.o      svdfit.o dataenv.o       gammpq.o      readwrite.o      svdksb.o dcc2s.o           gasdev.o      real_path.o      svdvar.o dcs2c.o           idchf.o      rearrange.o      symlnk.o dd2tf.o           idistance.o      refvec.o      symlnk_c.o deuler.o       if_peak.o      replace_char.o  system1.o dfltin.o       imsmo.o      resize_img.o      system2.o diffr_w8.o       indexx.o      rlft2.o      toupper.o dmxv.o           isanum.o      rlft3.o      u_wants_clob.o dr2af.o           isanum_c.o      rmblanks.o      w_f_i.o dr2tf.o           isfits.o      saoimage.o      w_f_i_h.o dranrm.o       lastasci.o      scanf_.o      w_f_i_h_u.o dsep.o           lfblnk.o      select.o      w_f_i_h_u_wcs.o dtf2d.o           load_par.o      setran.o      whereiseq.o dtf2r.o           locate.o      show_c1.o      worldpos.o epb2d.o           lowstring.o      show_i2.o      wt_ferrmsg.o epj.o           marith.o      show_i4.o      xcopynoscale.o epsmach.o       mcarith.o      show_r4.o      xcopyscale.o exiterror.o       mcopy.o      show_r8.o      xcpnsclps.o fact.o           min_max.o      simplx2.o      yes.o fcecho.o       move_ext.o      simplx28.o      zeroin.o fcstln.o       msarith.o      simplx3.o      zhhelp.o fileenv.o       mset.o      sort.o      zhhelp_c.o finis.o           mtrx_smult.o   sort2.o
ar: abs_path.o: No such file or directory
make[1]: *** [/pool/zhtools-3.0.4/lib/libzhtools.a] Error 1
make[1]: Leaving directory `/pool/zhtools-3.0.4/src/util/src'"

Thanks for your help!

Simon

Try

$ chsh -s bash

If that does not work check /etc/shells. Maybe bash is not listed there

Great, thanks for your help. It seems to have worked. I needed to use chsh -s /bin/bash :b:

Any ideas with 2 or 3?