Gnome Fichiers: comment utiliser le signet Favoris

2022-02-01 Thread Olivier
Bonjour,

J'ai installé Bullseye sur mon PC principal.
Dans l'application Gnome Fichiers, il y a sur la partie gauche de
l'écran, une liste de signets dont les signets Récents, Favoris et
Dossier personnel.

Comment utilise-t-on ce signet Favoris ?

J'ai imaginé que l'on pouvait marquer certains fichiers ou dossiers
comme favoris mais je n'ai pas trouvé la procédure correspondante
(j'ai trouvé une procédure pour ajouter un signet).
J'ai aussi imaginé qu'il existait un dossier nommé Favoris comme il
existe un dossier Téléchargement mais ce n'est pas le cas sur ma
machine.

Slts



Re: One user system.

2022-02-01 Thread john doe

On 2/1/2022 8:47 PM, pe...@easthope.ca wrote:

 From: john doe 
 Date: Tue, 1 Feb 2022 19:29:02 +0100

If my understanding is correct, you will need to use 'sudo'.


Thanks.  Still a multi-user system.



If you do not want the regular user, you can simply lock/disable it.
This way you can use root to your liking (remotely or locally) and
forget about other user(s).

I must say, I concur with others in this thread on not removing a single
non-root user.

--
John Doe



Re: One user system.

2022-02-01 Thread Bijan Soleymani

On 2022-02-01 20:01, Nate Bargmann wrote:

I must be the odd one out as I interpreted the OP as having set a root
password but now wanting to remove it so as to have just the main user
set to do root's work and that root can no longer log in directly.  I
hope the OP can clarify!


I guess that would be:
sudo passwd -d

to delete the password

or:
sudo passwd -l

to lock the paassword
(this can be undone later with sudo passwd -u)

Bijan



Re: One user system.

2022-02-01 Thread Nate Bargmann
* On 2022 01 Feb 14:09 -0600, Bijan Soleymani wrote:
> On 2022-02-01 14:47, pe...@easthope.ca wrote:
> > Thanks.  Still a multi-user system.
> > 
> > Whereas puppy linux has one user, root.
> > 
> > To make debian one-user I think of
> ...
> > 
> > Then proceed as root rather than me.
> 
> Oh! Is your goal to only have root? I assumed you wanted to login as root,
> but didn't configure a password for root at setup.

I must be the odd one out as I interpreted the OP as having set a root
password but now wanting to remove it so as to have just the main user
set to do root's work and that root can no longer log in directly.  I
hope the OP can clarify!

- Nate

-- 
"The optimist proclaims that we live in the best of all
possible worlds.  The pessimist fears this is true."
Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819



signature.asc
Description: PGP signature


Re: Mounting NFS share from Synology NAS

2022-02-01 Thread Christian Britz



On 2022-02-01 17:28 UTC+0100, Henning Follmann wrote:
> On Tue, Feb 01, 2022 at 04:32:57PM +0100, Christian Britz wrote:
>> 2. Accessing the mounted share with my personal user: The access rights
>> for /Daten look right, the user on the NAS has the same name as the user
>> on my machine. But:
> 
> And how about the userId?
> The username does not mean anything. The access control is 
> based on Id.

Thank you, that was the right hint, the solution to get it work (with
NFS4 support) with IP based "security" was:

1. Recreate the user and group on the NAS web interface with the same
names as on my localhost.
2. Assign the right group via SSH to the user on the NAS.
3. chown -R the files on the NAS to the new user and group.
4. Change UID and GID on my localhost to match the UID and GID on the
NAS (I read somewhere that the Synology crap has problems if you change
UID and GID on the server).
5. Fix ownership of files on localhost
=> Works!

Drawback 1, compared to my previous SMB mount method: The NAS internal
sub-directories named "@eaDir" are visible when accessing the share via
NFS. Workaround: Deleting them. Should be relatively safe according to
the Web. In the worst case, they get recreated.

Drawback 2: Security is only relying on the client IP. This would
probably be not acceptable, if I were not the only user on my network.
Is my assumption right, that I would have to setup a Kerberos server to
achieve real security?

Big advantage, compared to my previous SMB mount method: the modified
timestamp is finally shown correctly. This didn't seem to work correctly
with SMB.

Thank you all.



Re: Security

2022-02-01 Thread Richard Hector

On 2/02/22 00:26, Vincent Lefevre wrote:

On 2022-01-31 01:36:06 +1300, Richard Hector wrote:

On 29/01/22 04:17, Vincent Lefevre wrote:
> Servers shouldn't have pkexec installed in the first place, anyway.

libvirt-daemon-system depends on policykit-1.

Should that not be on my (kvm) server either?


I don't need libvirt-daemon-system on my server. And I don't see
why it would be needed in general. If I understand correctly,
libvirt is used to manage VMs, but what is mostly exposed on the
Internet (e.g. as a web server) is the VM itself, which doesn't
need libvirt.


I guess it depends how you define a 'server'. I include the machine that 
hosts my VMs. And I certainly don't restrict it to what's exposed on the 
Internet.


I admit I haven't explored in depth exactly which bits of libvirt are 
required on the VM host; I rely to some extent on the recommendations in 
the packages.


Cheers,
Richard



Re: One user system.

2022-02-01 Thread Charles Curley
On Tue, 1 Feb 2022 15:08:44 -0500
Bijan Soleymani  wrote:

> I can't think of a case where you'd want to remove all non root users 
> though...

The only use case I can think of is if you want all the security of
Windows 95.

Don't do this. There are excellent reasons to separate system
administration from day-to-day stuff.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: Mounting NFS share from Synology NAS

2022-02-01 Thread Christian Britz



On 2022-02-01 17:36 UTC+0100, Bob Weber wrote:
> On 2/1/22 10:32, Christian Britz wrote:
>> This is my entry in /etc/fstab:
>> diskstation:/volume1/Medien /Daten nfs
>> nfsvers=4,rw,x-systemd.automount,noauto 0 0
>>
> Have you tried the user option in fstab? 
> 
> user - Permit any user to mount the filesystem.
> 
> nouser - Only permit root to mount the filesystem. This is also a
> default setting.

This works, one step further! :-)



