Re: Installing/Preparing Debian on a headless system

2022-03-15 Thread David Wright
On Tue 15 Mar 2022 at 12:41:48 (+), Brian wrote:
> On Sun 13 Mar 2022 at 20:05:45 -0500, David Wright wrote:
> > On Wed 09 Mar 2022 at 16:18:08 (+), Brian wrote:
> > > 
> > > Sorry, I do not know anything about UEFI and the installer. I will,
> > > however, guide you through the steps to use preseeding and get a
> > > network console.
> > 
> > That would be most helpful if you would post that.
> 
> Carry out the instructions in sections 1 to 10 at
> 
>   https://wiki.debian.org/Installation+Archive+USBStick
> 
> Attached is the relevant portion of my preseed.cfg up to partitioning.
> I do that manually.

Thanks, very useful. I always install using the network console,
so this saves me finding a chair, possibly a screen, and a very
boring few minutes.

Cheers,
David.



Re: Installing/Preparing Debian on a headless system

2022-03-15 Thread mick crane

On 2022-03-15 12:41, Brian wrote:


Attached is the relevant portion of my preseed.cfg up to partitioning.
I do that manually.


"d-i netcfg/wireless_essid string MI5_Listening_Station_102"

=O)

--
Key ID4BFEBB31



Re: Installing/Preparing Debian on a headless system

2022-03-15 Thread Brian
On Sun 13 Mar 2022 at 20:05:45 -0500, David Wright wrote:

> On Wed 09 Mar 2022 at 16:18:08 (+), Brian wrote:
> > 
> > Sorry, I do not know anything about UEFI and the installer. I will,
> > however, guide you through the steps to use preseeding and get a
> > network console.
> 
> That would be most helpful if you would post that.

Carry out the instructions in sections 1 to 10 at

  https://wiki.debian.org/Installation+Archive+USBStick

Attached is the relevant portion of my preseed.cfg up to partitioning.
I do that manually.

-- 
Brian.
# This file is designed to be used with 'priority=critical'. (The
# priority would be 'high' without this entry).
# (https://www.debian.org/releases/stable/i386/ch05s03.html.en).
debconf debconf/priority string critical

# Provide non-free firmware files directly to the installer. It now
# does not need to search for them in other packages.
d-i preseed/early_command string\
cp -a /hd-media/files/firmware /lib

# If possible, netcfg will choose interfaces that have links. This
# makes it skip displaying a list if there is more than one interface.
# The first connected network interface will be selected and used.
#
# The IP address may be changed after first boot.
d-i netcfg/choose_interface select auto
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/get_ipaddress string 192.168.7.99
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.7.1
d-i netcfg/get_nameservers string 192.168.7.1
d-i netcfg/confirm_static boolean true

# This sets the hostname for the system; it ignores names provided by
# DHCP or DNS. 'hostname=' on the command line of the installer does not
# override it. Change the hostname after installation.
d-i netcfg/hostname string bullseye

# Use ifupdown irrespective of whether a DE (which would bring in
# network manager) is installed or whether the connection is wired or
# wireless.
d-i netcfg/target_network_config select ifupdown

# Wireless stuff, if it is available.
d-i netcfg/wireless_show_essids select manual
d-i netcfg/wireless_essid string MI5_Listening_Station_102
d-i netcfg/wireless_security_type select wpa
d-i netcfg/wireless_wpa string xxx

# Users and passwords.
d-i passwd/user-fullname string x yy
d-i passwd/username string brian
d-i passwd/root-password password PASWORD
d-i passwd/root-password-again password PASSWORD
d-i passwd/user-password password PASSWORD
d-i passwd/user-password-again password PASSWORD

# Log in from another machine on the local network. Obtain the
# IP of the machine booted with d-i from 'arp-scan' if there
# isn't a way to use 'ip a' (no monitor attached) and a static
# address has not been preeseeded. Then do
#
# ssh installer@IP_ADDRESS
# or
# ssh -o GlobalKnownHostsFile=/dev/null -o UserKnownHostsFile=/dev/null 
installer@IP_ADDRESS
#
# and give the password. Change the Debconf priotity back to
# "critical" to continue with the remainder of the directives
# in preseed.cfg.
#
# To change console precede the console number with Ctrl-A. For
# example, Ctrl-A 4. The console has screen support.
# (https://lists.debian.org/debian-boot/2016/02/msg00547.html).
d-i anna/choose_modules string network-console
d-i network-console/password password PASSWORD
d-i network-console/password-again password PASSWORD
# network-console becomes available when a network connection is
# established. This line ensures preseeding continues up to the
# partitioning stage, which is done manually.
d-i network-console/start select continue


