ish-app / ish-app/ish

Identification info within iSH (Device, CPU, RAM, Network etc)?

Open
#1,779 3 comments 0 reactions 0 assignees View on GitHub
unconfirmed
Dominant language
C
Stars
20.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

What are the identification options within iSH/can we get more identification in iSH?

What info might be useful:
--
- Device model (e.g. iPad, iPad Pro, iPad Air 5 2022)
- CPU name (e.g. A15, M1)
- Network info (private IP, card?)
- ???

Places I have checked:
--
- `uname -a`
- Was able to source OS family (Linux) and arch (i686/x86/32bit)
- `cat /etc/os-release`
- Was able to source OS name (Alpine Linux) and OS version (3.14.3)
- `cat /proc/version`
- Was able to source iSH name, version, build (albeit unstructured)
- `nproc`
- Was able to source number of presumably the perceived physical CPUs, namely 1
- `getconf _NPROCESSORS_ONLN`
- Was able to source presumably the perceived virtual CPUs, namely 6
- `cat /proc/meminfo | grep MemTotal`
- Was able to source amount of RAM
- `hostname`
- Was able to source device name
- `df -h`
- Was able to source diskspace of root filesystem `/`
- `lscpu` - failed to determine number of CPUs
- `cat /proc/cpuinfo` - failed, no such file
- `free` - failed, returns table of memory data, but unpopulated/zero values
- `lspci` - failed, cannot open /proc/bus/pci
- `lshw` - failed, returns data but not particularly useful
- `hwinfo` - mostly failed, returns data but most details are not implemented/unable to probe
- `ip a`/`ip addr` - failed, invalid argument/socket doesn't exist

Why
--
Find it neat to see this kind of info injected it into my .profile, example below on new shell session:
![image](https://user-images.githubusercontent.com/25647368/164204707-90c89dfb-98d3-481d-903c-5aabffaf5d5e.png)

**P.S.>**
❤️ Kudos on a neat project, been tweaking .dotfiles to support iSH, been a fun way to dip toe into Alpine and challenge assumptions of available tools (or even CPU instructions) and the lack thereof.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue lists shell entry points including uname, /proc, nproc, meminfo, hostname, df, lscpu, free, lspci, lshw, hwinfo, and ip. Start by reviewing which of these interfaces iSH currently exposes and deciding which device, CPU, RAM, storage, and network details are supported. Done means the selected identification information is available reliably through iSH, with unsupported details clearly scoped.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, linux
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.