Search found 7708 matches

by rene
Mon Jul 26, 2021 12:17 pm
Forum: Scripts & Bash
Topic: bash script memory size in gb
Replies: 22
Views: 700

Re: bash script memory size in gb

Yes. And just to reinforce my earlier reply then: note how e.g. 1024^3 has a precise (integer) representation also in the computer; when you divide by it you still introduce a potential round-off error inherent to floating point math --- but only once . If you do N / 1024 / 1024 / 1024 you have thre...
by rene
Mon Jul 26, 2021 10:11 am
Forum: Scripts & Bash
Topic: bash script memory size in gb
Replies: 22
Views: 700

Re: bash script memory size in gb

Termy wrote:
Mon Jul 26, 2021 9:54 am
How would you go up again, without using 1024 / 1024 / 1024?
Not sure I understand what you mean; n / a / b / c is simply n / (a * b * c); in this special case, n / 1024^3.
by rene
Mon Jul 26, 2021 9:22 am
Forum: Beginner Questions
Topic: Will it always be a slog using Linux?
Replies: 18
Views: 331

Re: Will it always be a slog using Linux?

Linux is an operating system developed, if you'll allow me, "Just for Fun". I.e., developed by and primarily for those for whom the computer itself rather than (just) anything you might do with it is interesting. Among those for who it is not, those that consider the computer a mere tool, ...
by rene
Mon Jul 26, 2021 8:34 am
Forum: Scripts & Bash
Topic: bash script memory size in gb
Replies: 22
Views: 700

Re: bash script memory size in gb

$ awk '$1 == "MemTotal:" {printf("%.2f GiB\n", $2 / 1024 / 1024)}' /proc/meminfo 13.61 GiB The salient point here was more the rounding up (i.e., see above) but what I'm having a really hard time not commenting on is the general numerical mathematics point that one should do one...
by rene
Mon Jul 26, 2021 7:54 am
Forum: Networking
Topic: Samba is Trash
Replies: 7
Views: 179

Re: Samba is Trash

Or by the way simply sftp. I.e., set up regular ssh access to the system you want to remote access files on (preferably via public key) and go to and/or bookmark e.g. sftp://1.2.3.4/home/you in your file manager for access to your home directory on that machine. Or Warpinator certainly if all/both a...
by rene
Mon Jul 26, 2021 6:06 am
Forum: Scripts & Bash
Topic: bash script memory size in gb
Replies: 22
Views: 700

Re: bash script memory size in gb

I guess they'll have also create a name for the numbers in KiB, GiB , ... If that's what you mean certainly those exist already: https://en.wikipedia.org/wiki/Binary_prefix. "kibibytes", "mebibytes", "gibibytes", etc. Latter being uncomfortably close to e.g. "gigg...
by rene
Mon Jul 26, 2021 2:40 am
Forum: Beginner Questions
Topic: [SOLVED]Login History
Replies: 4
Views: 117

Re: Login History

F.e. last -s -5days. See man last.
by rene
Mon Jul 26, 2021 2:35 am
Forum: Networking
Topic: Samba is Trash
Replies: 7
Views: 179

Re: Samba is Trash

As to your subject line: hear, hear. And in that sense: why are you trying to use Samba? Samba is a reverse-engineered implementation of foreign, Windows network technology on Linux. If "local" as you use it means intra-Linux then just use native technology such as NFS. But also note that ...
by rene
Mon Jul 26, 2021 2:02 am
Forum: Beginner Questions
Topic: Computer upgrade - solid state drive & what else?
Replies: 41
Views: 1265

Re: Computer upgrade - solid state drive & what else?

Certainly if you at the same time switch to an SSD as discussed early in thread you will supposedly find things significantly more spiffy than up to now used to. Note; be sure to enable XMP (or DOCP/EOCP if the board calls it that) in the BIOS to enable the higher memory speed.
by rene
Mon Jul 26, 2021 12:49 am
Forum: Beginner Questions
Topic: Computer upgrade - solid state drive & what else?
Replies: 41
Views: 1265

Re: Computer upgrade - solid state drive & what else?

What do you mean by "ratings"? I would still definitely not get the 200GE; the 3000G is basically a one-and-a-half year newer version of that same chip; a one-and-a-half year better version of that same chip as the fab got more experience churning out Zen silicon. It has the same power spe...
by rene
Sun Jul 25, 2021 1:51 am
Forum: Other topics
Topic: Nemo -- Bogus Names?!?!?!
Replies: 75
Views: 1586

