Raspberry – Personnalisation écran d’accueil

Réduire
X
Réduire
  •  

  • Raspberry – Personnalisation écran d’accueil

    Cliquez sur l'image pour la voir en taille réelle 

Nom : 		image.png 
Affichages :	27 
Taille :		10,9 Ko 
ID : 			95

    Pour personnalisé son écran de connexion en ssh, il faut éditer le fichier /home/pi/.bash_profile et /etc/motd.somewhere.or.other

    let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)"
    let secs=$((${upSeconds}%60))
    let mins=$((${upSeconds}/60%60))
    let hours=$((${upSeconds}/3600%24))
    let days=$((${upSeconds}/86400))
    UPTIME=`printf "%d days, %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs"`
    # get the load averages
    read one five fifteen rest < /proc/loadavg
    echo "$(tput setaf 3)
    ) *
    * ) ( /( ( (
    ) /(( )\()))\ ) )\))( ( (
    ( )(_))\ ) ( __((_)\(()/( ___((_)()\ )\ ( ))\(
    (_(_()|(_)/(/( )\___|((_)/(_))___(_()((_|(_) )\ ) /((_)\ $(tput setaf 4)
    |_ _|(_|(_)_\((_) / _ (_) _| | \/ |(_)_(_/((_))((_)
    | | | | '_ \|_-< | (_) | _| | |\/| || | ' \)) -_|_-<
    |_| |_| .__//__/ \___/|_| |_| |_||_|_||_|\___/__/
    |_|
    $(tput setaf 2)
    `date +"%A, %e %B %Y, %r"`
    `uname -srmo`
    $(tput setaf 1)
    Uptime.................: $(tput setaf 7) ${UPTIME} $(tput setaf 1)
    Memoire................: $(tput setaf 7) `cat /proc/meminfo | grep MemFree | awk {'print $2'}` kB (Libre)
    `cat /proc/meminfo | grep MemTotal | awk {'print $2'}` kB (Total) $(tput setaf 1)
    Load Averages..........: $(tput setaf 7) ${one}, ${five}, ${fifteen} (1, 5, 15 min) $(tput setaf 1)
    Processes lance........: $(tput setaf 7) `ps ax | wc -l | tr -d " "` $(tput setaf 1)
    Adresse IP privee......: $(tput setaf 7) `/sbin/ifconfig eth0 | /bin/grep "inet adr" | /usr/bin/cut -d ":" -f 2 | /usr/bin/cut -d " " -f 1` $(tput setaf 1)
    Adresse IP public......: $(tput setaf 7) `wget -q -O - http://icanhazip.com/ | tail` $(tput setaf 1)
    Temperature............: $(tput setaf 7) `curl -s "http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=EUR|UK|UK001| NAILSEA|" | sed -n '/Currently:/ s/.*: \(.*\): \([0-9]*\)\([CF]\).*/\2°\3, \1/p'`
    $(tput sgr0)"



    Taggé Linux, raspberry.Mettre en favori le Permaliens.

      L'envoi de commentaires est désactivé.

    Article Tags

    Réduire

    Latest Articles

    Réduire

    • Raspberry – Personnalisation écran d’accueil
      par hcornet


      Pour personnalisé son écran de connexion en ssh, il faut éditer le fichier /home/pi/.bash_profile et /etc/motd.somewhere.or.other

      let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)"
      let secs=$((${upSeconds}%60))
      let mins=$((${upSeconds}/60%60))
      let hours=$((${upSeconds}/3600%24))
      let days=$((${upSeconds}/86400))
      UPTIME=`printf "%d days, %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs"`...
      21 October 2023, 18h27
    • Raspberry Pi - Mise à jour
      par hcornet


      Sur deux lignes
      sudo apt-get update
      sudo apt-getfull-upgrade​

      Sur une ligne
      sudo apt-get update && sudo apt-get full-upgrade​...
      21 October 2023, 18h20
    Chargement...