Re: More hibernation mystery

2023-08-15 Thread Ranjan Maitra
My apologies for this, but this is how we go about hibernating on a new system 
now? In the past, from F34 or before, which is why I last set up this machine 
and have upgraded it using dnf ever since, it was pretty much automatic. Before 
that, some more work was needed (for a while):


sudo vi /etc/default/grub

add --> resume=UUID="" <-- to the line GRUB_CMDLINE_LINUX=

where the UUID is obtained using blkid.

then

sudo bash -x grub2-mkconfig

# # for efi-based systems: #

sudo bash -x grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

In either case, systemctl hibernate is enough to set it to hibernate.

But all this was not much, compared to what has been described on the thread. 
What changed? I am just trying to understand this in advance, as I was thikning 
of doing a clean install just to get rid of crud that inevitably creeps into my 
system. Having reliable hibernate (and this has been so for me all these years) 
is very important to me.

In the past, I have had a separate physical partition for swap. Nowadays, I 
think that there is something else (dynamic swap) but I am not sure if that 
matters.

Any enlightenment?

Many thanks and best wishes,
Ranjan



On Mon Aug14'23 10:49:28AM, Patrick O'Callaghan wrote:
> From: Patrick O'Callaghan 
> Date: Mon, 14 Aug 2023 10:49:28 +0100
> To: users@lists.fedoraproject.org
> Reply-To: Community support for Fedora users 
> Subject: Re: More hibernation mystery
>
> On Mon, 2023-08-14 at 08:05 +0200, francis.montag...@inria.fr wrote:
> > On Sun, 13 Aug 2023 22:12:23 +0100 Patrick O'Callaghan wrote:
> >
> > > On Sun, 2023-08-13 at 18:49 +0200,
> > > francis.montag...@inria.fr wrote:
> > > > ExecStart=/bin/bash -c '/usr/sbin/swapon /SWAP/swapfile &&
> > > > /usr/sbin/swapoff /dev/zram0'
> >
> > > I'll do that, but I don't understand why it sometimes works and
> > > sometimes doesn't.
> >
> > The journal when it succeeds shows that /SWAP/swapfile was activated.
> > That may
> > be due to hibernate-resume.service previously failed or was not
> > called.
>
> I don't think so but I'd need to think it through.
>
>
> > In addition swapon fails when the swapfile is already activated. A
> > better
> > hibernate-preparation.service would be:
> >
> >   ExecStart=/bin/bash -c ' \
> >   if ! swapon --show=NAME --noheadings | grep -q /SWAP/swapfile;
> > then \
> >   swapon /SWAP/swapfile || exit; \
> >   fi; \
> >   swapoff /dev/zram0; \
> >   # Ignores the exit code of swapoff.
> >   exit 0; \
> >   '
> >
>
> I'll add that as a defensive measure.
>
>
> Thanks again.
>
> poc
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
> Do not reply to spam, report it: 
> https://pagure.io/fedora-infrastructure/new_issue
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: dnf install stuck

2023-08-15 Thread Tim via users
On Tue, 2023-08-15 at 22:02 +0100, Barry wrote:
> Better these days to replace ifconfig with:
> 
>  ip addr

I'm not so sure I agree with that, there's some useful info provided by
ifconf that ip addr doesn't supply.  For example:

