Missing Packages.gz file in debian-6.0.7-amd64-DVD-8.iso image

2013-03-04 Thread Franco Martelli

Hi,

In debian-6.0.0-amd64-DVD-8.iso image the file Packages.gz exist but in 
debian-6.0.7-amd64-DVD-8.iso it doesn't!
This cause an apt-get update error. I don't know which package affect 
this bug...


root@mitas:~# mount -o ro,loop 
/media/sdb1/sqeeze/debian-6.0.0-amd64-DVD-8.iso /mnt/

root@mitas:~# ls -l /mnt/dists/squeeze/contrib/binary-amd64/Packages.gz
-r--r--r-- 1 root root 1,2K  5 feb  2011 
/mnt/dists/squeeze/contrib/binary-amd64/Packages.gz

root@mitas:~# umount /mnt/
root@mitas:~# mount -o ro,loop 
/media/sdb1/sqeeze/debian-6.0.7-amd64-DVD-8.iso /mnt/

root@mitas:~# ls -l /mnt/dists/squeeze/contrib/binary-amd64/Packages.gz
ls: impossibile accedere a 
/mnt/dists/squeeze/contrib/binary-amd64/Packages.gz: No such file or 
directory


bye,

--
Franco Martelli.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/5134c760.4050...@gmail.com



tar command and -X -T options.

2013-03-28 Thread Franco Martelli

Hi,
I'm on Debian Squeeze 6.0.7 amd64, I always used tar command for my 
backups using a couple of file to include and exclude directories. Now 
something strange it happens:

(username) means the name which it's used to login to the system.

root@mitas:~# tar --version
tar (GNU tar) 1.23
root@mitas:~# tar zcpf /tmp/bck.tgz -X out -T in
root@mitas:~# cat out
/home/(username)/linux-source-2.6.32

root@mitas:~# cat in
/home/(username)/linux-source-2.6.32/.config

root@mitas:~# ls -l /tmp/bck.tgz
-rw-r--r-- 1 root root 45 27 mar 15.33 /tmp/bck.tgz

Tar command creates an empty bck.tgz file (45 bytes length) could 
anybody tell me why isn't .config file archive by tar?

Thanks for your answer, bye.

--
Franco Martelli.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/51544d71.4030...@gmail.com



Re: tar command and -X -T options.

2013-03-29 Thread Franco Martelli

Hi,
I'm on Debian Squeeze 6.0.7 amd64, I always used tar command for my
backups using a couple of file to include and exclude directories.
Now something strange it happens:
(username) means the name which it's used to login to the system.

root@mitas:~# tar --version
tar (GNU tar) 1.23
root@mitas:~# tar zcpf /tmp/bck.tgz -X out -T in
root@mitas:~# cat out
/home/(username)/linux-source-2.6.32

root@mitas:~# cat in
/home/(username)/linux-source-2.6.32/.config

root@mitas:~# ls -l /tmp/bck.tgz
-rw-r--r-- 1 root root 45 27 mar 15.33 /tmp/bck.tgz

Tar command creates an empty bck.tgz file (45 bytes length) could
anybody tell me why isn't .config file archive by tar?


Aren't you excluding it by what you have in file out?  (The pattern
to exclude is a superset of the pattern to include.)

It seems to work changing out file in this way:

root@mitas:~# cat out
/home/(username)/linux-source-2.6.32/\*

root@mitas:~# tar ztvf /tmp/bck.tgz
-rw-r--r-- (username)/(groupname)   55699 2013-03-29 15:51 
home/(username)/linux-source-2.6.32/.config

but I've an /home/(username)/ entry in my in file that it will include
linux-source-2.6.32 subdirectory globally in bck.tgz  :-(

bye,

--
Franco Martelli.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/5155e962.3040...@gmail.com



KDE digital clock NTP server time adjust.

2013-06-29 Thread Franco Martelli
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I,m on Wheezy amd64 port.
I installed both ntpdate and rdate packages but automatic date and
time update of KDE digital clock on the desktop doesn't work.
Do I need package like kdesudo in order to make things working?

Trying with rdate I got:

$ rdate europe.pool.ntp.org
rdate: Could not connect socket: Connection refused
$ rdate -ncv europe.pool.ntp.org
rdate: Could not set time of day: Operation not permitted

Please, any hint that help me to solve this situation would be really
appreciated, thanks in advance.

- -- 
Franco Martelli.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRzuZvAAoJEFM/ma7n+T+7V2UH/267jQsKiv6/qMUyiizTjY/I
yPzIqybCBwuwAMhRZ0I+yGayds9c821eSVF4nxz7oMu7gAhdTLNFnum9whX9LNHm
4svHXs7F2LYDZ2n5F54NwG30flKx/N8Y4sFfyfeznDNyGVjiSjLC7SBl3l5g3YHK
rKxe5C4fZoSjYSLbTxVj8nNluo9AGh5Vxg4A7iGJgaaJukD5kAeYQ/Fgp6DSaTJV
doKKffJa6QlIxgBTCwR/SRz0fV/CutvtIHV1KJ6f9G5mg16zlCtI8jaXbo647tCe
hoM0NjEj/sPzRaoTJkm8ZaTSgSu1Fue1RbUCfmGFfoOZ39Yc7YmPRHMU1grrMjQ=
=8TM7
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/51cee66f.3090...@gmail.com



Re: KDE digital clock NTP server time adjust.

2013-06-30 Thread Franco Martelli
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Il 29/06/2013 20:24, Bob Proulx ha scritto:
 Franco Martelli wrote:
 I installed both ntpdate and rdate packages but automatic date
 and time update of KDE digital clock on the desktop doesn't
 work. Do I need package like kdesudo in order to make things
 working?
 
 No.  Your choice of packages is unfortunate.  A mistake.  Instead 
 install 'ntp'.
 

But I used strings command to looking for in kcm_clock.so (for
investigation) and its output suggest me to install ntpdate or rdate
in order to obtain digital clock automatically updated.

# strings /usr/lib/kde4/kcm_clock.so|sort|less

then hit / to enter in search mode and type ntpdate less will
point to the following string:

No NTP utility has been found. Install 'ntpdate' or 'rdate' command to
enable automatic updating of date and time.
...

Should I ask to KDE or QT related mailing list?
Thanks in advance for any answer.

Regards.
- -- 
Franco Martelli.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJR0EELAAoJEFM/ma7n+T+7pHUIAImoQfDr8diTdxp+NOmFG+DJ
jCkSIxLpD+ePdMfLBInMUeGXbr80QTohT88vSX7w1gno7cd+LYnCA9M3B8cLHKKz
FgRxxgY2LPod8TyXXF5+TybSVIdT72SLMTIaxucspjENY25KXZS3DY5V51qmMfjG
ELyX/EeWLvv3i8rcxBMr4YpMIXMG4ypisjOuiROXqermftuMTI7FTJQUNfLL5e0W
x48G+QMPd4hE8eNN9WUw+06FF93y936MjzOUpfvEv6Jhbl31EQbL2PZfFmu2fBGi
LBgPaT+MNH6Ur40rOrpndDOGfw7gSN/cHsxAmGkfk2/OXTclHBNun+uWfdT+nFI=
=YNMF
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/51d0410c.4000...@gmail.com



Daemon program that runs scripts when a service become available.

2013-07-01 Thread Franco Martelli
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

This is my network situation, recently I bought a 3G router providing
internet connection to my network (an amd64 Desktop PC with Wheezy and
a Linksys NSLU2 de-underclocked with armel Squeeze). I would like to
run some scripts when 3G router gets connected to the Internet.
Using nmap program I notice that a TCP/IP service become available as
soon as 3G router gets connected so I thought to use it as a trigger
for a daemon program that checks an IP address for available services
then automatically it runs scripts.
Does it exist such a daemon program out there? Should I write a shell
script using some network utility?

Thanks in advance for any answer.

Regards.
- -- 
Franco Martelli.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJR0X/qAAoJEFM/ma7n+T+7+0cH/0LbLB9B9xqqQulPgOtmZQ2i
wQ8v7jlDOHyw/UP6c6LW1JzIEPu9j4oSVDMQvIFrVMoautoC1xdtTo26b41tceQ0
x9ykJVFLQ406lJ9InaHTggDZJobzhJYi1uDGCO8pVBWmCOPuG1sRZPLeu66rVurp
bZJKg/hLtFo1kKt7LB2Uawxg124oKKCPnNjHdgTiJjSYOqv/61oTTspwLoF7ppCi
N+2ml12HAclpm9eMGxV3AdNP7kfEffjgBtIAULuJKqbkChxXR5/luTypQ6DdFNAS
FE/8RWSKAAozYlnMhBMf4BJimSanqeus//mSbXpWjTNRT2NIXOK3r+y6ojy63Zw=
=5nd8
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/51d17fea.7020...@gmail.com



Re: How do I get my Shut Down-button active?

2013-07-05 Thread Franco Martelli
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Il 07/05/13 10:59, vwf ha scritto:
 Hello
 
 After upgrading from squeeze to wheezy my Shut Down button is no 
 longer available from kdm and xfce (and restart, sleep and
 hybernate). I reinstalled hal dbus pm-utils, I am in the
 powerdev-group. All pm-utils (seem to) work from the command-line.
 But how do I get the buttons active?
 
 Thanks
 
 
Are upower and udisks packages installed?

Regards.

- -- 
Franco Martelli.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJR1vkBAAoJEFM/ma7n+T+7JjcH/jlJrB8lHs7W3WHwntGDCzDd
TtVDilHa1+9VjPjV7tQysVuTlOAC4ylEH/dhvXiqqJpLTlaDpkw5Uuhs6vUQhUgz
cU2B1+15/bnS89LDolaJGbAZpR3vR2WzqXYovJl7oojo8fjCCYGF/WuW1fHcvo9u
5t+nie4pQLjoroSfeMtuItV8T/zte2CEn35jMa8fTb+nnpbtfPVjqqujSv9C+p6l
gpNDq1BjC1gIm5W12mrZ+wQ2pZ4hVqcAQagLNPPnLvicItmTxS7cNbyfT9PQe/6w
BM/lUAvlCHeQB2x9JQ8kQM5x71EgCBPMHW4lCt2gW6BlDZsbXaRLyV1L+OdiG+4=
=hJG8
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/51d6f901.4030...@gmail.com



apt-cache show packages long description missing.

2013-07-08 Thread Franco Martelli
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I downloaded iso dvd images using jigdo then mounted in loop to keep
updated my system with Wheezy 7.1 amd64 iso images, my sources.list:

# egrep -v ^# /etc/apt/sources.list
deb file:/media/sdb1/wheezy/dvd-1/ wheezy main contrib
deb file:/media/sdb1/wheezy/dvd-2/ wheezy main contrib
deb file:/media/sdb1/wheezy/dvd-3/ wheezy main contrib
deb file:/media/sdb1/wheezy/dvd-4/ wheezy main contrib
deb file:/media/sdb1/wheezy/dvd-5/ wheezy main contrib
deb file:/media/sdb1/wheezy/dvd-6/ wheezy main contrib
deb file:/media/sdb1/wheezy/dvd-7/ wheezy main contrib
deb file:/media/sdb1/wheezy/dvd-8/ wheezy main contrib
deb file:/media/sdb1/wheezy/dvd-9/ wheezy main contrib
deb file:/media/sdb1/wheezy/dvd-10/ wheezy main contrib

deb http://security.debian.org/ wheezy/updates main contrib


They are directories mount points to each iso image. I added
20language file to /etc/apt/apt.conf.d/ directory in order to have
english translation when descriptions are shown:

# cat /etc/apt/apt.conf.d/20language
Acquire::Languages en;

# aptitude update
Ign file: wheezy Release.gpg
Ign file: wheezy Release.gpg
Ign file: wheezy Release.gpg
Ign file: wheezy Release.gpg
Ign file: wheezy Release.gpg
Ign file: wheezy Release.gpg
Ign file: wheezy Release.gpg
Ign file: wheezy Release.gpg
Ign file: wheezy Release.gpg
Ign file: wheezy Release.gpg
Get: 1 file: wheezy Release [18,6 kB]
Get: 2 file: wheezy Release [17,3 kB]
Get: 3 file: wheezy Release [13,8 kB]
Get: 4 file: wheezy Release [17,7 kB]
Get: 5 file: wheezy Release [17,7 kB]
Get: 6 file: wheezy Release [16,0 kB]
Get: 7 file: wheezy Release [15,5 kB]
Get: 8 file: wheezy Release [17,7 kB]
Get: 9 file: wheezy Release [16,0 kB]
Get: 10 file: wheezy Release [12,1 kB]
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://security.debian.org wheezy/updates/main amd64 Packages
Hit http://security.debian.org wheezy/updates/contrib amd64 Packages
Hit http://security.debian.org wheezy/updates/contrib Translation-en
Hit http://security.debian.org wheezy/updates/main Translation-en

When I show details of a package with apt-cache command I got a short
description of the searched package. It seems that english translation
files aren't merged into /var/lib/apt/lists/ directory:

# apt-cache show hello
Package: hello
Version: 2.8-2
Installed-Size: 553
Maintainer: Santiago Vila sanv...@debian.org
Architecture: amd64
Depends: libc6 (= 2.4), dpkg (= 1.15.4) | install-info
Description: The classic greeting, and a good example
Homepage: http://www.gnu.org/software/hello/
Description-md5: b7df6fe7ffb325083a3a60819a7df548
Tag: devel::examples, devel::packaging, implemented-in::c,
 interface::commandline, role::program, scope::utility, suite::debian,
 suite::gnu
Section: devel
Priority: optional
Filename: pool/main/h/hello/hello_2.8-2_amd64.deb
...

Please any help that it fix this behavior should be really
appreciated. Thank in advance.

Regards.
- -- 
Franco Martelli.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJR2rzQAAoJEFM/ma7n+T+7ZXQH/jSk0ta5ZVbl2ElCivnkd9d2
bv3ooDUDxptp9kCBdsfVvsNv3MjJlb6G/V+u0c10iLAxjDfrP9U7JTDexpWX4sy9
9K1Omfr2Fxaatht6O905hPS15fKh7ItJ+bacBlGCYan2gjQRUQ+FxrNs/BKERIVu
n2tJJnGk+ITaSK0jCUSrqbSeqYu+2RliN6nq9HPYd0x9AYaF7HkJwJbptB+wpLcD
wI/wRBHuQuKlV4jmMxv3jR5FIljz+5RhnmoNrVPAPliIZMxJv3jBxfGV1rTpPX72
McU2ZXHrlUqzKSo2VSS3IMFN4ade2vCpxuV2UGbEjxbTBVoEQuBUuUQ/lWMX6bU=
=0TJF
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/51dabcd0.8070...@gmail.com



Re: apt-cache show packages long description missing.

2013-07-09 Thread Franco Martelli
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I notice that if I copy Translation-en file from dvd iso image to
/var/lib/apt/lists directory translations are shown:

# cd /var/lib/apt/lists
/var/lib/apt/lists# cp
/media/sdb1/wheezy/dvd-1/dists/wheezy/main/i18n/Translation-en.gz
_media_sdb1_wheezy_dvd-1_dists_wheezy_main_i18n_Translation-en.gz
/var/lib/apt/lists# gunzip $_
/var/lib/apt/lists# apt-cache show less
Package: less
Version: 444-4
Installed-Size: 286
Maintainer: Anibal Monsalve Salazar ani...@debian.org
Architecture: amd64
Depends: libc6 (= 2.11), libtinfo5, debianutils (= 1.8)
Description-en: pager program similar to more
 This package provides less, a file pager (that is, a memory-efficient
 utility for displaying text one screenful at a time). Less has many
 more features than the basic pager more. As part of the GNU project,
 it is widely regarded as the standard pager on UNIX-derived systems.
 .
 Also provided are lessecho, a simple utility for ensuring arguments
 with spaces are correctly quoted; lesskey, a tool for modifying the
 standard (vi-like) keybindings; and lesspipe, a filter for specific
 types of input, such as .doc or .txt.gz files.
Homepage: http://www.greenwoodsoftware.com/less/
Description-md5: a2c2d2eff1fb9762b71faf7540cf8dce
Tag: implemented-in::c, interface::text-mode, role::program,
scope::utility,
 uitoolkit::ncurses, use::viewing, works-with::text
Section: text
Priority: standard
Filename: pool/main/l/less/less_444-4_amd64.deb
Size: 134872
...

It works until aptitude update command is run, because it will
delete the file I copied. How should I do to get aptitude update
merges all main and contrib (of the 10 dvd iso mounted in loop)
Translation-en files into /var/lib/apt/lists directory? Please help I
can't figure out how it happens.
Thank in advance, regards.
- -- 
Franco Martelli.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJR3DWgAAoJEFM/ma7n+T+7vT8H/ieEr+TrZh0xi/cfD6SCrw7I
Oihc+yWrebf+RAVZgidQgYv0Egu2e2zqZEO9jWPXanZiCkWKyFgmjFUndeav4Pl+
4d0q2QnTXucdjJBjcwYz5EtAAGqDVXos3R0mtP2D/8bDYHNjrQ4GMVkhrw5iA0Rc
KRTl1L48tjBhnM4ynu7QGQKx/CIa/u1VpArwy5cSY5OlljalHAJd5eo1GO59efqv
fBsa5R7aP5f7aZhL7/kOqOH5Gfiesbhiwz2Ut9TclyNma6QRiWsWwS4W4iteebgC
b4M9LaOsH7RYiMr0mlmWnHMIHvB0rOk6YCMFmGOUDAXg/hghm/nPVWa4RvlW1xY=
=NJGM
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/51dc35a1.1090...@gmail.com



Compiling Linux with "bdver2" gcc optimization option

2019-08-13 Thread Franco Martelli
: can't find
jump dest instruction at .text+0xba6
arch/x86/kvm/pmu.o: warning: objtool: reprogram_fixed_counter()+0xbb:
can't find jump dest instruction at .text+0x37d
kernel/rcu/srcutree.o: warning: objtool: process_srcu()+0x50: stack
state mismatch: cfa1=7+128 cfa2=7+120
kernel/rcu/srcutree.o: warning: objtool: __call_srcu()+0xba: sibling
call from callable instruction with modified stack frame
arch/x86/kernel/alternative.o: warning: objtool:
apply_alternatives()+0x10f: stack state mismatch: cfa1=7+336 cfa2=7+328
arch/x86/kernel/alternative.o: warning: objtool: apply_paravirt()+0x118:
stack state mismatch: cfa1=7+296 cfa2=7+288
arch/x86/kvm/hyperv.o: warning: objtool:
kvm_hv_notify_acked_sint()+0x4a: can't find jump dest instruction at
.text+0x20c
mm/madvise.o: warning: objtool: swapin_walk_pmd_entry()+0x1ec: stack
state mismatch: cfa1=7+88 cfa2=7+80
mm/madvise.o: warning: objtool: madvise_free_pte_range()+0x39e: stack
state mismatch: cfa1=7+136 cfa2=7+128
arch/x86/kernel/tsc_msr.o: warning: objtool: cpu_khz_from_msr()+0x99:
can't find jump dest instruction at .text+0x36
kernel/rcu/tree.o: warning: objtool: rcu_exp_wait_wake()+0x224: return
with modified stack frame
kernel/rcu/tree.o: warning: objtool:
_synchronize_rcu_expedited.constprop.55()+0x1c7: stack state mismatch:
cfa1=7+192 cfa2=7+184
arch/x86/kernel/tsc.o: warning: objtool:
pit_hpet_ptimer_calibrate_cpu()+0x1c4: stack state mismatch: cfa1=7+112
cfa2=7+104
arch/x86/kernel/tsc.o: warning: objtool:
tsc_refine_calibration_work()+0xd8: stack state mismatch: cfa1=7+48
cfa2=7+40


what does it means? Is there a way to get the kernel optimized for my
CPU as it happened in the previous Debian versions?

Thanks for any answer
-- 
Franco Martelli



Re: Compiling Linux with "bdver2" gcc optimization option

2019-08-16 Thread Franco Martelli
rate
> (careful, glxgears may get capped to 60Hz when some accelerators
> are in use, prefer fancier demos.  ;)
> 
> There is also this other thread dealing with kernel latency
> measures; you may find a few useful tools listed in this
> discussion:
> 
>   https://lists.debian.org/debian-user/2019/08/msg00851.html
> 
> Or just see how perform your usual programs, if there are
> visible improvements.
> 
> Have fun,  :)
> 
Yes I agree the optimization won't impact on performance in a way that
is perceptively by an human there are tweak more important in the kernel
such as CONFIG_HZ_1000=y
I always take measurement of the time employee by kernel compilation out
of curiosity.
Thanks again for the tips, best regards

