Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2017 09:45:05 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Ernie Luzar <luzar722@gmail.com>
Cc:        FreeBSD questions <freebsd-questions@FreeBSD.org>
Subject:   Re: command line history broken in 11.0
Message-ID:  <alpine.BSF.2.20.1703210942220.533@mail.fig.ol.no>
In-Reply-To: <58D019EE.9030508@gmail.com>
References:  <58D019EE.9030508@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 20 Mar 2017 14:05-0400, Ernie Luzar wrote:

> On 10.3 I had the current session saving the command line history when issuing
> the shutdown, halt, and reboot command by using these alias commands that I
> added to the .cshrc file of my logged in user account.
> 
> alias sd	"exit && shutdown now"
> alias sdp	"exit && shutdown -p now"
> alias rboot     "exit && reboot"
> alias stop      "exit && halt"
> 
> Now after doing a clean install of 11.0 and using the same .cshrc file the
> rboot and stop alias commands no longer save the current history. They act
> like the exit command is not getting executed. The sd and sdp alias commands
> are working as expected.
> 
> When existing from a session terminal by issuing the exit command does still
> save the current history.
> 
> Is there an alternate method I can use?

Wouldn't it be more practical to reverse your aliases and change the 
conjunctions to unconditional sequences?

alias sd	"shutdown now; exit"
alias sdp	"shutdown -p now; exit"
alias rboot     "reboot; exit"
alias stop      "halt; exit"

> Here is my .cshrc file
> 
>  alias sd	"exit && shutdown now"
>  alias sdp	"exit && shutdown -p now"
>  alias rboot    "exit && reboot"
>  alias stop     "exit && halt"
> 
> 
> 
>  # A righteous umask
>  umask 22
> 
>  set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin
> $HOME/bin)
> 
>  setenv	EDITOR	ee
>  setenv	PAGER	more
>  setenv	BLOCKSIZE	K
> 
>  if ($?prompt) then
>  	# An interactive shell -- set some stuff up
>  	set prompt = "%/ >"
>  	set filec
>  	set history = 100
>  	set savehist = (100 merge)
>        set histdup = erase
>  	set autolist = ambiguous
>  	# Use history to aid expansion
>  	set autoexpand
>  	set autorehash
>  	set mail = (/var/mail/$USER)
>  	if ( $?tcsh ) then
>  		bindkey "^W" backward-delete-word
>  		bindkey -k up history-search-backward
>  		bindkey -k down history-search-forward
>  	endif
>  endif

-- 
+-------------------------------+------------------------------------+
| Vennlig hilsen,               | Best regards,                      |
| Trond Endrestøl,              | Trond Endrestøl,                   |
| IT-ansvarlig,                 | System administrator,              |
| Fagskolen Innlandet,          | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,       | Cellular...: +47 952 62 567,       |
| sentralbord 61 14 54 00.      | Switchboard: +47 61 14 54 00.      |
+-------------------------------+------------------------------------+
From owner-freebsd-questions@freebsd.org  Tue Mar 21 08:54:12 2017
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D598D0A775
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Tue, 21 Mar 2017 08:54:12 +0000 (UTC)
 (envelope-from dch@skunkwerks.at)
Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com
 [66.111.4.25])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 526BDC6E
 for <freebsd-questions@freebsd.org>; Tue, 21 Mar 2017 08:54:11 +0000 (UTC)
 (envelope-from dch@skunkwerks.at)
Received: from compute7.internal (compute7.nyi.internal [10.202.2.47])
 by mailout.nyi.internal (Postfix) with ESMTP id BEB3920D05
 for <freebsd-questions@freebsd.org>; Tue, 21 Mar 2017 04:54:10 -0400 (EDT)
