2

Is there a way to show the following things on the Desktop? Not like a warning but like text in the right top corner, not where the hour and network connections are in the panel, but really on the desktop. Like on top of the wallpaper.

  • IP address
  • MAC address
  • Boot Time
  • DNS server
  • Name of logged in user
Zanna
  • 70,465
RUS
  • 73
  • You mean "On Desktop" as in the area where wallpaper is ? – Sergiy Kolodyazhnyy Nov 28 '16 at 15:58
  • Hmmm, "text in top right corner". So it seems you want a unity panel indicator. That can be arranged – Sergiy Kolodyazhnyy Nov 28 '16 at 16:44
  • HI, no like you said first. LIke where the wallpaper is. But generated from the pc so not like an image and that doesn't change. – RUS Nov 28 '16 at 20:01
  • well, that could be possible with a custom widget of sorts. Conky could be a good point to start. I usually write my own stuff, so I'll probably try to do something like that and post. It's possible to generate a wallpaper with text "imprinted" onto the image, but in my experience you can't continuously keep setting image over and over - it will eventually crash the desktop. So yeah . . . Look into conky for now. I'll see what I can do with a custom widget, but that probably will take time – Sergiy Kolodyazhnyy Nov 28 '16 at 20:10

1 Answers1

3

For your IP, you can use indicator-ip. Open the terminal and run:

sudo apt-add-repository ppa:bovender/bovender
sudo apt-get update
sudo apt-get install indicator-ip

It will look something like this:

indicator-ip

For the real username, install dconf-editor by running sudo apt-get install dconf-editor. Once that's done, open up dconf-editor, and navigate to apps and then indicator-session. Look for show-real-name-panel and turn that on to true (it is false by default) and that will show your username. NameofUser.

For older releases, use gsettings set com.canonical.indicator.session show-real-name-on-panel true.

If you would like to disable it, run gsettings set com.canonical.indicator.session show-real-name-on-panel false

For the rest(and if you like you can do the IP as well), we can create our own indicators. We need to first install sysmonitor.

sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor
sudo apt-get update
sudo apt-get install indicator-sysmonitor

Open sys-monitor, and click on the Advanced Tab. We need to add a new script, so we click "New", thus we have this screen.

Add-script

In the Command Section, add your the required script you want to run. For example we will add the "Boot-Time" indicator. So in the command we will write uptime -s. Add whatever description you want and name. Save it and look for your newly added script, and then click "Add". Your script should now appear on the topbar.

For example, here is the script to display the current CPU frequency for the first core:

echo $(grep "cpu MHz" /proc/cpuinfo | head -1 | cut -d ' ' -f3 | cut -d '.' -f1) MHz

Here is the indicator

CPU Speed

UPDATE

If you looking for your internal IP, create a script(as described above) and in the command box, add this:

ip route get 8.8.8.8 | awk '{print $NF; exit}'

That should get you the internal IP.

WebUp8 Team - SysMonitor Reference

Tony Lancer
  • 1,003
  • thnx a lot! Some of this is helping for other things. And maybe if what i meant isn't possible , you have the answers here :) – RUS Nov 28 '16 at 20:03
  • IP-indicator doesn't work :( has an error when installed with sudo apt-get install.... – RUS Nov 29 '16 at 15:24
  • What Ubuntu version do you have? – Tony Lancer Nov 30 '16 at 13:34
  • Ubuntu 16.10. The indicator with different scripts works fine but i need my ip adress and not the public one. That's why neither are working for me :( – RUS Nov 30 '16 at 14:20
  • What was the error message? – Tony Lancer Nov 30 '16 at 15:51
  • @RUS I have added the line you need to get your internal IP. – Tony Lancer Dec 03 '16 at 01:24
  • HI, So i open Text editor. TOok the terminale code line u added and saved it in the home folder with name IP. I opend up sysmonitor and the advanced tab. CLick add, name Ip and sub Ip and command $HOME/IP. The IP file is exectuable made and works perfectly when i run it in the terminal..... – RUS Dec 08 '16 at 15:55
  • 1
    Does it have the executable permission? If not, you will need to add the permission by typing in the terminal chmod 764 name_of_file where name_of_file is the name of your file or path to the file. – Tony Lancer Dec 08 '16 at 16:23
  • 1
    It worked with the last update ! thx !!! – RUS Apr 20 '17 at 14:43