-- 
Franco Martelli



Re: Compiling Linux with "bdver2" gcc optimization option

2019-08-19 Thread Franco Martelli
I was thinking to submit a bug report against gcc-8 package. Now that I
have a work around, "bdver1" compiles without warnings, I can say
enough, what do you think about?
Best regards

-- 
Franco Martelli



Re: Compiling Linux with "bdver2" gcc optimization option

2019-08-14 Thread Franco Martelli
On 13/08/19 at 19:35, Étienne Mollier wrote:
> Hi Franco,
> 
> I'm not fluent enough in GCC 8 for x86_64 to answer to all the
> various warnings you indicated.  Some may be harmless, and some
> may eat your data.  I would do a few tests with a virtual
> machine supporting bdver2 instructions before going live anyway,
> and backups stored far away from the machine once testing, and
> possibly without contact with that kernel.

I didn't boot that kernel, I don't rely on it. Thanks if you can
investigate on what happens during compilation process.
> 
> I also recall having had to move from ORC to DWARF unwinder to
> get the build working, but that was on old OS levels, not on
> newer ones, due to the libelf being too old.
> 
> Some of these seem related to CPU vulnerabilities mitigations,
> and might be worth a bug report against the kernel, either
> Debian or upstream, assuming it also appears /without/ your
> -march=bdver2 flag:
> 
>> mm/memory.o: warning: objtool: If this is a retpoline, please patch it in 
>> with alternatives and annotate it with ANNOTATE_NOSPEC_ALTERNATIVE.

I had asked to debian-kernel mailing list but nobody answered, maybe
could be something related to gcc 8 since all previous Debian kernel
versions worked with bdver2 optimization
> 
> Note that someone from the Gentoo community has developed a set
> of patches to expand the possibilities of optimization for the
> kernel, depending on Linux and GCC versions.  You may be
> interested in the following one for Buster:
> 
>   
> https://github.com/graysky2/kernel_gcc_patch/blob/master/enable_additional_cpu_optimizations_for_gcc_v8.1%2B_kernel_v4.13%2B.patch
> 
> These mainly apply changes in various code sections to put the
> flags in place, and provide options through the .config file of
> the source code.  I haven't tested it, but I don't believe this
> will solve your warnings, reading through the patch.  Yet it
> does a bit more than just replacing the compiler flag: there is
> notably a component related to L1 cache shift which is modified
> too.  That should bring an appreciable performance boost if it
> corrects cache line mismatch.

Thanks, but I don't want to patch the kernel, that change to the
Makefile was enough simple in order to get the optimization that I
looking for.
> 
> Please be aware that CPU optimizations in kernel, targeting Zen
> and Skylake in this case, seemed to be hardly detectable, or
> even counter productive, with various computer usage patterns,
> according to measures done by Phoronix earlier this year:
> 
>   https://www.phoronix.com/scan.php?page=article=linux-50-march=1
> 
> Of course this may not be the case for your own typical load,
> but I would recommend to do a few measures, to assess the actual
> performance gain on your machine with, and without, CPU specific
> compiler optimizations.

I never experimented benchmark with and without bdver2 option, I assumed
that if it exists an option for k8 in the kernel then changing it to
bdver2 it would be good (I hope).

-- 
Franco Martelli



Re: Compiling Linux with "bdver2" gcc optimization option

2019-08-20 Thread Franco Martelli
On 19/08/19 at 21:18, Étienne Mollier wrote:
> Franco Martelli, on 2019-08-19:
>> I was thinking to submit a bug report against gcc-8 package. Now that I
>> have a work around, "bdver1" compiles without warnings, I can say
>> enough, what do you think about?
> 
> I don't know, to me it sounds more like little bugs on kernel
> side,
[ ... ]
> Gcc-8 on its side is just trying its best to help one to develop
> better code.  Its heuristics may not apply very well on kernel
> object code however.  If you can reproduce this issue and
> identify it as a false positive with a sample code, that is
> another story of course.

you're right, I compiled tar and hello program with -march=bdver2 option
without problem so gcc-8 is sure. I saw that all warnings that they
appear during kernel compilation process concern "objtool"

mm/memory.o: warning: objtool: remap_pfn_range()+0xd5: unsupported
intra-function call

that it's part of linux-kbuild-4.19 package maybe I should submit a bug
report to this package or is another one a better choice?

Best regards

-- 
Franco Martelli



Re: Debian on raspberrypi: failed to configure wlan0

2019-12-19 Thread Franco Martelli
On 19/12/19 at 08:39, Bonno Bloksma wrote:
> Hello Franco,
> 
> So just to be sure we understand you correctly, and anyone else who thinks 
> this is the solution...
> 
> []
>> Thanks for your answer I've just solved thank reading this link [1] it was 
>> the gateway line once commented all work fine. Now the wlan0 configuration 
>> file is:
>>
>>
>>
>> ~# cat /etc/network/interfaces.d/wlan0
>> # allow-hotplug wlan0
>> iface wlan0 inet static
>> address 192.168.0.9
>> netmask 255.255.255.0
>> network 192.168.0.0
>> broadcast 192.168.0.255
>> # gateway 192.168.0.1
>> wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
>>
>> Debian on raspberrypi works great I've cups, bind9, isc-dhcp-server running 
>> fine, if you are unsure give it a try.
>>
>>
>> [1]
>> https://raspberrypi.stackexchange.com/questions/13895/solving-rtnetlink-answers-file-exists-when-running-ifup
> 
> The discussion behind this links talks about the fact that a system can have 
> only one default gateway, there can be only one gateway statement in the 
> interfaces file(s).
> As you show us the config for one file in the interfaces.d/ directory, can we 
> assume you have another interface that is up and running for which there is a 
> separate file in interfaces.d/ ?
> That file might then not even have a gateway statement if it used dhcp.
> 
> Bonno Bloksma
> 
Hello Bonno,

I apologize if I didn't post my entire network configuration in
/etc/network/interfaces.d/ there is also a file called eth0 besides wlan0:

~# cat /etc/network/interfaces.d/eth0
auto eth0

iface eth0 inet static
   address 192.168.0.7
   netmask 255.255.255.0
   network 192.168.0.0
   broadcast 192.168.0.255
   gateway 192.168.0.1

The ifup command parse the eth0 file when it attempt to bring up wlan0
as you can see if is set in verbose mode:

~# ifup -vvv wlan0
ifup: reading directory /etc/network/interfaces.d
ifup: parsing file /etc/network/interfaces.d/eth0
ifup: parsing file /etc/network/interfaces.d/wlan0

