Strony: [1]
Drukuj
Autor Wątek: Inxi - konsola prawdę ci powie!  (Przeczytany 914 razy)
0 użytkowników i 2 Gości przegląda ten wątek.
sir_lucjan
Człowiek Demolka
Prawie jak Admin
Miętowa plantacja
*******

Reputacja 1
Offline Offline

Płeć: Mężczyzna
Distro: Debian testing x86_64
Wiadomości: 2461


"Jak Polska cała, nic nigdzie nie działa!"


Zobacz profil
« : Styczeń 27, 2011, 07:47:17 »

Programem, którego nie ma domyślnie (a powinien być, jak np, w Debianie) jest inxi - czyli szczegółowe źródło informacji o tym, co posiadamy.

Na początek musimy program zainstalować.

Kod:
sudo zypper install inxi

Program obsługujemy przez konsolę - a jak mawia towarzysz ilin - przed nią nie uciekniesz, więc zamiast marudzić, że nie ma GUI to przetestuj, co te cudeńko potrafi.

Przykładowo. Zainstalowaliśmy sterowniki od karty graficznej i nie mamy pojęcia, czy operacja się udała. Nic bardziej prostego.

Kod:
lucjan@lucjan-desktop:~> inxi -G
Graphics:  Card nVidia G84 [GeForce 8600 GT] X.Org 1.8.0 Res: 1440x900@50.0hz
           GLX Renderer GeForce 8600 GT/PCI/SSE2 GLX Version 3.3.0 NVIDIA 260.19.29

Otrzymując taki komunikat, mamy 100% pewność, że operacja się udała Chichot Otrzymując inny - sorry Gregory, może następnym razem się uda Chichot

Poniżej zamieszczam listę opcji - jak widzimy, jest w czym wybierać!
Kod:
lucjan@lucjan-desktop:~> inxi -h
inxi supports the following options. You can combine them, or list them
one by one: Examples: inxi -v4 -c6 OR inxi -dDc 6

If you start inxi with no arguments, it will show the short form.
The following options if used without -d or -v will show just that complete line:
A,C,D,G,I,N,P,S - you can use these together to show just the lines you want to see.
If you use them with a -v level (or -d), it will show the full output for that line
along with the output for the chosen verbosity level.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Output Control Options:
-A  Show Audio/sound card information.
-c  Available color schemes. Scheme number is required.
    Supported schemes: 0-15 Example: inxi -c 11
-C  Show full CPU output, including per CPU clockspeed.
-d  Default output verbosity level, same as: inxi -v 1
-D  Show full hard Disk info, not only model, ie: /dev/sda ST380817AS 80.0GB.
-f  Show all cpu flags used, not just the short list. Not shown with -F to avoid spamming.
-F  Show Full output for inxi. Does not show extra verbose options like -f -u -l -o -p or -t
-G  Show Graphic card information (card, x type, resolution, glx renderer, version).
-i  Show Wan IP address, and shows local interfaces (requires ifconfig network tool).
    Not shown with -F for user security reasons, you shouldn't paste your local/wan IP.
-I  Show Information: processes, uptime, memory, irc client, inxi version.
-l  Show partition labels. Default: short partition -P. For full -p output, use: -pl (or -plu).
-N  Show Network card information.
-o  Show unmounted partition information (includes UUID and LABEL if available).
    Shows file system type if you have file installed, if you are root OR if you have
    added to /etc/sudoers (sudo v. 1.7 or newer): <username> ALL = NOPASSWD: /usr/bin/file (sample)
-p  Show full partition information (-P plus all other detected partitions).
-P  Show Partition information (shows what -v 4 would show, but without extra data).
    Shows, if detected: / /boot /home /tmp /usr /var. Use -p to see all mounted partitions.
-r  Show distro repository data. Currently supported repo types: APT; PACMAN; PISI; YUM.
-s  Show sensors output (if sensors installed/configured): mobo/cpu/gpu temp; detected fan speeds.
    Gpu temp only for Fglrx/Nvidia drivers. Nvidia shows screen number for > 1 screens.
-S  Show System information: host name, kernel, distro
-t  Show processes. Requires extra options: c (cpu) m (memory) cm (cpu+memory). If followed by numbers 1-20,
    shows that number of processes for each type (default: 5; if in irc, max: 5): -t cm10
    Make sure to have no space between letters and numbers (-t cm10 -right, -t cm 10 -wrong).                                                                                                                                               
-u  Show partition UUIDs. Default: short partition -P. For full -p output, use: -pu (or -plu).                                                                                                                                             
-v  Script verbosity levels. Verbosity level number is required.                                                                                                                                                                           
    Supported levels: 0-5 Example: inxi -v 4                                                                                                                                                                                               
    0 - short output, same as: inxi                                                                                                                                                                                                         
    1 - basic verbose, same as: inxi -d                                                                                                                                                                                                     
    2 - Also show networking card data                                                                                                                                                                                                     
    3 - Also show hard disk names as detected.                                                                                                                                                                                             
    4 - Also show partition size/filled data for (if present):/, /home, /var/, /boot                                                                                                                                                       
    5 - For multicore systems, also shows: per core clock speeds; audio card; full disk data.                                                                                                                                               
