From owner-freebsd-questions@FreeBSD.ORG Wed May 13 09:06:53 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 499E3106566B for ; Wed, 13 May 2009 09:06:53 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by mx1.freebsd.org (Postfix) with ESMTP id ECF6C8FC18 for ; Wed, 13 May 2009 09:06:52 +0000 (UTC) (envelope-from jjuanino@gmail.com) Received: by an-out-0708.google.com with SMTP id c3so111868ana.13 for ; Wed, 13 May 2009 02:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:x-operating-system:user-agent; bh=w1DAgqBj5PapTLhFveSeAyJD3PBo1y87CJmRHTT/krc=; b=ujwVaUwvPBFNxzdDbgJxTwDv/I5wGIVZaF/aD6+cHuWO5d8CWEmsEzYVmnxj5xfTAC Frrl/uG11wxGz2HLEchTdWY6qDvTM2Ubax8Cb1//0hIcLQcA9uEcC7jOKPYbTuHDoFyX 57xrSrQ4wQA5ZadyXBMhen/QubiiuzJMovMuo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-operating-system :user-agent; b=MVzs4yhWyxgGc7xBUa3q775nUiYQqgYfRSRPtj6IJyLEPvrQM047LEWyG+gaWETT5h TTEdcZslsuCb8QMUJNP2lkhVeSK/uldu2Kt0zSJqdLtJJzb6El6XRb7OoPdR0qWlrrVP ZhafuOH3k84+o/HxS2annBV1zmpfwo0yRHMtM= Received: by 10.100.10.15 with SMTP id 15mr586908anj.8.1242203646975; Wed, 13 May 2009 01:34:06 -0700 (PDT) Received: from banach (22.pool85-60-101.dynamic.orange.es [85.60.101.22]) by mx.google.com with ESMTPS id 3sm1365379aga.5.2009.05.13.01.34.05 (version=SSLv3 cipher=RC4-MD5); Wed, 13 May 2009 01:34:06 -0700 (PDT) Date: Wed, 13 May 2009 10:34:01 +0200 From: Jose Garcia Juanino To: manish jain Message-ID: <20090513083400.GA4963@banach> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 7.2-RELEASE User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-questions@freebsd.org Subject: Re: How to move vi to /bin X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 May 2009 09:06:53 -0000 --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--