Comments (10)
I decided to do some research on my own. Neofetch, a similar program, grabs memory from /proc/meminfo
. Seems simple enough. On my system:
$ cat /proc/meminfo
MemTotal: 16381696 kB
MemFree: 2334052 kB
MemAvailable: 3471604 kB
This should be incredibly easy to pull the info from, it's just string parsing. Here's their code.
from linux_logo.
My system reads "128TB RAM" with this tool, too, but it only has 16 GB RAM.
Ubuntu 16.04 64-bit.
from linux_logo.
This is because on recent Linux /proc/iomem is filled with zeros for security reasons.
When I get a chance I'll see what the best alternative to use is.
from linux_logo.
I wonder what inxi reads to display RAM size? Might be a good place to get ideas.
from linux_logo.
Confirmed in Slackware -current 64bit (post 14.2).
from linux_logo.
Also true on current Arch.
from linux_logo.
This 128TB RAM
bug is also present in Ubuntu 16.04.1
running Linux Logo Version 5.11 using libsysinfo 0.2.1
from linux_logo.
should be fixed with 714bb13
from linux_logo.
@deater
What is the best and easiest way to access this fix? Should I just wait for Ubuntu packages to update?
$ cat /etc/issue
Ubuntu 16.04.1 LTS
$ uname -a
Linux starman 4.4.0-177-generic #207-Ubuntu SMP Mon Mar 16 01:16:10 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ dpkg -s linuxlogo
Package: linuxlogo
Status: install ok installed
Priority: extra
Section: misc
Installed-Size: 350
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Version: 5.11-8
Depends: libc6 (>= 2.7), lsb-base
Conffiles:
/etc/init.d/linuxlogo c1341159da0a73ae24a94c4ad115a79e
/etc/linux_logo.conf 168d10482a20036fd79be254d0430e37
Description: Color ANSI System Logo
A Color ANSI Logo with some system information that can be displayed at system
boot time or, with some local configuration, at the login prompt. Four
different Logos are available:
.
* Debian Swirl(default)
* Debian Banner
* Tux Classic and Banner
.
The Classic and Banner Logos are based on Larry Ewing's Penguin. Monochrome
ASCII versions of all the logos are included.
Original-Maintainer: Dariusz Dwornikowski <[email protected]>
Homepage: http://www.deater.net/weave/vmwprod/linux_logo/
from linux_logo.
@wbraswell The updated version of this package will be included in future versions of Ubuntu, and it definitely will not be added to 16.04.
from linux_logo.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linux_logo.