Re: Installing/Preparing Debian on a headless system

2022-03-13 Thread David Wright
On Wed 09 Mar 2022 at 16:18:08 (+), Brian wrote:
> On Wed 09 Mar 2022 at 17:08:21 +0100, Christian Britz wrote:
> > On 2022-03-09 16:53 UTC+0100, Christian Britz wrote:
> > > On 2022-03-09 16:50 UTC+0100, Brian wrote:
> > >> The short answer is that you use the network-console udeb. To do that,
> > >> I preseed wirh
> > >>
> > >>   d-i anna/choose_modules string network-console
> > >>
> > >> I boot with  a netinst using hd-media and pressed from a file.
> > > That sounds very interesting, can you please give a little bit more of
> > > details? I never have worked with preseeding before.
> > Re-thinking about it, I probably can't use the Debian installer on the
> > Raspi (it does not support UEFI). I probably need to modify one of the
> > images at https://raspi.debian.net/
> 
> Sorry, I do not know anything about UEFI and the installer. I will,
> however, guide you through the steps to use preseeding and get a
> network console.

That would be most helpful if you would post that.

Cheers,
David.



Re: Installing/Preparing Debian on a headless system

2022-03-09 Thread Christian Britz



On 2022-03-10 08:35 UTC+0100, Christian Britz wrote:
> ...and this is not the latest kernel available in pure Debian. It is
This is what I got directly from Debian: Linux raspberrypi
5.10.0-12-arm64 #1 SMP Debian 5.10.103-1 (2022-03-07) aarch64 GNU/Linux

-- 
http://www.cb-fraggle.de



Re: Installing/Preparing Debian on a headless system

2022-03-09 Thread Christian Britz
Hi Keith,

On 2022-03-10 08:12 UTC+0100, Keith Bainbridge wrote:

> uname :
> Linux rasp14 5.10.92-v8+ #1514 SMP PREEMPT Mon Jan 17 17:39:38 GMT 2022 
> aarch64 GNU/Linux

...and this is not the latest kernel available in pure Debian. It is
missing important security fixes. Since last night an image from
raspi.debian.net is running on my headless Pi. :-) It took me very few
time, to get my web, file and dlna services running again. I guess I
don't need the proprietary optimisations of Raspberry Pi OS.

Regards,
Christian

-- 
http://www.cb-fraggle.de



Re: Installing/Preparing Debian on a headless system

2022-03-09 Thread Keith Bainbridge

On 10/3/22 01:57, Christian Britz wrote:

Hello,

after learning that the Debian-based RaspberryPi OS does not get
security fixes always in time (see dirty-pipe), I am considering
installing pure Debian on my system. It seems not all proprietary
components are supported, but I don't need video acceleration anyway,
for example. My Pi acts as a home server.

The thing is, the Pi is headless, it was never connected to a monitor or
keyboard, all configuration was done via SSH on a pre-built Raspberry PI
OS image. I do not even have an USB keyboard and the Pi has obviously no
PS/2 connectors.

Do you have some ideas for me, how I could prepare a minimal Debian
image on my notebook which is able to boot on the Pi and has already an
user and SSH configured? Everything else I would setup remotely.

Thank you,
Christian



Good afternoon Christian

I'm not sure why you aren't getting security updates. When I run # apt 
update on my Pi4, the first line of output is :


Get:1 http://security.debian.org/debian-security bullseye-security 
InRelease [44.1 kB]


uname :
Linux rasp14 5.10.92-v8+ #1514 SMP PREEMPT Mon Jan 17 17:39:38 GMT 2022 
aarch64 GNU/Linux


Should there be more that I am missing?

Tim
Thanks for the link to Gunnar's image. My next project, well maybe the 
one after. Thanks


--
All the best

Keith Bainbridge

keithrbaugro...@gmail.com



Re: Installing/Preparing Debian on a headless system

2022-03-09 Thread Tim Woodall

On Wed, 9 Mar 2022, Christian Britz wrote:


Hello,

after learning that the Debian-based RaspberryPi OS does not get
security fixes always in time (see dirty-pipe), I am considering
installing pure Debian on my system. It seems not all proprietary
components are supported, but I don't need video acceleration anyway,
for example. My Pi acts as a home server.