Received: from web6 ([10.202.2.216])
 by compute7.internal (MEProxy); Tue, 21 Mar 2017 04:54:10 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at;
 h=content-transfer-encoding:content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-me-sender
 :x-me-sender:x-sasl-enc; s=mesmtp; bh=44aywAD/LLeSTkOu/ineidQiF4
 uPYWHSbNdaqkJRjDY=; b=ULlszULXhqiWgh/AwsOG1oZqbRyWHE3h7E3c/Ryfri
 hgpRjE3q/LwSw0nsUmgRSCVeg2ZTr271pPz67nGs3680eztJM/ny556vUUvDRS2x
 ve7pwruWKMQtO4pyA1FL1ldkAtxQf60WC35wH8rEedElh/IbX+f77rCyp3sa44QA
 U=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-transfer-encoding:content-type
 :date:from:in-reply-to:message-id:mime-version:references
 :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=44aywA
 D/LLeSTkOu/ineidQiF4uPYWHSbNdaqkJRjDY=; b=rQ/4qD9jJSClDPFamPz0z8
 dvvPCwbUss+fm06zwEFu7VOKBjtzrFmCrF2r0EQt7/+oJn4zGziZjGLionmRGD5K
 U8DuT7yfhgrUHLRWiftaKlnlP9VkVMio6W1IUgALBE7IYTdKyL/Ej7Qvj38BCQzc
 YNfWnm+mLmb4ZvyhY2bc4Y6kzaULhEQ7aO9EjIW17n+H4ME0dl0G/Luh9YcdbG8f
 J9RRt7p9q5sramBZcx0uRb3drDmKFHykNxZfcJKshFHUGq/TOe3lBBaNoZSbxphq
 9NRT4KJ8EykgwxTZCwqpO3S4sZ+eSSlSnLQ3SpTH+ybotOf03T2xtlB+63doJ2qQ
 ==
X-ME-Sender: <xms:MurQWJW9oZMYSCi8yZwQ8aixWNIbwmgDE3IFYRI6D4xRXMF_fj33ZA>
Received: by mailuser.nyi.internal (Postfix, from userid 99)
 id A021D48007; Tue, 21 Mar 2017 04:54:10 -0400 (EDT)
Message-Id: <1490086450.354505.918173416.7898F43D@webmail.messagingengine.com>
From: Dave Cottlehuber <dch@skunkwerks.at>
To: freebsd-questions@freebsd.org
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="utf-8"
X-Mailer: MessagingEngine.com Webmail Interface - ajax-aac97429
In-Reply-To: <CAJ1hvUGgXdFUMegFw-+WiDMZbgng2RqMVrBMk03LgueDB3MgGA@mail.gmail.com>
Date: Tue, 21 Mar 2017 09:54:10 +0100
References: <CAJ1hvUGgXdFUMegFw-+WiDMZbgng2RqMVrBMk03LgueDB3MgGA@mail.gmail.com>
Subject: Re: Installing a FreeBSD from Scratch From a Linux Box?
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 21 Mar 2017 08:54:12 -0000

On Tue, 21 Mar 2017, at 00:12, Hunter Jozwiak wrote:
> Hi,
> 
> I am curious as to whether or not this is actually possible. The idea
> is to install FreeBSD from scratch using a Linux live disc akin to how
> one would install Gentoo. That means that I would create the
> filesystems, mount them on partitions, download and build the sources,
> chroot in, and do configuration that way. The main reason is that
> since there is no talking live installer for the visually impaired, it
> would be difficult to get an install going without sighted assistance.
> Any thoughts/ideas are welcome.
> 
> Hunter

What about this approach?

- make a usb stick or CD of mfsbsd http://mfsbsd.vx.sk/
- boot the computer from that
- from another computer that has "talk functionality" available, connect
via ssh to mfsbsd
- run mfsbsd inbuilt zfsinstall from this terminal session

While I've not tried it recently, I believe its also possible to run the
FreeBSD installer from within mfsbsd too, so this would give a partially
sighted person the ability to use the normal installer via a supported
speaking terminal. I have no idea whether curses style applications work
in this scenario, maybe you can share some experiences with that.

IIRC one needs to download the .txz files to /usr/freebsd-dist/ and also
the MANIFEST file from an ftp mirror, then run bsdinstall.

A+
Dave



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