Professional Web Applications Themes

i did it again - FreeBSD

i putted mysqlsafe in my rc.local and found out ctrl + c doesnt work :) In single user mode i wanted to edit the file but joe crashed and vi was very strange. it was like it only had one line to display the file and the arrow keys where acting strange ? Any ideas how i can fix this ? I read somthing with missing /etc/termcap ?...

  1. #1

    Default i did it again

    i putted mysqlsafe in my rc.local and found out ctrl + c doesnt work :)
    In single user mode i wanted to edit the file but joe crashed and vi
    was very strange. it was like it only had one line to display the file
    and the arrow keys where acting strange ? Any ideas how i can fix this
    ? I read somthing with missing /etc/termcap ?
    Gert Guest

  2. #2

    Default Re: i did it again

    On 2005-04-01 01:29, Gert Cuykens <com> wrote: 

    Bring up all the file systems manually, and you should be set to edit
    any file with TERM=cons25. This should be something like:

    1. Start in single-user mode. When you enter the root shell of the
    single user mode, there's only one filesystem (the root filesystem) and
    this one is mounted read-only.

    2. If your system clock is set to local time (and not UTC), run
    adjkerntz.

    # adjkerntz -i

    3. Do minimal sanity checks for all file systems:

    # fsck -p

    4. Remount the root file system as read-write:

    # mount -u /

    5. Mount all the rest, and then set your TERM to cons25 (TERM should be
    set IIRC only after termcap is available):

    # mount -va
    # TERM=cons25 ; export TERM

    6. Edit your /etc/rc.local with any editor you prefer.

    7. Exit the single user shell and let the system go on booting in
    multi-user mode, as usual.

    Giorgos Guest

  3. #3

    Default Re: i did it again

    On Fri, 1 Apr 2005 04:21:07 +0300, Giorgos Keramidas
    <upatras.gr> wrote: 
    >
    > Bring up all the file systems manually, and you should be set to edit
    > any file with TERM=cons25. This should be something like:
    >
    > 1. Start in single-user mode. When you enter the root shell of the
    > single user mode, there's only one filesystem (the root filesystem) and
    > this one is mounted read-only.
    >
    > 2. If your system clock is set to local time (and not UTC), run
    > adjkerntz.
    >
    > # adjkerntz -i
    >
    > 3. Do minimal sanity checks for all file systems:
    >
    > # fsck -p
    >
    > 4. Remount the root file system as read-write:
    >
    > # mount -u /
    >
    > 5. Mount all the rest, and then set your TERM to cons25 (TERM should be
    > set IIRC only after termcap is available):
    >
    > # mount -va
    > # TERM=cons25 ; export TERM
    >
    > 6. Edit your /etc/rc.local with any editor you prefer.
    >
    > 7. Exit the single user shell and let the system go on booting in
    > multi-user mode, as usual.
    >[/ref]

    what is IIRC ?
    what is a termcap ?
    Gert Guest

  4. #4

    Default Re: i did it again

    On 2005-04-01 03:31, Gert Cuykens <com> wrote: 
    >
    > what is IIRC ?[/ref]

    ``If I recall correctly''
     

    There's a manpage for this one.

    Giorgos Guest

  5. #5

    Default Re: i did it again

    On Fri, 1 Apr 2005 04:42:55 +0300, Giorgos Keramidas
    <upatras.gr> wrote: 
    > >
    > > what is IIRC ?[/ref]
    >
    > ``If I recall correctly''

    >
    > There's a manpage for this one.
    >[/ref]

    so termcap is like a x server but then for terminals ?
    Gert Guest

  6. #6

    Default Re: i did it again

    On 2005-04-01 03:46, Gert Cuykens <com> wrote: 
    >>
    >> There's a manpage for this one.[/ref]
    >
    >
    > so termcap is like a x server but then for terminals ?[/ref]

    Not really. The termcap(5) manpage describes this in (hopefully)
    adequate detail:

    % TERMCAP(5) FreeBSD File Formats Manual TERMCAP(5)
    %
    % NAME
    % termcap -- terminal capability data base
    %
    % SYNOPSIS
    % termcap
    %
    % DESCRIPTION
    % The termcap file is a data base describing terminals, used, for
    % example, by vi(1) and ncurses(3). Terminals are described in
    % termcap by giving a set of capabilities that they have and by
    % describing how operations are performed. Padding requirements
    % and initialization sequences are included in termcap.
    % [...]

    Giorgos Guest

  7. #7

    Default Re: i did it again

    On Apr 1, 2005 11:57 AM, Giorgos Keramidas <upatras.gr> wrote: 
    > >
    > >
    > > so termcap is like a x server but then for terminals ?[/ref]
    >
    > Not really. The termcap(5) manpage describes this in (hopefully)
    > adequate detail:
    >
    > % TERMCAP(5) FreeBSD File Formats Manual TERMCAP(5)
    > %
    > % NAME
    > % termcap -- terminal capability data base
    > %
    > % SYNOPSIS
    > % termcap
    > %
    > % DESCRIPTION
    > % The termcap file is a data base describing terminals, used, for
    > % example, by vi(1) and ncurses(3). Terminals are described in
    > % termcap by giving a set of capabilities that they have and by
    > % describing how operations are performed. Padding requirements
    > % and initialization sequences are included in termcap.
    > % [...]
    >[/ref]

    isnt that the same as xserver does for xclients telling the clients
    what they can and cant do ?
    Gert Guest

  8. #8

    Default Re: i did it again

    On 2005-04-01 23:46, Gert Cuykens <com> wrote: 
    >>
    >> Not really. The termcap(5) manpage describes this in (hopefully)
    >> adequate detail:
    >>
    >> % The termcap file is a data base describing terminals, used, for
    >> % example, by vi(1) and ncurses(3). Terminals are described in
    >> % termcap by giving a set of capabilities that they have and by
    >> % describing how operations are performed. Padding requirements
    >> % and initialization sequences are included in termcap.[/ref]
    >
    > isnt that the same as xserver does for xclients telling the clients
    > what they can and cant do ?[/ref]

    In some ways yes, in other ways no. The X servers do a better job of
    abstracting away some hardware features than termcap.

    Giorgos Guest

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