The thing is, the Pi is headless, it was never connected to a monitor or
keyboard, all configuration was done via SSH on a pre-built Raspberry PI
OS image. I do not even have an USB keyboard and the Pi has obviously no
PS/2 connectors.

Do you have some ideas for me, how I could prepare a minimal Debian
image on my notebook which is able to boot on the Pi and has already an
user and SSH configured? Everything else I would setup remotely.



There is someone who does prebuilt pure debian images that will get you
started.

https://itsfoss.com/debian-raspberry-pi/

This reply from Gunnar Wolf might help you too:

Hello Tim!

Tim Woodall dijo [Tue, Dec 29, 2020 at 12:49:18PM +]:

Hi,

Many thanks for your debian images for the raspberry pi. They solved
my
confusion after I tried to do this myself and failed miserably.


I am very happy that my work is useful to you!


One tiny change I'd quite like you to consider is either an
authorized_keys file for root where you publish the private key or a
root password set rather than empty so that you can login using ssh on
an initial boot.


Take a look at /boot/firmware/sysconf.txt (that is, /sysconf.txt in
the firmware partition, the partition formatted with vfat). It has:

# root_authorized_key - Set an authorized key for a root ssh login
#root_authorized_key=

Greetings!






Re: Installing/Preparing Debian on a headless system

2022-03-09 Thread Christian Britz
I just modified an image from raspi.debian.net and was able to login via
ssh. Thank you all for the input. :-)

On 2022-03-09 15:57 UTC+0100, Christian Britz wrote:
> Hello,
> 
> after learning that the Debian-based RaspberryPi OS does not get
> security fixes always in time (see dirty-pipe), I am considering
> installing pure Debian on my system. It seems not all proprietary
> components are supported, but I don't need video acceleration anyway,
> for example. My Pi acts as a home server.
> 
> The thing is, the Pi is headless, it was never connected to a monitor or
> keyboard, all configuration was done via SSH on a pre-built Raspberry PI
> OS image. I do not even have an USB keyboard and the Pi has obviously no
> PS/2 connectors.
> 
> Do you have some ideas for me, how I could prepare a minimal Debian
> image on my notebook which is able to boot on the Pi and has already an
> user and SSH configured? Everything else I would setup remotely.
> 
> Thank you,
> Christian
> 

-- 
http://www.cb-fraggle.de



Re: Installing/Preparing Debian on a headless system

2022-03-09 Thread Christian Britz



On 2022-03-09 18:57 UTC+0100, Andrew M.A. Cater wrote:

> Which Raspberry Pi model - Pete Batard has a version of UEFI that works on
> a Pi 4 and can boot enough to then use the Debian installer. Essentially,
> you put UEFI and the raspberry pi firmware package in the ESP on a USB stick
> or disk.

I have model 4 B. Sounds interesting, although the preferred solution
would be something, which does not involve attaching a USB keyboard.

> Otherwise, you can probably use one of Gunnar Wolf's images which will
> allow you to ssh in as root initially. See his pages on the Wiki.

OK, I have to see that again, sounds good. From what I saw on
raspi.debian.org, I understood that SSH is enabled, but not for root.

> All the very best, as ever,
Wish you the same,
Christian

-- 
http://www.cb-fraggle.de



Re: Installing/Preparing Debian on a headless system

2022-03-09 Thread Andrew M.A. Cater
On Wed, Mar 09, 2022 at 05:08:21PM +0100, Christian Britz wrote:
> 
> 
> On 2022-03-09 16:53 UTC+0100, Christian Britz wrote:
> > 
> > 
> > On 2022-03-09 16:50 UTC+0100, Brian wrote:
> >> The short answer is that you use the network-console udeb. To do that,
> >> I preseed wirh
> >>
> >>   d-i anna/choose_modules string network-console
> >>
> >> I boot with  a netinst using hd-media and pressed from a file.
> > That sounds very interesting, can you please give a little bit more of
> > details? I never have worked with preseeding before.
> Re-thinking about it, I probably can't use the Debian installer on the
> Raspi (it does not support UEFI). I probably need to modify one of the
> images at https://raspi.debian.net/
>

Which Raspberry Pi model - Pete Batard has a version of UEFI that works on
a Pi 4 and can boot enough to then use the Debian installer. Essentially,
you put UEFI and the raspberry pi firmware package in the ESP on a USB stick
or disk.