ifup: configuring interface wlan0=wlan0 (inet)
/usr/sbin/ip addr flush dev wlan0
/bin/run-parts --exit-on-error --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant
wpa_supplicant: wpa-driver nl80211,wext (default)
wpa_supplicant: /sbin/wpa_supplicant -s -B -P
/run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -c
/etc/wpa_supplicant/wpa_supplicant.conf
Starting /sbin/wpa_supplicant...
wpa_supplicant: creating sendsigs omission pidfile:
/run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
wpa_supplicant: ctrl_interface socket located at
/var/run/wpa_supplicant/wlan0
/sbin/ip addr add 192.168.0.9/255.255.255.0 broadcast 192.168.0.255
  dev wlan0 label wlan0
/sbin/ip link set dev wlan0   up

/bin/run-parts --exit-on-error --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/avahi-daemon
run-parts: executing /etc/network/if-up.d/bind9
run-parts: executing /etc/network/if-up.d/mountnfs
run-parts: executing /etc/network/if-up.d/wpasupplicant

When ifup parse eth0 file find the gateway statement and when parse
wlan0 it found again a gateway statement for the same address therefore
it fails to bring up the interface.
So the solution is to comment/remove the gateway statement in wlan0, for
this LAN configuration (I thought).

Best regards
-- 
Franco Martelli



Debian on raspberrypi: failed to configure wlan0

2019-12-18 Thread Franco Martelli
Hi everybody,

Following the instructions reported on the Debian unofficial port
home-site [1] I successful installed Debian on raspberrypi 3B 2016 all
works fine for my needs but configuring the built-in wi-fi interface
apparently it works but reporting errors:

~# ip addr show dev wlan0
3: wlan0:  mtu 1500 qdisc noop state DOWN group
default qlen 1000
link/ether b8:27:eb:8b:10:67 brd ff:ff:ff:ff:ff:ff

~# ifup wlan0
RTNETLINK answers: File exists
ifup: failed to bring up wlan0

the ifup command reports that it fails to bring up but the interface is
configured:

~# ip addr show dev wlan0
3: wlan0:  mtu 1500 qdisc
pfifo_fast state DORMANT group default qlen 1000
link/ether b8:27:eb:8b:10:67 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.9/24 brd 192.168.0.255 scope global wlan0
   valid_lft forever preferred_lft forever

if I try to de-configure the interface it fails:

~# ifdown wlan0
ifdown: interface wlan0 not configured

How can I de-configure wlan0 and why do I get errors when I bring up
with ifup command?
Some useful information about my configuration:

~# cat /etc/network/interfaces.d/wlan0
# allow-hotplug wlan0
iface wlan0 inet static
address 192.168.0.9
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

~# cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
update_config=1
network={
ssid="myessid"
psk=dfd452fedacd69d6d54582770dc93acebfb6f2ec2aac7d2e3f24e6ecacafc487
}

~# systemctl is-enabled wpa_supplicant
disabled

Thanks for any answer, best regards.

[1] https://salsa.debian.org/raspi-team/image-specs
-- 
Franco Martelli



Re: Debian on raspberrypi: failed to configure wlan0

2019-12-18 Thread Franco Martelli
On 18/12/19 at 17:32, Nektarios Katakis wrote:
> 
> You should try to associate the wireless nic with your wifi by running
> only wpa_supplicant to see if that succeeds (the link state should
> change - the mode in the `iwconfig` command should be managed).
> 
> For example this is how my config looks like
> ```
> allow-hotplug wlx000f00bf4a3f
> iface wlx000f00bf4a3f inet static
> address 192.168.1.71
> netmask 255.255.255.0
> gateway 192.168.1.254
> wpa-ssid ssid-name
> wpa-psk
> e8918bce6980814557b664fb52bda4d342174d2a2c95dd06078d7a29851de799
> ```
> 
> Hope this helps.

Thanks for your answer I've just solved thank reading this link [1] it
was the gateway line once commented all work fine. Now the wlan0
configuration file is:

~# cat /etc/network/interfaces.d/wlan0
# allow-hotplug wlan0
iface wlan0 inet static
address 192.168.0.9
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
# gateway 192.168.0.1
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Debian on raspberrypi works great I've cups, bind9, isc-dhcp-server
running fine, if you are unsure give it a try.


[1]
https://raspberrypi.stackexchange.com/questions/13895/solving-rtnetlink-answers-file-exists-when-running-ifup
-- 
Franco Martelli



Re: Home made backup system

2019-12-25 Thread Franco Martelli
On 18/12/19 at 18:02, rhkra...@gmail.com wrote:
> Aside / Admission: I don't backup all that I should and as often as I should, 
> so I'm looking for ways to improve.  One thought I have is to write my own 
> backup "system" and use it, and I've thought about that a little, and provide 
> some of my thoughts below.
> ...

I was amazed that nobody yet considered tar. My backup with tar is based
to a script that invoke tar reading two hidden file .tarExclude and
.tarInclude:

~# cat .tarExclude
/home/myuser/.cache
/home/myuser/.kde
/home/myuser/.mozilla/firefox/.default
/home/myuser/VirtualBox\ VMs
/home/myuser/Shared
/home/myuser/Sources
/home/myuser/Video
/home/myuser/Scaricati
/home/myuser/Modelli
/home/myuser/Documenti
/home/myuser/Pubblici
/home/myuser/Desktop
/home/myuser/Immagini
/home/myuser/Musica
/home/myuser/linux-source-4.19

~# cat .tarInclude
/home/myuser
/root/
/etc/
/usr/local/bin/
/usr/local/etc/
/boot/grub/grub.cfg
/boot/config-4.19.67

then the script invoke tar command this way:

/bin/tar -X /root/.tarExclude -zcpvf /tmp/$f -T /root/.tarInclude

$f variable is the filename that it'll be moved to USB stick once tested
with the command:

/bin/tar ztf /tmp/$f >/dev/null

one thing you must take care is that the -X switch must came before of
the -T switch otherwise tar command fails.
HTH

Merry Xmas

-- 
Franco Martelli



vlc: unable to set resolution at command line

2020-06-15 Thread Franco Martelli
Hi everybody,

I'm on Debian Buster 10.4 vlc version: "VLC media player 3.0.10
Vetinari". I want to run vlc at command line setting the resolution of
720x576 but the vlc's window start at the resolution of the mp4 file.
Under Preference->Interfaces->Main Interfaces->Qt I've disabled: "Resize
interface to the native video size" without result
If you want to temporally  bypass your localization and see vlc's
interface in English start vlc this way:

~$ LC_ALL=C vlc

I googled a lot without luck and I tried many command line parameters
but none of them did the trick:

~$ vlc --width=720 --height=576 Junior\ Senior\ -\ Move\ Your\ Feet\
\(Official\ music\ video\,\ HD\)-SPlQpGeTbIE.mp4

~$ vlc --video-filter=transform --scene-width=720 --scene-height=576
Junior\ Senior\ -\ Move\ Your\ Feet\ \(Official\ music\ video\,\
HD\)-SPlQpGeTbIE.mp4

~$ vlc --preferred-resolution 720 Junior\ Senior\ -\ Move\ Your\ Feet\
\(Official\ music\ video\,\ HD\)-SPlQpGeTbIE.mp4

If you want to perform some test you can download from YouTube this file:

~$ youtube-dl https://www.youtube.com/watch?v=SPlQpGeTbIE

The file's resolution is at 450x360 I want that vlc plays it at 720x576
does anybody know how to perform this?

Thanks in advance for any answer, kind regards

-- 
Franco Martelli



mailutils-pop3d not able to get it working

2022-01-25 Thread Franco Martelli

Hi,

I posted a question on Debian User Forums [1]. What I need is to read my 
user mailbox (/var/mail/myuser) via a pop3 daemon, is it possible? How 
to accomplish this?


Thanks in advance

[1] https://forums.debian.net/viewtopic.php?f=5=151251
--
Franco Martelli



Re: mailutils-pop3d not able to get it working

2022-01-25 Thread Franco Martelli

On 25/01/22 at 19:46, Tim Woodall wrote:


I use dovecot but imap rather than pop3. I used to use mailutils-pop3d
but I don't remember why I changed. dovecot does support pop3.

Tim.



mailutils-pop3d is a nightmare I don't know how to setup it.
Do you know if dovecot have access to system email stored in /var/mail/... ?

--
Franco Martelli



Re: mailutils-pop3d not able to get it working

2022-01-26 Thread Franco Martelli

On 26/01/22 at 03:39, pa...@quillandmouse.com wrote:


I use popa3d. It assumes email addresses of myuser@mydomain, with the
same email password as the user's password on the system. No setup
required. User billw on clifford.mydomain has an email of
billw@clifford.mydomain and he uses the same password as his user on
clifford.mydomain.

Paul

Does popa3d require to setup TLS? I didn't need to encrypt the email a 
mail server that it listens to 110 port it is fine for me.


--
Franco Martelli



Re: How to use dmsetuup?

2023-11-06 Thread Franco Martelli

On 03/11/23 at 17:27, gene heskett wrote:

Greetings all;
As usual, the man page may as well be written in swahili. The NDE 
syndrome, meaning No D-d Examples.


I have those 2 2T SSD's with a gpt partition table on both, allocated as 
sdc1 and sdk1, formatted to ext4, named and labeled as lvm1 and lvm2.

Temp mounted as sdc1 and sdk1 to /mnt/lvm1 and /mnt/lvm2

How do I create a single managed volume of labels lvm1 and lvm2 of these 
to make a single volume that I can then rsynch /home to it, then switch 
fstab to mount it as /home on a reboot?




How about to use debian-installer: burn the dvd image of Bookworm 12.2, 
put into the DVD drive then reboot the system. You have to choose 
"Expert Install" and it's all menu driven from RAID device creation to 
LVM logical device and logical volume names.

I don't know if you can do that from debian-installer rescue disk mode.

HTH
kinds regards

--
Franco Martelli



Linux source 6.1.38 with Debian patches

2023-10-12 Thread Franco Martelli

Hi,

I've trouble with the 6.1.55 kernel version, my system had become 
unstable, I suspect that firefox-esr doesn't work properly with nouveau 
driver or vice-versa.
I've compiled the kernel of the 6.1.38 time ago and I've installed the 
resulting package so now I have the kernel installed but no longer the 
package (I deleted it after installation... big mistake).


The system seems rock solid with 6.1.38 so I'm looking for the Linux 
source packages of the kernel 6.1.38 that is a previous kernel release 
of the current stable distribution (maybe 12.1) does anybody know where 
can I find it?


Thanks in advance, kind regards
--
Franco Martelli



Re: Linux source 6.1.38 with Debian patches

2023-10-12 Thread Franco Martelli

On 12/10/23 at 17:47, Michael Kjörling wrote:

On 12 Oct 2023 17:13 +0200, from martelli...@gmail.com (Franco Martelli):

The system seems rock solid with 6.1.38 so I'm looking for the Linux source
packages of the kernel 6.1.38 that is a previous kernel release of the
current stable distribution (maybe 12.1) does anybody know where can I find
it?


I think you want https://snapshot.debian.org/package/linux-signed-amd64/

More generally, start at https://tracker.debian.org/pkg/linux-signed-amd64
which is linked from https://packages.debian.org/bookworm/linux-image-amd64
as "developer information" in the right-hand side bar.



Thanks for your answer Michael,

No, I didn't find the whole kernel source code under 
"linux-signed-amd64". I don't know for what that files are useful for, 
however what I did was to search "linux-source-6.1" in the binary 
packages section of the [1] Debian snapshot homepage, the resulting page 
lists all 6.1 kernel sources packages.


[1] https://snapshot.debian.org/

--
Franco Martelli



Custom kernel 6.1.55 almost unusable cause nouveau

2023-10-18 Thread Franco Martelli

Hi,

I compile the kernel for many years, I optimize the kernel compile 
process using the bdver1 gcc optimization option applying a patch to 
"arch/x86/Makefile" in the Linux source tree path.


Sadly with the 6.1.55 things went wrong it freeze many time, the 6.1.52 
is much more stable with nouveau driver, I don't know why.
I attach two files, the kernel log and the .config used for compile the 
6.1.55 kernel version. The log file is very large, I suggest to filter 
it with "grep -v" command in order to avoid duplicate entries.


I notice that in the kernel configuration program (make menuconfig) for 
nouveau driver there are four debug options: CONFIG_NOUVEAU_DEBUG, 
CONFIG_NOUVEAU_DEBUG_DEFAULT, CONFIG_NOUVEAU_DEBUG_MMU and 
CONFIG_NOUVEAU_DEBUG_PUSH. If you want I can set/enable those options to 
have more debug information.


Does anybody have any clue to make 6.1.55 reliable on my system?

Thank you in advance!

--
Franco Martelli

config-6.1.55.xz
Description: application/xz


kernel-nouveau.log.xz
Description: application/xz


Re: Automatically installing GRUB on multiple drives

2024-01-24 Thread Franco Martelli

On 24/01/24 at 11:17, Nicolas George wrote:

Which leads me to wonder if there is an automated way to install GRUB on
all the EFI partitions.


If I run "grub-install" with multiple device I got

# LCALL=C grub-install /dev/sd[a-d]
grub-install: error: More than one install device?.

maybe it is a deprecated action for grub to install to multiple device, 
so this should it be investigated?


Cheers,
--
Franco Martelli



Re: D12 Installer does not recognize rtl8xxxu wifi

2024-02-08 Thread Franco Martelli

On 08/02/24 at 19:24, Felix Natter wrote:

Dear debian-users,

I put this on a stick and booted it:
debian-live-12.4.0-amd64-gnome.iso

