Affichez des infos au sujet de votre environnement personnalisé Voici un petit script permettant d'afficher les informations suivantes :
J'ai trouvé les commandes affichant chacune de ces informations sur les forums anglophones d'ArchLinux et d'Ubuntu.
Je ne me souviens malheureusement plus exactement des auteurs des messages mais je les en remercie.

#!/usr/bin/env bash # Infos Script # Author : Hells_Dark # Source : http://breves.hellsdark.homelinux.net #Couleurs bleu="\033[1;34m" cyan="\033[36m" gris="\033[37m" #Style gras="\033[00m" #Remise aux valeurs par défaut fin="\033[0m" # LINUX PART echo echo -e "$bleu LINUX $fin" . /etc/lsb-release echo -e " Distro: $gras $DISTRIB_ID $DISTRIB_RELEASE $DISTRIB_CODENAME$fin" echo -e " Kernel: $gras $(uname -r)$fin" echo -e " Uptime: $gras$(uptime |cut --delimiter=" " -f 4)$fin days and $gras$(uptime |cut --delimiter=" " -f 2)$fin hrs " # HARDWARE PART echo echo -e "$bleu HARDWARE $fin" echo -e " CPU: $gras$(grep "model name" /proc/cpuinfo|cut --delimiter=":" -f 2 | head -n1| sed -r "s/\s+/ /g")$fin " echo -e " GPU: $gras$(cat /proc/driver/nvidia/cards/0 | grep Model | cut --delimiter=" " -f3,4,5,6,7,8,9)$fin" memtotal=$((`grep "MemTotal" /proc/meminfo|cut -c 12-22|indent -i0`/1024)) echo -e " RAM : $gras $memtotal$fin mb" echo -e " Bogomips: $gras$(grep "bogomips" /proc/cpuinfo|cut --delimiter=":" -f 2 | head -n1)$fin bogomips" # DESIGN PART echo echo -e "$bleu DESIGN $fin" echo -e " Environment : $gras Gnome$fin" echo -e " GTK2: $gras$(gconftool-2 --get /desktop/gnome/interface/gtk_theme)$fin" echo -e " Emerald: $gras $(grep description $HOME/.emerald/theme/theme.ini |cut -c 13-)$fin" echo -e " Icons: $gras$(gconftool-2 --get /desktop/gnome/interface/icon_theme)$fin" echo -e " Application Font: $gras $(gconftool-2 --get /desktop/gnome/interface/font_name)$fin" echo -e " Terminal Font: $gras$(gconftool-2 --get /apps/gnome-terminal/profiles/Default/font)$fin" echo -e " Wallpaper : $gras $(gconftool-2 --get /desktop/gnome/background/picture_filename | sed -e "s,^.*/,," | cut --delimiter="." -f1)$fin" echo -e " Resolution : $gras $(xvidtune -show | cut --delimiter='"' -f2)$fin px" echo exit 0
Enregistrez le fichier dans votre dossier /usr/local/bin, donnez lui les droits d'éxécution (chmod +x /usr/local/bin/infos), puis exécutez le en tapant "infos" dans un terminal.
03/02/08, 00:00