Re: One user system.

2022-02-01 Thread Brian
On Tue 01 Feb 2022 at 15:08:44 -0500, Bijan Soleymani wrote:

> On 2022-02-01 14:47, pe...@easthope.ca wrote:
> > Thanks.  Still a multi-user system.
> >
> > Whereas puppy linux has one user, root.
> >
> > To make debian one-user I think of
> ...
> >
> > Then proceed as root rather than me.
>
> Oh! Is your goal to only have root? I assumed you wanted to login as root,
> but didn't configure a password for root at setup.
>
> As far as I know there's no option in the standard install to not create a
> user account and only create a root account.

Depends on what you mean by "standard". From  user-setup-udeb_1.88_all.udeb.

  Template: passwd/make-user
  Type: boolean
  Default: true
  Description: Create a normal user account now?
   It's a bad idea to use the root account for normal day-to-day activities,
   such as the reading of electronic mail, because even a small mistake can
   result in disaster. You should create a normal user account to use for
   those day-to-day tasks.

The OP's requirements are very nurky. Whatever he wants can be done from
the installer.

-- 
Brian.



Re: Need to manually start pulseaudio on reboot

2022-02-01 Thread Jude DaShiell
First I'd remove pulseaudio from user space then remove pulseaudio from
root space but use --purge that time so no evidence of pulseaudio is
anywhere on your system.
In your user directory rm -fr ~/.config/pulseaudio
should take care of user space and
apt remove pulseaudio --purge should take care of root space.
Then apt install pulseaudio.
unless you journaled configuration changes you'll likely not remember what
those are and where they are so taking pulseaudio back to a known state
likely will be quicker.
I got jrnl installed using brew after brewforlinux got installed on my
system.  It's available in pip, but couldn't install with pip3.
With brew I ran jrnl --help and got the help screen but pip install jrnl
threw several trace errors when jrnl --help was run.
Jrnl with install instructions got covered a few days ago on itsfoss.com.


On Tue, 1 Feb 2022, nmanca wrote:

> On 25/01/2022 00:14, Jude DaShiell wrote:
> > Have you run pulseaudio --cleanup-shm yet?
>
> I tried, didn't worked. Should I check some config file I forgot I modified in
> the remote past maybe?
>
> thanks,
> Nicola
>
> >
> > On Mon, 24 Jan 2022, nmanca wrote:
> >
> >> Dear list,
> >>
> >> Since upgrading to bookworm I have to manually start pulseaudio at every
> >> login
> >> by executing:
> >>
> >> systemctl --user restart pulseaudio.service
> >>
> >> I use KDE plasma desktop.
> >> how can I diagnose/solve the problem?
> >>
> >> regards,
> >> Nicola
> >>
> >>
>
>



Re: Printing lots of pages skips a few

2022-02-01 Thread Klaus Singvogel
Pankaj Jangid wrote:
> 
> In my case though, I had verified that the output of find is okay for
> xargs. Then I added | xargs lp.
> 
> But could this be cause of missing page. The output of find is:
> 
> --8<---cut here---start->8---
[...]
> --8<---cut here---end--->8---
> 
> six of them were not printed.

Can you look at the webinterface of CUPS regarding the missing jobs?

http://localhost:631/

-> Printer -> select your default printer (if more) -> finish job (or similar)

Regards,
Klaus.
-- 
Klaus Singvogel
GnuPG-Key-ID: 1024R/5068792D  1994-06-27



bulleye et vieille carte graphique nvidia

2022-02-01 Thread Jose CHARTERS

Bonsoir,

Mon disque dur système vient de me lâcher. J'étais sous Debian Buster 
par flemme de faire l'upgrade.


Maintenant que j'ai changé de disque dur, j'ai installé la dernière 
stable Debian Bulleye.


Pas de soucis d'install.

Le soucis vient lorsque je me connecte à mon compte. Sous lightdm pas de 
soucis, l'affichage est correcte.


Par contre, lorsque il affiche mon bureau, c'est illisible et 
inutilisable. J'ai un écran avec des lignes horizontales, un peu à la 
mode Canal +. En faisant attention, j'ai l'impression que ce qui est 
affiché, est bien mon bureau, sauf que les lignes sont trop grandes trop 
petites, et que cela crée un décalage dans l'affichage des lignes.


Ma carte graphique est une vieille nvidia, Geforce 7200 GS.

Je regarde le Xorg.log. Les seules lignes avec EE, pour voir les erreurs :

    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    38.088] (EE) Failed to load module "nv" (module does not exist, 0)
[    38.504] (II) Initializing extension MIT-SCREEN-SAVER

Bon, le module nv n'existe pas. Il me semble de mémoire que ce module 
n'était plus d'actualité.


J'ai bien module nouveau, il apparait bien dans le Xorg.log, sans erreur.

J'ai essayé de mettre les drivers de chez Nvidia, l'affichage est 
lisible mais dans un mode style 800x600. J'ai utilisé l'utilitaire 
nvidia-detect, et celui ci me dit :


Detected NVIDIA GPUs:
04:00.0 VGA compatible controller [0300]: NVIDIA Corporation G72 
[GeForce 7200 GS / 7300 SE] [10de:01d3] (rev a1)


Checking card:  NVIDIA Corporation G72 [GeForce 7200 GS / 7300 SE] (rev a1)
Your card is only supported by the 304 legacy drivers series, which is 
only available up to stretch.


Donc, je pense qu'avec les drivers Nvidia, j'ai un mode par défaut et 
pas du tout, les drivers proposés.


Je reviens donc sur nouveau.

Je pense qu'il y a un soucis de paramètrage. Mais comment le modifier 
puisqu'il n'y a plus de xorg.conf.


Quelqu'un sait comment le générer avec les paramètres qu'il utilise ?

Comment paramétrer le driver nouveau ?

Bien amicalement,

José



Re: One user system.

2022-02-01 Thread Bijan Soleymani

On 2022-02-01 14:47, pe...@easthope.ca wrote:

Thanks.  Still a multi-user system.

Whereas puppy linux has one user, root.

To make debian one-user I think of

...


Then proceed as root rather than me.


