2

Ok, I know it sounds like a dumb question but how do I show a black screen with custom text on it from LXDE desktop. I have looked on the internet for a while all I could find was this:

export IP=ip addr show eth0 | grep -oP '(?<=inet )(\d+\.){3}\d+' wish "<<" END & pack [label .ip -text "$IP" -font "Helvetica 72" -fg grey -bg black] END

However I want this to be fullscreen.

thanks

Nathan O
  • 99
  • 2
  • 9

2 Answers2

2

What I see is you have two options.
1. Write a shell script that would display the text.
2. Write a GUI(Graphical User Interface) using a language that you like.(E.g Python)

sonny
  • 86
  • 6
  • 1
    Can you be a little more specific? – Nathan O Oct 08 '15 at 02:38
  • Ok. The progress you want is to make a black full screen with custom text appear on the desktop.
    – sonny Oct 08 '15 at 02:41
  • Yeah, I don't know how to write a shell script that displays text on the screen, and I don't know how to write a gui. – Nathan O Oct 08 '15 at 02:47
  • http://www.cyberciti.biz/faq/how-to-write-output-to-terminal/ http://www.tutorialspoint.com/python/python_gui_programming.htm I started from those pages. Hope it will help you,too. – sonny Oct 08 '15 at 02:50
2

Do you mean displaying a notifying message on Screen, If this is what you want you can use "notify-send"

$notify-send "Message to be displayed"

create one script : 1. leafpad display_Ip.sh

  1. Write following lines :

    #!/bin/bash IP=ip addr show eth0 | grep -oP '(?<=inet )(\d+\.){3}\d+' notify-send "$IP"

  2. Save it.

  3. Make it executable by: chmod 777 display_Ip.sh

  4. ./display_Ip.sh

It will show your IP on the Screen as Notification.

PS: If notify-send is not installed, install it using apt-get install.

RahulAN
  • 149
  • 7
  • I tried "sudo apt-get install notify-send" and it couldn't be found. Do I need to add a repo? – Nathan O Oct 08 '15 at 18:26
  • I Guess, o need of adding repo you can do apt-get update; apt-get upgrade; apt-get install libnotify-bin This will install notify-send command in your pi – RahulAN Oct 09 '15 at 04:50
  • Are you sure this works on the raspberry pi? I don't see the notification after I run: notify-send "Hello, World" – Nathan O Oct 09 '15 at 17:56
  • Yes it will work. Have you started X server using startx – RahulAN Oct 12 '15 at 04:01