Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 2009 10:34:01 +0200
From:      Jose Garcia Juanino <jjuanino@gmail.com>
To:        manish jain <invalid.pointer@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to move vi to /bin
Message-ID:  <20090513083400.GA4963@banach>
In-Reply-To: <cb0fa7b70905130021t390bb560r4a1dd64ab3b2e79@mail.gmail.com>
References:  <cb0fa7b70905130021t390bb560r4a1dd64ab3b2e79@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--NzB8fVQJ5HfG6fxh
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

El mi=E9rcoles 13 de mayo a las 09:21:46 CEST, manish jain escribi=F3:
> Hi,
>=20
> I want to move vi to /bin so that I have an editor available in
> single-user mode. This sounds simple (and should be if all you have is
> a single partition), but there are problems. For starters, terminfo
> can't locate its database in single-user mode.
>=20
> Could anyone please tell me how to go about this on a 7.x system ? I
> am also curious to know why FreeBSD doesn't place vi under /bin in the
> first place.

Try /rescue/vi in single user mode. Before that, you must copy
/usr/share/misc/termcap.db to /root/.termcap.db (/root is the HOME of
user root).

Best regards.

--NzB8fVQJ5HfG6fxh
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEARECAAYFAkoKhfgACgkQFOo0zaS9RnJmEACfe+/NXplxCsDcHXiekP0eDmqD
nsQAnAycN2GrO9uABpaM3lC4YCp0QkvU
=76FB
-----END PGP SIGNATURE-----

--NzB8fVQJ5HfG6fxh--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090513083400.GA4963>