From owner-freebsd-questions Thu Oct 24 15: 7:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 08F2037B401 for ; Thu, 24 Oct 2002 15:07:51 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BFDE43E65 for ; Thu, 24 Oct 2002 15:07:49 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id g9OM7i76002974 for ; Thu, 24 Oct 2002 23:07:44 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id g9OM7cbi002973 for freebsd-questions@FreeBSD.ORG; Thu, 24 Oct 2002 23:07:38 +0100 (BST) Date: Thu, 24 Oct 2002 23:07:38 +0100 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: how to add space Message-ID: <20021024220738.GB1424@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <5.1.0.14.2.20021024125901.00aad960@pop51.bellnet.ca> <5.1.0.14.2.20021024093139.00a8df48@mail.host45.com> <5.1.0.14.2.20021024093139.00a8df48@mail.host45.com> <5.1.0.14.2.20021024125901.00aad960@pop51.bellnet.ca> <5.1.0.14.2.20021024161852.00aa3800@pop51.bellnet.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.2.20021024161852.00aa3800@pop51.bellnet.ca> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-13.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_05_08, USER_AGENT,USER_AGENT_MUTT version=2.41 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Oct 24, 2002 at 04:28:24PM -0400, pippo@bellnet.ca wrote: > At 09:05 PM 10/24/2002 +0100, you wrote: > >Either that or be careful to always set the EDITOR > >environment variable. In single user you'll probably also need to: > > > > TERM=cons25 ; export TERM > > > >for most full screen editors. > > Hmmm... question: My screen is set to cons50 with green on black > > While we're at it, I'm a little klost on the setting of environment > variables. So far in several years of putzin about with FBSD, I have never > had to actually set the variables. All has always worked well by default. > So, how would I go about setting the environment variables, especially in > single user mode? Do I shutdown now and at the prompt enter TERM=cons50 ? > And when I go into single user mode, I have been setting the shell to > /usr/local/sbin/bash - does it really make any difference if I use that or > should I just go with the default csh? In single user mode, what you get is very bare bones. A lot of stuff like enviroment variables that would normally get setup for you won't have been. Your modifications to the console video settings won't have happened by that point in the boot sequence either. You'll get standard 25 rows, 80 columns, white text on black. When you boot into single user mode, you should just hit return at the prompt and take the default shell. What you'll get is actually /bin/sh --- remember at that time only the root partition is mounted, so the only programs you'll definitely have available to run are the statically linked ones from /bin and /sbin. It's only after you've done a 'mount -a', that you should be able to run pretty much anything installed on the system. To set an environment variable in /bin/sh, the syntax is exactly as I wrote above: TERM=cons25 sets TERM as an ordinary variable (only visible from the current process), and export TERM promotes it to an environment variable (visible from all descendant processes of the current one). Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message