Oh! Is your goal to only have root? I assumed you wanted to login as 
root, but didn't configure a password for root at setup.


As far as I know there's no option in the standard install to not create 
a user account and only create a root account.


But assuming you have a root password set just remove non-root users:
deluser username

Just keep in mind stuff like ssh isn't configured to let root log in by 
default. (Important in case you're doing this remotely and won't be able 
to login again, without changing the default settings).


I can't think of a case where you'd want to remove all non root users 
though...


Bijan



Re: One user system.

2022-02-01 Thread Andrew M.A. Cater
On Tue, Feb 01, 2022 at 11:47:35AM -0800, pe...@easthope.ca wrote:
> From: john doe 
> Date: Tue, 1 Feb 2022 19:29:02 +0100
> > If my understanding is correct, you will need to use 'sudo'.
> 
> Thanks.  Still a multi-user system.  
> 
> Whereas puppy linux has one user, root.
> 
> To make debian one-user I think of 
> 
> mkdir /home/root ; cp -r /root/* /home/root ; rm -r /root ; ln -s /home/root 
> /root
> cp  /home/root
> 
> Then proceed as root rather than me.
> 
> Googling "linux one account" returned https://login.ubuntu.com/ and 
> other pages not relevant to the concept.  Odd that the topic doesn't 
> get more attention.
> 
> Thx,... P.
> 
> 
> -- 
> mobile: +1 778 951 5147
>   VoIP: +1 604 670 0140
>48.7693 N 123.3053 W
>

Hi,

That seems like a very bad idea for security to encourage _everything_ to
be done as root and some desktop environments would complain

The Ubuntu and others model of creating one user and giving that user sudo
powers means only one user on the system.

Every Unix system is inherently multi-user/multi role, I think.

All the very best, as ever,

Andy Cater

 



Re: Mounting NFS share from Synology NAS

2022-02-01 Thread Tixy
On Tue, 2022-02-01 at 11:43 -0500, Greg Wooledge wrote:
[...]
> I'm unclear on how NFS v4 works.  Everything I've read about it in the
> past says that you have to set up a user mapping, which is shared by
> the client and the server.  And that this is *not* optional, and *is*
> exactly as much of a pain as it sounds.
> 
> I'm looking at  for example
> and there's discussion back and forth on the page about how the user
> mapping is not working as expected, and try this and that, and see this
> bug
> 
> I've never actually used NFS v4 myself.  In fact, at work I have to go out
> of my way to *prevent* it from being used, because some of the NFS servers
> to which I connect (which are not under my control) don't support it.
> 
> The comment about the access being based on UID is certainly true for
> NFS v3, though.  NFS v3 ("regular, traditional NFS") controls mounting
> options by the host's IP address, and controls file system access by
> UID and GID.  There may be some way to circumvent that, but I've never
> done it.  I just make sure the UIDs and GIDs match, the way you're
> supposed to.
> 
> For a home network, I can't really imagine a need to go through all of
> the NFS v4 hoops.  I would just use NFS v3 with synchronized UIDs.

Perhaps because I didn't know better, but I used NFSv4 since first
setting up my home network. My install notes for my clients just
have...

   Edit /etc/default/nfs-common to have

NEED_IDMAPD=yes

   Edit /etc/idmapd.conf, make sure these aren't commented out or missing...

Verbosity = 0
Pipefs-Directory = /run/rpc_pipefs # before jessie this was 
/var/lib/nfs/rpc_pipefs

Presumably that's the voodoo I found on the internet when I set things
up many years ago. I do have all my UIDs and GUIs matching across all
machines at home. Everything works seamlessly here. (On the server the
exports have option no_root_squash, the latter lets root use NFS
filesystem too.)

-- 
Tixy



Re: One user system.

2022-02-01 Thread peter
From: john doe 
Date: Tue, 1 Feb 2022 19:29:02 +0100
> If my understanding is correct, you will need to use 'sudo'.

Thanks.  Still a multi-user system.  

Whereas puppy linux has one user, root.

To make debian one-user I think of 

mkdir /home/root ; cp -r /root/* /home/root ; rm -r /root ; ln -s /home/root 
/root
cp  /home/root

Then proceed as root rather than me.

Googling "linux one account" returned https://login.ubuntu.com/ and 
other pages not relevant to the concept.  Odd that the topic doesn't 
get more attention.

Thx,... P.


-- 
mobile: +1 778 951 5147
  VoIP: +1 604 670 0140
   48.7693 N 123.3053 W



Re: One user system.

2022-02-01 Thread tomas
On Tue, Feb 01, 2022 at 10:11:25AM -0800, pe...@easthope.ca wrote:
> Hi,
> 
> https://wiki.debian.org/Root states,
> 
> "At installation time, you are asked whether you want to use the root account 
> or not.
>   ...
> If not, no root account is enabled and the password of the first user created 
> will be used for administration tasks."

This is an unfortunate way of expressing it. The root user exists, of
course. It just has no password, so login as root is not possible.

As Bijan noted in this thread, you only have to issue `passwd' as root
to "fix" that, i.e. `sudo passwd' will do.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: "mount -t ntfs" vs "mount.ntfs" ?

2022-02-01 Thread Tixy
On Tue, 2022-02-01 at 17:56 +0100, Yvan Masson wrote:
> 
> Le 01/02/2022 à 14:24, Tixy a écrit :
> > On Tue, 2022-02-01 at 13:39 +0100, Yvan Masson wrote:
> > > Le 31/01/2022 à 18:02, Christian Britz a écrit :
> > > > 
> > > > 
> > > > On 2022-01-31 11:43 UTC+0100, Yvan Masson wrote:
> > > > 
> > > > > Thanks for the links, I missed that NTF3 was already included
> > > > > in the
> > > > > kernel I use (from Debian testing). So in my case ntfs3g is
> > > > > able to
> > > > > mount a rescued partition, while NTFS3 is not (thanks Andrei
> > > > > for
> > > > > confirming what I supposed): this means that in some cases,
> > > > > NTFS3 is not
> > > > > as mature as ntfs3g.
> > > > 
> > > > As far as I know, NTFS3 is not enabled in any Debian kernel. 樂
> > > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=998627
> > > > 
> > > Which probably explains why I could not mount using `mount -t
> > > ntfs` :-)
> > > 
> > > Slightly off-topic question: using pre-5.15 kernel, how can I
> > > mount a
> > > partition with kernel driver?
> > 
> > You can't, the NTFS kernel driver first appeared in Linux 5.15.
> > 
>  From what I understand, there was a read-only driver before 5.15:
> - see for example 
> https://superuser.com/questions/139452/kernel-ntfs-driver-vs-ntfs-3g 
> or 
> https://www.paragon-software.com/us/home/ntfs3-driver-faq/
> - kernel build config (/boot/config-) also mentions ntfs, even
> for 
> pre-5.15 kernels

Sorry, you are correct, I was mistaken, it's been in the kernel tree
[1] for over a decade. However I can't find it mentioned in the config
for the Debian kernels on my machine so I'm assuming Debian don't
enable it (I'm looking in /boot/config-5.10.0-11-amd64). But you say
you found in in you kernel configs?

[1] 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/fs/ntfs

-- 
Tixy




Re: One user system.

2022-02-01 Thread Bijan Soleymani

On 2022-02-01 13:29, john doe wrote:

If my understanding is correct, you will need to use 'sudo'.



Yes.

sudo passwd

Should allow you so set a password for root.

It will ask for your password first (if you haven't run sudo recently), 
and then new password for root and confirmation of that password.


Bijan



IGNORE Re: folder compression issue

2022-02-01 Thread Peter Ehlert
Thanks for the ideas. I got anxious, compressed the Folders 
individually, then the files into a separate Zip.


I deleted the problem folder... not elegant, not solved.

On 2/1/22 09:20, Bijan Soleymani wrote:

On 2022-02-01 12:17, Bijan Soleymani wrote:

find | xargs stat


Oops that might not work if there are spaces in the 
filenames/directories.


You can do:
find -print0 | xargs -0 stat

In that case.

Bijan






Re: One user system.

2022-02-01 Thread john doe

On 2/1/2022 7:11 PM, pe...@easthope.ca wrote:

Hi,

https://wiki.debian.org/Root states,

"At installation time, you are asked whether you want to use the root account 
or not.
   ...
If not, no root account is enabled and the password of the first user created will 
be used for administration tasks."

Are instructions to configure that post installation available online?

Tips?



If my understanding is correct, you will need to use 'sudo'.

--
John Doe



One user system.

2022-02-01 Thread peter
Hi,

https://wiki.debian.org/Root states,

"At installation time, you are asked whether you want to use the root account 
or not.
  ...
If not, no root account is enabled and the password of the first user created 
will be used for administration tasks."

Are instructions to configure that post installation available online?

Tips?

Thanks,  ... P.




-- 
mobile: +1 778 951 5147
  VoIP: +1 604 670 0140
   48.7693 N 123.3053 W



Re: snap/firefox

2022-02-01 Thread herve

Bonsoir

J'ai trouvé cette commande avec /snap/chromium et l'ai adapté à mes 
bespoins. Je ne sais pas d'où sortent les options --user-data-dir et 
--class et à quelle commande elles se rapportent, peut-être chromium, 
mais ça m'intéresse.


/snap/chromium/current/usr/lib/chromium-browser/chrome 
--user-data-dir=~/.IT-Finance --class="ChrUnsnapped" 
https://www.prorealtime.com/fr/




Re: Printing lots of pages skips a few

2022-02-01 Thread Greg Wooledge
On Tue, Feb 01, 2022 at 10:42:31PM +0530, Pankaj Jangid wrote:
> Greg Wooledge  writes:
> > A correct version would be:
> >
> > find . -name "pref*.pdf" -exec lp {} +

> Thanks for this brief course, Greg. I really liked it.
> 
> In my case though, I had verified that the output of find is okay for
> xargs. Then I added | xargs lp.
> 
> But could this be cause of missing page. The output of find is:
> 
> --8<---cut here---start->8---
> 2018/letters/060718I049905433.pdf
> 2018/letters/250518I049904099.pdf
> 2018/letters/150918I049901510.pdf
[..]

OK.  Then there must be something else wrong.

I can't help noticing that none of your filenames begin with "pref",
so none of them actually match the -name pattern that's being given
to find.  One of the obvious ways you could experience this problem
is that the "missing" files don't match the pattern you're using.

Beyond that, perhaps some of the files are empty (either literally
zero bytes, or they contain only "comments" or metadata that doesn't
cause the generation of images using ink on paper when printed).

Or... the files aren't readable due to permissions.  Or they're not in
the directories you think they're in.

Can you identify *which* files aren't being visibly printed?  By process
of elimination, you should be able to find out.  Pick one of them, and
analyze the situation.  If it's not an issue with the name, location or
permissions, then try to open it with a PDF viewer.  If it opens correctly,
try printing it with "lp".



Re: i386 or AMD64 - Which is currently running?

2022-02-01 Thread Curt
On 2022-02-01, Stanislav Vlasov  wrote:
> 2022-02-01 17:20 GMT+05:00, Curt :
>> On 2022-01-31, Stefan Monnier  wrote:
 Technically correct, but Curt's response was good enough for Richard
 Owlett to make progress. Richard Owlett is very unlikely to be using
 a 64-bit kernel with 32-bit userspace.
>>>
>>> BTW, for the twisted-minded it's probably possible to run a 64bit
>>> userspace on a 32bit kernel.
>
> Me used that some years ago - 4GB ram was accessible only with 64bit
> kernel and proprietary 32bit software.
>
>> Oh nuts. I was going to say I was at least half correct.
>
> This will print what you need
> dpkg --print-architecture
>

Yes, I've adequately absorbed this information. But I don't need it.  I
mean, despite my advancing years, I remember, like the vast majority of
people here, I suppose, whether I installed a 64 or a 32 bit release
(although the consequences of not remembering appear to me to be
rather innocuous for my use case).



Re: Need to manually start pulseaudio on reboot

2022-02-01 Thread nmanca

On 25/01/2022 00:14, Jude DaShiell wrote:

Have you run pulseaudio --cleanup-shm yet?


I tried, didn't worked. Should I check some config file I forgot I modified in 
the remote past maybe?


thanks,
Nicola



On Mon, 24 Jan 2022, nmanca wrote:


Dear list,

Since upgrading to bookworm I have to manually start pulseaudio at every login
by executing:

systemctl --user restart pulseaudio.service

I use KDE plasma desktop.
how can I diagnose/solve the problem?

regards,
Nicola






Re: folder compression issue

2022-02-01 Thread Bijan Soleymani

On 2022-02-01 12:17, Bijan Soleymani wrote:

find | xargs stat


Oops that might not work if there are spaces in the filenames/directories.

You can do:
find -print0 | xargs -0 stat

In that case.

Bijan



Re: folder compression issue

2022-02-01 Thread Bijan Soleymani

On 2022-02-01 12:04, Peter Ehlert wrote:

Ideas?


If you want to debug, do a binary search.

Move out half the files and try to compress again until it works. And 
then add back half the files until it fails.



should I file a bug report?


Sure.

Since there's not too many files you can include the output of:

find | xargs stat

Run from that directory in your bug report. That should give the names, 
permissions, etc of all files and directories.


There might be a permission issue or a filename issue.

Bijan



Monthly FAQ for debian-user mailing list

2022-02-01 Thread Andrew M.A. Cater
Debian-user is a mailing list provided for support for Debian users,
and to facilitate discussion on relevant topics. 

Some guidelines which may help explain how the list works:

* The language on this mailing list is English. There may be other mailing 
  lists that are language-specific for example debian-user-french 

* It is common for users to be redirected here from other lists - for example,
  from debian-project. It is also common for people to be posting here when 
  English is not their primary language. Please be considerate.

* The list is a Debian communication forum. As such, it is subject to both 
  the Debian mailing list Code of Conduct and the main Debian Code of Conduct

 https://www.debian.org/MailingLists/#codeofconduct
 https://www.debian.org/code_of_conduct

* This is a fairly busy mailing list and you may have to wait for an
  answer - please be patient. Please post answers back to the list so
  others can benefit; private conversations don't benefit people who
  may be following along on the list or reading the archives later.

* Help and advice on this list is provided by volunteers in their own time.
  It is common for there to be different opinions or answers provided.

 * Please try to stay on topic. Arguments for the sake of it are not
   welcome here. Partisan political / religious / cultural arguments
   do not belong here either. Debian's community is world wide; don't
   assume others will agree with your views or need to read them on a
   Debian list.

* There is an FAQ on the Debian wiki derived from some questions asked on 
  this list at https://wiki.debian.org/FAQsFromDebianUser

* One question that comes up on almost all Debian lists from time to time is 
  of the form: 
  
  "I have done something wrong / included personal details in an email.
   Could you please delete my name / details / remove the mail"
  
Practically, this is impossible: the mailing lists are archived, potentially 
cached by Google and so on. Unfortunately, there is nothing much we can do to 
ensure that all copies anywhere on the Internet are deleted. Asking to do this
may only serve to draw further attention - the so-called "Streisand effect" 
https://en.wikipedia.org/wiki/Streisand_effect

Problems?
=

Complaints about inappropriate behaviour should be referred to the
Debian Community Team .

Inappropriate behaviour on the list may lead to warnings; repeated bad
behaviour may lead to temporary or permanent bans for offenders.





Re: Printing lots of pages skips a few

2022-02-01 Thread Pankaj Jangid
Greg Wooledge  writes:

> On Tue, Feb 01, 2022 at 03:04:06PM +0530, Pankaj Jangid wrote:
>> I tried to print ~40 pages using the following combination of commands:
>> 
>> find . -name "pref***.pdf" | xargs lp
>> 
>> The result was that a couple of pages were missed.
>
> That command is fundamentally broken.  It will fail if any of the
> matching filenames contain whitespace, single quotes or double quotes.
>
> A correct version would be:
>
> find . -name "pref*.pdf" -exec lp {} +
>
> That's the preferred one.  If you're really old-fashioned and just cannot
> live without xargs, the first thing you must realize is that POSIX xargs
> is fundamentally incapable of doing this correctly.  GNU xargs has a -0
> extension, though, which makes it possible:
>
> find . -name "pref*.pdf" -print0 | xargs -0 lp
>
> That one is acceptable, albeit longer, less efficient and less portable.

Thanks for this brief course, Greg. I really liked it.

In my case though, I had verified that the output of find is okay for
xargs. Then I added | xargs lp.

But could this be cause of missing page. The output of find is:

--8<---cut here---start->8---
2018/letters/060718I049905433.pdf
2018/letters/250518I049904099.pdf
2018/letters/150918I049901510.pdf
2018/letters/180518I049903135.pdf
2018/letters/180518I049902524.pdf
2018/letters/191018I049905432.pdf
2018/letters/300718I049902173.pdf
2018/letters/141218I049903816.pdf
2018/letters/261018I049903737.pdf
2018/letters/290618I049904628.pdf
2018/letters/190718I049902138.pdf
2018/letters/230718I049900093.pdf
2018/letters/030818I049903843.pdf
2018/letters/190118I049901374.pdf
2018/letters/150618I049903232.pdf
2018/letters/281218I049903776.pdf
2018/letters/190118I049901373.pdf
2018/letters/240818I049904062.pdf
2018/letters/121218I049903419.pdf
2018/letters/201118I049900883.pdf
2018/letters/021118I049904149.pdf
2018/letters/111018I049901537.pdf
2018/letters/270718I049903199.pdf
2018/letters/211218I049904184.pdf
2018/letters/180518I049902534.pdf
2018/letters/261118I049905674.pdf
2018/letters/210918I049902234.pdf
2018/letters/210918I049906208.pdf
2018/letters/230818I049902830.pdf
2018/letters/150518I049903258.pdf
2018/letters/261018I049903715.pdf
2018/letters/100918I049902331.pdf
2018/letters/180818I049904319.pdf
2018/letters/110518I049903217.pdf
2018/letters/290118I049905290.pdf
2018/letters/121018I049903705.pdf
2018/letters/170518I049901548.pdf
2018/letters/180818I049904094.pdf
2018/letters/191218I049901286.pdf
2018/letters/101018I049905261.pdf
2018/letters/021118I049904059.pdf
2018/letters/060118I049902467.pdf
2018/letters/150618I049903254.pdf
2018/letters/110518I049903022.pdf
2018/letters/270718I049903443.pdf
2018/letters/240818I049904852.pdf
2018/letters/210918I049906209.pdf
2018/letters/300518I049903175.pdf
2018/letters/280918I049901364.pdf
2018/letters/140918I049906491.pdf
2018/letters/010618I049902892.pdf
2018/letters/060618I049904019.pdf
2018/letters/070918I049903663.pdf
2018/letters/301118I049903918.pdf
2018/letters/261018I049901520.pdf
--8<---cut here---end--->8---

six of them were not printed.

Regards ~Pankaj



folder compression issue

2022-02-01 Thread Peter Ehlert



I am using Debian Mate with the GUI.

in Caja file manager, right click on the desired folder.
"Compress" is displayed on a list of options.
default is .tar.gz format

this works fine, I do it regularly ... mostly big folders, ~11.4 GB and 
~2,400 items.


now I am following the same method with a 389.3 MB folder, and 305 items.
at about 2/3 thru the process I get a popup "An error occurred while 
adding files to the archive."


there is tons of disk space, huge RAM, and my 10 GB Swap partition is 
nearly empty.


I have copied that same folder to various locations, tried it with 
Stable and SID and even Linux Mint. Same problem. It seems to be unique 
to this folder, or something in it.


Ideas?

should I file a bug report?



Re: "mount -t ntfs" vs "mount.ntfs" ?

2022-02-01 Thread Yvan Masson


Le 01/02/2022 à 14:24, Tixy a écrit :

On Tue, 2022-02-01 at 13:39 +0100, Yvan Masson wrote:

Le 31/01/2022 à 18:02, Christian Britz a écrit :



On 2022-01-31 11:43 UTC+0100, Yvan Masson wrote:


Thanks for the links, I missed that NTF3 was already included in the
kernel I use (from Debian testing). So in my case ntfs3g is able to
mount a rescued partition, while NTFS3 is not (thanks Andrei for
confirming what I supposed): this means that in some cases, NTFS3 is not
as mature as ntfs3g.


As far as I know, NTFS3 is not enabled in any Debian kernel. 樂
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=998627


Which probably explains why I could not mount using `mount -t ntfs` :-)

Slightly off-topic question: using pre-5.15 kernel, how can I mount a
partition with kernel driver?


You can't, the NTFS kernel driver first appeared in Linux 5.15.


From what I understand, there was a read-only driver before 5.15:
- see for example 
https://superuser.com/questions/139452/kernel-ntfs-driver-vs-ntfs-3g or 
https://www.paragon-software.com/us/home/ntfs3-driver-faq/
- kernel build config (/boot/config-) also mentions ntfs, even for 
pre-5.15 kernels


OpenPGP_signature
Description: OpenPGP digital signature


Clavier-souris sans-fil Logitech Bolt

2022-02-01 Thread Olivier
Bonjour,

J'envisage d'acquérir un clavier et une souris sans fil pour faire de
l'administration système ou de la programmation.
Un peu par hasard, j'ai découvert une nouvelle gamme de produit sans
fil de Logitech nommée Bolt.

À l'inverse d'Unifying, celle-ci s'appuie sur Bluetooth.

1. Logitech Bolt est-il compatible avec Bullseye ? Si oui, est-ce que
le fonctionnement est stable et satisfaisant (latence, ...) ? Doit-on
installer le paquet solaar  ou autre chose pour communiquer avec un
hôte Debian ?

2. J'ai un PC portable doté du Bluetooth. Le dongle USB de Logitech
est-il indispensable ?

3. Est-il possible et facile d'utiliser un unique clavier avec 2 PC ?
Avec un smartphone ou une tablette ?

4. Un modèle à conseiller ?

Slts



Re: Mounting NFS share from Synology NAS

2022-02-01 Thread Greg Wooledge
On Tue, Feb 01, 2022 at 11:28:55AM -0500, Henning Follmann wrote:
> On Tue, Feb 01, 2022 at 04:32:57PM +0100, Christian Britz wrote:
> > This is my entry in /etc/fstab:
> > diskstation:/volume1/Medien /Daten nfs
> > nfsvers=4,rw,x-systemd.automount,noauto 0 0
> > 
> > Mounting only works as root, I guess this is expected without further
> > configuration.
> > 
> > 1. Security: It seems that the only security check is the check for my
> > IP adress. Is it possible to achieve more without dealing with Kerberos?
> > 
> > 2. Accessing the mounted share with my personal user: The access rights
> > for /Daten look right, the user on the NAS has the same name as the user
> > on my machine. But:
> 
> And how about the userId?
> The username does not mean anything. The access control is 
> based on Id.

I'm unclear on how NFS v4 works.  Everything I've read about it in the
past says that you have to set up a user mapping, which is shared by
the client and the server.  And that this is *not* optional, and *is*
exactly as much of a pain as it sounds.

I'm looking at  for example
and there's discussion back and forth on the page about how the user
mapping is not working as expected, and try this and that, and see this
bug

I've never actually used NFS v4 myself.  In fact, at work I have to go out
of my way to *prevent* it from being used, because some of the NFS servers
to which I connect (which are not under my control) don't support it.

The comment about the access being based on UID is certainly true for
NFS v3, though.  NFS v3 ("regular, traditional NFS") controls mounting
options by the host's IP address, and controls file system access by
UID and GID.  There may be some way to circumvent that, but I've never
done it.  I just make sure the UIDs and GIDs match, the way you're
supposed to.

For a home network, I can't really imagine a need to go through all of
the NFS v4 hoops.  I would just use NFS v3 with synchronized UIDs.



Re: Mounting NFS share from Synology NAS

2022-02-01 Thread Bob Weber

On 2/1/22 10:32, Christian Britz wrote:


This is my entry in /etc/fstab:
diskstation:/volume1/Medien /Daten nfs
nfsvers=4,rw,x-systemd.automount,noauto 0 0


Have you tried the user option in fstab?

user - Permit any user to mount the filesystem.

nouser - Only permit root to mount the filesystem. This is also a default 
setting.

--


*...Bob*

Re: Mounting NFS share from Synology NAS

2022-02-01 Thread Henning Follmann
On Tue, Feb 01, 2022 at 04:32:57PM +0100, Christian Britz wrote:
> Hello,
> 
> I am playing with NFS on my home network for the first time and I have
> some difficulties/questions.
> 
> The server is a Synology NAS, it is based on Linux, supports NFS4 and
> gets configured by a web interface.
> The NAS offers a Kerberos authentification for NFS but I did not
> configure this. Instead, something called AUTH_SYS is enabled. Only one
> specific host is allowed to access the share.
> 
> 
> This is my entry in /etc/fstab:
> diskstation:/volume1/Medien /Daten nfs
> nfsvers=4,rw,x-systemd.automount,noauto 0 0
> 
> Mounting only works as root, I guess this is expected without further
> configuration.
> 
> 1. Security: It seems that the only security check is the check for my
> IP adress. Is it possible to achieve more without dealing with Kerberos?
> 
> 2. Accessing the mounted share with my personal user: The access rights
> for /Daten look right, the user on the NAS has the same name as the user
> on my machine. But:

And how about the userId?
The username does not mean anything. The access control is 
based on Id.

> 
> ls -ahl /Daten/
> ls: cannot open directory '/Daten/': Permission denied
> 
> sudo ls -ahl /Daten/
> [sudo] password for xyz:
> total 340K
> drwxrwxrwx 14 xyz root  4.0K Jan 30 21:31 .
> drwxr-xr-x 19 root   root  4.0K Jan 24 09:58 ..
> drwxrwxrwx  5 xyz users 4.0K Jan 30 21:31 Directory1
> drwxrwxrwx  4 xyz users 4.0K Aug 10 10:28 Directory2
> 
> Why can't user xyz access the mountpoint?
> 
> Thank you for your support.
> 
> Regards,
> Christian
> 


-H

-- 
Henning Follmann   | hfollm...@itcfollmann.com



Re: i386 or AMD64 - Which is currently running?

2022-02-01 Thread Stanislav Vlasov
2022-02-01 17:20 GMT+05:00, Curt :
> On 2022-01-31, Stefan Monnier  wrote:
>>> Technically correct, but Curt's response was good enough for Richard
>>> Owlett to make progress. Richard Owlett is very unlikely to be using
>>> a 64-bit kernel with 32-bit userspace.
>>
>> BTW, for the twisted-minded it's probably possible to run a 64bit
>> userspace on a 32bit kernel.

Me used that some years ago - 4GB ram was accessible only with 64bit
kernel and proprietary 32bit software.

> Oh nuts. I was going to say I was at least half correct.

This will print what you need
dpkg --print-architecture

-- 
Stanislav



Mounting NFS share from Synology NAS

2022-02-01 Thread Christian Britz
Hello,

I am playing with NFS on my home network for the first time and I have
some difficulties/questions.

The server is a Synology NAS, it is based on Linux, supports NFS4 and
gets configured by a web interface.
The NAS offers a Kerberos authentification for NFS but I did not
configure this. Instead, something called AUTH_SYS is enabled. Only one
specific host is allowed to access the share.


This is my entry in /etc/fstab:
diskstation:/volume1/Medien /Daten nfs
nfsvers=4,rw,x-systemd.automount,noauto 0 0

Mounting only works as root, I guess this is expected without further
configuration.

1. Security: It seems that the only security check is the check for my
IP adress. Is it possible to achieve more without dealing with Kerberos?

2. Accessing the mounted share with my personal user: The access rights
for /Daten look right, the user on the NAS has the same name as the user
on my machine. But:

ls -ahl /Daten/
ls: cannot open directory '/Daten/': Permission denied

sudo ls -ahl /Daten/
[sudo] password for xyz:
total 340K
drwxrwxrwx 14 xyz root  4.0K Jan 30 21:31 .
drwxr-xr-x 19 root   root  4.0K Jan 24 09:58 ..
drwxrwxrwx  5 xyz users 4.0K Jan 30 21:31 Directory1
drwxrwxrwx  4 xyz users 4.0K Aug 10 10:28 Directory2

Why can't user xyz access the mountpoint?

Thank you for your support.

Regards,
Christian



Re: i386 or AMD64 - Which is currently running?

2022-02-01 Thread Michael Stone

On Tue, Feb 01, 2022 at 12:32:24AM -0500, Stefan Monnier wrote:

that's not running a 64bit userspace on a 32bit kernel,


Why not?  You have a 64bit system on top, a 32bit kernel at the bottom
and whether execution of those 64bit binaries is performed directly by
the CPU or via binfmt + qemu is just an implementation detail.


Because it's a different thing than native execution, irrelevant in the 
context of the discussion, and fairly uninteresting to belabor the point 
that you can run basically anything in an emulator.




Re: "mount -t ntfs" vs "mount.ntfs" ?

2022-02-01 Thread Tixy
On Tue, 2022-02-01 at 13:39 +0100, Yvan Masson wrote:
> Le 31/01/2022 à 18:02, Christian Britz a écrit :
> > 
> > 
> > On 2022-01-31 11:43 UTC+0100, Yvan Masson wrote:
> > 
> > > Thanks for the links, I missed that NTF3 was already included in the
> > > kernel I use (from Debian testing). So in my case ntfs3g is able to
> > > mount a rescued partition, while NTFS3 is not (thanks Andrei for
> > > confirming what I supposed): this means that in some cases, NTFS3 is not
> > > as mature as ntfs3g.
> > 
> > As far as I know, NTFS3 is not enabled in any Debian kernel. 樂
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=998627
> > 
> Which probably explains why I could not mount using `mount -t ntfs` :-)
> 
> Slightly off-topic question: using pre-5.15 kernel, how can I mount a 
> partition with kernel driver?

You can't, the NTFS kernel driver first appeared in Linux 5.15.

-- 
Tixy



Re: "mount -t ntfs" vs "mount.ntfs" ?

2022-02-01 Thread Yvan Masson


Le 31/01/2022 à 18:02, Christian Britz a écrit :



On 2022-01-31 11:43 UTC+0100, Yvan Masson wrote:


Thanks for the links, I missed that NTF3 was already included in the
kernel I use (from Debian testing). So in my case ntfs3g is able to
mount a rescued partition, while NTFS3 is not (thanks Andrei for
confirming what I supposed): this means that in some cases, NTFS3 is not
as mature as ntfs3g.


As far as I know, NTFS3 is not enabled in any Debian kernel. 樂
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=998627


Which probably explains why I could not mount using `mount -t ntfs` :-)

Slightly off-topic question: using pre-5.15 kernel, how can I mount a 
partition with kernel driver? I just tried using a Linux Mint live USB 
(kernel 5.4), and using `mount -t ntfs` and `mount.ntfs` result in the 
same `mount` output (which is via ntfs3g) :


$ mount
…
/dev/sda1 on /mnt/part1 type fuseblk (rw,relatime,user_id=0, group_id=0, 
allow_other,blksize=4096)


OpenPGP_signature
Description: OpenPGP digital signature


Re: Printing lots of pages skips a few

2022-02-01 Thread Greg Wooledge
On Tue, Feb 01, 2022 at 03:04:06PM +0530, Pankaj Jangid wrote:
> I tried to print ~40 pages using the following combination of commands:
> 
> find . -name "pref***.pdf" | xargs lp
> 
> The result was that a couple of pages were missed.

That command is fundamentally broken.  It will fail if any of the
matching filenames contain whitespace, single quotes or double quotes.

A correct version would be:

find . -name "pref*.pdf" -exec lp {} +

That's the preferred one.  If you're really old-fashioned and just cannot
live without xargs, the first thing you must realize is that POSIX xargs
is fundamentally incapable of doing this correctly.  GNU xargs has a -0
extension, though, which makes it possible:

find . -name "pref*.pdf" -print0 | xargs -0 lp

That one is acceptable, albeit longer, less efficient and less portable.



Re: i386 or AMD64 - Which is currently running?

2022-02-01 Thread Curt
On 2022-01-31, Stefan Monnier  wrote:
>> Technically correct, but Curt's response was good enough for Richard
>> Owlett to make progress. Richard Owlett is very unlikely to be using
>> a 64-bit kernel with 32-bit userspace.
>
> BTW, for the twisted-minded it's probably possible to run a 64bit
> userspace on a 32bit kernel.

Oh nuts. I was going to say I was at least half correct.

>
> Stefan
>
>


-- 




Re: CLARIFICATION --- Re: i386 or AMD64 - Which is currently running?

2022-02-01 Thread Richard Owlett

On 02/01/2022 12:12 AM, songbird wrote:

Richard Owlett wrote:
...

My hardware can support either 32 or 64 bit OS.
I *ONLY* use one or the other.
My goal is to determine which I chose at installation.


   that should be somewhere in:

/var/log/installer



Yes but ;/
"dpkg --print-architecture" is very user friendly.
"file /bin/ls" is flexible and acceptably friendly.





Re: Security

2022-02-01 Thread Vincent Lefevre
On 2022-01-31 01:36:06 +1300, Richard Hector wrote:
> On 29/01/22 04:17, Vincent Lefevre wrote:
> > Servers shouldn't have pkexec installed in the first place, anyway.
> 
> libvirt-daemon-system depends on policykit-1.
> 
> Should that not be on my (kvm) server either?

I don't need libvirt-daemon-system on my server. And I don't see
why it would be needed in general. If I understand correctly,
libvirt is used to manage VMs, but what is mostly exposed on the
Internet (e.g. as a web server) is the VM itself, which doesn't
need libvirt.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Re: i386 or AMD64 - Which is currently running?

2022-02-01 Thread Stefan Krusche
Am Montag, 31. Januar 2022 schrieb Richard Owlett:
> >> 2. As superuser, how can I determine which is installed on a
> >> different partition?
> >>      [ My typical installation routine has been a descriptive
> >> label for each root partition. But not always done ;{ ]
> >
> > If the superuser doesn't know, I surely don't know.
>
> I was trying to determine what another boot-able OS on the machine
> would do.
>
> I suspect the appropriate use of the "--admindir=?" option to
> "dpkg-query" may be appropriate [I need to carefully re-read
> man-pages for dpkg-query and dpkg.]

Yes, I did it this way. The admindir is usually "/var/lib/dpkg" of the 
interesting system. With --get-selections you can give a pattern.

$ 
dpkg --admindir=/mnt/BACKUP/2020/SSD128-root1/var/lib/dpkg --get-selections 
"*virt*"
virtualbox  install
virtualbox-dkms install
virtualbox-guest-additions-iso  install
virtualbox-qt   install

HTH

Kind regards,
Stefan



Re: Haskell Platform

2022-02-01 Thread Jonathan Dowland

On Fri, Jan 28, 2022 at 10:45:05AM +, Jonathan Dowland wrote:

I don't think it has been formally abandoned or deprecated but I don't
think anyone is really working on it anymore.


By coincidence the topic of Haskell Platform came up on Reddit:


It's Dead, Jim!

I think we should probably remove it from Debian to avoid further
confusion.

--
Please do not CC me for listmail.

  Jonathan Dowland
✎j...@debian.org
   https://jmtd.net



Printing lots of pages skips a few

2022-02-01 Thread Pankaj Jangid
I tried to print ~40 pages using the following combination of commands:

find . -name "pref***.pdf" | xargs lp

The result was that a couple of pages were missed. I tried this four
times with different set of files. The number of skipped pages is not
fixed but it was around 5 pages. That makes it roughly 10%.

The printer is Samsung ML-2161.

Have anyone else faced this issue? Or anyone knows hows to fix this? It
is cumbersome to verify big bunches of papers every time I print.

--8<---cut here---start->8---
pankaj@anant:~$ uname -a
Linux anant 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 
GNU/Linux
pankaj@anant:~$ cat /etc/debian_version 
11.2
--8<---cut here---end--->8---

Regards ~Pankaj