Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: jay on April 14, 2020, 03:35:18 AM

Title: Help with CPU and RAM showing
Post by: jay on April 14, 2020, 03:35:18 AM
Hello,

I am a Windows only User till now.
I need a fast booting OS to check the CPU and RAM which are installed on a PC/Laptop. I need to check a few hundred PC´s/Laptops.
For this reason i want to use a OS on a USB Stick.
I found Tiny Core Linux for it.
But now i have the problem that i know nothing about Linux. My last contact with it is almost 20 years ago.
How can i solve the problem that i boot TCL and it shows automatically the installed CPU and RAM.
I dont need usage or somethingelse. Only what is installed on the PC/Laptop is necessary for me.
Title: Re: Help with CPU and RAM showing
Post by: Juanito on April 14, 2020, 04:11:05 AM
Code: [Select]
$ cat /proc/cpuinfo | grep 'model name'
model name      : Intel(R) Core(TM) i7-4600U CPU @ 2.10GH
$ cat /proc/meminfo | grep MemTotal
MemTotal:       16405824 kB
Title: Re: Help with CPU and RAM showing
Post by: NewUser on April 15, 2020, 02:43:06 AM
If you have more money than curiosity (not recommended) you could purchase Parted Magic. Personally, I'd use Tiny Core.
Title: Re: Help with CPU and RAM showing
Post by: ferran on April 15, 2020, 02:44:49 AM
Also with df -h you can see the disk used, available and percents of used disk partitions (/dev/sda1 sda2, etc.)
Title: Re: Help with CPU and RAM showing
Post by: ferran on April 15, 2020, 05:56:11 AM
Oh! I just discovered a great hardware's info extension:

Since Apps>

lshw.tcz

f.i. with sudo lshw -c processor

Quote
tc@box:~$ sudo lshw -c processor
  *-cpu:0                   
       description: CPU
       product: Genuine Intel(R) CPU           T1600  @ 1.66GHz
       vendor: Intel Corp.
       physical id: 4
       bus info: cpu@0
       version: 6.15.13
       serial: 0000-06FD-0000-0000-0000-0000
       slot: Socket 478
       size: 1666MHz
       capacity: 1666MHz
       width: 64 bits
       clock: 167MHz
       capabilities: lm boot fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe nx x86-64 constant_tsc arch_perfmon pebs bts cpuid aperfmperf pni dtes64 monitor ds_cpl tm2 ssse3 cx16 xtpr pdcm lahf_lm dtherm
       configuration: cores=2 enabledcores=2 id=1 threads=2
     *-logicalcpu:0
          description: Logical CPU
          physical id: 1.1
          width: 64 bits
          capabilities: logical
     *-logicalcpu:1
          description: Logical CPU
          physical id: 1.2
          width: 64 bits
          capabilities: logical
  *-cpu:1
       physical id: 1
       bus info: cpu@1
       version: 6.15.13
       serial: 0000-06FD-0000-0000-0000-0000
       size: 1700MHz
       capabilities: ht
       configuration: id=1
     *-logicalcpu:0
          description: Logical CPU
          physical id: 1.1
          capabilities: logical
     *-logicalcpu:1
          description: Logical CPU
          physical id: 1.2
          capabilities: logical
  *-processor UNCLAIMED
       physical id: 3.5
       bus info: pci@0000:00:03.5
       version: b1
       width: 32 bits
       clock: 66MHz
       capabilities: bus_master
       configuration: latency=0 maxlatency=1 mingnt=3
       resources: memory:fce80000-fcefffff

But you can to download a GUI from the Apps extensions:

gtk-lshw.tcz relased reciently by Rich (Thanks Rich)

It's a beauty GUI hardware scanner lister (I attached an image below)

Title: Re: Help with CPU and RAM showing
Post by: jay on May 26, 2020, 03:40:21 AM
Thanks for the Reply.
My problem is that i want to start the 2 Commands automatically on Command Line Boot Up.
i tested the TCL Versions with and without GUI.

I tried to edit the bootlocal.sh
If i choose the option command line start up with 5 Seconds waiting it loads the GUI edited bootlocal.sh Version but the command: cat /proc-cpuinfo | grep ´model name´ doesnt show up.
If i do edit the bootlocal.sh on the command line it doesnt change the bootlocal.sh after reboot

i tried:
sudo chown tc:staff /opt/bootlocal.sh
sudo chmod 775 /opt/bootlocal.sh

then vi bootlocal.sh

there i edited for example: fdisk -l
after vi saving i tried: filetool.sh -b

But it didnt saved the changes in the bootlocal.sh.
Only those i do in the GUI Version. And those neither are in function.

Title: Re: Help with CPU and RAM showing
Post by: jazzbiker on May 26, 2020, 04:40:20 AM

sudo chown tc:staff /opt/bootlocal.sh
sudo chmod 775 /opt/bootlocal.sh

then vi bootlocal.sh


Hi, Jay!

I think better is not to change owner and permissions
Code: [Select]
sudo vi bootlocal.sh

EDIT:

Commands in bootlocal.sh will be executed with the root privilegies. User commands, which do not need extra permissions, are better to be located in Your ~/.profile file. It can be edited without sudo:
Code: [Select]
vi ~/.profile

EDIT.2:

