Re: Debian 12: User calls synaptic: Unable to authenticate root

2024-10-06 Thread Greg Wooledge
On Sun, Oct 06, 2024 at 15:50:59 +0200, Roger Price wrote: > On Sun, 6 Oct 2024, Greg Wooledge wrote: > > Run the "id" command with no arguments to see your current group > > memberships. You'll see that "sudo" is not one of them. > > I found that

Re: Debian 12: User calls synaptic: Unable to authenticate root

2024-10-06 Thread Greg Wooledge
On Sun, Oct 06, 2024 at 13:34:01 +0200, Roger Price wrote: > I also tried to use sudo to call synaptic and failed: > >rprice@maria ~ sudo /usr/sbin/synaptic >[sudo] password for rprice: >rprice is not in the sudoers file. > > I see in /etc/sudoers > ># Allow members of group sudo

Re: Firefox complaint

2024-10-04 Thread Greg Wooledge
On Fri, Oct 04, 2024 at 15:24:11 +0200, Roger Price wrote: > On Fri, 4 Oct 2024, Joe wrote: > > > > > https://www.bobevans.com/ > > The same refusal, current Opera and FF 115.15.0esr 64bit. My DNS server > > uses root hints, so not DNS. It's using a security company for > > filtering, I'd guess to

Re: Synaptic Problem

2024-10-03 Thread Greg Wooledge
On Thu, Oct 03, 2024 at 10:53:30 -0400, Dan Purgert wrote: > On Oct 03, 2024, Stephen P. Molnar wrote: > > When I ran linux-brprinter-installer-2.2.4-1 it downloaded: > > > > > [...] $ sudo install brscan4-0.4.11-1.amd64.deb > > > [...] > > Where on earth did you get that command from? > > Last

Re: Cleanup in a bash script

2024-10-02 Thread Greg Wooledge
On Wed, Oct 02, 2024 at 13:59:04 +0200, to...@tuxteam.de wrote: > On Wed, Oct 02, 2024 at 02:43:11PM +0300, Anssi Saari wrote: > > Running ./script |& tee -i log works as expected. The script gets the > > INT signal and cleans up. > > Understood. > > > To me, "signal passing up the pipe" is an ap

Re: Cleanup in a bash script

2024-09-30 Thread Greg Wooledge
On Mon, Sep 30, 2024 at 14:08:19 +0300, Anssi Saari wrote: > Tim Woodall writes: > > > However on trying to debug something else, I wanted to run it like this: > > > > ./script |& tee log > > > > and now it doesn't clean up if I it. > > Just a point here about tee since I didn't see anyone else

Re: Cleanup in a bash script

2024-09-28 Thread Greg Wooledge
On Sat, Sep 28, 2024 at 15:17:47 +0100, Alain D D Williams wrote: > On Sat, Sep 28, 2024 at 10:13:59AM -0400, Greg Wooledge wrote: > > On Sat, Sep 28, 2024 at 14:53:10 +0100, Tim Woodall wrote: > > > Is there a way in bash to guarantee that a trap gets called for cleanup

Re: Cleanup in a bash script

2024-09-28 Thread Greg Wooledge
On Sat, Sep 28, 2024 at 14:53:10 +0100, Tim Woodall wrote: > Is there a way in bash to guarantee that a trap gets called for cleanup > in a script? #!/bin/bash trap cleanup EXIT cleanup() { ... } This works in bash -- i.e., it calls the cleanup function regardless of whether the shell exits b

Re: NTP fails to sync local clock

2024-09-24 Thread Greg Wooledge
drift. So > clients should be using chrony, which can force time into sync while > booting. It works for everyone else. hobbit:~$ ps -ef | grep ntpsec ntpsec 855 1 0 Aug31 ?00:01:50 /usr/sbin/ntpd -p /run/ntpd.pid -c /etc/ntpsec/ntp.conf -g -N -u ntpsec:ntpsec greg 575861

Re: iSCSI question

2024-09-17 Thread Greg
On 9/17/24 00:12, Andy Smith wrote: Hi, On Mon, Sep 16, 2024 at 06:41:28PM +0200, Greg wrote: 1. If I export /dev/md0 via iSCSI would I benefit from memory buffers? I've very little experience with iSCSI and don't know the answer to this… 2. Is it possible to export a virtual de

Re: iSCSI question

