TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: A. DUMAS
from: MARTIN GREGORIE
date: 2018-03-20 10:15:00
subject: Re: Raspian Jessie and St

On Tue, 20 Mar 2018 09:27:39 +0100, A. Dumas wrote:

> On 20/03/2018 04:54, Dennis Lee Bieber wrote:
>> On Tue, 20 Mar 2018 02:30:37 +0000 (UTC), bob prohaska:
>>> At this point the pi account is locked on my machine, will that
>>> interfere with upgrading? Seemed to me that the pi account is rather
>>> integral to the system, sort of like root on *bsd.
>>
>>  The "sudo" command is used to temporarily elevate the account you
are
>> logged in as to run "root" commands.
>>
>>  Though it may be easier to just create a tar archive of /home,
(s)ftp
>> that archive to your "mainframe", create a new SD card with recent
>> NOOBS image, install that and go through the NOOBS configuration stuff,
>> (s)ftp the tar archive to the new Raspbian, and untar it over the
>> default /home of the new SD card.
>
> That's exactly what he said in the part you cut.

If you've put anything in /usr/local, back that up too.

/usr/local is an empty directory structure on newly installed Linux
systems and should not be updated by system updates and upgrades. But, if
you tend to separate your programming projects into different users, as I
do, then /usr/local/bin is the place to put the programs and scripts that
you use in all users and /usr/local/man/man1 is the place to put their
manpages. Depending on the distro you may need to extend $PATH and
/etc/man_db.conf so they are automatically accessed.

If you import and compile source archives then you *should* put the
compiled executables and manpages in /usr/local as well rather than in
/usr/bin and /usr/man/*

Why? Because this prevents them stomping on system software and from
being stomped on by new and/or renamed system software.

Similarly for locally defined configuration files (they go in
/usr/local/etc) and libraries (/usr/local/lib).

I go one step further as well, by moving /usr/local to /home/local and
replacing it with a symlink because this makes sure that your binaries
and manpages will be backed up whenever you back up /home:

sudo mv /usr/local /home
sudo ln -s /home/local /usr/local


--
Martin    | martin at
Gregorie  | gregorie dot org

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.