F
F
FulgerX20072015-02-12 23:15:37
linux
FulgerX2007, 2015-02-12 23:15:37

How to generate desktop wallpaper with laptop options?

Hi all!
I have such a problem: we have a small network of electronics stores, for laptops that we put on the showcase there are several requirements:

  1. Linux distribution must be installed on them.
  2. on the desktop there should be a picture with the parameters of the laptop

I have a problem with the second requirement. Now the image is generated based on PHP, we select the laptop model from the list where all its parameters are listed in advance, then the background image and drive in the price, then PHP converts all this one image.
And now the question is: maybe someone knows if there is an assembly on Linux or another OS to run on a laptop and pictures for the background were taken from a certain folder and laptop settings directly from it and only asked us for a price?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2015-02-12
@FulgerX2007

So write yourself at least in PHP, at least in bash.
There's work for an hour, including googling.

V
Vlad Zhivotnev, 2015-02-13
@inkvizitor68sl

#!/bin/bash                                                                                                                                                                                           

get_hardware () {
    echo "'"
    grep 'model name' /proc/cpuinfo | uniq | sed 's/model name/CPU/' |sed 's// /g'
    echo "RAM: $(free -m | awk '/Mem:/ {print $2}') MB"
    echo "Disk model: $(LANG=C sudo lshw -class disk | awk '/product:/ {gsub ("       product: ", "") ; print}')"
    echo "Disk capacity: $(LANG=C sudo lshw -class disk | awk '/size:/ {gsub ("       size: ", "") ; print}')"
    echo "'"
}

convert -size 1600x900 xc:transparent -font Ubuntu-Regular -pointsize 72 -channel RGBA -fill black -draw "text 20,55 $(get_hardware)" fuzzy-tweaks.png

A terrible example, but it should do for an example)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question