2024-09-17 Thread Greg
On 9/16/24 21:21, Arno Lehmann wrote: Hi Greg, Am 16.09.2024 um 18:41 schrieb Greg: Hi there, I would like ot use Debian box as iSCSI server (target if I'm not wrong). So I have two questions: 1. If I export /dev/md0 via iSCSI would I benefit from memory buffers? That's an i

Re: Lost internet access on Trixie this morning.

2024-09-16 Thread Greg Wooledge
On Mon, Sep 16, 2024 at 15:47:10 -0400, Dan Ritter wrote: > Tom Furie wrote: > > Actually, it doesn't look good - you don't have any ip addresses on eno1, > > the interface is down. You're going to have to find out why that is. > > Since it's recognized, it was probably not configured. > > Easie

iSCSI question

2024-09-16 Thread Greg
f the storage space. Thanks in advance for any help Greg

Re: unwanted crontab message

2024-09-13 Thread Greg Wooledge
On Fri, Sep 13, 2024 at 22:46:09 +, Andy Smith wrote: > I just ran crontab -e as a fresh user and it actually invoked > /usr/bin/sensible-editor and asked me which editor I wanted to use > (now and in future). So perhaps the man page for crontab is out of > date. Agreed. hobbit:~$ strings /us

Re: unwanted crontab message

2024-09-13 Thread Greg Wooledge
On Sat, Sep 14, 2024 at 05:44:42 +0800, Marcus Park wrote: > Hi list, > > When I run 'crontab -e' the screen shows some errors like, > > $ crontab -e > Error detected while processing /usr/share/vim/vim82/filetype.vim: > line 10: > E319: Sorry, the command is not available in this version: let

Re: scp in crontab problem

2024-09-13 Thread Greg Wooledge
On Fri, Sep 13, 2024 at 20:24:51 +0800, Marcus Park wrote: > I have put the private key into my debian VPS (in ~/.ssh/ dir). Does this private key have a passphrase? > When I scp a file from this VPS to another one by hand without password, it > works. > > But when I put this scp into crontab, i

Re: Circumventing keyboard problem on Lenovo R64

2024-09-12 Thread Greg Wooledge
On Thu, Sep 12, 2024 at 14:50:23 +0100, Joe wrote: > On Thu, 12 Sep 2024 08:35:25 -0500 > Richard Owlett wrote: > > Relevant man page to have 'root' edit a user's login name? > > > Looks like usermod, according to the first page Google shows for: > debian change user name I prefer vipw(8). Bu

Re: startx returns "Xf86EnableIO: failed to enable I/O ports 0000-03ff"

2024-09-11 Thread Greg Wooledge
On Wed, Sep 11, 2024 at 17:16:37 +0200, Pierre Willaime wrote: > systemctl status dbus.service shows dbus is not active ("failed") and I have > this message > > Failed to start message bus: Circular inclusion of file > '/etc/dbus-1/system.conf' Curious. I have nothing that references that fil

Re: BASH reference for those who are "learning by doing"?

2024-09-08 Thread Greg Wooledge
On Sun, Sep 08, 2024 at 06:48:30 +0200, Sirius wrote: > Bash has some nifty uses when it comes to variables. > > If you just want to store a file in a variable, > VAR="$( will do it. If you want to do an array instead, use the 'while read line; > do' construct. As others have pointed out, this is

Re: BASH reference for those who are "learning by doing"?

2024-09-07 Thread Greg Wooledge
On Sat, Sep 07, 2024 at 22:00:27 +, Quaeryth wrote: > A query like "site:stackoverflow.com bash how to read file into variable" via > Google or DuckDuckGo (and maybe other search engines) usually points me in > the right direction. Good luck with your experiments! What kind of file? What kind

Re: tab completion being overenthusiastic

2024-09-07 Thread Greg Wooledge
On Sat, Sep 07, 2024 at 09:58:32 -0400, e...@gmx.us wrote: > Got it. It was in ~/.bash-vars which was sourced from ~/.bash_profile . Is > that a standard thing, or just some "brilliant" idea I had once upon a time? It's not a standard file. By the way, there's a trick you can use to find out wh

Re: tab completion being overenthusiastic

2024-09-07 Thread Greg Wooledge
On Sat, Sep 07, 2024 at 08:56:08 -0400, Eben King wrote: > Hi. I have bash 5.2.15(1). When I cd into an empty directory, and type "cd > ", the shell offers 178 possibilities. If I restrict it to an > initial letter and hit once, I think the spurious offerings are from > $HOME. How can I make i

Re: OT: Question to shell script

2024-09-06 Thread Greg Wooledge
On Fri, Sep 06, 2024 at 11:10:16 +, Andy Smith wrote: > Is there a reason not to just make these scripts cd to their own > directory so the caller doesn't have to care? > > cd "$(dirname "$0")" https://mywiki.wooledge.org/BashFAQ/028

Re: OT: Question to shell script

2024-09-06 Thread Greg Wooledge
On Fri, Sep 06, 2024 at 12:25:11 +0200, Hans wrote: > I have several directories, and in each directory there is a shell script, > which MUST be started within and from its path. I'm not clear on what "within and from its path" means here, but let's suppose you mean "I have to cd there first, an

Re: Usage: "debian ... amd64-netinst.iso"

2024-09-04 Thread Greg Wooledge
On Wed, Sep 04, 2024 at 12:57:52 +, David wrote: > On Wed, 4 Sept 2024 at 11:03, Max Nikulin wrote: > > On 04/09/2024 15:17, Thomas Schmitt wrote: > > > In /tmp/check_debian_iso line 153: > > sum_from_file=`dd if=$file bs=2048 count=$blocks | $checksummer | head > > -1 | awk '{print $1}'` > >

Re: /var/backups, how to restore ?

2024-09-03 Thread Greg Wooledge
On Tue, Sep 03, 2024 at 14:08:37 +0200, Erwan David wrote: > I backup them on other disks, but if my PC crashed, how an I use this > to install a new PC, with same packages ? If all you want is the list of packages, your best bet would be to ignore *all* of those files, and create a new backup of:

Re: Usage: "debian ... amd64-netinst.iso"

2024-09-01 Thread Greg Wooledge
On Sun, Sep 01, 2024 at 01:19:45 -0700, David Christensen wrote: > On 8/31/24 23:16, Timothy M Butterworth wrote: > > On Sat, Aug 31, 2024 at 11:15 PM David Christensen wrote: > > > On 8/30/24 20:48, John Conover wrote: > > > > What does a "debian ... amd64-netinst.iso" do > > > > with an .iso? >

Re: emacs service and session start

2024-08-30 Thread Greg Wooledge
On Fri, Aug 30, 2024 at 13:45:43 +0200, Erwan David wrote: > The after/wants does not work (starnge since ssh-agent.service seems > to see the SSH_AUTH_SOCK variable. > > But /etc/X11/Xsession.d/90x11-common_ssh-agent is a configuration file > and we can add SSHARGS. I added a > SSHARGS="-a $XDG_R

Re: Replying to a conversation (Thread)

2024-08-24 Thread Greg Wooledge
On Sat, Aug 24, 2024 at 14:36:09 -0700, Joe B wrote: > IF i see a thread i want to jump into to help out how can i be part of > the conversation? as of right now i'm just putting the debian-user > list email and the RE with the subject and replying that way. > > I noticed on the list there is a me

Re: update-alternatives: install with permanent arguments

2024-08-22 Thread Greg Wooledge
On Thu, Aug 22, 2024 at 14:33:22 +0300, Dmitrii Odintcov wrote: > Hi Greg, > > > This has occurred to me, but seemed like a bit of a hack and less > convenient to transfer to other machines... > > > do it manually, not with update-alternatives > Why so? Could I

Re: update-alternatives: install with permanent arguments

2024-08-22 Thread Greg Wooledge
On Thu, Aug 22, 2024 at 13:09:06 +0300, Dmitrii Odintcov wrote: > Let's say I want to install VS Code / Codium as an alternative for > `/usr/bin/editor`, but I want it to always run with `--wait > --reuse-window` so that other software can rely on the editor > returning after the file is saved (lik

Re: What tool(s) reports OS buss width, which processor present?

2024-08-21 Thread Greg Wooledge
On Wed, Aug 21, 2024 at 13:39:22 +0200, to...@tuxteam.de wrote: > On Wed, Aug 21, 2024 at 06:34:30AM -0500, Richard Owlett wrote: > > I know I've asked this before, but couldn't thread. > > /etc/debian_version reports release active, but I need to know 32 or 64 bit. > > TIA > > uname -a > > This

Re: Metapackaging

2024-08-21 Thread Greg Wooledge
On Wed, Aug 21, 2024 at 11:57:06 +0100, Jonathan Dowland wrote: > On Tue Aug 20, 2024 at 1:55 PM BST, Greg Wooledge wrote: > > You're saying that you use equivs to create packages that have the SAME > > NAMES as Debian packages?? > > That's entirely the point of i

Re: wait until swapoff is *actually* finished (it returns too early)?

2024-08-21 Thread Greg Wooledge
On Wed, Aug 21, 2024 at 08:39:37 +0200, Erwan David wrote: > On Wed, Aug 21, 2024 at 02:18:44AM CEST, Greg Wooledge > said: > > On Tue, Aug 20, 2024 at 20:04:11 -0400, Roberto C. Sánchez wrote: > > > sync && sync && sync && swapoff > > > >

Re: wait until swapoff is *actually* finished (it returns too early)?

2024-08-20 Thread Greg Wooledge
On Tue, Aug 20, 2024 at 20:04:11 -0400, Roberto C. Sánchez wrote: > sync && sync && sync && swapoff > > I couldn't tell why I have sync 3 times, but I know that it's how I've > called swapoff since as far back as I can remember. Cargo cult. It was never useful to the best of my knowledge.

Re: configuring tigervnc-standalone-server to listen on LAN

2024-08-20 Thread Greg Wooledge
On Tue, Aug 20, 2024 at 15:28:40 -0400, Gary Dale wrote: > Look, I know the executable is vncserver. The question is how do I get the > service to specify parameters when starting the service? I can start is from > the command line as "vncserver -localhost no" but then I'd have to use cron > to set

Re: configuring tigervnc-standalone-server to listen on LAN

2024-08-20 Thread Greg Wooledge
On Tue, Aug 20, 2024 at 15:04:11 -0400, Gary Dale wrote: > On 2024-08-19 22:27, Max Nikulin wrote: > > On 20/08/2024 05:15, Gary Dale wrote: > > > tigervnc-server has a command line option to listen to the LAN but > > > the Debian systemd service configuration doesn't invoke the server > > > progra

Re: Metapackaging

2024-08-20 Thread Greg Wooledge
On Tue, Aug 20, 2024 at 12:26:39 +0100, Jonathan Dowland wrote: > On Sun Aug 18, 2024 at 5:32 PM BST, Greg Wooledge wrote: > > On Sun, Aug 18, 2024 at 17:08:00 +0100, Jonathan Dowland wrote: > > > I've long felt that they were overcomplicated in themselves: the > >

Re: upgrade to bookworm causes breakage

2024-08-19 Thread Greg Wooledge
On Mon, Aug 19, 2024 at 17:33:13 -0500, Bob Mroczka wrote: > I attempted to upgrade my system from debian 11 to 12 following the > instructions provided at > https://www.cyberciti.biz/faq/update-upgrade-debian-11-to-debian-12-bookworm. I'm not going to read that web site. I'll just assume it's co

Re: Metapackaging

2024-08-18 Thread Greg Wooledge
On Sun, Aug 18, 2024 at 17:08:00 +0100, Jonathan Dowland wrote: > I've long felt that they were overcomplicated in themselves: the > ideal UX should be not much more than "equivs package-name" => > ./package-name.deb generated, IMHO. I once had ambitions to add > that UX (either as a patch to equiv

Re: nvidia driver for GTX 970

2024-08-15 Thread Greg Wooledge
On Fri, Aug 16, 2024 at 00:48:20 +1000, George at Clug wrote: > On Thursday, 15-08-2024 at 19:05 Hans wrote: > > FYI I am running a backport kernel, it is 6.9.7+bpo-amd64. > > Is this what is called a "Frankendebian" ? No. Backports are reasonably safe. Installing one doesn't break all your dep

Re: stop using APT!

2024-08-14 Thread Greg
On 8/14/24 12:39, RixvNX wrote: Stop using apt, apt support for mysql is so poor! I wish to see the pre installed package manager no longer APT but yum in new versions of debian and kali! Looks like a troll, Don't waste time answering.

Re: Increasing "time" command precision

2024-08-08 Thread Greg Wooledge
On Thu, Aug 08, 2024 at 15:08:33 +0200, Franco Martelli wrote: > The Bash's shell keyword "time" it could be fine, but I don't know how to > redirect its output to a file (-o switch of /usr/bin/time). https://mywiki.wooledge.org/BashFAQ/032

Re: Increasing "time" command precision

2024-08-08 Thread Greg Wooledge
On Thu, Aug 08, 2024 at 08:31:10 +0200, Thomas Schmitt wrote: > Greg Wooledge wrote: > > * TIMEFORMAT=... time foo will invoke /usr/bin/time, but > >TIMEFORMAT=... eval time foo will use the builtin. (Yeah, oops, time is a "shell keyword", not a "bu

Re: Increasing "time" command precision

2024-08-07 Thread Greg Wooledge
On Wed, Aug 07, 2024 at 22:15:00 +0200, Thomas Schmitt wrote: > it turns out that TIMEFORMAT belongs to the bash builtin "time" > and that digit precision numbers only up to 3 are obeyed. > > $ export TIMEFORMAT="r=%7R > u=%4U > s=%1S" > $ time echo > > r=0.000 > u=0.000 > s=0.0 Ju

Re: Authenticator apps

2024-08-04 Thread Greg Wooledge
On Sun, Aug 04, 2024 at 19:57:22 +0200, to...@tuxteam.de wrote: > I don't know what an "authenticator app" is. I don't either, but I have to use one at work. https://support.microsoft.com/en-us/account-billing/about-microsoft-authenticator-9783c865-0308-42fb-a519-8cf666fe0acc I have no idea what

Re: nsswitch what should come first

2024-08-02 Thread Greg Wooledge
On Fri, Aug 02, 2024 at 10:29:40 -0400, gene heskett wrote: > ISP's dns. I suppose eventually they'll issue > .den and I be forced to pick some other 3 letter name for my local domain. https://www.hostzealot.com/domains/den

Re: switch users and still use display

2024-08-02 Thread Greg Wooledge
On Fri, Aug 02, 2024 at 11:35:58 +0200, Florent Rougon wrote: > Which I am inclined to believe, although I'm reluctant to try 'su -p' > for fear of creating a mess in my normal user setup: > > ~ % su -p > Password: > zsh compinit: insecure directories and files, run compaudit for list. > I

Re: nsswitch what should come first

2024-08-01 Thread Greg Wooledge
On Thu, Aug 01, 2024 at 14:47:49 +, fxkl4...@protonmail.com wrote: > i have mysql on host1 > i created a user for mysql so i could have access from 192.168.1.% > that works fine > on host2 i use "mysql -u user1 -p --host=host1" and it works > if on host1 i use "mysql -u user1 -p --host=host1" i

Re: systemd may silently break your system!

2024-08-01 Thread Greg Wooledge
On Thu, Aug 01, 2024 at 16:03:32 +0200, Vincent Lefevre wrote: > so the silent breakage was known and done on purpose. ... OK, you're just living in a personal fantasy. There's nothing more to be gained by trying to interact with you on this topic, so I'm going to stop now.

Re: nsswitch what should come first

2024-08-01 Thread Greg Wooledge
On Thu, Aug 01, 2024 at 14:30:05 +, fxkl4...@protonmail.com wrote: > my nsswitch.conf is "hosts: files mdns4_minimal [NOTFOUND=return] dns" > i don't remenber changing it in the past few decades > i recently had a situation that made me question the ordering > my dns server is my primary router

Re: systemd may silently break your system!

2024-08-01 Thread Greg Wooledge
On Thu, Aug 01, 2024 at 14:47:16 +0200, Vincent Lefevre wrote: > No, even for unstable, maintainers should ensure that packages are > upgraded in the right order. Once again, here is my understanding of the current situation: 1) A new procps package was uploaded, which no longer has /etc/sysctl.

Re: Debian Sid. General questions.

2024-07-30 Thread Greg Wooledge
On Tue, Jul 30, 2024 at 19:54:49 +0500, 타토카 wrote: > "Debian *does* use git snapshots and other pre-releases for some packages, > but not for Firefox ESR." - What do you mean? For example, the package xserver-xorg-video-intel in bookworm has version 2:2.99.917+git20210115-1

Re: Debian Sid. General questions.

2024-07-30 Thread Greg Wooledge
On Tue, Jul 30, 2024 at 14:53:39 +0100, Joe wrote: > As far as I > know, Debian doesn't use beta versions of any software, even in > unstable, so Firefox itself in unstable is likely to be the same > Firefox downloaded by thousands of people using other distributions, > and is no more likely to fai

Re: Debian Sid. General questions.

2024-07-29 Thread Greg Wooledge
On Mon, Jul 29, 2024 at 20:26:00 +0500, 타토카 wrote: > If I want to use rescue mode for debian via netinst, will my pc have to > have an internet connection? Yea, it is a stupid question, but anyway. No, you do not need an internet connection to boot the netinst image. Not even to install from it (t

Re: Tool to store on IMAP server

2024-07-29 Thread Greg Wooledge
On Mon, Jul 29, 2024 at 16:23:14 +0200, Nicolas George wrote: > I want: transfer ONE message to an IMAP account. > Then use the mutt solution. > And mutt's behavior is too unpredictable to be used in a non-interactive > way. You did not say you wanted to do this NON-INTERACTIVELY. Why do you wa

Re: Tool to store on IMAP server

2024-07-29 Thread Greg Wooledge
On Mon, Jul 29, 2024 at 16:09:16 +0200, Nicolas George wrote: > mick.crane (12024-07-29): > > > I am looking for a tool that reads a mail from its input and stores it > > > into an IMAP mailbox: > > With a new Dovecot install > > Thanks, but this is not at all what I am asking. Dovecot is the serv

Re: Upgrading systemd may silently break your Unstable/Sid system!

2024-07-28 Thread Greg Wooledge
On Mon, Jul 29, 2024 at 01:13:10 +0200, Vincent Lefevre wrote: > On 2024-07-28 14:13:09 +, Michael Kjörling wrote: > > And posting on debian-user with a bombastic Subject line which implies > > that this is a widespread issue when it really only seems to exist in > > Unstable is, quite frankly,

Re: Strange behavior of ifupdown package

2024-07-28 Thread Greg Wooledge
On Sun, Jul 28, 2024 at 19:08:58 +, MailGuard01 wrote: > Is it still reasonable to add my experience to existing bug report, > or should I submit a new one instead? Adding to an existing bug report is a good thing, especially if you can bring new insights, new examples, etc.

Re: systemd may silently break your system!

2024-07-28 Thread Greg Wooledge
On Sun, Jul 28, 2024 at 16:43:01 +0200, Vincent Lefevre wrote: > More or less. In the systemd case, for each file, either one chooses > it, i.e. one has all the current defaults, or one chooses to provide > a replacement under /etc, i.e. one entirely replaces the defaults by > one's own settings. A

Re: bash history

2024-07-27 Thread Greg Wooledge
On Sun, Jul 28, 2024 at 02:01:04 +0100, mick.crane wrote: > On 2024-07-27 23:58, Greg Wooledge wrote: > > You need to specify *exactly* what you're doing. > Sometimes I forget where I was after closing a virtual terminal and it > would be handy to see the history > in

Re: systemd may silently break your system!

2024-07-27 Thread Greg Wooledge
On Sun, Jul 28, 2024 at 01:04:14 +0200, Vincent Lefevre wrote: > On 2024-07-27 10:23:01 +0200, Michel Verdier wrote: > > /etc/sysctl.d/README.sysctl recommends to use a separate file such as > > /etc/sysctl.d/local.conf > > No, it does *not* recommend anything: > > ---

Re: bash history

2024-07-27 Thread Greg Wooledge
On Sat, Jul 27, 2024 at 23:44:08 +0100, mick.crane wrote: > On 2024-07-27 23:08, Greg Wooledge wrote: > > On Sat, Jul 27, 2024 at 22:50:17 +0100, mick.crane wrote: > > > In debian bookworm, xfce desktop, different virtual terminals have a > > > different history if sa

Re: SeLinux

2024-07-27 Thread Greg Wooledge
On Sat, Jul 27, 2024 at 22:40:10 +, Andy Smith wrote: > Hi, > > On Sun, Jul 28, 2024 at 06:30:50AM +0800, cor...@free.fr wrote: > > Is selinux necessary in a production environment? > > "Will my door still function as a door if it has no lock on it?" More like "Will my door still function as

Re: bash history

2024-07-27 Thread Greg Wooledge
On Sat, Jul 27, 2024 at 22:50:17 +0100, mick.crane wrote: > In debian bookworm, xfce desktop, different virtual terminals have a > different history if same user presses "up key" in different virtual > terminals ? As your subject says, this is "bash history". And yes, each instance of bash has it

Re: switch users and still use display

2024-07-27 Thread Greg Wooledge
On Sat, Jul 27, 2024 at 16:43:50 +, fxkl4...@protonmail.com wrote: > simple is better > thanks > > does ssh destinguish between "ssh host1" and "ssh localhost" Depends on how everything is configured. It can. If you prefer 'ssh -X user2@host1' and if that works for you, then you can use tha

Re: switch users and still use display

2024-07-27 Thread Greg Wooledge
On Sat, Jul 27, 2024 at 15:44:51 +, fxkl4...@protonmail.com wrote: > i log in to x session as user1 on host1 > from within a xterm i want to change to user2 on host1 and run x programs > the current way i do this is ssh user2@host1 I'm assuming you mean "ssh -X", or that you've configured the

Re: systemd may silently break your system!

2024-07-27 Thread Greg Wooledge
> On 2024-07-26, Vincent Lefevre wrote: > > > The /etc/sysctl.d/99-sysctl.conf symlink has been removed > > (currently in unstable) *without any announcement*, so that > > the /etc/sysctl.conf file (which is still documented, BTW) > > is no longer read. > > > > So, be careful if you have important

Re: Ente Auth

2024-07-26 Thread Greg Wooledge
On Fri, Jul 26, 2024 at 10:56:11 -0400, e...@gmx.us wrote: > On 7/26/24 09:31, Mick Ab wrote: > > > > I found ente_auth@ in both /bin and /usr/bin > > > > I thought I needed to run this in order to launch ente-auth, so typed > > ente_auth@ but my system said the command could not be found. > > >

Re: combine two commands via pipe

2024-07-25 Thread Greg Wooledge
On Fri, Jul 26, 2024 at 09:44:52 +0700, Max Nikulin wrote: > https://mywiki.wooledge.org/BashPitfalls#for_f_in_.24.28ls_.2A.mp3.29 > for f in $(ls *.mp3) > No 1 in Bash Pitfalls I added nicer anchors, which you can use if you prefer: https://mywiki.wooledge.org/BashPitfalls#pf1 The auto-gene

Re: combine two commands via pipe

2024-07-25 Thread Greg Wooledge
On Fri, Jul 26, 2024 at 10:00:48 +0800, cor...@free.fr wrote: > I found this works though it's ugly. > > $ sudo ls -ltr "/tmp/$(ls /tmp |grep apache)" > total 4 Just use a glob. sudo ls -ltr /tmp/*apache*

Re: combine two commands via pipe

2024-07-25 Thread Greg Wooledge
On Fri, Jul 26, 2024 at 07:59:42 +0800, cor...@free.fr wrote: > > > > > I won't go any fancier than this until I know it's actually needed. > > My actual requirement is that I want to 'ls -ltr' into a subdir in /tmp. > that subdir is apache's tmp dir. but the name of the subdir is too long > (ha

Re: combine two commands via pipe

2024-07-25 Thread Greg Wooledge
On Fri, Jul 26, 2024 at 07:29:10 +0800, cor...@free.fr wrote: > On 2024-07-26 07:14, Alain D D Williams wrote: > > Neither do you say what you are trying to achieve. Looking for files > > owned by > > apache in a directory ? > > yes. Does "owned by apache" mean literally the user "apache"? Or is

Re: Trouble when editing a Debian wiki page

2024-07-25 Thread Greg Wooledge
On Thu, Jul 25, 2024 at 20:02:11 +0700, Max Nikulin wrote: > On 25/07/2024 19:11, Greg Wooledge wrote: > > On Thu, Jul 25, 2024 at 18:54:38 +0700, Max Nikulin wrote: > > > https://wiki.debian.org/EnvironmentVariables?action=recall&rev=32 > [...] > > I can'

Re: Trouble when editing a Debian wiki page

2024-07-25 Thread Greg Wooledge
On Thu, Jul 25, 2024 at 18:54:38 +0700, Max Nikulin wrote: > A space before " <>" combined with 2 empty lines after > cause extra "" closing before following text. So > most of article text has no left margin. > > https://wiki.debian.org/WikiSandBox?action=recall&rev=144 > https://wiki.debian.org

Re: Trouble when editing a Debian wiki page

2024-07-24 Thread Greg Wooledge
On Thu, Jul 25, 2024 at 09:50:43 +0700, Max Nikulin wrote: > https://wiki.debian.org/EnvironmentVariables?action=raw&rev=33 > > has one empty line after "<>" while rev=22 has 2 empty > lines and it may be more significant than a space before "<<". I assume you mean "while rev=32". I removed the

Re: Trouble when editing a Debian wiki page

2024-07-24 Thread Greg Wooledge
On Wed, Jul 24, 2024 at 20:08:08 +0200, Franco Martelli wrote: > On 24/07/24 at 15:34, Greg Wooledge wrote: > > > Could anybody tell me what I did wrong? > > You had a leading space before the << tag. That caused the TOC to be > > indented. I removed that. > >

Re: Maybe off topic: Where is bash gesture ${X=Y} described ?

2024-07-24 Thread Greg Wooledge
On Wed, Jul 24, 2024 at 15:33:11 +0200, Thomas Schmitt wrote: > GRUB's test scripts often show this gesture > > : "${TMPDIR=/tmp}" > > Well known and described is > ${X:=Y} > which assigns a default value to variable X if it is empty (man bash > says: "If [...] unset or null"). > Also known a

Re: Trouble when editing a Debian wiki page

2024-07-24 Thread Greg Wooledge
On Wed, Jul 24, 2024 at 15:19:29 +0200, Franco Martelli wrote: > https://wiki.debian.org/EnvironmentVariables > > The trouble is that the page has lost indentation, the text begins on the > left side of the page. The only part that was indented was the table of contents itself. I fixed that. >

Re: How to update environment variable output

2024-07-24 Thread Greg Wooledge
On Wed, Jul 24, 2024 at 21:08:29 +1000, Keith Bainbridge wrote: > So when I opened my xterm this morning, I saw: >  keith@lenv0 > >  Tue 23Jul2024@19:19:30 205.2024 AEST >  :~   $> > > You have new mail in /var/spool/mail/keith > > > Pressed enter, and the day# updated: > >  keith@lenv0 > >  

Re: How to update environment variable output

2024-07-23 Thread Greg Wooledge
On Tue, Jul 23, 2024 at 13:38:48 -0500, David Wright wrote: > On Tue 23 Jul 2024 at 09:31:36 (-0400), Greg Wooledge wrote: > > On Tue, Jul 23, 2024 at 23:22:52 +1000, Keith Bainbridge wrote: > > > The day# in my command prompt increments when I start in the morning. > >

Re: How to update environment variable output

2024-07-23 Thread Greg Wooledge
On Tue, Jul 23, 2024 at 23:22:52 +1000, Keith Bainbridge wrote: > The day# in my command prompt increments when I start in the morning. Maybe I > need to press enter. That makes it sound like you're setting the YEAR et al. variables in the PROMPT_COMMAND variable. If that's the case, it's *less*

Re: Logs like .xsession-errors, was: fvwm on Debian 12: Modules do not start ...

2024-07-23 Thread Greg Wooledge
On Tue, Jul 23, 2024 at 14:20:43 +0200, Thomas Schmitt wrote: > The only helpful match is > > > https://wiki.debian.org/JigdoOnLive?action=fullsearch&context=180&value=.xsession-errors&fullsearch=Text > > "What Does The Log Say? >... >If you're doing something with your window manage

Re: [Solved] vim on Debian 12: How to disable the mouse GUI mode ?

2024-07-23 Thread Greg Wooledge
On Tue, Jul 23, 2024 at 14:07:04 +0200, Thomas Schmitt wrote: > Is there a Debian apt-fu which lets me replace "vi" by "rvim" and "view" > by "rview" ? (So that this PEBKAC cannot fall back to old habits ?) update-alternatives, or just set up some personal shell aliases.

Re: How to update environment variable output

2024-07-23 Thread Greg Wooledge
On Tue, Jul 23, 2024 at 18:02:53 +1000, Keith Bainbridge wrote: > From the tab I had used earlier, ran source .bashrc > > then > :/tmp/205.2024 $>mkcd /tmp/day$DOYR.$YEAR So you're setting those variables one time inside your .bashrc file? This is quite bad. What happens when you have a

Re: Debian Sid. General questions.

2024-07-23 Thread Greg Wooledge
> > > This particular one may originate from > > > <http://wooledge.org/~greg/sidfaq.html#14> I had forgotten that page even existed. It hasn't been touched in 16 years. -rw-r--r-- 1 greg greg 11031 Dec 12 2007 sidfaq.html At this point it should be considered

Re: How to update environment variable output

2024-07-23 Thread Greg Wooledge
On Tue, Jul 23, 2024 at 17:02:08 +1000, Keith Bainbridge wrote: > mkcd () > { > mkdir -p $1 > cd $1 > } You're missing quotes. Two sets. You probably also want && between the two commands, to check for the success of the mkdir before attempting a cd. > in the form :~ $> mkcd > /mn

Re: fvwm on Debian 12: Modules do not start. How to debug ?

2024-07-22 Thread Greg Wooledge
On Mon, Jul 22, 2024 at 23:09:59 +0200, Thomas Schmitt wrote: > Four of five fingers point to me and my ~/.fvwm2rc": > > ModulePath /usr/lib/fvwm/2.6.8 > > I see traces that i adjusted this multiple times over the years: > /usr/lib/X11/fvwm2 , /usr/lib/fvwm/2.6.5 , /usr/lib/fvwm/2.6.8. > > So

Re: Debian Sid. General questions.

2024-07-22 Thread Greg Wooledge
On Mon, Jul 22, 2024 at 21:38:23 +0100, Joe wrote: > On Tue, 23 Jul 2024 01:27:49 +0500 > 타토카 wrote: > > > I know what PAM is. I understand what the problem is described on the > > website. But I think if I get Debian Sid Update and after that PAM > > will crash, I just want to know what the solu

Re: fvwm on Debian 12: Modules do not start. How to debug ?

2024-07-22 Thread Greg Wooledge
On Mon, Jul 22, 2024 at 21:37:05 +0200, Thomas Schmitt wrote: > So how could i debug the start of fvwm Modules ? > Is there any log file or configuration option ? Error messages, if there are any, should be in ~/.xsession-errors for most users. I'd start there.

Re: Debian Sid. General questions.

2024-07-22 Thread Greg Wooledge
On Tue, Jul 23, 2024 at 00:25:27 +0500, 타토카 wrote: > I have read on the official Debian website about sid (in russian version): > "Maybe. There was one real case where PAM broke. PAM checks all users, so > without PAM no one can login, even as a root. If you work in a precarious > environment, you

Re: vim on Debian 12: How to disable the mouse GUI mode ?

2024-07-22 Thread Greg Wooledge
I found a fix: https://vi.stackexchange.com/questions/18001/why-cant-i-paste-commands-into-vi Apparently when in an "xterm environment" (whatever that means; apparently it includes rxvt-unicode), turning on bracketed paste mode works: :set t_BE= The = is required.

Re: vim on Debian 12: How to disable the mouse GUI mode ?

2024-07-22 Thread Greg Wooledge
On Mon, Jul 22, 2024 at 11:23:19 -0400, Justin Piszcz wrote: > On Mon, Jul 22, 2024 at 11:20 AM Greg Wooledge wrote: > > > > On Mon, Jul 22, 2024 at 17:08:15 +0200, Thomas Schmitt wrote: > > > Since an upgrade from Debian 11 to 12 the vim command > > > > &g

Re: vim on Debian 12: How to disable the mouse GUI mode ?

2024-07-22 Thread Greg Wooledge
On Mon, Jul 22, 2024 at 17:08:15 +0200, Thomas Schmitt wrote: > Since an upgrade from Debian 11 to 12 the vim command > > :set mouse= > > does not disable the "GUI" interpretation of pasting text or numbers > when vim is in normal mode [...] I'm not sure how you've got it configured, but just

Re: /var/run disappear after reboot

2024-07-22 Thread Greg Wooledge
On Mon, Jul 22, 2024 at 20:07:38 +0800, cor...@free.fr wrote: > I found that after I rebooted the system, the dir /var/run/*** disappeared. > I put my app's web sessions under /var/run. so they got lost. > Is there an effective tool to manage /var/run dirs? hobbit:~$ ls -ld /var/run lrwxrwxrwx 1 r

Re: update system periodically

2024-07-21 Thread Greg Wooledge
On Mon, Jul 22, 2024 at 07:34:29 +0800, Bret Busby wrote: > One thing to remember, regarding automated upgrades, is that, if an upgrade > involves a kernel upgrade, then you can have a need for immediate rebooting, > which may be problematic. It's also rare, but NOT unheard of, for a stable releas

Re: sendmail without DNS

2024-07-21 Thread Greg Wooledge
On Sun, Jul 21, 2024 at 08:24:06 +0100, Adam Weremczuk wrote: > Let me rephrase my question, which should be easier to answer. > > What exactly shall I substitute: > > mailer = "/usr/sbin/sendmail -t" > > with in /usr/share/logwatch/default.conf/logwatch.conf > > to make logwatch use postfix (a

Re: Running 32-bit static exeutable on 64-bit Debian

2024-07-20 Thread Greg Wooledge
On Sat, Jul 20, 2024 at 01:15:22 -0700, Van Snyder wrote: > > Van Snyder wrote: > > > And there's still the mystery why a statically-linked executable > > > wants to > > > load a shared object library. https://manpages.debian.org/bookworm/manpages-dev/dlopen.3.en.html > Am I losing my mind? > >

Re: the usage of env

2024-07-19 Thread Greg Wooledge
On Sat, Jul 20, 2024 at 06:30:42 +0800, p...@gmx.it wrote: > On 2024-07-20 06:25, Greg Wooledge wrote: > > > > > > I can not clearly understand for this statement. what's "future shell > > > commands"? can you show an example? > > > > hobb

Re: the usage of env

2024-07-19 Thread Greg Wooledge
On Sat, Jul 20, 2024 at 06:17:46 +0800, p...@gmx.it wrote: > $ VAR=foo ./a.sh > i can see VAR=foo I don't know what "see" means here. hobbit:~$ cat a.sh #!/bin/sh echo "I am a.sh, and inside me, VAR=<$VAR>." hobbit:~$ unset -v VAR hobbit:~$ VAR=foo ./a.sh I am a.sh, and inside me, VAR=. hobbit:~$

  1   2   3   4   5   6   7   8   9   10   >