RX packets 24927062  bytes 16569920396 (15.4 GiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 8396381  bytes 1513217283 (1.4 GiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
-- 
 
uname -rsvp
Linux 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: dnf install stuck

2023-08-15 Thread Barry


> On 15 Aug 2023, at 09:21, Tim via users  wrote:
> 
> If you type ifconfig into the command line, does your ethernet port
> have a valid IP (not 127.0.0.1 nor an IP starting 169.254)?  If it has
> one of them, it won't be able to do anything.  Likewise if it has none.
> 
> Does your PC have a nameserver configured in the settings?
> 
> e.g.  grep nameserver /etc/resolv.conf

Better these days to replace ifconfig with:

 ip addr

And check dns stuff with:

 resolvectl

Barry

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: recommended key pair encryption

2023-08-15 Thread Todd Zullinger
François Patte wrote:
> What could be helpfull would be to tell people how to create a SHA2
> signature key
> 
> I have a ssh connexion problem after upgrading a remote machine to f38 and
> it is hard to find out what to do to solve the problem.
> 
> I succeeded (at last!):
> 
> ssh-keygen -t rsa-sha2-256 -b 4096

There's no need for that.  A simply ssh-keygen -t rsa works
(with -b if you want more than the default 3072 bits).

You've actually used a (very slightly) weaker signature
algorithm than the default. ;)

ssh-keygen(1) says:

-t dsa | ecdsa | ecdsa-sk | ed25519 | ed25519-sk | rsa

Specifies the type of key to create.  The possible values are
“dsa”, “ecdsa”, “ecdsa-sk”, “ed25519”, “ed25519-sk”, or “rsa”.

This flag may also be used to specify the desired signature type
when signing certificates using an RSA CA key.  The available
RSA signature variants are “ssh-rsa” (SHA1 signatures, not
recommended), “rsa-sha2-256”, and “rsa-sha2-512” (the
default).

-- 
Todd


signature.asc
Description: PGP signature
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


DNF5 feature status.

2023-08-15 Thread Joel Naya
Hello everyone,
I've been using dnf5 for almost a month and have done updates including
kernel updates and everything seems to be working well.
Dnf-3 has a feature of downloading source code directly from the repository
which is absent in dnf5. Will it be implemented anytime soon? dnf-3 on my
machine is very slow so I have to rely on dnf5.

Thanks.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


f38 & snapd

2023-08-15 Thread François Patte

Bonjour,

on f38 it is possible to install snapd but it seems impossible to use 
it: while I wanted to install nextcloud via snap, I get this error 
message:


error: system does not fully support snapd: cannot mount squashfs image 
using "squashfs":
   - mount: /tmp/syscheck-mountpoint-2175242409: type de système 
de fichiers « squashfs »

   inconnu.

I installed squashfs-tools but no change...

Thank you for lights.

--
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
http://www.math-info.univ-paris5.fr/~patte
FSF
https://www.fsf.org/blogs/community/presenting-shoetool-happy-holidays-from-the-fsf
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: dnf install stuck

2023-08-15 Thread Tim via users
On Tue, 2023-08-15 at 17:50 +0930, Tim via users wrote:
> Does your PC have a nameserver configured in the settings?
> 
> e.g.  grep nameserver /etc/resolv.conf

And, I just noticed that my resolv.conf file suggests this command:

resolvectl status

-- 
 
uname -rsvp
Linux 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: dnf install stuck

2023-08-15 Thread Tim via users
On Mon, 2023-08-14 at 22:34 -0700, Mike Wright wrote:
> 2 f38 hosts.  1 dnf install xxx works fine.  Very fast. 2) spins 
> forever: dnf.log shows
> 
> Error during transfer: Curl error (28): Timeout was reached for 
> https://mirrors.fedo...
> 
> Web searches show this to be common.  It also showed the cures to "just 
> wait", reboot, "try it again".  Nothing definitive.

Can the stalled machine do other things on the internet (e.g. browse a
webpage)?  If it can, then it's possibly just a DNF issue to figure
out.

If you type ifconfig into the command line, does your ethernet port
have a valid IP (not 127.0.0.1 nor an IP starting 169.254)?  If it has
one of them, it won't be able to do anything.  Likewise if it has none.

Does your PC have a nameserver configured in the settings?

e.g.  grep nameserver /etc/resolv.conf

Without a DNS server to consult, the PC won't be able to resolve any
host or domain names to connect to their IPs.

What sets the network addresses for your PCs?  Have you manually
configured each PC with static IPs?  Do you have a modem/router that
sets the PCs network configuration via DHCP?  Sometimes the
modem/router needs a reboot (they can have bugs just the same as
everything else).

-- 
 
uname -rsvp
Linux 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: recommended key pair encryption

2023-08-15 Thread François Patte

Le 2023-08-14 21:16, Todd Zullinger a écrit :

Mike Wright wrote:

Hi all,

I recall a discussion that may have said RSA was not being accepted in 
f38

and a different type was being preferred, possibly ecdsa?


It's only old RSA1 keys which use SHA1 which are not
accepted by default.  RSA keys which use a SHA2 algorithm
are perfectly acceptable.


What could be helpfull would be to tell people how to create a SHA2 
signature key


I have a ssh connexion problem after upgrading a remote machine to f38 
and it is hard to find out what to do to solve the problem.


I succeeded (at last!):

ssh-keygen -t rsa-sha2-256 -b 4096

