Re: Bookworm Networking Issues

2024-03-17 Thread Anssi Saari
Greg Wooledge writes: > For example, on my current machine, the network interface is named "eno1". > To bring this interface up, if it's not already up, I would run: > > ifup eno1 Um, ifup takes -a to bring all interfaces marked auto up. So that's the obvious command to try and if it doesn't

Re: Bookworm Fasttrack and Virtualbox

2024-03-17 Thread Zenaan Harkness
On Mon, Mar 18, 2024 at 3:12 PM Andrew M.A. Cater wrote: > On Sun, Mar 17, 2024 at 10:49:16PM +0100, Miguel A. Vallejo wrote: > > Greg Wooledge () wrote: > > > > > It's not just you. The use of three "b" names in a row (buster, > > > bullseye, bookworm) was in my opinion a poor decision. I've ta

Re: shellcheck, bashism's and one liners.

2024-03-17 Thread Max Nikulin
On 17/03/2024 23:56, Greg Wooledge wrote: On Sun, Mar 17, 2024 at 11:14:56PM +0700, Max Nikulin wrote: args() { printf '%s\0' a b c d; } args | xargs -0 sh -c 'count() { echo $#; }; count "$@"' sh-count It would be easier in the case of script file instead of shell function. An assumption is t

Re: shellcheck, bashism's and one liners.