Otherwise, you can probably use one of Gunnar Wolf's images which will
allow you to ssh in as root initially. See his pages on the Wiki.

All the very best, as ever,

Andy Cater 



Re: Installing/Preparing Debian on a headless system

2022-03-09 Thread Brian
On Wed 09 Mar 2022 at 17:08:21 +0100, Christian Britz wrote:

> 
> 
> On 2022-03-09 16:53 UTC+0100, Christian Britz wrote:
> > 
> > 
> > On 2022-03-09 16:50 UTC+0100, Brian wrote:
> >> The short answer is that you use the network-console udeb. To do that,
> >> I preseed wirh
> >>
> >>   d-i anna/choose_modules string network-console
> >>
> >> I boot with  a netinst using hd-media and pressed from a file.
> > That sounds very interesting, can you please give a little bit more of
> > details? I never have worked with preseeding before.
> Re-thinking about it, I probably can't use the Debian installer on the
> Raspi (it does not support UEFI). I probably need to modify one of the
> images at https://raspi.debian.net/

Sorry, I do not know anything about UEFI and the installer. I will,
however, guide you through the steps to use preseeding and get a
netwprk console.

-- 
Brian.



Re: Installing/Preparing Debian on a headless system

2022-03-09 Thread Christian Britz



On 2022-03-09 16:53 UTC+0100, Christian Britz wrote:
> 
> 
> On 2022-03-09 16:50 UTC+0100, Brian wrote:
>> The short answer is that you use the network-console udeb. To do that,
>> I preseed wirh
>>
>>   d-i anna/choose_modules string network-console
>>
>> I boot with  a netinst using hd-media and pressed from a file.
> That sounds very interesting, can you please give a little bit more of
> details? I never have worked with preseeding before.
Re-thinking about it, I probably can't use the Debian installer on the
Raspi (it does not support UEFI). I probably need to modify one of the
images at https://raspi.debian.net/



Re: Installing/Preparing Debian on a headless system

2022-03-09 Thread Christian Britz



On 2022-03-09 16:50 UTC+0100, Brian wrote:
> The short answer is that you use the network-console udeb. To do that,
> I preseed wirh
> 
>   d-i anna/choose_modules string network-console
> 
> I boot with  a netinst using hd-media and pressed from a file.
That sounds very interesting, can you please give a little bit more of
details? I never have worked with preseeding before.
-- 
http://www.cb-fraggle.de



Re: Installing/Preparing Debian on a headless system

2022-03-09 Thread Brian
On Wed 09 Mar 2022 at 15:57:04 +0100, Christian Britz wrote:

> Hello,
> 
> after learning that the Debian-based RaspberryPi OS does not get
> security fixes always in time (see dirty-pipe), I am considering
> installing pure Debian on my system. It seems not all proprietary
> components are supported, but I don't need video acceleration anyway,
> for example. My Pi acts as a home server.
> 
> The thing is, the Pi is headless, it was never connected to a monitor or
> keyboard, all configuration was done via SSH on a pre-built Raspberry PI
> OS image. I do not even have an USB keyboard and the Pi has obviously no
> PS/2 connectors.
> 
> Do you have some ideas for me, how I could prepare a minimal Debian
> image on my notebook which is able to boot on the Pi and has already an
> user and SSH configured? Everything else I would setup remotely.

The short answer is that you use the network-console udeb. To do that,
I preseed wirh

  d-i anna/choose_modules string network-console

I boot with  a netinst using hd-media and pressed from a file.

-- 
Brian.



Installing/Preparing Debian on a headless system

2022-03-09 Thread Christian Britz
Hello,

after learning that the Debian-based RaspberryPi OS does not get
security fixes always in time (see dirty-pipe), I am considering
installing pure Debian on my system. It seems not all proprietary
components are supported, but I don't need video acceleration anyway,
for example. My Pi acts as a home server.

The thing is, the Pi is headless, it was never connected to a monitor or
keyboard, all configuration was done via SSH on a pre-built Raspberry PI
OS image. I do not even have an USB keyboard and the Pi has obviously no
PS/2 connectors.

Do you have some ideas for me, how I could prepare a minimal Debian
image on my notebook which is able to boot on the Pi and has already an
user and SSH configured? Everything else I would setup remotely.

Thank you,
Christian

-- 
http://www.cb-fraggle.de