When I boot the live option, the network is immediately loaded and I can
connect to a WIFI network. However, if I use the same stick
(or one with debian 12.4.0 netinst) with the installation option,
the LAN is recognized, but WLAN is not.


Hope I'm wrong, but I've heard that D-I has trouble with USB devices 
other than keyboard and mouse. The rtl8xxxu module is usually for USB 
NIC, if it's the case I think you can rely only to LAN for the installation.


Cheers,
--
Franco Martelli



Re: Does "LC_ALL=C" work on all shells?

2024-02-14 Thread Franco Martelli

On 13/02/24 at 23:23, Nicolas George wrote:

Will Mengarini (12024-02-13):

* Greg Wooledge  [24-02/13=Tu 15:59 -0500]:

In csh, you need to use env.  Like this:

 


What Greg posted also works, because it's an
invocation of the 'env' command, not csh syntax.


Yes. What made Greg's statement false was not the fact that it does not
work but the verb “need”.


What you posted also works, but it runs the command in a subshell of
csh, so I doubt it gains efficiency over running the command under env.


env is also executed in a subshell, but unlike what I posted, env will
also require an exec() and probably some dynamic linking.



Well, I'll go with env command syntax for shells portability. I was 
asking this because I want to suggest a change to the DDP (Debian 
Documentation Project) members for the releases notes documentation ¹


The change I want to suggest is to add "env LC_ALL=C" to the "script" 
command:


# env LC_ALL=C script -t 2>~/upgrade-bookwormstep.time -a 
~/upgrade-bookwormstep.script


I think that a recorded session with the output of the commands in 
English is better then a localized session for debugging purposes.


Thanks to all for the feedback!

¹ 
https://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html#record-session

--
Franco Martelli



Re: Does "LC_ALL=C" work on all shells?

2024-02-14 Thread Franco Martelli

On 14/02/24 at 17:48, Greg Wooledge wrote:

On Wed, Feb 14, 2024 at 05:35:59PM +0100, Franco Martelli wrote:

On 14/02/24 at 17:15, Greg Wooledge wrote:

# env LC_ALL=C script -t 2>~/upgrade-bookwormstep.time -a
~/upgrade-bookwormstep.script

That command is already using Bourne family shell syntax (the 2> part)
so you can drop the env.  It'll fail in csh regardless.  On the other
hand, the env doesn't hurt anything.  It's just extra typing.



Ah! However it's needed for csh users so they are warned, if it's extra
typing it doesn't hurt, thought.


csh cannot redirect stdout and stderr separately.  You can either redirect
stdout only, or redirect them both into the same file.  It has *nothing*
equivalent to >file1 2>file2.


A new question arise spontaneously: how can csh users run a "script" 
saved session using "scriptreplay" command? In the §4.4.1 "Recording the 
session" paragraph ¹  I see this syntax:


# scriptreplay ~/upgrade-bookwormstep.time ~/upgrade-bookwormstep.script

That it uses both stderr and stdout saved separately. Maybe they have to 
use another syntax or forcibly run a Bourne shell as you wrote below:




The usual recommendations for csh users who need to do this are either:

1) Run sh, and then run the command.
2) sh -c 'long command with >file1 2>file2'


Then run env command at the beginning it is useless.

Thanks again

¹ 
https://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html#record-session

--
Franco Martelli



Re: Does "LC_ALL=C" work on all shells?

2024-02-15 Thread Franco Martelli

Thanks Max,

On 15/02/24 at 03:28, Max Nikulin wrote:
# env LC_ALL=C script -t 2>~/upgrade-bookwormstep.time -a 
~/upgrade-bookwormstep.script


Perhaps LC_ALL=C.UTF-8 is safer. At least several years ago some python 
scripts (unrelated to Debian upgrade however) failed trying to log e.g. 
non-ascii file paths, etc.


I would reset LANGUAGE as well otherwise some programs may use localized 
messages.


Finally, some users might have LC_ALL (despite it is not recommended) or 
LANGUAGE set in a file like ~/.bashrc. That is why the following 
approach may be more reliable. Run commands within the "script" session


     LANG=C.UTF-8; LANGUAGE=; export LANG LANGUAGE

with a note concerning csh. To affect messages generated by shell 
itself, "export" is separated from setting of the variables.


Doesn't LC_ALL=C setting override LANG or LANGUAGE settings? On my 
system I have:


~$ env | grep LANG
LANGUAGE=
LANG=it_IT.UTF-8

and LC_ALL=C override the LANG setting when used inline of the command. 
This approach is to cover all cases, my goal is to do apt/apt-get 
commands output in English when they are executed into a "script" 
session. Thank to Greg's contribute I think I've reached it:



On 14/02/24 at 21:55, Greg Wooledge wrote:

The man page says:

-t[file], --timing[=file]
Output timing data to standard error, or to file when given. This
option is deprecated in favour of --log-timing where the file
argument is not optional.

And:

-T, --log-timing file
Log timing information to the file. Two timing file formats are
supported now. The classic format is used when only one stream
(input or output) logging is enabled. The multi-stream format is
used on --log-io or when --log-in and --log-out are used together.
See also --logging-format.

One of these paragraphs should give a solution that avoids needing 2>.


The following "script" command syntax should work on all shells (tested 
only in Bash):


# env LC_ALL=C script -T ~/upgrade-bookwormstep.time -a 
~/upgrade-bookwormstep.script



--
Franco Martelli



Does "LC_ALL=C" work on all shells?

2024-02-13 Thread Franco Martelli

Hi,

If I want English output of an application I set the environment 
variable LC_ALL to "C" inline of the command e.g.:


~# LC_ALL=C apt install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

If I don't set the variable the apt command return output localized:

~# apt install
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze... Fatto
Lettura informazioni sullo stato... Fatto
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.

This is useful when it's needed to submit a bug report or to speak with 
other people in one international mailing list like this :) (apropos 
sorry for my English).


So the question is: does anybody know if this syntax works on all shells 
other than bash? csh, korn, dash, zsh …


Thanks in advance, kind regards
--
Franco Martelli



Re: Does "LC_ALL=C" work on all shells?

2024-02-16 Thread Franco Martelli

On 16/02/24 at 13:17, Greg Wooledge wrote:

On Fri, Feb 16, 2024 at 09:13:40AM +0200, Teemu Likonen wrote:

In my opinion it's often too much to set LC_ALL=C because it changes
charset to ASCII (LC_CTYPE).


It depends on what you're doing, of course.  If the purpose is to
normalize error messages so that you can report your issue to an
English-only mailing list, and if LC_ALL=C doesn't mangle the
output beyond recognition, then it might be good enough.

The OP of this thread seemed to have a goal of altering Debian
documentation to have *everyone* performing a dist-upgrade run
their dist-upgrade sessions under LC_ALL=C for reasons that I
can't remember (or which weren't stated).  I'm uncertain what the
larger goal is there -- many of these users would probably have
difficulty reading their own session logs afterward.



It was stated here:
https://lists.debian.org/debian-user/2024/02/msg00592.html

--
Franco Martelli



Re: Does "LC_ALL=C" work on all shells?

2024-02-16 Thread Franco Martelli

On 16/02/24 at 17:44, Greg Wooledge wrote:


If my guess is correct, then I don't support the plan to modify the
Debian documentation to suggest that everyone log their dist-upgrades
in English "because if something goes wrong you will probably ask for
help from an English speaker".  There are way too many layers of
assumptions there.


No it wasn't for this argument that I wrote:


"I think that a recorded session with the output of the commands in
English is better then a localized session for debugging purposes."


In the paragraph in question ¹  I read:

"It is strongly recommended that you use the /usr/bin/script program to 
record a transcript of the upgrade session. Then if a problem occurs, 
you will have a log of what happened, and if needed, can provide exact 
information in a bug report. To start the recording, type:"


Therefore I ran "script" session to upgrade to stable 12.5, then I saw 
that the output of "apt" was localized to my native language. So I 
thought: How can I provide exact information in a bug report if I've 
only localized messages?


For this reason I've asked for feedback here before to propose a change 
to the syntax to the "script" command that IMHO it'd be:


# env LC_ALL=C.UTF-8 script -T ~/upgrade-bookwormstep.time -a 
~/upgrade-bookwormstep.script


or at the place of LC_ALL to use instead LC_MESSAGES as Teemu wrote:

On 16/02/24 at 08:13, Teemu Likonen wrote:

To change programs' output messages to English LC_MESSAGES=C is often
enough. Sometimes LC_TIME and LC_NUMERIC are required too.


but it seems may have drawbacks if other variables are involved.
From the manual page of "script" command the -t option is deprecated in 
favor of -T and the above command has the advantage to be executable in 
all shells (thank to your feedback). A change is required however and 
the command proposed seems to me an improvement.




On Fri, Feb 16, 2024 at 05:35:11PM +0100, Franco Martelli wrote:

however users that have set LC_ALL variable into .bashrc I suppose already
know what are they doing.


No.  No, they do not.  They may *think* they do.  They do not.


Ahah OK they do not.


¹ 
https://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html#record-session

--
Franco Martelli



Re: Everything But Sound with Bookworm

2023-12-28 Thread Franco Martelli

On 27/12/23 at 21:47, Thomas George wrote:

If anyone reading this has suggestion of what is wrong or how to fix it


There is a bug report [1] against linux-image-6.1.0-16-amd64, which 
kernel are you running? ("uname -a" command will tell you)  Have you 
tried to boot with an old kernel image? i.e. linux-image-6.1.0-13-amd64


best regards

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059081
--
Franco Martelli



Re: Change suspend type from kde menu

2023-12-28 Thread Franco Martelli

On 27/12/23 at 21:54, Valerio Vanni wrote:

Il 25/12/2023 04:25, Valerio Vanni ha scritto:
Is there any way to change the way system is suspended from kde menu 
and from power saving in kde settings?


I mean changing the command issued.

I don't know exactly what the default command is, probably systemctl.

/usr/sbin/pm-suspend works better with kernel modules, and I'd like to 
use that


It seems that kde uses "systemctl suspend": if I use it from shell, 
result is bad as if I suspend from menu.


The defective kernel module cx23885: it doesn't support suspend and resume.
It's a module for a DVB-T PCIe card.

If I'm using kaffeine to watch DVB-T channels, I have to close it before 
suspending.

If I leave it opened, kernel module comes up in a broken state.
Closing and opening again kaffeine doesn't help, I have to
-close kaffeine
-rmmod cx23885
-modprobe cx23885
-open kaffeine

This happens suspending with pm-suspend.

Using systemctl, kernel module is broken after every suspend, even if 
kaffeine is not running.




My system, if I don't restart Picom, freeze after a resume from suspend. 
To fix it I've placed this shell script in 
"/usr/lib/systemd/system-sleep/" directory


~$ cat /usr/lib/systemd/system-sleep/00_sleep.sh
#!/bin/sh


# Run from systemd-suspend.service to place under 
/usr/lib/systemd/system-sleep/




PATH=/sbin:/usr/sbin:/bin:/usr/bin

case "$1" in
pre)
#code execution BEFORE sleeping/hibernating/suspending
;;
post)
#code execution AFTER resuming
/usr/bin/sleep 5
/usr/bin/touch /home/frank/.config/picom.conf
/usr/bin/sleep 1
;;
esac

exit 0

So I think you've to do the same once you'll have a system that suspend 
to RAM properly.


kind regards
--
Franco Martelli



Re: Nvidia driver on Debian 10

2024-01-04 Thread Franco Martelli

On 03/01/24 at 19:28, Thomas Anderson wrote:

Thanks a lot, Macro!

it worked. Sorry for delay, I got side tracked with "my day" =)

On 03/01/2024 12:03, Marco Moock wrote:

Am 03.01.2024 um 11:52:59 Uhr schrieb Thomas Anderson:


Here is the output. Wow, a lot.

All those lines with ii at the beginning mean the package is installed.

apt remove *nvidia* -s

Check if the result is ok and then run it without -s (-s only
simulates).





Give it a try to nouveau driver, here it works very well with kernel 
6.1.55 the only drawback I have is to restart the windows compositor 
when I suspend to RAM, good luck


Cheers
--
Franco Martelli



Re: Change suspend type from kde menu

2024-01-03 Thread Franco Martelli

On 02/01/24 at 19:15, Valerio Vanni wrote:

This way, I don't have to remember to close kaffeine before suspend.


If you have Kaffeine always running on your system you can try this script:

#!/bin/sh


# Run from systemd-suspend.service to place under 
/usr/lib/systemd/system-sleep/




PATH=/sbin:/usr/sbin:/bin:/usr/bin

case "$1" in
pre)
#code execution BEFORE sleeping/hibernating/suspending
/usr/bin/killall kaffeine
/usr/bin/sleep 2
/usr/sbin/rmmod cx23885
;;
post)
#code execution AFTER resuming
/usr/sbin/modprobe cx23885
/usr/bin/sleep 3
/usr/bin/su YOURUSER -c 'XDG_RUNTIME_DIR=/run/user/1000 
DISPLAY=:0 XDG_CURRENT_DESKTOP=KDE /usr/bin/kaffeine >/dev/null 2>&1 &'

/usr/bin/sleep 1
;;
esac

exit 0


In place of YOURUSER you've to put your username, if you doubt the 
command "whoami" will tell you. Check if XDG_RUNTIME_DIR, 
XDG_CURRENT_DESKTOP and DISPLAY have the same value that I set, use the 
command "echo $variableName" to verify.
In the end don't put your script in /usr/sbin or /usr/bin use 
/usr/local/bin or /usr/local/sbin instead.


Cheers

--
Franco Martelli



Re: Change suspend type from kde menu

2024-01-12 Thread Franco Martelli

