Skip to content

LXDE Panel Plugin that displays an interfaces current IP address

Notifications You must be signed in to change notification settings

magno32/lxpanel_ifaddr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

lxpanel_ifaddr

LXDE Panel Plugin that displays an interfaces current IP address

We needed a simple LXDE Plugin to display the IP information of a kiosk style machine our company is using, since it may not have a static IP address once installed. Since I could not find one (though I did not look TOO hard) I used the lxpanel plugin tutorial (http://wiki.lxde.org/en/How_to_write_plugins_for_LXPanel) to write my own. Please refer to that wiki page to get the required packages in order to build.

I did this on Ubuntu Server 12.04, and have not tested anywhere else.

Currently (at the time I am adding this) the interface name is hardcoded to 'eth0'.

Ubuntu 12.04

Quick build instructions (once you have the dependencies):

  • Install
  1. make all
  2. sudo make install
  • Uninstall
  1. sudo make uninstall

The plugin should be accessible from the "Add/Remove Panel Items" option in LXDE

Raspbian

You need the following packages on Raspbian:

  • libglib2.0-dev
  • libmenu-cache1-dev
  • libgtk2.0-dev

Command:

sudo apt-get install libglib2.0-dev libmenu-cache1-dev libgtk2.0-dev

  • Install
  1. make all
  2. sudo cp ifaddr.so /usr/lib/arm-linux-gnueabihf/lxpanel/plugins
  • Uninstall
  1. sudo rm /usr/lib/arm-linux-gnueabihf/lxpanel/plugins/ifaddr.so

About

LXDE Panel Plugin that displays an interfaces current IP address

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages