jml / undistract-me

Notifies you when long-running terminal commands complete
Other
540 stars 48 forks source link

Getting started on Ubuntu 16.04 #37

Closed orschiro closed 7 years ago

orschiro commented 8 years ago

Dear @jml,

Thank you so much for this excellent project!

I installed undistract-me as follows:

sudo apt install undistract-me.

It installed the following version:

ii  undistract-me                                        0.1.0+git20130402+3a9144bc1f-1                              all          Notifies user when long-running terminal commands complete via libnotify

However, I am not receiving any notification on commands that take longer than 10 seconds.

What else do I need to configure?

Thankfully,

-Robert

jml commented 8 years ago

Hi!

You need to either log out & log in again, or you need to run:

. /etc/profile.d/undistract-me.sh

In your shell.

jml

orschiro commented 8 years ago

Thank you!

So I tried the following as a test:

orschiro@x230:~$ . /etc/profile.d/undistract-me.sh
orschiro@x230:~$ sleep 15s

However, it does not produce any notification either. Shouldn't the sleep command of 15 seconds produce one?

Warmly,

-Robert

jml commented 8 years ago

It should. Are you using bash?

On Mon, 29 Aug 2016 at 23:01 Robert Orzanna notifications@github.com wrote:

Thank you!

So I tried the following as a test:

orschiro@x230:~$ . /etc/profile.d/undistract-me.sh orschiro@x230:~$ sleep 15s

However, it does not produce any notification either. Shouldn't the sleep command of 15 seconds produce one?

Warmly,

-Robert

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jml/undistract-me/issues/37#issuecomment-243271328, or mute the thread https://github.com/notifications/unsubscribe-auth/AAHq6i6cI6sHROoZopwZY5uDADp6jtWoks5qk1bNgaJpZM4JvS5K .

orschiro commented 8 years ago

Yes, I am using the default Bash of Ubuntu 16.04.

fotonmoton commented 7 years ago

Confirm that after installation script doesn't work. But after adding line below to .bashrc I get notifications. source /etc/profile.d/undistract-me.sh

system:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"

bash: 4.3-14ubuntu1.2;
terminal: terminator;
orschiro commented 7 years ago

Hello again,

It's been a while. Now testing undistract-me on Ubuntu MATE 17.10 Alpha 2.

I think the README is outdated. It says:

Then run a login shell: start a whole new Gnome Terminal, run bash --login or log out then log in again.

Tried exactly this after installing undistract-me from the Ubuntu repos but it's not working.

Did something change or shall we add @fotonmoton suggestion to the README.

jml commented 7 years ago

Nothing has changed in undistract-me. It's possible that the mechanism the package uses to install it as something that is sourced by everyone's bashrc no longer works.

No objections to adding @fotonmoton's suggestion to README.

orschiro commented 7 years ago

See https://github.com/jml/undistract-me/pull/46.

chandraBatre commented 5 years ago

Huge thanks to @photonmoton. I confirm that their solution worked great. I added: source /etc/profile.d/undistract-me.sh into the end of my .profile and ran: $ . ~/.profile and the apt update command worked notified me properly. Also for the record I am using Ubuntu 18.04LTS on a MacBook 2009.