On 11/01/24 at 15:10, Valerio Vanni wrote:
Yes, I tried, but I didn't see any "stop". There is a .Quit, but for 
this I already have "kill" command and I have to start it again.


valerio@newton:~$ busctl --user introspect org.mpris.kaffeine /


Out of curiosity could you post the output of the following command:

~$ busctl --user tree | grep mpris

Don't forget to run Kaffeine first.
Another question, can Kaffeine stop the video? Do you have a "Stop" 
button  to click over?

--
Franco Martelli



Re: smartctl cannot access my storage, need syntax help

2024-01-16 Thread Franco Martelli

On 15/01/24 at 08:43, David Christensen wrote:
This I am still trying to do, the first pass copied all 350G of /home 
but went to the wrong drive, and I had mounted the drive by its label.

It is now /dev/sdh and all labels above it are now wrong. Crazy.
These SSD's all have an OTP serial number. I am tempted to use that 
serial number as a label _I_ can control.



When I built and ran a Debian 2 @ HDD RAID1 using mdadm(8), I did not 
partiton the HDD's -- I gave mdadm(8) the whole drives.


I don't know if it is a good idea, in fact it exists a special partition 
type for RAID array listed in fdisk, I used that for my RAID:


---
~# fdisk -l /dev/sd[a-d]
Disk /dev/sda: 931,51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000DM003-1CH1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x00088ecc

Device Boot StartEndSectors   Size Id Type
/dev/sda1  * 2048 1953523711 1953521664 931,5G fd Linux raid autodetect


Disk /dev/sdb: 931,51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000DM003-1CH1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000d65c9

Device Boot StartEndSectors   Size Id Type
/dev/sdb12048 1953523711 1953521664 931,5G fd Linux raid autodetect


Disk /dev/sdc: 931,51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000DM003-1CH1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000306a3

Device Boot StartEndSectors   Size Id Type
/dev/sdc12048 1953523711 1953521664 931,5G fd Linux raid autodetect


Disk /dev/sdd: 931,51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000DM003-1CH1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x0007a1fe

Device Boot StartEndSectors   Size Id Type
/dev/sdd12048 1953523711 1953521664 931,5G fd Linux raid autodetect
---

I thought it was mandatory for a RAID to partition drives with this 
partition type, am I wrong?


Cheers,

--
Franco Martelli



Re: Change suspend type from kde menu

2024-01-05 Thread Franco Martelli

On 05/01/24 at 20:01, Greg Wooledge wrote:

On Fri, Jan 05, 2024 at 05:52:43PM +0100, Valerio Vanni wrote:

setpriv --reuid "$kafuid" --regid "$kafgid" --init-groups 
--reset-env \
   env XDG_RUNTIME_DIR=/run/user/"$kafuid" $kafdis
XDG_CURRENT_DESKTOP=KDE \
   /usr/bin/kaffeine --lastchannel >/dev/null 2>&1



-
Uid, gid and display are saved and restored, so it can works also for other
users and x servers.
But with setpriv kaffeine was complaining it couldn't find .config/,
database etc and so it wasn't able to start. It seems that was ignorming
original user's home and tried to access root home.

Adding the parameter --reset-env seems to fix, kaffeine restarts.
But, after some minutes, it closes. I don't understand why.


My first guess would be that you also need $HOME to be set, or perhaps
the current working directory, or both.  --reset-env sets HOME, SHELL,
USER, LOGNAME and PATH.  That seems like a reasonable addition.

I have no idea why it crashes later.



Could it be that he doesn't run Kaffeine in the background?

...
/usr/bin/kaffeine --lastchannel >/dev/null 2>&1 &
    ^

Cheers,

--
Franco Martelli



Re: Change suspend type from kde menu

2024-01-12 Thread Franco Martelli

On 12/01/24 at 15:38, Valerio Vanni wrote:

~$ busctl --user tree | grep mpris


Service org.mpris.kaffeine:

Another question, can Kaffeine stop the video? Do you have a "Stop" 
button  to click over?


Yes, it has play/stop button.


I saw that in another post you have find the dbus object and method to 
stop/play Kaffeine:


> Tried, it works on DVB play.
>
> dbus-send --print-reply --dest=org.mpris.kaffeine /Player 
org.freedesktop.MediaPlayer.Stop


As Max replied to that post saying that you could avoid to kill Kaffeine 
 now you can try to:


- stop Kaffeine
- rmmod the module (what happens if you force unloading: -f option)
- suspend
- resume
- modprobe the module
- play Kaffeine

but I bet you've already realized that :)

You can also try to not remove the module and check if stop Kaffeine, 
suspend/resume, play Kaffeine is enough.


--
Franco Martelli



Re: Gnome shell freezes randomly

2023-12-05 Thread Franco Martelli

On 28/11/23 at 13:24, Marlin wrote:
If anyone has any suggestions, I will be glad for them. I know this kind 
of an issue is hard to debug because I do not know how to cause it to 
freeze.


I was suffering of exactly the same system freeze, I'm on KDE desktop it 
happened after a awakening from suspend I think is related to nouveau 
driver, I fixed it restarting the window compositor (I'm using Picom) 
every time I awake the system from suspend with a shell script. Of 
course I've disabled the KDE Kwin_x11 system compositor, sorry but I 
don't know nothing about Gnome, HTH


cheers

--
Franco Martelli



mdam: email when re-syncing

2023-12-06 Thread Franco Martelli

Hi everybody,

I've mdadm that is running on Debian bookworm that it scans my RAID 5 
array. It happened that after a cycle of hard reboot due to system 
freeze, mdadm starts resync the array.


I noticed this looking at the red LED of the HDD activity almost always 
fired up and the "top" utility that it showed mdadm at 100% of cpu usage.


I dunno if all it's OK, here my /proc/mdstat output:

~# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] 
[raid1] [raid10]

md0 : active raid5 sda1[0] sdc1[2] sdd1[3](S) sdb1[1]
  1953258496 blocks super 1.2 level 5, 512k chunk, algorithm 2 
[3/3] [UUU]


unused devices: 

I was amazed that mdadm doesn't warn me of the re-syncing process had 
started via an email. If I run:


~# mdadm --monitor --scan --test --oneshot

I've the email test-message in my inbox regularly. So is it possible to 
be warned via email when an array resync process has started? Of which 
RAID array failures does mdadm warn the user by sending an email?


Thanks in advance
Cheers

--
Franco Martelli



Re: Automatically installing GRUB on multiple drives

2024-01-29 Thread Franco Martelli

On 28/01/24 at 17:17, hw wrote:

On Fri, 2024-01-26 at 16:57 +0100, Nicolas George wrote:

hw (12024-01-26):

How do you make the BIOS read the EFI partition when it's on mdadm
RAID?


I have not yet tested but my working hypothesis is that the firmware
will just ignore the RAID and read the EFI partition: with the scheme I
described, the GPT points to the EFI partition and the EFI partition
just contains the data.

Of course, it only works with RAID1, where the data on disk is the data
in RAID.


Ok if Andy and you are right, you could reasonably boot machines with
an UEFI BIOS when using mdadm RAID :)


There is a sort of HOWTO [1] published in the archLinux wiki [2] but I 
don't advise it because there are many things that could go wrong.


Cheers,

[1] https://outflux.net/blog/archives/2018/04/19/uefi-booting-and-raid1/
[2] 
https://wiki.archlinux.org/title/EFI_system_partition#ESP_on_software_RAID1


--
Franco Martelli



How to insert symbols into emails (was: Re: Monospace fonts, Re: Changing The PSI Definition)

2024-01-29 Thread Franco Martelli

On 26/01/24 at 20:50, David Wright wrote:

I'll give a shout-out for Hack,¹ which I can't fault for use in
xterms. Comparingxterm -geometry 80x25+0+0 -fa hack -fs 16
with   xterm -geometry 80x25+0+0 -fa inconsolata -fs 18
(to make the sizes roughly the same), I find the inconsolata
stroke width on the basic Roman alphabet is a little spindly.

Other criticisms are that the stroke widths (and even the size)
later in the table (eg 0x256–1312) are thicker or larger, and
many single-width characters are slightly oversize and get
truncated at the top & right (eg Ŵ at 0x372, Lj 456). Mixing
fractions is ugly, too: ½ ⅓ ⅔ ¼ ¾ ⅛ ⅜ ⅝ ⅞. The ‘’ quotes
are pretty, though.


Those symbols are very nice, which tool have you used to insert them? 
I'm using Thunderbird for my emails but I've to enable "Compose message 
in HTML" to have a small subset of symbols, for me isn't enough. I'm 
using KDE desktop.


Thanks in advance, best regards.

--
Franco Martelli



Re: How to insert symbols into emails

2024-01-29 Thread Franco Martelli

On 29/01/24 at 16:32, Greg Wooledge wrote:

On Mon, Jan 29, 2024 at 03:54:44PM +0100, to...@tuxteam.de wrote:

On Mon, Jan 29, 2024 at 03:29:57PM +0100, Franco Martelli wrote:

Those symbols are very nice, which tool have you used to insert them?


Easy. I configured my CAPSLOCK key (which is useless IMO) to be
my X compose key. So entering COMPOSE-4-5 does ⅘, and COMPOSE-<-3
does ♥. You can even define your own compose seqs, like I did with
♀ (COMPOSE-o-+) and others.


This is documented at <https://wiki.debian.org/XCompose> by the way.



Thanks Greg, that was what I'm looking for. I chose the right Alt key as 
"compose" key, in KDE it was very simple it's a checkbox to enable in 
systemsettings, as explained in the link that you provided.
I read that for custom sequence I've to create a ~/.XCompose file, but 
where can I find the character to map i.e. Greek letters: "α" "β" "γ" ?


In "/usr/share/X11/locale/en_US.UTF-8/Compose" file the ALPHA char is 
defined as:


 : "α"   U03B1 # GREEK SMALL 
LETTER ALPHA


What stands for  ? Could I have an example of custom 
~/.XCompose file for this letter, please?


Thanks in advance, best regards.
--
Franco Martelli



Re: Automatically installing GRUB on multiple drives

2024-02-02 Thread Franco Martelli

On 31/01/24 at 22:51, hw wrote:

[...]
If your suggested solution is "use hardware RAID", no need to repeat
that one though: I see you said it in a few other messages, and that
suggestions has been received. Assume the conversation continues
amongst people who don't like that suggestion.



Well, too late, I already said it again since you asked.  Do you have
a better solution?  It's ok not to like this solution, but do you have
a better one?


There is an alternative to hardware RAID if you want a Linux RAID: you 
can disable UEFI in the BIOS and delete the ESP as I did when I bought 
my gaming PC several years ago.


I created my software RAID level 5 using debian-installer and it works 
perfectly without ESP, you have to choose "Expert install" in "Advanced 
options". I installed Bookworm when it was released in this way.


Cheers,
--
Franco Martelli



Re: install Kernel and GRUB in chroot.

2024-02-02 Thread Franco Martelli

On 02/02/24 at 15:12, Dmitry wrote:

Going to read carefully.

https://www.debian.org/releases/buster/amd64/ch04s03.en.html

Interesting that Buster has more documentation than current release.




Nope, maybe you gave a quick read, the release notes of the current 
release ¹  are exhaustive. If you need to go deeper, a link ² to the 
wiki it's published in that page.


Kind regards,


¹ https://www.debian.org/releases/bookworm/amd64/ch04s03.en.html
² https://wiki.debian.org/DebianInstaller/CreateUSBMedia
--
Franco Martelli



Re: To partition or not to partition MD arrays (Was Re: smartctl cannotaccess my storage, need syntax help)

2024-01-19 Thread Franco Martelli

On 19/01/24 at 09:03, Anssi Saari wrote:

One case against using partitions on mdraid: if your array gets messed
up, you get to recreate those partition tables yourself and that's just
hilarious if you don't have a backup. Happened to a friend of mine,
reason was a UPS brownout.


How can I get a backup of mdadm RAID partition? And which tool to backup 
the whole disks of an array? The only tool that it comes in mind it is 
"dd" that it isn't a viable solution for me.
I think is useless to backup the raw data stored in a partition or the 
whole disk. I backup files and directories stored in the filesystem not 
raw data. If an error occurs in the RAID, mdadm takes care to warn me 
via email... I hope!



I think he scanned his disks for copies of
the superblock but didn't find any and then somehow with a lot of hassle
eventually figured out what the partition tables were.

So in a catastrophe, partition tables are one more obstacle to cross
before you can start actually recovering your data.


Me too ran into a catastrophe scenario, I had lost /dev/md0, the reason 
was using hibernate (suspend to disk) in a logical volume placed inside 
the RAID. I think it was damaged the RAID metadata.
I got rid of this using Debian-installer, I thought that I had loosed 
everything and I prepared for reinstall, when Debian-installer asked me 
to create the new RAID I specify all the four partitions, I saved, and 
magically the logical device and all my logical volumes, embedded in the 
old RAID, reappeared. To partition was not a trouble in those circumstances.




My only mdraid was on raw partitions but that never had any issues. I
think zfs effectively does the same, no partitions.


Which raw partitions? Maybe did you mean without partitions? I never 
used zfs it's full featured, I prefer to keep the things simple: RAID -> 
LVM -> ext4


Cheers,
--
Franco Martelli



Re: To partition or not to partition MD arrays (Was Re: smartctl cannotaccess my storage, need syntax help)

2024-01-19 Thread Franco Martelli

On 19/01/24 at 20:14, Nicolas George wrote:

Franco Martelli (12024-01-19):

One case against using partitions on mdraid: if your array gets messed
up, you get to recreate those partition tables yourself and that's just
hilarious if you don't have a backup. Happened to a friend of mine,
reason was a UPS brownout.

How can I get a backup of mdadm RAID partition?