2024-03-17 Thread Tim Woodall
On Sun, 17 Mar 2024, Greg Wooledge wrote: Tim's assumption here is that he can write a function which emits a stream of whitespace-separated words, and use this safely in an unquoted command substitution. count $(args) I'm guessing "count" is a stand-in for something more complex, but $(arg

Re: Bookworm Fasttrack and Virtualbox

2024-03-17 Thread Andrew M.A. Cater
On Sun, Mar 17, 2024 at 10:49:16PM +0100, Miguel A. Vallejo wrote: > Greg Wooledge () wrote: > > > It's not just you. The use of three "b" names in a row (buster, > > bullseye, bookworm) was in my opinion a poor decision. I've taken > > to calling the releases by their numbers (10, 11, 12) inste

Re: Bookworm Fasttrack and Virtualbox

2024-03-17 Thread Miguel A. Vallejo
Greg Wooledge () wrote: > It's not just you. The use of three "b" names in a row (buster, > bullseye, bookworm) was in my opinion a poor decision. I've taken > to calling the releases by their numbers (10, 11, 12) instead of > their codenames to avoid confusion wherever possible. > I feel asham

Re: Bookworm Networking Issues

2024-03-17 Thread Stefan Monnier
> Can anybody suggest how to get the networking running? Have you searched the web for answered? I suspect searching for "get the networking running" or "fix my problems" will get you up and running in no time. Stefan

Re: Bookworm Networking Issues

2024-03-17 Thread Greg Wooledge
On Sun, Mar 17, 2024 at 08:46:26PM +0100, Marco Moock wrote: > Am 17.03.2024 um 16:54:27 Uhr schrieb David: > > > Can anybody suggest how to get the networking running? > > You have to tell us what doesn't work in your network. > > Also show the output of > ip a > cat /etc/resolv.conf I have a

Re: Bookworm Networking Issues

2024-03-17 Thread Marco Moock
Am 17.03.2024 um 16:54:27 Uhr schrieb David: > Can anybody suggest how to get the networking running? You have to tell us what doesn't work in your network. Also show the output of ip a cat /etc/resolv.conf -- Gruß Marco Send spam to 1710690867mu...@cartoonies.org

Re: Bookworm Networking Issues

2024-03-17 Thread tomas
On Sun, Mar 17, 2024 at 04:54:27PM +, David wrote: > I am running Bookworm on a thin client and Network-Manger seems to be > the source of my problems. > > I have purged Network-Manager from this thin client, but I can't find > out how to get /etc/network/interface to run. I have added to 2 NI

Re: Bookworm Networking Issues

2024-03-17 Thread Charles Curley
On Sun, 17 Mar 2024 16:54:27 + David wrote: > I am running Bookworm on a thin client and Network-Manger seems to be > the source of my problems. > > I have purged Network-Manager from this thin client, but I can't find > out how to get /etc/network/interface to run. I have added to 2 NIC's >

Re: Bookworm Fasttrack and Virtualbox

2024-03-17 Thread Andrew M.A. Cater
On Sun, Mar 17, 2024 at 01:31:40PM -0400, Roy J. Tellason, Sr. wrote: > On Sunday 17 March 2024 08:48:29 am Greg Wooledge wrote: > > On Sun, Mar 17, 2024 at 12:35:33PM +0100, Miguel A. Vallejo wrote: > > > Well... it seems my brain can't distinguish Bookworm from Bullseye. > > > > It's not just yo

Re: Bookworm Networking Issues

2024-03-17 Thread Eike Lantzsch ZP5CGE / KY4PZ
On Sonntag, 17. März 2024 13:54:27 -03 David wrote: > I am running Bookworm on a thin client and Network-Manger seems to be > the source of my problems. > > I have purged Network-Manager from this thin client, but I can't find > out how to get /etc/network/interface to run. I have added to 2 NIC's

Bookworm Networking Issues

2024-03-17 Thread David
I am running Bookworm on a thin client and Network-Manger seems to be the source of my problems. I have purged Network-Manager from this thin client, but I can't find out how to get /etc/network/interface to run. I have added to 2 NIC's that I need. Can anybody suggest how to get the networking r

Re: Bookworm Fasttrack and Virtualbox

2024-03-17 Thread Roy J. Tellason, Sr.
On Sunday 17 March 2024 08:48:29 am Greg Wooledge wrote: > On Sun, Mar 17, 2024 at 12:35:33PM +0100, Miguel A. Vallejo wrote: > > Well... it seems my brain can't distinguish Bookworm from Bullseye. > > It's not just you. The use of three "b" names in a row (buster, > bullseye, bookworm) was in my

Re: shellcheck, bashism's and one liners.

2024-03-17 Thread Tim Woodall
On Sun, 17 Mar 2024, Greg Wooledge wrote: On Sun, Mar 17, 2024 at 09:25:10AM +, Tim Woodall wrote: In almost all other cases, the space separated items cannot, even in theory, contain a rogue space, so suppressing the warning is fine Famous Last Words™. As one example, it calls out to a

Re: shellcheck, bashism's and one liners.

2024-03-17 Thread Greg Wooledge
On Sun, Mar 17, 2024 at 10:57:43AM -0500, Nate Bargmann wrote: > What errors do you get if you use sh instead of bash? He's not getting any errors. His script actually works for his current inputs. He was just getting warnings from shellcheck, which is an external script validation tool. One of

Re: shellcheck, bashism's and one liners.

2024-03-17 Thread Max Nikulin
On 17/03/2024 16:25, Tim Woodall wrote: args() { echo a b c d; } count() { echo $#; } count $(args) args() { printf '%s\0' a b c d; } args | xargs -0 sh -c 'count() { echo $#; }; count "$@"' sh-count It would be easier in the case of script file instead of shell function. An assumption is tha

Re: shellcheck, bashism's and one liners.

2024-03-17 Thread Nate Bargmann
Hi Tim. What errors do you get if you use sh instead of bash? On Debian systems sh should be a symbolic link to dash. On Debian dash is preferred for system shell scripts (perhaps even required now) and I use it for my personal scripts unless there is some need to use bash instead. I still use

Re: Bookworm Fasttrack and Virtualbox

2024-03-17 Thread The Wanderer
On 2024-03-17 at 08:48, Greg Wooledge wrote: > On Sun, Mar 17, 2024 at 12:35:33PM +0100, Miguel A. Vallejo wrote: > >> Well... it seems my brain can't distinguish Bookworm from >> Bullseye. > > It's not just you. The use of three "b" names in a row (buster, > bullseye, bookworm) was in my opini

Re: Bookworm Fasttrack and Virtualbox

2024-03-17 Thread Greg Wooledge
On Sun, Mar 17, 2024 at 12:35:33PM +0100, Miguel A. Vallejo wrote: > Well... it seems my brain can't distinguish Bookworm from Bullseye. It's not just you. The use of three "b" names in a row (buster, bullseye, bookworm) was in my opinion a poor decision. I've taken to calling the releases by th

Re: shellcheck, bashism's and one liners.

2024-03-17 Thread Greg Wooledge
On Sun, Mar 17, 2024 at 09:25:10AM +, Tim Woodall wrote: > I have this one-liner (which works but shellcheck doesn't like the > quoting) > > idxsrc="$( newest_file $( APT_CONFIG=${APT_CONFIG} apt-get indextargets > --format '$(FILENAME)' 'Identifier: Packages' ))" > > SC2016: Expressions don

Re: shellcheck, bashism's and one liners.

2024-03-17 Thread Tim Woodall
On Sun, 17 Mar 2024, Geert Stappers wrote: On Sun, Mar 17, 2024 at 09:25:10AM +, Tim Woodall wrote: Hi, I've been cleaning up some bash scripts Good and, where possible, addressing things reported by shellcheck. Oh, shellcheck, https://www.shellcheck.net/ I have this one-liner (

Re: Bookworm Fasttrack and Virtualbox

2024-03-17 Thread Miguel A. Vallejo
Well... it seems my brain can't distinguish Bookworm from Bullseye. Virtualbox is now installed from Fasttrack repository and is working fine. Sorry for the inconveniences

Re: shellcheck, bashism's and one liners.

2024-03-17 Thread Geert Stappers
On Sun, Mar 17, 2024 at 09:25:10AM +, Tim Woodall wrote: > Hi, > > I've been cleaning up some bash scripts Good > and, where possible, addressing things reported by shellcheck. Oh, shellcheck, https://www.shellcheck.net/ > I have this one-liner (which works but shellcheck doesn't like

Re: shellcheck, bashism's and one liners.

2024-03-17 Thread tomas
On Sun, Mar 17, 2024 at 09:25:10AM +, Tim Woodall wrote: > Hi, [...] > Is there a one-liner way to make shellcheck happy on the count line > below (other than # shellcheck disable=SC2046)? > > args() { echo a b c d; } > count() { echo $#; } > count $(args) > > Obviously, any correct solutio

shellcheck, bashism's and one liners.

2024-03-17 Thread Tim Woodall
Hi, I've been cleaning up some bash scripts and, where possible, addressing things reported by shellcheck. I have this one-liner (which works but shellcheck doesn't like the quoting) idxsrc="$( newest_file $( APT_CONFIG=${APT_CONFIG} apt-get indextargets --format '$(FILENAME)' 'Identifier: Pac