Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2002 23:07:38 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: how to add space
Message-ID:  <20021024220738.GB1424@happy-idiot-talk.infracaninophi>
In-Reply-To: <5.1.0.14.2.20021024161852.00aa3800@pop51.bellnet.ca>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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