On 04/01/25 at 17:54, Lee wrote:
On Sat, Jan 4, 2025 at 7:52 AM Franco Martelli wrote:
On 02/01/25 at 12:53, Istvan Toth wrote:
amd 5700G cpu
If you are new to kernel compiling maybe you don't know that you can
optimize the kernel for your specific CPU architecture, if you are using
th
e you can try other GCC switch: "znver2" or "znver1".
If also that fail, restore the "Makefile" file using the backup copy.
Just my 2¢ tips, cheers.
--
Franco Martelli
On 17/12/24 at 22:09, Jeffrey Walton wrote:
On Tue, Dec 17, 2024 at 2:39 PM Franco Martelli wrote:
On 16/12/24 at 20:49, Jeffrey Walton wrote:
Here's the problem:
void dealloc()
{
for ( const DIGIT *p = first; p->next != NULL; p = p->next )
if ( p-&g
ded-qualifiers]
57 | next = p->next, free( p ), p = next;
| ^
In file included from e09-01.c:5:
/usr/include/stdlib.h:568:25: note: expected ‘void *’ but argument is of
type ‘const DIGIT *’ {aka ‘const struct digit *’}
568 | extern void free (void *__ptr) __THROW;
after done this, all works nicely. Thanks again.
--
Franco Martelli
On 17/12/24 at 12:20, Anssi Saari wrote:
Franco Martelli writes:
I'd prefer a mailing-list instead, once finished all the exercises,
I'd like to looking for somebody that he has my same handbook and to
ask him for exchange the exercises for comparison purpose.
Just curious, whic
On 16/12/24 at 20:49, Jeffrey Walton wrote:
On Mon, Dec 16, 2024 at 2:22 PM Franco Martelli wrote:
I'm doing the exercises of a C language handbook. I'm using Valgrind to
check for memory leak since I use the malloc calls. In the past I was
used to using "valkyrie" but s
On 16/12/24 at 20:42, Michael Kjörling wrote:
On 16 Dec 2024 17:21 +0100, from martelli...@gmail.com (Franco Martelli):
Put in something to count the number of calls to malloc() and free()
respectively. Don't forget calls outside of loops.
There isn't calls to malloc() or free() out
On 16/12/24 at 17:50, Greg Wooledge wrote:
On Mon, Dec 16, 2024 at 17:34:36 +0100, Franco Martelli wrote:
void dealloc()
{
for ( const DIGIT *p = head; p->next != NULL; p = p->next )
if ( p->prev != NULL )
free( p->prev );
On 16/12/24 at 16:58, Greg Wooledge wrote:
On Mon, Dec 16, 2024 at 16:05:26 +0100, Franco Martelli wrote:
void add_element( unsigned int i )
{
DIGIT *p;
/* If the first element (the head) has not been
* created, create it now.
*/
if ( head == NULL
On 16/12/24 at 16:43, Michael Kjörling wrote:
On 16 Dec 2024 16:05 +0100, from martelli...@gmail.com (Franco Martelli):
Is there a memory leak? What it sounds strange to me is that Valgrind
reports: "total heap usage: 9 allocs, 8 frees, …" when for me the calls to
"malloc"
oid off topic messages in the future does
anybody know where to ask for these topics?
TIA
--
Franco Martelli
/*
* Functions that splits and reassemble an integer into single digit and store it into a list of structs
*/
#include "e09-01.h"
#include
#include
static DIGIT *head, *last;
On 09/10/24 at 21:10, Jochen Spieker wrote:
Andy Smith:
Hi,
On Wed, Oct 09, 2024 at 08:41:38PM +0200, Franco Martelli wrote:
Do you know whether MD is clever enough to send an email to root when it
fails the device? Or have I to keep an eye on /proc/mdstat?
For more than a decade mdadm has
other
mirrors and writing it back. If a write fails, or a disk drops
out entirely, then MD will fail the device.
Do you know whether MD is clever enough to send an email to root when it
fails the device? Or have I to keep an eye on /proc/mdstat?
Cheers,
--
Franco Martelli
t failure of "objtool" almost they match.
So the question is: Can a CPU microcode update cause incompatibility
between objects (*.o files) built by the GCC compiler and the "objtool"
command while compiling the Kernel?
Thank again,
--
Franco Martelli
On 26/09/24 at 10:29, Michel Verdier wrote:
On 2024-09-25, Franco Martelli wrote:
The file that contains the microcode for my CPU is dated April 2022:
$ LANG=C ls -l /lib/firmware/amd-ucode/microcode_amd_fam15h.bin
-rw-r--r-- 1 root root 7876 Apr 15 2022
/lib/firmware/amd-ucode
The file that contains the microcode for my CPU is dated April 2022:
$ LANG=C ls -l /lib/firmware/amd-ucode/microcode_amd_fam15h.bin
-rw-r--r-- 1 root root 7876 Apr 15 2022
/lib/firmware/amd-ucode/microcode_amd_fam15h.bin
So why you are sure that the microcode dated 2018 is the latest?
Thanks again
--
Franco Martelli
523] microcode: CPU7: patch_level=0x06000852
[0.471627] microcode: Microcode Update Driver: v2.2.
Is the CPU updated to the latest microcode?
Thanks
--
Franco Martelli
output, maybe that command doesn't
apply for AMD microcode, any hints?
Thanks
--
Franco Martelli
7;t find anything about the CPU
microcode version, the following command shows:
$ cat /proc/cpuinfo | grep microcode | head -1
microcode : 0x6000822
the value returned is from an updated microcode? How can I verify that
the microcode was updated or not?
Thanks for any hints, kind regards
--
Franco Martelli
uot;cat" on the /sys/ filesystem as described above.
Cheers
--
Franco Martelli
ys. You can download the keys from the authenticity
verification page: https://www.debian.org/CD/verify once done, then
imports the keys with the command:
gpg --import key-988021A964E6EA7D.txt key-DA87E80D6294BE9B.txt
key-42468F4009EA8AC3.txt
--- --- --- ---
Just my 2¢ hint, cheers
--
Franco Martelli
Hi,
On 02/09/24 at 22:32, Thomas Schmitt wrote:
Hi,
Franco Martelli wrote:
What you wrote in that section it's so searched/wanted by newcomers that
it's a pity that it's published as a section into "XorrisoDdTarget".
Actually it is not the first time that i felt
city of a Debian downloaded ISO image".
By doing so me and other can easily answer a frequently asked question.
If you agree or not please post your feedback.
Thanks
--
Franco Martelli
/proc/cpuinfo
that you don't have such a processor?
Cheers
--
Franco Martelli
ers.com/en
Cheers.
--
Franco Martelli
at least twice per day.
And i got my VPN client working in KDE, only the iptable rules to
protect me from acidental leaks (kill switch) need to be reinstalled
after every boot. How to make them permanent the right way?
That's it for today, any comment/hint/suggestion warmly welcome, DdB
Too many topics
Cheers
--
Franco Martelli
hen a condition is satisfied, e.g.:
while true
do
/usr/bin/grep lv-swp1 /proc/swaps >/dev/null 2>&1
[ $? -ne 0 ] && break
/usr/bin/sleep 1
done
HTH
P.S.
To other readers, the OP asked to Cc to him when replying, see above
--
Franco Martelli
ime" it could be fine, but I don't know how
to redirect its output to a file (-o switch of /usr/bin/time).
Cheers
--
Franco Martelli
elapsed
0.00user 0.00system 0:00.00elapsed 100%CPU (0avgtext+0avgdata
3156maxresident)k
0inputs+0outputs (0major+147minor)pagefaults 0swaps
Is there a way to increase the precision of the time command? e.g.
0.000user 0.000system ...
Thanks for any hint
Cheers
--
Franco Martelli
rg/cgi-bin/bugreport.cgi?bug=1076561#10
and
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1076561#48
I suggest also to take a look at merged bug reports, usually submitters
propose workarounds to the issue, maybe it could help.
Cheers
--
Franco Martelli
-8 df /
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/ld0-lv2 ext4 28G 9.6G 17G 37% /
Therefore if you don't have space need for the /home/ directory it
should be fine for you.
Cheers
--
Franco Martelli
rt_Release
--
Franco Martelli
quot;Preview" button it shows the page with
indentation (all looks OK) but when saving the changes by clicking "Save
Changes" button then the page lost indentation (no margin).
This it happened to me when I added the TOC to EnvironmentVariables
Cheers
--
Franco Martelli
e browser, thus it
looked strange to me that removing the leading space before the << tag
fixed the issue. Am I missing something else?
P.S.
half an hour and I'm going to sleep
--
Franco Martelli
https://wiki.debian.org/Permissions?action=raw
here there's a space before the << tag and, as I said, clicking on the
"Preview" button when in edit mode, it didn't help.
Thanks again, cheers
--
Franco Martelli
see text placed correctly as example:
https://wiki.debian.org/Permissions
Could anybody tell me what I did wrong?
Cheers
--
Franco Martelli
ens if you run:
~$ startx
if this command is missing, run tasksel as root and choose the desktop
you want to install:
~# tasksel
Cheers
--
Franco Martelli
aunch programs via
systemd user services." Which Desktop? IMO it's better to add /(like
KDE)/ and changing the statement in this way: "Some Desktop Environments
(like KDE) launch programs via systemd user services."
Just my 2¢ tips, thanks
--
Franco Martelli
; file but that
change it doesn't apply to xterm.
Is there any other syntax to specify the umask? What's in your .xsessionrc?
Cheers
--
Franco Martelli
n-12.6.0-amd64-DVD-1.iso: OK
This step might take a while, so be patient, after done that you are
ready to burn a DVD, copy the .iso to an USB key, install to a virtual
machine… but this is another story ^_^
Cheers,
--
Franco Martelli
system is a headless RaspberryPI always up (Debian 11.7) that I use
as DHCP/BIND9/CUPS/SSH server. I run "rtorrent" inside a "screen" session:
~$ screen -S Torrent -d -m /usr/bin/rtorrent
All looks fine now.
Cheers
--
Franco Martelli
oke -flusho -extproc
Notice the "start = ^Q;" setting, thus every time I want to quit
"rtorrent" I must give this command before pressing Ctrl-Q into "rtorrent":
~$ stty start undef
So, is there a way to permanently set "start" as "undef"? May
then edit "/etc/dhcp/dhcpd.conf" and add a stanza like the following:
host unifi {
hardware ethernet 11:22:33:44:55:66;
fixed-address 192.0.2.7;
}
Cheers
--
Franco Martelli
n SystemSetting and installing
"Picom", now rarely Picom crashs but I can restart it from the console
with the command:
~$ picom -b --config ~/.config/picom.conf
at least the system doesn't freeze anymore.
Cheers
--
Franco Martelli
.
Cheers,
--
Franco Martelli
To enable "recovery mode" in GRUB you need to edit /etc/default/grub
file and comment out the line:
#GRUB_DISABLE_RECOVERY="true"
It's a default setting, so it should be already comment out.
Cheers,
--
Franco Martelli
"/" in the "${1:-.}"/*/ block because the
directories listed had a double "//" in their names:
~# duhs /usr/local/
88K /usr/local/
4,0K/usr/local//bin/
4,0K/usr/local//etc/
4,0K/usr/local//games/
4,0K/usr/local//include/
4,0K/usr/local//man/
4,0K/usr/local//sbin/
60K /usr/local//share/
4,0K/usr/local//src/
Thank again,
Cheers,
--
Franco Martelli
liases" with the "unbuffer" command…
Cheers,
--
Franco Martelli
man -> share/man
Is there a way to have duhs() function that it doesn't print a double
"/" at the end of the specified directory?
The size mismatch of /usr/local/share could depend by /usr/local/man is
a symlink of 4K's size to a directory embedded in /usr/local/share, am I
right?
Cheers,
--
Franco Martelli
directories. Do you have a version
that it shows also those directories? For me it's so hard to figure out
what the "${1:-.}"/*/ block does.
Again, is "man 7 glob" the right read or do you have a better one?
Cheers,
--
Franco Martelli
is and added it to my /etc/profile.d/local.sh file:
duhs() { IFS=$'\n\r' ; for d in $(/usr/bin/find $1 -maxdepth 1 -type d
|/usr/bin/sort) ; do du -hs $d ; done }
It doesn't show the output like "tree" does but it works nicely.
Cheers,
--
Franco Martelli
ted in rescue mode which ISO image have you used?
Thank for your patience, kind regards.
--
Franco Martelli
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
that with the three jacks analog cable it downmix to stereo, thanks anyway.
Cheers,
--
Franco Martelli
x27;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
ry 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
gly 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
ne
² https://wiki.gnome.org/Apps/Rhythmbox/Plugins/ThirdParty
--
Franco Martelli
14:57:54 itek plasmashell[1390]: org.kde.plasma.pulseaudio: No
object for name "alsa_output.pci-0000_00_14.2.analog-surround-51.monitor"
any clue? Thank you very much
--
Franco Martelli
e = 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
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
eport?
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
e 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
gz >/dev/null
~$ echo $?
0
Are you sure you are using Debian 12.5 ?
Kind regards.
--
Franco Martelli
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
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
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
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
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
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
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
--
F
ve 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
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
~$ sudo systemctl status NetworkManager.service
~$ sudo journalctl -u NetworkManager.service
--
Franco Martelli
240304-2101/neon-user-20240304-2101.iso.torrent
--
Franco Martelli
f -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 variab
debian.org/debian-user/2024/02/msg00592.html
--
Franco Martelli
h):
# env LC_ALL=C script -T ~/upgrade-bookwormstep.time -a
~/upgrade-bookwormstep.script
--
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 sh
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
nks in advance, kind regards
--
Franco Martelli
he installation.
Cheers,
--
Franco Martelli
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
id 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
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: "α" "β"
"γ" ?
Tr
in the Debian wiki:
https://wiki.debian.org/XCompose
Cheers,
--
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: "α" "β"
"γ" ?
Tr
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
or me isn't enough. I'm
using KDE desktop.
Thanks in advance, best regards.
--
Franco Martelli
_partition#ESP_on_software_RAID1
--
Franco Martelli
aybe it is a deprecated action for grub to install to multiple device,
so this should it be investigated?
Cheers,
--
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 mi
s? I never
used zfs it's full featured, I prefer to keep the things simple: RAID ->
LVM -> ext4
Cheers,
--
Franco Martelli
thought it was mandatory for a RAID to partition drives with this
partition type, am I wrong?
Cheers,
--
Franco Martelli
od 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
ou 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
e 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>&am
suspend to RAM, good luck
Cheers
--
Franco Martelli
OP 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
/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
1 - 100 of 132 matches
Mail list logo