--
François Patte
UFR de mathématiques et informatique
Laboratoire CNRS MAP5, UMR 8145
Université Paris Descartes
45, rue des Saints Pères
F-75270 Paris Cedex 06
Tél. +33 (0)6 7892 5822
http://www.math-info.univ-paris5.fr/~patte
FSF
https://www.fsf.org/blogs/community/presenting-shoetool-happy-holidays-from-the-fsf
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: Creating a bridge

2023-08-15 Thread Tim via users
On Mon, 2023-08-14 at 20:57 -0700, Samuel Sieb wrote:
> What's the Desktop?  :-)  I never see mine unless I've just rebooted.

Likewise.  I haven't even logged out for about a month.  And either
something is filling the screen, or several things are.  That's why I
like menus, structured menus.  Not incoherently organised icons on a
desktop pretending its a tablet.  Though I do have shortcuts to five
applications I'm always using on the taskbar.  Anything more than that
and its like trying to find where the other sock has disappeared to.

> Also, it depends on which desktop environment you're using.  You can't 
> do that with Gnome.  You have to put the .desktop file in the right 
> place for it to be usable and the Desktop folder is not the right place.

Confusingly, even menu files are .desktop files.  Well, I suppose they
are used by the desktop, overall.  But that's stretching things a bit.
 
-- 
 
uname -rsvp
Linux 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: DNF 5 Test Week starts today!

2023-08-15 Thread Luna Jernberg
Not attending today, being sick, will attend later during the week
again if i feel better

2023-08-13 15:16 GMT+02:00, Luna Jernberg :
> Have helped a bit today and yesterday, will try to help next week too
> if i am not too busy
>
> Den fre 11 aug. 2023 kl 05:27 skrev Sumantro Mukherjee
> :
>>
>> Hey Folks,
>>
>> DNF 5 landed in rawhide sometime back and has now been taken off F39
>> schedule. DNF 5 awaits testing and feedback before it can be
>> considered stable for Fedora users. DNF and Fedora Quality are hosting
>> a week-long testing period from Friday, August 11th through Thursday,
>> August 17th.
>>
>> The wiki[0] contains all information and the results can be submitted
>> by the test days app[1]
>>
>>
>> [0] http://fedoraproject.org/wiki/Test_Day:2023-08-11_Fedora_39_DNF_5
>> [1] https://testdays.fedoraproject.org/events/163
>>
>> Happy Testing!
>>
>> --
>> //sumantro
>> Fedora QE
>> TRIED AND PERSONALLY TESTED, ERGO TRUSTED
>> ___
>> users mailing list -- users@lists.fedoraproject.org
>> To unsubscribe send an email to users-le...@lists.fedoraproject.org
>> Fedora Code of Conduct:
>> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
>> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
>> List Archives:
>> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
>> Do not reply to spam, report it:
>> https://pagure.io/fedora-infrastructure/new_issue
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: dnf install stuck

2023-08-15 Thread Barry


> On 15 Aug 2023, at 06:34, Mike Wright  wrote:
> 
> Hi all,
> 
> 2 f38 hosts.  1 dnf install xxx works fine.  Very fast. 2) spins forever: 
> dnf.log shows
> 
> Error during transfer: Curl error (28): Timeout was reached for 
> https://mirrors.fedo...
> 
> Web searches show this to be common.  It also showed the cures to "just 
> wait", reboot, "try it again".  Nothing definitive.
> 
> Any body know how to move on from here?

You could try to diagnose what is wrong.

If you have a full url in the error then you can try:

Use curl to download the file
Use host to look up the ip address of the hostname in the url
Use ping to check if the hostname is reachable

Barry

> 
> TIA
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
> Do not reply to spam, report it: 
> https://pagure.io/fedora-infrastructure/new_issue
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: Creating a bridge

2023-08-15 Thread Joe Zeff

On 08/14/2023 09:57 PM, Samuel Sieb wrote:

What's the Desktop?  :-)  I never see mine unless I've just rebooted.
Also, it depends on which desktop environment you're using.  You can't 
do that with Gnome.  You have to put the .desktop file in the right 
place for it to be usable and the Desktop folder is not the right place.


Just because you maximize everything doesn't mean that everybody does. 
And, if the Desktop folder isn't the right place for .desktop files, I'd 
expect any program that creates/edits them to put them in the proper 
location.

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue