service vs systemctl

2023-03-06 Thread Ken Young
Hello For debian 11, service is just a wrapper to systemctl, is it right? So for server management, both commands below have the same results. sudo service nginx start sudo systemclt start nginx Which way is more prefered though? Thanks. -- Sincerely, Ken Young

Re: Forcing dhclient to not ignore tun0 interface when it's available

2023-03-06 Thread David Wright
On Mon 06 Mar 2023 at 13:34:52 (+0100), daven...@tuxfamily.org wrote: > On 2023-03-03 16:00, Max Nikulin wrote: > > On 03/03/2023 13:29, Tim Woodall wrote: > > > On Fri, 3 Mar 2023, Max Nikulin wrote: > > > > > > > > dhclient running for enp2s0f0 should detect that VPN is > > > > active and to avo

Re: Forcing dhclient to not ignore tun0 interface when it's available

2023-03-06 Thread David Wright
On Mon 06 Mar 2023 at 13:17:23 (+0100), daven...@tuxfamily.org wrote: > On 2023-03-03 06:22, Max Nikulin wrote: > > On 03/03/2023 10:08, Tim Woodall wrote: > > > New to this thread, so might be totally off-piste but openvpn > > > has hooks > > > to run scripts like this: > > ... > > > This is serve

Re: alias in bash script issue

2023-03-06 Thread David Wright
On Sun 05 Mar 2023 at 16:30:10 (-0500), Greg Wooledge wrote: > On Sun, Mar 05, 2023 at 02:37:48PM -0600, David Wright wrote: > > There are many lists of dangerous aliases on the web, but I haven't > > found a list of such aliases that can't be transcribed into functions. > > Here's one document: >

Re: what method do you prefer for data transfer between nodes?

2023-03-06 Thread Vincent Lefevre
On 2023-03-05 16:22:25 +0800, Ken Young wrote: > 1. scp > pros: the native tool in the OS > cons: you will either input password or put key pairs into servers for > authentication. I would not see this as a cons. > 2. rsync > pros: it can transfer data by increasement > cons: you need to setup rs

Re: what method do you prefer for data transfer between nodes?

2023-03-06 Thread Ken Young
For standalone backup I am using Liteserver's VPS, 512G disk for only 2.4 EUR/m. Then I setup rsyncd on it, and rsync data from clients via crontab for backup purpose. Sincerely, Ken Young On Tue, Mar 7, 2023 at 9:21 AM Celejar wrote: > On Sun, 5 Mar 2023 14:05:37 +0100 > to...@tuxteam.de wro

Re: what method do you prefer for data transfer between nodes?

2023-03-06 Thread Celejar
On Sun, 5 Mar 2023 14:05:37 +0100 to...@tuxteam.de wrote: > On Sun, Mar 05, 2023 at 07:23:49PM +0800, Ken Young wrote: > > What provider do you recommend then? > > Around here (West Europe), for example, mailbox.org [1]. But they > are far from the only one (I'm not a customer, nor associated wit

Re: how to activate my wireless card? nmtui only shows wireless connections . . .

2023-03-06 Thread Anssi Saari
David Wright writes: > So what was wrong with using a .link file like: > > [Match] > Type=wwan > [Link] > NamePolicy=keep kernel > > or > > [Match] > Type=wwan > [Link] > Name=my4g > > Did this not work? Nothing was wrong but I just added a few lines to my management script to do

Re: does your Thunderbird for deb11 often become unresponsive?

2023-03-06 Thread piorunz
On 06/03/2023 06:35, Russell L. Harris wrote: On Mon, Mar 06, 2023 at 03:26:15AM +, piorunz wrote: On 05/03/2023 20:26, Russell L. Harris wrote: Thunderbird under Debian 11 gave minor miscellaneous problems from time to time. Can't reproduce. If you have exact problem, please describe and

Re: solution to / full

2023-03-06 Thread Jonathan Dowland
On Mon, Mar 06, 2023 at 10:41:22AM +, Jonathan Dowland wrote: Quite. I habitually alias ls to 'ls -lhrt', (and cdls() { cd "$@" && ls -lhrt; }; alias cd=cdls) so I'm very used to only looking at the bottom of a long list of size-sorted-ascending. Err, of course, that's date-sort-ascending,

Re: Forcing dhclient to not ignore tun0 interface when it's available

2023-03-06 Thread davenull
On 2023-03-03 16:00, Max Nikulin wrote: On 03/03/2023 13:29, Tim Woodall wrote: On Fri, 3 Mar 2023, Max Nikulin wrote: dhclient running for enp2s0f0 should detect that VPN is active and to avoid overwriting DNS settings that direct requests to tun0. The hook can create and delete a file li

Re: Forcing dhclient to not ignore tun0 interface when it's available

2023-03-06 Thread davenull
Hello On 2023-03-03 06:22, Max Nikulin wrote: On 03/03/2023 10:08, Tim Woodall wrote: New to this thread, so might be totally off-piste but openvpn has hooks to run scripts like this: ... This is server side but the route-up/pre-down work client side too. Since it's workplace's VPN, which

Re: what method do you prefer for data transfer between nodes?

2023-03-06 Thread tomas
On Mon, Mar 06, 2023 at 06:41:58PM +0700, Max Nikulin wrote: > On 05/03/2023 15:22, Ken Young wrote: > > > > 1. scp > > Notice that in bookworm (next release) scp uses SFTP protocol. This > ssh-based protocol can be used in the current stable release as well. Do not > confuse it with ftps that is

Re: what method do you prefer for data transfer between nodes?

2023-03-06 Thread Max Nikulin
On 05/03/2023 15:22, Ken Young wrote: 1. scp Notice that in bookworm (next release) scp uses SFTP protocol. This ssh-based protocol can be used in the current stable release as well. Do not confuse it with ftps that is traditional FTP over TLS.

Re: what method do you prefer for data transfer between nodes?

2023-03-06 Thread David Christensen
On 3/5/23 00:22, Ken Young wrote: Hello, The methods I know, 1. scp pros: the native tool in the OS cons: you will either input password or put key pairs into servers for authentication. 2. rsync pros: it can transfer data by increasement cons: you need to setup rsyncd server and make the corr

Re: solution to / full

2023-03-06 Thread Jonathan Dowland
On Sat, Mar 04, 2023 at 11:10:48AM -0600, David Wright wrote: But then when there's a drove, the biggest go AWOL off the top of screen. Quite. I habitually alias ls to 'ls -lhrt', (and cdls() { cd "$@" && ls -lhrt; }; alias cd=cdls) so I'm very used to only looking at the bottom of a long list

Can we get gtk3 v3.24.35 in Debian 12?

2023-03-06 Thread André Roldán
This version finally fixes this bug https://gitlab.gnome.org/GNOME/gtk/-/issues/5386 and gtk3 apps (like Gnome Terminal and Firefox) no longer take forever to load.

Re: alias in bash script issue

2023-03-06 Thread Yassine Chaouche
Le 3/4/23 à 09:22, Ken Young a écrit : Hello, Hi Ken! 3) the content of bash script $ cat get.sh #!/bin/bash source ~/.bash_profile k get node 4) alias can't work $ ./get.sh ./get.sh: line 5: k: command not found Two options : 1. either use #!/bin/bash -i as your shebang. The