If You start one of X servers (XVesa, Xfbdev or Xorg at Your choice) then scripts located in ~/.X.d will be executed immediately after server start.
Title: Re: Help with CPU and RAM showing
Post by: jay on May 26, 2020, 01:05:50 PM
I tried the changing of /.profile.
But i cannot save it.
filetool.sh -b doesn´t seems to save anything.
Is it possible that the using of an USB Stick is the problem?
Must i start not the normal Command Line?
Title: Re: Help with CPU and RAM showing
Post by: jazzbiker on May 26, 2020, 03:31:33 PM
Hi, jay!

You are talking about /.profile. Is it a typo? I proposed ~/.profile. ~/.profile is saved during filetool.sh -b, and /.profile is not.
USB stick is not the problem, I use it every day not forgetting to backup mydata.tgz.
Title: Re: Help with CPU and RAM showing
Post by: NewUser on May 27, 2020, 12:24:17 AM
D you have to boot every laptop to perform this task? There are better ways to do what you want if  the laptops are in use.
Title: Re: Help with CPU and RAM showing
Post by: NewUser on May 27, 2020, 01:08:06 AM
D you have to boot every laptop to perform this task? There are better ways to do what you want if  the laptops are in use.
And you are an admin.
Title: Re: Help with CPU and RAM showing
Post by: jay on May 27, 2020, 02:49:42 AM
@jazzbiker:
I used vi ~/.profile and insert fdisk -l as an example.
i saved via :w and after closing vi i used filetool.sh -b
But after the rebooting to command line everything is back to before the save.

@NewUser:
I am thankful for every Idead you might have.

It is planned that i create a few USB Sticks with software and boot the PC´s and Laptops from the USB Stick.
Then i look only for the CPU and the RAM. And it should be fast, that is why i want to use Core with Command Line.
Title: Re: Help with CPU and RAM showing
Post by: jazzbiker on May 27, 2020, 03:07:53 AM
Hi, jay!

How are You gettng to command line? The default TC installation propose Xvesa server with minimum desktop.
Title: Re: Help with CPU and RAM showing
Post by: jay on May 27, 2020, 08:49:26 AM
At the moment I am using the Core Current Iso.
I started every time just by pressing Enter to boot.
Now i tried other boot options via F3 and tried the booting command: mc tce=sdb1
When i now edited the ~/.profile i cannot save.
i get the error: line 122: can´t create /tmp/backup_status: Permission denied
Title: Re: Help with CPU and RAM showing
Post by: jazzbiker on May 27, 2020, 08:55:53 AM
Ok, You see boot menu of some entries, You choose one of them with the help of arrows keys and then proceed pressing Enter, yes?
And what is the menu entry name, which You select and confirm pressing Enter?
Title: Re: Help with CPU and RAM showing
Post by: jazzbiker on May 27, 2020, 09:00:19 AM
Hi, jay!

Are You working with the flash drive with Core.iso copied into it?
Title: Re: Help with CPU and RAM showing
Post by: Rich on May 27, 2020, 09:10:35 AM
Hi jay
Try one of the selections that includes  waitusb=5.
Title: Re: Help with CPU and RAM showing
Post by: jazzbiker on May 27, 2020, 09:14:43 AM
Seems that at least I relized what is Your problem. I was talking about fully functional TC installed on the flash drive. But You use the CD image copied to flash drive, such image is not fully functional, it assumes that media is not writeable, this is why Your saves go to nowhere.
So now You have the flash drive with the CD image copied on it. Yoe need to boot from it, and install TC on another flash drive. And those second drive will be the fully functional TC installation.
If You start with Xvesa desktop, there is an icon TCInstall, which is what You need. Or run
Code: [Select]
sudo tc-install.sh
from the command line.
Title: Re: Help with CPU and RAM showing
Post by: jay on May 27, 2020, 01:55:37 PM
I tried using the command: sudo tc-install.sh but it doesn´t work.
He cannot find the command.
I tried the Tiny Core Version with GUI and started the Terminal there, same Problem.

I use the Core Version i downloaded from http://tinycorelinux.net/11.x/x86/release/
I add it to the USB Stick via Rufus.

@Rich: Already tried that, it changes nothing.
Title: Re: Help with CPU and RAM showing
Post by: jazzbiker on May 27, 2020, 02:33:52 PM
Hi, jay!

If You use Core, tc-install may be loaded with
Code: [Select]
tce-load -wi tc-install.tcz

If You use TinyCore (with X desktop) use GUI version of tc-install. It must have an icon.

And You can read "Into the Core" book, downloadable from the TinyCoreLinux site.
Title: Re: Help with CPU and RAM showing
Post by: jay on May 28, 2020, 03:53:05 AM
Thank you jazzbiker
I was finally able to make a copy which let me save after editing.
I downloaded Tiny Core Plus and started the tc-install from the GUI.
I could install the Core Version and successfully edit with: vi ~/.profile

Now i must only discover how Core shows me more as 4GB if more is installed.
But the biggest hurdle is over.
And again: Thank you :)
Title: Re: Help with CPU and RAM showing
Post by: jazzbiker on May 28, 2020, 07:50:27 AM
Hi, jay!

I don't know, is it possible to detect the whole amount of memory if it exceeds 4Gb if You boot into the 32-bit system. If You know how, please post the decision, it may be usefull.
I can propose You the way to accomplish Your task creating bios/efi dual boot flash drive as it was described in the http://forum.tinycorelinux.net/index.php/topic,19364.0.html topic.
At the end of topic I've added some automation proposal, which can be usefull in Your context.