Professional Web Applications Themes

vi a file on Netra 1280 in single user mode - Sun Solaris

The computer is solaris 8 Netra 1280. #uname -i SUNW,Netra-T12 When it is in single user mode, the terminal is set to sun. set TERM sun Vi a file get this error: I don't know what kind of terminal you are on - all I have is 'unknown'. [Using open mode]...

  1. #1

    Default vi a file on Netra 1280 in single user mode

    The computer is solaris 8 Netra 1280.

    #uname -i
    SUNW,Netra-T12

    When it is in single user mode,
    the terminal is set to sun.
    set TERM sun

    Vi a file get this error:
    I don't know what kind of terminal you are on - all I have is 'unknown'.
    [Using open mode]
    TCMa Guest

  2. #2

    Default Re: vi a file on Netra 1280 in single user mode

    >> On 23 Sep 2003 17:57:34 -0700, [/ref]
     
     

    You mean: TERM=sun
     

    Do you have /usr on a separate partition? The
    terminfo/termcap descriptions live under there so /usr
    must be mounted for vi (or anything else of that nature)
    to handle your terminal.

    Alternatively, this is an excellent chance to learn "ed" :-)

    hth
    t
    Tony Guest

  3. #3

    Default Re: vi a file on Netra 1280 in single user mode

    On Tue, 23 Sep 2003 20:00:50 -0500, Tony Curtis wrote:
     

    Doh!

    $ uname -sr
    SunOS 5.9
    $ which ed
    /usr/bin/ed

    Dave Guest

  4. #4

    Default Re: vi a file on Netra 1280 in single user mode

    >> On Tue, 23 Sep 2003 20:04:58 -0500, [/ref]
     [/ref]
     

    Oh, OK, I thought it was on the root partition. Mea
    culpa. You could mount /usr & then use ed (I'm not
    getting into the where-is-/usr quagmire :-)

    t
    Tony Guest

  5. #5

    Default Re: vi a file on Netra 1280 in single user mode

    Approximately 9/23/03 17:57, TCMa uttered for posterity:
     

    Unless you've changed the shell, fairly sure the
    Bourne syntax is set TERM=sun

    Rather than remember this, you can always check with
    echo $TERM 

    Can't remember if you also get this error if /usr isn't
    mounted, or if you get some other goofy error.

    Lon Guest

  6. #6

    Default Re: vi a file on Netra 1280 in single user mode

    On Tue, 23 Sep 2003 20:11:50 -0500, Tony Curtis wrote:
     

    You will find /bin/ed on a Linux system but not on a Solaris system. In
    fact there -is- no /bin directory in Solaris.

    Dave Guest

  7. #7

    Default Re: vi a file on Netra 1280 in single user mode

    After doing:
    TERM=sun

    I can
    vi afile

    However, after the vi start,
    the vi screen display some garbage.
    Search by "/" command does not work.
    i.e. the cursor does not go to the desired text.

    But substitution by s/xx/yy/ still work.

    How to fix the search problem?
    TCMa Guest

  8. #8

    Default Re: vi a file on Netra 1280 in single user mode

    ca (TCMa) writes: 

    Try:

    TERM=vt100


    -Greg
    --
    Do NOT reply via e-mail.
    Reply in the newsgroup.
    Greg Guest

Similar Threads

  1. Installing Solaris patches in single user mode
    By BillyA in forum Linux / Unix Administration
    Replies: 10
    Last Post: February 8th, 11:02 PM
  2. Installing Firmware remotely in Single user mode??
    By qazmlp in forum Linux / Unix Administration
    Replies: 3
    Last Post: September 29th, 08:25 PM
  3. how to boot to single user in ok mode? (null)
    By wavelet in forum Sun Solaris
    Replies: 2
    Last Post: July 29th, 02:14 AM
  4. Replies: 2
    Last Post: July 10th, 12:44 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139