Re: Nemo -- Bogus Names?!?!?!

Except in this case, nemo is intelligent enough to read the contents of the desktop file, work out what the executable is ( Exec= ), display the icon for the program ( Icon= ) and then display the application name ( Name= ) instead of the filename - neat or what? Neato! Name=readme.txt Icon=plainte...
by rene
Sat Jul 24, 2021 4:56 pm
Forum: Networking
Topic: No internet access with KPN router
Replies: 3
Views: 101

Re: No internet access with KPN router

Am afraid I've little useable suggestion. Given that W7 on the same system works it must be system-sides; given that it's both Wi-Fi and ethernet and specific to this connection it's not a hardware/signal-strength issue; DNS was denied. Any suggestion I have boils down to Linux-sides setup but given...
by rene
Sat Jul 24, 2021 5:07 am
Forum: Networking
Topic: No internet access with KPN router
Replies: 3
Views: 101

Re: No internet access with KPN router

Ping to what always fails; to name, IP or both? If ping 8.8.8.8 works it's a DNS issue: have you configured custom DNS on Linux? I.e., perhaps your router back home?
by rene
Fri Jul 23, 2021 10:11 am
Forum: Suggestions & Feedback
Topic: Terminal event/command traceability
Replies: 1
Views: 105

Re: Terminal event/command traceability

NB; The history file is by default limited to 500 entries; see man bash, HISTSIZE and HISTFILESIZE. If you add e.g. HISTSIZE=-1 to ~/.bashrc it's unlimited, i.e., will retain above suggestion.
by rene
Thu Jul 22, 2021 8:58 pm
Forum: Cinnamon
Topic: Solved - backup using rsync
Replies: 10
Views: 229

Re: backup using rsync

There's an unfortunate set of alternatives in your report. I.e., you say that you did sudo rsync -r /home/ve3sjv /media/ve3sjv/Storage_A but then say that wound up in /media/home/ve3sjv/Storage_A , i.e., with the additional home . Then one sentence later you say to have tried to delete /media/Storag...
by rene
Thu Jul 22, 2021 8:24 pm
Forum: Scripts & Bash
Topic: bash script memory size in gb
Replies: 22
Views: 700

Re: bash script memory size in gb

Memory technology is "always" measured in the binary units. I.e., where dmidecode says "4096 MB" for a DIMM it should in modern terms say "4096 MiB", and specifically, you have 16 GiB of memory and not 16 GB. Please note that it's not long ago that the binary units did ...
by rene
Thu Jul 22, 2021 6:51 pm
Forum: Software & Applications
Topic: Kernel Security Hole
Replies: 7
Views: 275

Re: Kernel Security Hole

Was in fact more aiming for original poster with that comment, but no, I do not think it's true that '[those] who are not technically knowledgeable enough to understand the articles would not profit from a "requires local access"'. As for example I said above "i.e., an untrusted local...
by rene
Thu Jul 22, 2021 6:14 pm
Forum: Software & Applications
Topic: Kernel Security Hole
Replies: 7
Views: 275

Re: Kernel Security Hole

But I am confident that most of you do. But if not... while this one is a bit more serious than the systemd one, it again requires a local attacker, i.e., an untrusted local user or malware. Those of us that have neither, i.e., probably literally every user of this forum, may feel free to take it e...
by rene
Thu Jul 22, 2021 7:36 am
Forum: Scripts & Bash
Topic: bash script memory size in gb
Replies: 22
Views: 700

Re: bash script memory size in gb

Really error ? :shock: Not so much no. The binary prefixes are relatively new and the /proc/meminfo file relatively old; the original choice of kB has become part of the kernel ABI, i.e., you don't want to break userspace programs parsing it but yes, it's the 1024-byte "kB", i.e, KiB. Oth...
by rene
Thu Jul 22, 2021 3:16 am
Forum: Scripts & Bash
Topic: bash script memory size in gb
Replies: 22
Views: 700

Re: bash script memory size in gb

Zgrywus wrote:
Thu Jul 22, 2021 3:05 am
Is there a way to do script which shows (free -g + 1)? :P
Sure, but it's then better to go through /proc/meminfo; below rounds up the value of MemTotal to the next 1G border:

Code: Select all

awk '/^MemTotal/ { print int(($2 + 1024^2 - 1)/(1024^2)) }' /proc/meminfo