You do not need a backup of the RAID partitions, that would be terribly
inefficient. You need a backup of the partition table.


Yes, I agree of course. I was asking this to Anssi because it looks like 
strange to me to have the backup of the partitions, as he pointed (for 
my understanding)




Which, if you are organized, you already have in
$notes_dir/$hostname/install.md as something that looks like this:

```
sudo sfdisk /dev/sdX <

The partitions table of my HDD is part of my backup.

Cheers,

--
Franco Martelli



Re: How to insert symbols into emails

2024-01-30 Thread Franco Martelli

On 29/01/24 at 23:31, Charles Curley wrote:

On Mon, 29 Jan 2024 22:02:20 +0100
Franco Martelli  wrote:


I read that for custom sequence I've to create a ~/.XCompose file,
but where can I find the character to map i.e. Greek letters: "α" "β"
"γ" ?


Try the gucharmap package. You look a character up by name, and copy it
into place. E.g. crocodile, .


It happens something strange, when I type "crocodile" into the search 
bar of "kcharselect" I get an empty square visualized, if I click to 
"Copy to clipboard" button and then paste to Thunderbird I can see the 
crocodile but not in "kcharselect" … does it depend on installed fonts? 
Any hints?


Thanks again, kind regards.

--
Franco Martelli



Re: How to insert symbols into emails

2024-01-30 Thread Franco Martelli

On 29/01/24 at 23:31, Charles Curley wrote:

On Mon, 29 Jan 2024 22:02:20 +0100
Franco Martelli  wrote:


I read that for custom sequence I've to create a ~/.XCompose file,
but where can I find the character to map i.e. Greek letters: "α" "β"
"γ" ?


Try the gucharmap package. You look a character up by name, and copy it
into place. E.g. crocodile, .


Thanks, as I'm on KDE desktop I've installed "kcharselect" it does the 
same thing. It was a bit hard to find it, first I've looked for "Similar 
packages" section in the "gucharmap" web page ¹  but I didn't find 
nothing related to QT applications then I performed an "apt search kde 
char" and I found it.


There is a thing that it hurts me a little, if you look at the section 
"Similar package" in the "kcharselect" web page ²  you'll find 
"gucharmap" but this is *not* true vice-versa.


Which guys takes care of section "Similar packages" into packages web 
pages? I think "kcharselect" must be added to "Similar packages" section 
of "gucharmap"!


Cheers,

¹ https://packages.debian.org/bookworm/gucharmap
² https://packages.debian.org/bookworm/kcharselect
--
Franco Martelli



Re: How to insert symbols into emails

2024-01-30 Thread Franco Martelli

On 30/01/24 at 01:14, fxkl4...@protonmail.com wrote:

so i defined my compose key
in "/usr/share/X11/locale/en_US.UTF-8/Compose" file i see a definition
  
how do i type this



I dunno if it's possible to type it using the COMPOSE key, however as 
workaround you can install "gucharmap" if your desktop is GTK based or 
"kcharselect" if your desktop is KDE, then search the character by name 
(I-BEAM) then copy into the clipboard, finally create your own custom 
~/.XCompose and define your key sequence to associate i.e.  
  : "⌶" as explained in the Debian wiki:


https://wiki.debian.org/XCompose

Cheers,
--
Franco Martelli



Get running time of child process

2023-11-20 Thread Franco Martelli

Hi,
Get running time of child process
I've Picom running on my system with these PIDs:

~$ pstree -hpan | grep picom
  |   |   |   |   `-grep,6199 picom
  |-picom,1620 -b --config /home/myuser/.config/picom.conf
  |   `-{picom},3507

If I do:

~$ ps -eo pid,lstart,etime | grep 1620
   1620 Mon Nov 20 16:12:47 202301:22:39

1620 is the PID of the parent process, the command returns the date when 
the parent process had started and the elapsed time as I expected. But 
if I do the same command for the its child process (PID 3507):


~$ ps -eo pid,lstart,etime | grep 3507

the command returns nothing.
So, is it possible to have the starting time and the elapsed time of a 
child process?

Thanks in advance, kind regards
--
Franco Martelli



Re: Get running time of child process

2023-11-21 Thread Franco Martelli

On 20/11/23 at 21:22, Michael Kjörling wrote:

$ ps -eo pid,lstart,etime -q 1620,3507

If that doesn't return anything for the child process, maybe it simply
has exited?


Thanks it works, but instead of the child PID it is shown the parent PID:

~$ ps -eo pid,lstart,etime -q 1620,6841
PID  STARTED ELAPSED
   1620 Mon Nov 20 16:12:47 202323:47:16
   1620 Tue Nov 21 15:59:36 2023   00:28

for me it doesn't matter, it is obvious that the last row refers to the 
child process. Picom forks a new child when its configuration file is 
changed:


~$ touch /home/myuser/.config/picom.conf

now the new Picom's child has PID 6841, thanks again

--
Franco Martelli



Re: Get running time of child process

2023-11-21 Thread Franco Martelli

On 21/11/23 at 17:43, Michael Kjörling wrote:

~$ ps -eo pid,lstart,etime -q 1620,6841
 PID  STARTED ELAPSED
1620 Mon Nov 20 16:12:47 202323:47:16
1620 Tue Nov 21 15:59:36 2023   00:28

Maybe for that what you want is "tid" not "pid"?


Wonderful this did the trick:

~$ ps -eo tid,lstart,etime -q 1620,6841
TID  STARTED ELAPSED
   1620 Mon Nov 20 16:12:47 2023  1-01:33:53
   6841 Tue Nov 21 15:59:36 202301:47:05

I guess TID means Thread IDentifier although in the "ps" man page is not 
explicitly mentioned:

...
tid TID   the unique number representing a dispatchable 
entity (alias lwp, spid).  This value may also appear as: a process ID 
(pid); a process group ID (pgrp); a session ID for the session leader 
(sid); a thread group ID for the thread group leader (tgid); and a tty 
process group ID for the process group leader (tpgid).

...

I'm wrong? What does it mean?

--
Franco Martelli



rTorrent: unable to connect to UDP tracker

2024-03-06 Thread Franco Martelli

Hi everybody,

I'm trying to download some live DVD images using rTorrent,

$ apt show rtorrent

all works fine with Debian's images, I've successfully downloaded:

- debian-12.5.0-amd64-DVD-1.iso
- debian-live-12.5.0-amd64-kde.iso

using their torrent files respectively. I've trouble with KDE NEON 
website ¹  the .torrent downloaded at this URL ²  fails with this error 
message:


"Tracker: [unable to connect to UDP tracker]"

Does it depend on me?

Thanks in advance, kind regards.

¹ https://neon.kde.org/download
² 
https://files.kde.org/neon/images/user/20240304-2101/neon-user-20240304-2101.iso.torrent

--
Franco Martelli



Re: Ethernet not working on a Dell notebook

2024-03-14 Thread Franco Martelli

On 14/03/24 at 09:07, fran...@libero.it wrote:

Hi,
good morning. This is the command:
 /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" iommu=soft amd_iommu
GRUB_CMDLINE_LINUX="">



Nope the line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" iommu=soft amd_iommu
↑
must be:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash iommu=soft amd_iommu"
 ↑
then post the output of the following command:

~# update-grub

whether no error message, then reboot the system.

--
Franco Martelli



Re: Ethernet not working on a Dell notebook

2024-03-13 Thread Franco Martelli

On 13/03/24 at 10:19, fran...@libero.it wrote:

Hello,

thanks for your answers.

I used the cable with other notebooks and it worked.

In any case I used another cable to test it, but I had the same 
reactions, no connection!


Today I had to give the command 3 times before having a connection...


Do you have configured both NetworkManager and Debian 
/etc/network/interfaces? They cannot coexist, instead to ask to ChatGPT 
try this reading:


https://wiki.debian.org/it/NetworkConfiguration

What is it the output of the following commands?

~$ sudo systemctl status networking.service

~$ sudo systemctl status NetworkManager.service

~$ sudo journalctl -u  NetworkManager.service

--
Franco Martelli



Re: Ethernet not working on a Dell notebook

2024-03-14 Thread Franco Martelli

On 14/03/24 at 17:03, fran...@libero.it wrote:

Hello,
I did as indicated, but the connection needs the command
sudo mii-tool enp19s0 -F 10baseT-FD to enable.


revert the change to /etc/default/grub remove -iommu=soft amd_iommu-
strings:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

run again:

~# update-grub

then reboot the system.

I'm not confident with NetworkManager, maybe others readers have a 
solution for this issue, try to ask again for help posting the output of 
the following command:


~# journalctl --no-pager -b -t NetworkManager

--
Franco Martelli



Ethernet not working on a Dell notebook

2024-03-13 Thread Franco Martelli




On 13/03/24 at 16:06, Max Nikulin wrote:

On 13/03/2024 21:52, Franco Martelli wrote:
Do you have configured both NetworkManager and Debian 
/etc/network/interfaces? They cannot coexist,


They can coexist. NetworkManager in default configuration ignores 
interfaces under control of ifupdown (/etc/network/interfaces).


Detailed messages from NetworkManager related to carrier change events 
are missed in the posted log file, so the interface is configured by 
ifupdown.



Sorry Max I always knew that they cannot, my mistake…

On 13/03/24 at 16:14, fran...@libero.it wrote:


root@debian:/home/frantal# sudo journalctl -u NetworkManager.service
ago 09 01:48:22 debian systemd[1]: Starting Network Manager...
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.0709] NetworkMa>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.0710] Read conf>
ago 09 01:48:23 debian systemd[1]: Started Network Manager.
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.0836] bus-manag>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.0968] manager[0>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.0968] monitorin>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2567] hostname:>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2567] hostname:>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2574] dns-mgr[0>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2590] rfkill0: >
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2593] manager[0>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2593] manager[0>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2739] Loaded de>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2818] Loaded de>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2872] Loaded de>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2891] Loaded de>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2942] Loaded de>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2947] manager: >
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2949] manager: >
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2951] manager: >
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2953] dhcp-init>
ago 09 01:48:23 debian NetworkManager[545]:   [1660002503.2997] settings:>



Sadly the useful information of the command output is truncated, could 
you post it again maximizing the window before you copy? For the 
journalctl command use this syntax:


~# journalctl -u NetworkManager.service --boot

Googling for a kernel message in a your previous post:

...
[2.771916] r8168: module verification failed: signature and/or 
required key missing - tainting kernel

...

I find this hint:

https://wiki.archlinux.org/title/Talk:Network_configuration/Ethernet

So after configured the interfaces, you could try to add "iommu=soft 
amd_iommu" to the kernel command-line, if you use Grub to boot the 
system, you need to edit /etc/default/grub and add that string to 
GRUB_CMDLINE_LINUX_DEFAULT variable.

Don't forget to run:

~# update-grub

in order to make effective the changes.

--
Franco Martelli




Re: Ethernet not working on a Dell notebook

2024-03-13 Thread Franco Martelli

On 13/03/24 at 17:51, fran...@libero.it wrote:

Sorry what is the procedure to add "iommu=soft

amd_iommu" to the kernel command-line?

It is the first time I work with kernel.
I went to /etc/default/grub and on the line GRUB_CMDLINE_LINUX_DEFAULT I have 
="quiet splash"
Have I to add ?
Thanks for the help
Francesco


Your line in /etc/default/grub becomes:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash iommu=soft amd_iommu"

then run:

~# update-grub

then reboot the system.

HTH
--
Franco Martelli



Re: Ethernet not working on a Dell notebook

2024-03-15 Thread Franco Martelli

On 15/03/24 at 03:53, Max Nikulin wrote:

On 13/03/2024 23:53, Franco Martelli wrote:

On 13/03/24 at 16:06, Max Nikulin wrote:

On 13/03/2024 21:52, Franco Martelli wrote:

They can coexist. NetworkManager in default configuration ignores 
interfaces under control of ifupdown (/etc/network/interfaces).


Detailed messages from NetworkManager related to carrier change 
events are missed in the posted log file, so the interface is 
configured by ifupdown.



Sorry Max I always knew that they cannot, my mistake…


My fault was that I tried to find NetworkManager manager messages in 
dmesg log. I have never tried to enable control of ifupdown interfaces 
in NetworkManager. In my opinion, on laptops commenting out interface in 
/etc/network/interfaces and so delegating it to NetworkManager has a 
clear advantage. Plugged in cable is detected immediately. With dhclient 
running by ifupdown, it may take some minutes till next DHCP request is 
sent.


Thanks for clarification, I never installed NetworkManager so this it 
seemed to me new.


The system may have significant changes in respect to defaults. 
Concerning NetworkManager, the following commands might give some 
additional info


    networkctl
    nmcli device
    nmcli connection
    /usr/sbin/NetworkManager --print-config

I am unsure if the line in /etc/network/interfaces had some effect since 
device name is enp19s0 and the file contained eth0.


On 13/03/2024 16:52, fran...@libero.it wrote:
[    2.771916] r8168: module verification failed: signature and/or 
required key missing - tainting kernel


tells that not r8169 from default kernel is used. What is the reason to 
install r8168 and what is its origin? r8168-dkms? From realtek site 
directly?


These questions are greats, sadly it's so hard to help Francesco 
(fran...@libero.it) he misses also the concept of variable assignment:


https://lists.debian.org/debian-user/2024/03/msg00332.html

I asked concerning more detailed lspci output and firmware package, but 
I have got no response. If firmware is installed then I would try 
backports kernel.


If cabling issues have been ruled out then perhaps it is time to ask in 
a realtek-related mailing list/forum/bugtracker.




I dunno, there are so many things unanswered…


https://wiki.archlinux.org/title/Talk:Network_configuration/Ethernet

So after configured the interfaces, you could try to add "iommu=soft 
amd_iommu" to the kernel command-line


Even if it might help, do not forget to disable it if it has no effect. 
To verify


     cat /proc/cmdline


It had no effect, I already told to restore to Francesco but I haven't 
verified


https://lists.debian.org/debian-user/2024/03/msg00336.html

he told that he has reverted the changes:

https://lists.debian.org/debian-user/2024/03/msg00362.html

--
Franco Martelli



Re: Filsystemkorruption i ext4?

2024-03-19 Thread Franco Martelli

On 19/03/24 at 15:43, Jesper Dybdal wrote:



My plan is to boot a rescue disk and mount that partition read-only. Then:
* If the file looks ok after reboot, then I'll strongly suspect the RAM 
- and run memtest.

* Otherwise, I'll have to run fsck and see what happens.

kernel version:
root@nuser:~# uname -a
Linux nuser 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64 
GNU/Linux


The partition in question is a RAID 1 controlled by md.


Another check you can perform it is on the RAID array, by default it 
runs on the first Sunday of each month at 00:57. You should have this 
file /etc/cron.d/mdadm that takes care to run this check monthly.


Before you reboot, does it look OK /proc/mdstat ?

--
Franco Martelli



Re: Filsystemkorruption i ext4?

2024-03-20 Thread Franco Martelli

On 20/03/24 at 09:15, Jesper Dybdal wrote:

[Sorry for the accidental Danish-language subject line :-( ]

On 2024-03-19 21:47, Franco Martelli wrote:

On 19/03/24 at 15:43, Jesper Dybdal wrote:



My plan is to boot a rescue disk and mount that partition read-only. 
Then:
* If the file looks ok after reboot, then I'll strongly suspect the 
RAM - and run memtest.

* Otherwise, I'll have to run fsck and see what happens.

kernel version:
root@nuser:~# uname -a
Linux nuser 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) 
x86_64 GNU/Linux


The partition in question is a RAID 1 controlled by md.


Another check you can perform it is on the RAID array, by default it 
runs on the first Sunday of each month at 00:57. You should have this 
file /etc/cron.d/mdadm that takes care to run this check monthly.

Good idea!  That should of course be done first.  It's running now.


Before you reboot, does it look OK /proc/mdstat ?

Yes, it seems ok.


I would suggest you to mount the filesystem yes read-only but also with 
the noload option ( … -o ro,noload … ) see "man mount" for a brief 
explanation.


Cheers

--
Franco Martelli



Re: Ethernet not working on a Dell notebook

2024-03-13 Thread Franco Martelli

On 13/03/24 at 18:20, fran...@libero.it wrote:

Hello,
I did
I tried to modify as suggested.I couldn't use sudo update-grub
So I gave this command:

I think there is an error in the procedure
Waiting for suggestions...


What is the output of:

~# cat /etc/default/grub | head -10


--
Franco Martelli



Re: making Debian secure by default

2024-03-28 Thread Franco Martelli

On 28/03/24 at 12:05, Marc SCHAEFER wrote:

Hello,

On Wed, Mar 27, 2024 at 05:30:50PM -0400, Lee wrote:

Apparently the root of the security issue is that wall is a setguid program?


a) wall must be able to write to your tty, which is not possible
if wall is not installed setguid OR if people have sane permissions
on their terminals (e.g. set to mesg n)

b) in addition, for this exploit to run, command-not-found must be
started with the not found command as argument: in the two Debian
releases I just tried (buster and bookworm), with bash,
command-not-found was not installed.

The idea of the exploit is that you get a prompt for entering a sudo
password, which is a simple text (which gets more convincing because
of a recently introduced bug in wall which does not filter out terminal
escape / control sequences), then you type the root password, which
is presumably not the name of an existing command, so command-not-found
PASSWORD is run, and someone on another terminal and user can do
a ps to see that password argument if he is quick or polling.

To fix this:

a) don't type a root password / sudo password unless you know that
it should happen

b) don't allow others to write on your terminals, in particular
if you run priviledged commands and expect sudo prompts

c) patch wall so that its texts are always shown to be
different from other program outputs (== filter out
anything else than printable characters)

THIS IS MY PREFERRED WORKAROUND :)
(mixing controls (prompts) and data is always
 a very bad idea)

d) don't have other users on your machine / use containers.


Do you know whether it exists a tutorial/wiki that explain how to avoid 
users in favor to containers?


Thanks in advance

--
Franco Martelli



Re: Debian 12.5: pigz 2.6-1 fails with error message (Upstream issue 111)

2024-04-02 Thread Franco Martelli

On 02/04/24 at 10:27, Jonathan Chung wrote:

Dear sir or madam,

I'm new with Debian bug reporting and thus need some help with that.
pigz 2.6-1 on Debian 12.5 fails to execute due to a fixed bug on
upstream https://github.com/madler/pigz/issues/111

Installing the version from sid resolves the issue which is clearly not
optimal. I think the fix should be backported.

Can someone help me to file a bug report?



To file a bug report use "reportbug pigz" and answer the questions… but 
I use regularly "pigz" in my backup scripts and I didn't notice nothing 
wrong ?_?

My installed version is:

~$ dpkg -l | grep pigz
ii  pigz 2.6-1 
amd64Parallel Implementation of GZip


I just tested it and I've nothing to report:

~$ tar tf frankbck2.tgz --use-compress-program=pigz >/dev/null
~$ echo $?
0

Are you sure you are using Debian 12.5 ?

Kind regards.

--
Franco Martelli



Re: Automatic reboot on kernel crash in Debian 12 - how?

2024-04-16 Thread Franco Martelli

On 16/04/24 at 11:17, Michael Kjörling wrote:

Do I need to set some more settings to ensure that the system will
automatically reboot on a panic? If so, what?


Hi,

In the Linux kernel source are available two options to reboot on panic:

config BOOTPARAM_SOFTLOCKUP_PANIC
bool "Panic (Reboot) On Soft Lockups"
depends on SOFTLOCKUP_DETECTOR
help
  Say Y here to enable the kernel to panic on "soft lockups",
  which are bugs that cause the kernel to loop in kernel
  mode for more than 20 seconds (configurable using the 
watchdog_thresh

  sysctl), without giving other tasks a chance to run.

  The panic can be used in combination with panic_timeout,
  to cause the system to reboot automatically after a
  lockup has been detected. This feature is useful for
  high-availability systems that have uptime guarantees and
  where a lockup must be resolved ASAP.

  Say N if unsure.

and:

config BOOTPARAM_HARDLOCKUP_PANIC
bool "Panic (Reboot) On Hard Lockups"
depends on HARDLOCKUP_DETECTOR
help
  Say Y here to enable the kernel to panic on "hard lockups",
  which are bugs that cause the kernel to loop in kernel
  mode with interrupts disabled for more than 10 seconds 
(configurable

  using the watchdog_thresh sysctl).

  Say N if unsure.

from Documentation/admin-guide/kernel-parameters.txt you can set it as 
kernel parameter or via sysctls:


softlockup_panic=
[KNL] Should the soft-lockup detector generate 
panics.

Format: 0 | 1

A value of 1 instructs the soft-lockup detector
to panic the machine when a soft-lockup occurs. 
It is
also controlled by the kernel.softlockup_panic 
sysctl

and CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC, which is the
respective build-time switch to that functionality.

and the same for "kernel.hardlockup_panic" that it seems it hasn't an 
help entry in the documentation file, I found it here:



nmi_watchdog=   [KNL,BUGS=X86] Debugging features for SMP kernels
Format: [panic,][nopanic,][num]
Valid num: 0 or 1
0 - turn hardlockup detector in nmi_watchdog off
1 - turn hardlockup detector in nmi_watchdog on
When panic is specified, panic when an NMI watchdog
timeout occurs (or 'nopanic' to not panic on an NMI
watchdog, if CONFIG_BOOTPARAM_HARDLOCKUP_PANIC 
is set)

To disable both hard and soft lockup detectors,
please see 'nowatchdog'.
This is useful when you use a panic=... timeout and
need the box quickly up again.

These settings can be accessed at runtime via
the nmi_watchdog and hardlockup_panic sysctls.

To learn more I suggest to install the "linux-source-6.1" package and 
investigate the "Watchdog" option, it is under "Device Drivers".
The BOOTPARAM_SOFTLOCKUP_PANIC and BOOTPARAM_HARDLOCKUP_PANIC options 
are under "Kernel hacking" → "Debug Oops, Lockups and Hangs".


Cheers
--
Franco Martelli



Re: No $DISPLAY variable set over ssh

2024-04-18 Thread Franco Martelli

Hi Allan,

On 18/04/24 at 12:38, allan wrote:

Have four Sid machines here and ssh -X has worked fine on all of them
for years. For the last several days I haven't been able to run
graphical applications over ssh from any of these machines.

Error says "cannot open display" and if I ssh into the machine
$DISPLAY is indeed blank but from a local console $DISPLAY correctly
reads :0

export DISPLAY=ip.of.ssh.guest:0 doesn't work either although it does
set the variable on the host machine. xhost + also gives the cannot
open display error.

ssh -vv -Y u...@ip.add.re.ss just gives "X11 forwarding request failed
on channel 0"

Since this happened on all four machines at once I'm pretty sure it's
nothing I did - but I haven't been able to resolve it yet.

Anybody else seeing this? Anybody got an idea how to resolve or which
package to give a bug report?

cheers -



Have you tried to set the following entries in your /etc/ssh/sshd_config 
file:


X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no

don't forget to restart the server.

Cheers,

--
Franco Martelli



Re: mouse wheel

2024-04-26 Thread Franco Martelli

On 26/04/24 at 16:50, tony wrote:
Thank you very much. It was indeed the mouse that had failed. I 
'borrowed' a mouse from my laptop, which worked fine. Thanks again


Check it twice, maybe turn off the mouse and unplug/re-plug the receiver 
it solves the issue.


Cheers,
--
Franco Martelli



Re: Graphic Equalizer for Sound

2024-05-01 Thread Franco Martelli

On 01/05/24 at 18:21, Richmond wrote:


I am using a web browser to play Youtube and Spotify.

I got into a real mess with this, as my bluetooth speakers stopped
working, "Bluetooth connect failed: br-connection-profile-unavailable"
and then when I removed pipewire I lost all sound completely. I have it
working again now by trial and error.



I know nothing about bluetooth speakers but if pipewire is not a viable 
solution for you, you could try to install "libasound2-plugin-equal" and 
"alsamixergui" packages then makes changes to your ~/.asoundrc 
accordingly to what's explained in the README:


~$ less /usr/share/doc/libasound2-plugin-equal/README

then you can run the ALSA equalizer with the following command:

~$ alsamixergui -D equal

maybe other readers may have a better solution.

Cheers,

--
Franco Martelli



Re: Graphic Equalizer for Sound

2024-05-01 Thread Franco Martelli

On 01/05/24 at 14:33, Richmond wrote:

Is it possible to have a graphic equalizer for sound output? I am using
the Mate desktop. I installed EasyEffects from a flatpak and it appears
on the menu but does nothing. I don't know the command line. Probably
there is an error.

Debian 12.



Usually graphical equalizer are built in into the audio player, which 
audio player are you using? Clementine ¹  has a powerful equalizer with 
sound effects but maybe you'll prefer Rhythmbox that has an equalizer 
provided apart. ²


Cheers,

¹ https://packages.debian.org/bookworm/clementine
² https://wiki.gnome.org/Apps/Rhythmbox/Plugins/ThirdParty
--
Franco Martelli



Re: speaker-test: no correct sound output on LFE and others speakers

2024-05-10 Thread Franco Martelli

Hi Alexandre,

On 07/05/24 at 11:56, Alexandre Rossi wrote:


My hypothesis: speaker-test outputs directly to ALSA (kernel) but ALSA redirects
to pulseaudio (the 99-pulse.conf file) and pulseaudio Output profile is stereo.
Therefore, pulseaudio downmixes 5.1 to stereo. That would explain why only
front-left and front-right output sound.

To confirm, you can either:
- move away that 99-pulse.conf file so that speaker-test use directly and only
   ALSA
- configure pulseaudio output profile for surround5.1 (you can use command line
   $ pacmd set-card-profile 0 output:output:analog-surround-51 or
   pavucontrol (graphical)


~# systemctl stop pulseaudio
Failed to stop pulseaudio.service: Unit pulseaudio.service not loaded.


pulseaudio is usually a *user* service and socket activated (starts 
automatically
if some app wants to use it). To stop it, the following should work:
$ systemctl --user stop pulseaudio.socket  # stop the socket to prevent auto 
start
$ systemctl --user stop pulseaudio.service # stop the daemon


I moved the 99-pulse.conf file into root directory, then rebooted but 
"speaker-test" does the same result of my first post.
I think that PulseAudio is already configured for surround, see 
attachment for the output of "pacmd info" command. The two "systemctl" 
commands to stop PulseAudio worked, thank you very much it was a new 
thing for me.


I tried to boot Debian 12.5 in rescue-mode and I tested "speaker-test" 
but ditto, same result of my first post.


When I was in rescue-mode and trying to play sound in the console, this 
message appeared on the screen, I don't know whether it matters:


snd_hda_intel :00:14.2: IRQ timing workaround is activated for card 
#0. Suggest a bigger bdl_pos_adj.


It's driving me utterly bonkers, maybe a hardware issue?

Lastly I've asked for support to the alsa-user mailing-list on 
SourceForge but I got no answer at the moment.


--
Franco Martelli


pacmdInfo.txt.gz
Description: application/gzip


Re: speaker-test: no correct sound output on LFE and others speakers

2024-05-06 Thread Franco Martelli

On 02/05/24 at 09:10, Alexandre Rossi wrote:

What's bothering me is that you get sound from multiple speakers while
instructing out on only one.

The usual issues of these setups with surround analog out are:
- channel mapping issues (driver/hardware mismatch)
- software downmixing to stereo

There are other usual issues with surrount digital out but this is not
your setup.

You can have a look at [1] for software fixes on this.

[1]https://alsa.opensrc.org/SurroundSound

The link you posted it shows rather outdated fixes, it talked about Jackd
daemon and surround, but I have pulseaudio daemon, maybe I've pulseaudio
daemon misconfiguration

My understanding is that pulseaudio uses alsa for kernel interface and
that speaker-test uses alsa directly. So if one cannot get speaker-test
to sound right, it cannot work with pulseaudio. That why I suggest workarounds
in alsa conf (asoundrc).


I tried several configurations of ~/.asoundrc in these days but nothing 
works with "speaker-test". Well some configurations let "aplay" to use 
rear-left, rear-right, front-center speakers but "speaker-test" never 
sends sound to front-center, rear-left, rear-right and LFE with this 
command:


~$ LC_ALL=C speaker-test -c 6 -D surround51 -t wav

speaker-test 1.2.8

Playback device is surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 349504
Period size range from 32 to 174752
Using max buffer size 349504
Periods = 4
was set period_size = 174752
was set buffer_size = 349504
 0 - Front Left
 4 - Front Center
 1 - Front Right
 3 - Rear Right
 2 - Rear Left
 5 - LFE
Time per period = 21.908826
 0 - Front Left
^C 4 - Front Center
Transfer failed: Bad address

In place of "surround51" I've set the pcm.X  specified in 
~/.asoundrc trying so several configurations.
Just now, checking the ALSA configuration in /etc/alsa/conf.d/ I found 
the 99-pulse.conf file:


~# cat /etc/alsa/conf.d/99-pulse.conf
# PulseAudio alsa plugin configuration file to set the pulseaudio plugin as
# default output for applications using alsa when pulseaudio is running.
hook_func.pulse_load_if_running {
lib "libasound_module_conf_pulse.so"
func "conf_pulse_hook_load_if_running"
}

@hooks [
{
func pulse_load_if_running
files [
"/usr/share/alsa/pulse-alsa.conf"
]
errors false
}
]

Does Debian use Pulseaudio daemon as default output for ALSA 
applications? Could it be a Pulseaudio misconfiguration? Should I try to 
uninstall it or how can I stop Pulseaudio? If I do "killall pulseaudio" 
it re-spawns immediately and "systemctl" doesn't work:


~# systemctl stop pulseaudio
Failed to stop pulseaudio.service: Unit pulseaudio.service not loaded.

Any help it's very appreciated, thanks in advance.
--
Franco Martelli



speaker-test: no correct sound output on LFE and others speakers

2024-04-29 Thread Franco Martelli

Hi everyone,

Basically I've the same issue described here:
https://askubuntu.com/questions/1180389/speaker-test-returns-all-6-channels-to-front-speakers

The speaker-test program is provided by the alsa-utils package. I'm 
using Debian 12 Bookworm, I've no ~/.asoundrc file. My 
/proc/asound/cards returns:


~$ cat /proc/asound/cards
 0 [SB ]: HDA-Intel - HDA ATI SB
  HDA ATI SB at 0xfe40 irq 16
 1 [NVidia ]: HDA-Intel - HDA NVidia
  HDA NVidia at 0xfe08 irq 57

I've 5.1 speakers the LOGITECH Z906 audio system plugged to the PC via 3 
jacks (left/right), (Center/Subwoofer), (Rear left/ Rear right).


Clementine ¹  audio player seems it works well, but I'm unsure that the 
sound go to the correct speaker.


The issue is that speaker-test doesn't play sound to the correct 
speaker. If I run:


~$ speaker-test -Dplug:surround51 -c6 -s3 -f75

speaker-test 1.2.8

Playback device is plug:surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 349504
Period size range from 32 to 174752
Using max buffer size 349504
Periods = 4
was set period_size = 174752
was set buffer_size = 349504
  - Front Right

The sound comes from (Center), (Front right), (Rear left) and (Rear 
right) speakers instead (Front right) only. If I run:


~$ speaker-test -Dplug:surround51 -c6 -s6 -f75

speaker-test 1.2.8

Playback device is plug:surround51
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 349504
Period size range from 32 to 174752
Using max buffer size 349504
Periods = 4
was set period_size = 174752
was set buffer_size = 349504
  - LFE

I've no sound from the Subwoofer. Does anybody know how can I test the 
speakers of my 3D Dolby surround system? Please help.



¹ https://packages.debian.org/bookworm/clementine
--
Franco Martelli



Re: speaker-test: no correct sound output on LFE and others speakers

2024-05-01 Thread Franco Martelli

Hi Alexandre,

On 30/04/24 at 14:07, Alexandre Rossi wrote:

Hi,


Basically I've the same issue described here:
https://askubuntu.com/questions/1180389/speaker-test-returns-all-6-channels-to-front-speakers

The speaker-test program is provided by the alsa-utils package. I'm using
Debian 12 Bookworm, I've no ~/.asoundrc file. My /proc/asound/cards returns:

~$ cat /proc/asound/cards
  0 [SB ]: HDA-Intel - HDA ATI SB
   HDA ATI SB at 0xfe40 irq 16
  1 [NVidia ]: HDA-Intel - HDA NVidia
   HDA NVidia at 0xfe08 irq 57

I've 5.1 speakers the LOGITECH Z906 audio system plugged to the PC via 3
jacks (left/right), (Center/Subwoofer), (Rear left/ Rear right).


I assume your cabling is right and your SB soundcard has surround out
(3 jacks as you describe it, and not mic and line out for instance). The labels
on the jacks would confirm that, so would the user manual of your motherboard or
sound card.


The MoBo is an old ASUSTeK Computer Inc. M5A99X EVO (R1.0) and it has 
three jacks of different colors to connect to the Logitech Z906 case, 
there aren't labels, only colored jacks: Orange, Black and Lime there is 
also a Gray jack for "Side speakers" so the hardware support up to 
Surround 7.1 in addition it also have an optical S/PDIF out port unused.

The audio device is:

~# lspci -nnv -s 00:14.2
00:14.2 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] 
SBx00 Azalia (Intel HDA) [1002:4383] (rev 40)
Subsystem: ASUSTeK Computer Inc. SBx00 Azalia (Intel HDA) 
[1043:84fb]
Flags: bus master, slow devsel, latency 32, IRQ 16, NUMA node 
0, IOMMU group 10

Memory at fe40 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel





The issue is that speaker-test doesn't play sound to the correct speaker. If
I run:

~$ speaker-test -Dplug:surround51 -c6 -s3 -f75

The sound comes from (Center), (Front right), (Rear left) and (Rear right)
speakers instead (Front right) only.


What's bothering me is that you get sound from multiple speakers while
instructing out on only one.

The usual issues of these setups with surround analog out are:
- channel mapping issues (driver/hardware mismatch)
- software downmixing to stereo

There are other usual issues with surrount digital out but this is not
your setup.

You can have a look at [1] for software fixes on this.

[1] https://alsa.opensrc.org/SurroundSound


The link you posted it shows rather outdated fixes, it talked about 
Jackd daemon and surround, but I have pulseaudio daemon, maybe I've 
pulseaudio daemon misconfiguration, I tried what suggested here:


https://askubuntu.com/a/1304054

but unluckily  it doesn't work, this is what's enabled in 
/etc/pulse/daemon.conf:


~$ grep -v "^#\|^;\|^[[:space:]]*$" /etc/pulse/daemon.conf
remixing-produce-lfe = yes
remixing-consume-lfe = yes
lfe-crossover-freq = 80

and this is what's in the log after a reboot:

~# journalctl -b | grep pulseaudio
mag 01 14:57:28 itek systemd[1254]: Listening on pulseaudio.socket - 
Sound System.
mag 01 14:57:28 itek systemd[1254]: Starting pulseaudio.service - Sound 
Service...
mag 01 14:57:32 itek systemd[1254]: Started pulseaudio.service - Sound 
Service.
mag 01 14:57:48 itek pulseaudio[1273]: Hole in stream, cannot fast 
forward LFE filter
mag 01 14:57:48 itek pulseaudio[1273]: Hole in stream, cannot fast 
forward LFE filter
mag 01 14:57:54 itek plasmashell[1390]: org.kde.plasma.pulseaudio: No 
object for name "alsa_output.pci-_00_14.2.analog-surround-51.monitor"


any clue? Thank you very much

--
Franco Martelli



Re: Debian bookwork / grub2 / LVM / RAID / dm-integrity fails to boot

2024-05-21 Thread Franco Martelli

On 20/05/24 at 14:35, Marc SCHAEFER wrote:

Any idea what could be the problem?  Any way to just make grub2 ignore
the rimage (sub)volumes at setup and boot time?  (I could live with / aka
vg1/root not using dm-integrity, as long as the data/docker/etc volumes
are integrity-protected) ?  Or how to make grub 100% compatible with a
vg1/root using dm-integrity (that would be obviously the final goal!)

Thank you for any pointers!


I can only recommend you to read carefully the Wiki:

https://raid.wiki.kernel.org/index.php/Dm-integrity

HTH

kind regards
--
Franco Martelli



[SOLVED] Re: speaker-test: no correct sound output on LFE and others speakers

2024-05-17 Thread Franco Martelli

On 30/04/24 at 14:07, Alexandre Rossi wrote:

Hi,


Basically I've the same issue described here:
https://askubuntu.com/questions/1180389/speaker-test-returns-all-6-channels-to-front-speakers

The speaker-test program is provided by the alsa-utils package. I'm using
Debian 12 Bookworm, I've no ~/.asoundrc file. My /proc/asound/cards returns:

~$ cat /proc/asound/cards
  0 [SB ]: HDA-Intel - HDA ATI SB
   HDA ATI SB at 0xfe40 irq 16
  1 [NVidia ]: HDA-Intel - HDA NVidia
   HDA NVidia at 0xfe08 irq 57

I've 5.1 speakers the LOGITECH Z906 audio system plugged to the PC via 3
jacks (left/right), (Center/Subwoofer), (Rear left/ Rear right).


I assume your cabling is right and your SB soundcard has surround out
(3 jacks as you describe it, and not mic and line out for instance). The labels
on the jacks would confirm that, so would the user manual of your motherboard or
sound card.


The issue is that speaker-test doesn't play sound to the correct speaker. If
I run:

~$ speaker-test -Dplug:surround51 -c6 -s3 -f75

The sound comes from (Center), (Front right), (Rear left) and (Rear right)
speakers instead (Front right) only.


What's bothering me is that you get sound from multiple speakers while
instructing out on only one.

The usual issues of these setups with surround analog out are:
- channel mapping issues (driver/hardware mismatch)
- software downmixing to stereo

There are other usual issues with surrount digital out but this is not
your setup.

You can have a look at [1] for software fixes on this.

[1] https://alsa.opensrc.org/SurroundSound


I solved by buying a Toslink (S/PDIF) optical cable, and using thus the 
"Surround 5.1 Digital output" and unplugging the three jacks analog 
cable. Now speaker-test works nicely:


~$ speaker-test -c6 -l1 -twav

speaker-test 1.2.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 6 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 32 to 349525
Period size range from 10 to 116509
Using max buffer size 349524
Periods = 4
was set period_size = 87381
was set buffer_size = 349524
 0 - Front Left
 4 - Center
 1 - Front Right
 3 - Rear Right
 2 - Rear Left
 5 - LFE
Time per period = 8,720806

maybe it was a hardware issue with the DAC of my Logitech Z906, it seems 
that with the three jacks analog cable it downmix to stereo, thanks anyway.


Cheers,
--
Franco Martelli



Re: Debian bookwork / grub2 / LVM / RAID / dm-integrity fails to boot

2024-05-28 Thread Franco Martelli

Hi Marc,

On 20/05/24 at 14:35, Marc SCHAEFER wrote:

3. grub BOOT FAILS IF ANY LV HAS dm-integrity, EVEN IF NOT LINKED TO /

if I reboot now, grub2 complains about rimage issues, clear the screen
and then I am at the grub2 prompt.

Booting is only possible with Debian rescue, disabling the dm-integrity
on the above volume and rebooting. Note that you still can see the
rimage/rmeta sub LVs (lvs -a), they are not deleted! (but no
dm-integrity is activated).

4. update-grub GIVES WARNINGS

Now, if I try to start update-grub while booted AND having enabled
dm-integrity on the vg1/docker volume, I get:

# update-grub
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.1.0-21-amd64
Found initrd image: /boot/initrd.img-6.1.0-21-amd64
error: unknown node 'docker_rimage_0'.
[ ... many ... ]
/usr/sbin/grub-probe: error: disk
`lvmid/xLE0OV-wQy7-88H9-yKCz-4DUQ-Toce-h9rQvk/FzCf1C-95eB-7B0f-DSrF-t1pg-66qp-hmP3nZ'
  not found.
error: unknown node 'docker_rimage_0'.
[ ... many ... ]

[ this repeats a few times ]


Sorry for the late in the answer, but I've just noticed that the Linux 
kernel of Debian Bookworm ISO image (debian-12.0.0-amd64-DVD-1.iso) 
comes *without* "dm-integrity.ko" module, making therefore not possible 
to support volumes formatted with "--raidintegrity y" neither those 
formatted with "integritysetup" command (I think that it's a bug and it 
should be reported).


When you booted in rescue mode which ISO image have you used?

Thank for your patience, kind regards.
--
Franco Martelli