Question

Locked

Please help me with zenity pop-ups!!!

By MrWright4sho ·
Hello to whom it may concern. My name is Chris. I just graduated from IT school. I have a matter on my hands that may require some attention. It's an zenity problem in Gnome desktop. I'm doing a project at a non-profit organization that I'm volunteering for and I was put in charge of a dept. with a few computers and convert the Windows OS to Linux (Ubuntu) OS. Each computer would only have three users on them, 1)admin, 2) staff and 3)the frequent user from the community. I'm asked to put the computer on a timer and possibly have a pop-up window, before time is up,stating to the user that they have x amount of mins left. I've done everything, but the pop-up window. I've tried everything. One of the best resources that I got was Scott Kindley, http://skindley.wordpress.com/2006/12/11/fedora-core-6-controlling-logins-by-time/. At the bottom of the page he tries to explain zenity but it didn't work for me. I didn't know if it was an a Fedora thang or what. It didn't work in Ubuntu. Then I tried a forum on SpiceWorks: http://community.spiceworks.com/topic/100632?page=1#entry-421824, here's the convo on zenity. This should really interest you. lol! If someone could be so kind as to guild me in the right direction I would be so happy. I love learning and I don't like it when people say things aren't possible.

Hope to hear from you soon,
Chris.

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

You can use PPA...

Follow these instructions and you should be good to go:

How do I use software from a PPA?

To start installing and using software from a Personal Package Archive, you first need to tell Ubuntu where to find the PPA.

Important: The contents of Personal Package Archives are not checked or monitored. You install software from them at your own risk.
Adding the PPA to Ubuntu 9.10 (Karmic) and later

If you're using the most recent version of Ubuntu (or any version from Ubuntu 9.10 onwards), you can add a PPA to your system with a single line in your terminal.

Step 1: Adding this PPA to your system

You can update your system with unsupported packages from this untrusted PPA by adding "ppa:timekpr-maintainers/ppa" (without quotation marks) to your system's Software Sources.
Make a note of the PPA's location, which looks like:

ppa:gwibber-daily/ppa

Step 2: Open a terminal and enter:

sudo add-apt-repository ppa:user/ppa-name

Replace ppa:user/ppa-name with the PPA's location that you noted above.

Your system will now fetch the PPA's key. This enables your Ubuntu system to verify that the packages in the PPA have not been interfered with since they were built.

Step 3: Now, as a one-off, you should tell your system to pull down the latest list of software from each archive it knows about, including the PPA you just added:

sudo apt-get update

Now you're ready to start installing software from the PPA!
On older (pre 9.10) Ubuntu systems

Step 1: Visit the PPA's overview page in Launchpad:
https://launchpad.net/~timekpr-maintainers/+archive/ppa
Look for the heading that reads Adding this PPA to your system and click the "Technical details about this PPA link".

Step 2: Use the Display sources.list entries drop-down box to select the version of Ubuntu you're using.

Step 3: You'll see that the text-box directly below reads something like this:

deb http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/gwibber-daily/ppa/ubuntu jaunty main

Copy those lines.

Step 4: Open a terminal and type:

sudo gedit /etc/apt/sources.list

This will open a text editor containing the list of archives that your system is currently using. Scroll to the bottom of the file and paste the lines you copied in the step above.

Save the file and exit the text editor.

Step 5: Back on the PPA's overview page:
https://launchpad.net/~timekpr-maintainers/+archive/ppa
look for the Signing key heading. You'll see something like:

1024R/72D340A3 (What is this?)
It will be under "Technical details about this PPA", just click on it and it will open a page.

Copy the portion after the slash but not including the help link; e.g. just 72D340A3.

Step 6: Now you need to add that key to your system so Ubuntu can verify the packages from the PPA. In your terminal, enter:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 72D340A3

Replace 72D340A3 with whatever you copied in the step 5.

This will now pull down the PPA's key and add it to your system.

Step 7: Now, as a one-off, you should tell your system to pull down the latest list of software from each archive it knows about, including the PPA you just added:

sudo apt-get update

Now you're ready to start installing software from the PPA!

Read more about Personal Package Archives
in the help wiki.
https://help.launchpad.net/Packaging/PPA

Hope this works for you.

Collapse -

Hello Peconet Tietokoneet

by MrWright4sho In reply to You can use PPA...

I'm sorry for responding a bit late. It's just that I'm new to linux and I'm trying to figure out this PPA and how it can help me. It took hours for me to register with lauchpad and go through their procedures to get things done. It's my understanding with PPA, it's only a host for many packets for Ubuntu.
How do you see this helping me with the pop-up messages? I hope my ignorance isn't offending you. I'm doing my best to learn from you wise ones. Hopefully by the grace of God I'll be able to be in a situation to help others like you as well.
One thing I really admire about you is that you provided a step by step example. Most people tell you what you should do and assume that you know how to implement it. I'm only as smart as the teacher. People need to be aware that what you know do not define intelligence. It's being able to communicate in any environment. There's a lot of techies out there that live an isolated life due to the fact that they don't know how to relay what they know to others without polluting the conversation with big words or terms that an average person may not understand yet.
So thank you very much Peconet for explaining,in detail,the procedure.
Hope to hear from you soon.

Your online student,
MrWright4sho.

Collapse -

So, MrWright4sho, have you got it running?...

by Peconet Tietokoneet In reply to Hello Peconet Tietokoneet

How is it going?
Hope all is running as it should.
Though going through a terminal to do it is sort of strange when you can get something such as some kind of software to download and run on Windows.
Information is power, so to speak.
:)

Collapse -

Hm. Looked at the Zenity docs?

by seanferd In reply to Please help me with zenit ...

http://library.gnome.org/users/zenity/stable/zenity-message-options.html.en
Is that what you are doing, and it is not working?

Ubuntu has it's own notifications system, which may override the notification systems built into the desktop environments (I really couldn't say). But Notify OSD should work across all DEs in Ubuntu. https://wiki.ubuntu.com/NotifyOSD

Collapse -

That's exactly what I'm trying to achieve!

by MrWright4sho In reply to Hm. Looked at the Zenity ...

On the link that you gave me the show:
#!/bin/bash

zenity --warning \
--text="Disconnect the power cable to avoid electrical shock."

I was always referencing the /usr/bin. I'm testing it now to see if that's my problem. If so!! Man! You don't know how much love I have for your knowledge on this one. Pray for me! lol!

Back to Linux Forum
6 total posts (Page 1 of 1)  

Related Discussions

Related Forums