-x  Show extra data: bogomips on Cpu; driver version (if available) for Network/Audio;                                                                                                                                                     
    for network, audio cards, shows PCI Bus ID number also;                                                                                                                                                                                 
    direct rendering status for Graphics (in X). Only works with verbose or line output;                                                                                                                                                   
    shows (for single gpu, nvidia driver) screen number gpu is running on.                                                                                                                                                                 
    Shows hdd temp with disk data if you have hddtemp installed, if you are root OR if you have                                                                                                                                             
    added to /etc/sudoers (sudo v. 1.7 or newer): <username> ALL = NOPASSWD: /usr/sbin/hddtemp (sample)                                                                                                                                     
    For -t, adds memory use output to cpu (-tx c), and cpu use to memory (-tx m).                                                                                                                                                           
                                                                                                                                                                                                                                           
Additional Options:                                                                                                                                                                                                                         
-h - this help menu.                                                                                                                                                                                                                       
-U  Auto-update script. Note: if you installed as root, you                                                                                                                                                                                 
    must be root to update, otherwise user is fine.                                                                                                                                                                                         
-V  inxi version information. Prints information then exits.                                                                                                                                                                               
-%  Overrides defective or corrupted data.                                                                                                                                                                                                 
-@  Triggers debugger output. Requires debugging level 1-10 (8-10 - logging).                                                                                                                                                               
    8 - basic logging; 9 - full file/sys info logging; 10 - color logging.   

Tak więc jak widzimy, brak GUI w tym wypadku nie skazuje tego wynalazku na wieczne potępienie. Enjoy!
Zapisane

Toshiba Satellite C660-1QC || Linux Register User: #536661

aras
Siewca Mięty
Dorodny miętowy krzew
*****

Reputacja 0
Offline Offline

Płeć: Mężczyzna
Distro: arch
Wiadomości: 664


linux to linux


Zobacz profil WWW
« Odpowiedz #1 : Styczeń 28, 2011, 05:22:24 »

o Sir podnosisz poprzeczkę, bo to nawet ciekawe
Zapisane

THE POWER OF LINUX Mrugnięcie
http://www.youtube.com/watch?v=ASAMs5S8-N8

PRZESTROGA DLA SŁABYCH PSYCHICZNIE:
http://www.escapistmagazine.com/videos/view/loadingreadyrun/1726-Installation-Anxiety-2010


M61PME-S2P, AMD Phenom x3 2300 Mhz x64, 1GB KINGSTON, HDD 250 GB, Geforce 8500GT 512 ram
mati75
Master psuja
Administrator
Miętowa plantacja
*****

Reputacja 2
Offline Offline

Płeć: Mężczyzna
Distro: Debian Sid x64 || Arch Linux x64
Wiadomości: 3115



Zobacz profil WWW
« Odpowiedz #2 : Styczeń 28, 2011, 09:44:37 »

Zawalone ode mnie, a tak na prawdę to developerzy minta używają tego to pomocy użytkownikom totalnie zielonym.
Zapisane

HP 2510p || HP 8510w ||
Forum Linux Mint
« Odpowiedz #2 : Styczeń 28, 2011, 09:44:37 »

 Zapisane
buri
Miętowy Kumpel
Dorodna miętowa sadzonka
*****

Reputacja 0
Offline Offline

Płeć: Mężczyzna
Distro: CrunchBang x64 BPO
Wiadomości: 167



Zobacz profil
« Odpowiedz #3 : Styczeń 28, 2011, 10:11:15 »

Mi się bardzo spodobał program, a zielony jeszcze jestem. Nawet nie wiedziałem, że takie małe cudeńko siedzi standardowo w systemie.
Zapisane
Buba
Dorodna miętowa sadzonka
***

Reputacja 1
Offline Offline

Płeć: Mężczyzna
Distro: Debian Sid / Zuo
Wiadomości: 190


jak by wszystko było proste, było by nudne


Zobacz profil
« Odpowiedz #4 : Styczeń 28, 2011, 04:55:43 »

u mnie domyślnie w debianie nie ma Język
Zapisane

mati75
Master psuja
Administrator
Miętowa plantacja
*****

Reputacja 2
Offline Offline

Płeć: Mężczyzna
Distro: Debian Sid x64 || Arch Linux x64
Wiadomości: 3115



Zobacz profil WWW
« Odpowiedz #5 : Styczeń 28, 2011, 05:21:42 »

Trzeba dograć, bo normalnie nie ma.
Zapisane

HP 2510p || HP 8510w ||
Enlik
Siewca Mięty
Dorodna miętowa sadzonka
*****

Reputacja 0
Offline Offline

Płeć: Mężczyzna
Distro: Sabayon
Wiadomości: 247



Zobacz profil
« Odpowiedz #6 : Styczeń 28, 2011, 05:34:55 »

Ja się tylko zastanawiam...
Programem, którego nie ma domyślnie (a powinien być, jak np, w Debianie) jest inxi - czyli szczegółowe źródło informacji o tym, co posiadamy.
Listę posiadanych pcheł też wypisze?
Zapisane

- Wybrałeś czerwony czy zielony?
- Tak.
sir_lucjan
Człowiek Demolka
Prawie jak Admin
Miętowa plantacja
*******

Reputacja 1
Offline Offline

Płeć: Mężczyzna
Distro: Debian testing x86_64
Wiadomości: 2461


"Jak Polska cała, nic nigdzie nie działa!"


Zobacz profil
« Odpowiedz #7 : Styczeń 29, 2011, 09:23:24 »

Jak jakieś masz - na pewno Uśmiech
Dodany: Styczeń 29, 2011, 11:21:30
Mała poprawka, miało być zainstalowane w Mincie a nie w Debianie Chichot
« Ostatnia zmiana: Styczeń 29, 2011, 11:21:30 wysłana przez sir_lucjan » Zapisane

Toshiba Satellite C660-1QC || Linux Register User: #536661

Strony: [1]
Drukuj
Skocz do: