>>> n = Notify.Notification.new("test", "hello world")
>>> n.show()
(process:26601): libnotify-WARNING **: you must call notify_init() before showing
**
libnotify:ERROR:notification.c:568:notify_notification_show: code should not be reached
Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
that is a good idea @Rinzwind but the messages go fast... I guess what I really want to know is how to usefully delimit from the log since I don't know what I'm looking for... I can get the end of the day like sed -n '/Jul\ 21/,/Jul\ 22/p' /var/log/syslog.1 but obvs if I knew what the FIRST message would be and the LAST message would be then I could analyse usefully
@Serg did I screw up? I get: Traceback (most recent call last): File "battery", line 120, in <module> main() File "battery", line 106, in main if battery_percentage <= int(sys.argv[1]): IndexError: list index out of range
def send_notification(title, text):
try:
if Notify.init(sys.argv[0]):
n = Notify.Notification.new( "Notify" )
n.update(title,text)
n.set_urgency(2)
if not n.show():
raise SyntaxError("this is screwed !")
except SyntaxError as error:
print(error)
else:
Notify.uninit()
@ByteCommander er I know this isn't the help you asked for (I agree with your answer but I'm sure you know a lot better than me) but you want the past participle at the end 'be overridden' not 'be overrode'
Thanks a lot ! I am reading a book it says " the LD_LIBRARY_PATH is considered to be a security risk because it might allow unauthorized programs access to system libraries accidentally or otherwise expose system library paths to unauthorized users." what the means? — Sinoosh7 mins ago
"For security reasons, LD_LIBRARY_PATH is ignored at runtime for executables that have their setuid or setgid bit set. This severely limits the usefulness of LD_LIBRARY_PATH."
First of all I'm very new in the linux world so please be as tolerant as you could. I try to be as clear as I could in order to explain my question.
My problem: I had 2 OS with dual boot in my laptop, win8 and manjaro. Everything was fine until win8 try to upgrade itself to win10. I have to tel...
> There are also executables which have the setuid or setgid flag set, which means they will not run as the user/group of the one who runs them, but of the one who owns them. For example the sudo executable is owned by root and has the setuid flag set, which means it always runs as root when executed.
> For security reasons, the $LD_LIBRARY_PATH variable is ignored by executables with one of the setuid/setgid flags set to make sure that the regular user can not make an executable running with root privileges to load arbitrary libraries.
I don't think the setuid creates a full root environment but keeps using the user's environment, right?
@ByteCommander yeah it inherits the environment where the executable is started, same as any other.
So the idea is to replace one of the libraries that sudo uses with one that, like, just opens a root shell and then run sudo. Kind of obvious now you tell me. :D
Attempt reinstalling indicator-power with this command:
sudo apt-get install --reinstall indicator-power
If that doesn't solve the issue, consider using the battery monitoring script as provided by one of my previous answers : http://askubuntu.com/a/603322/295286
Below is python script that c...
@Videonauth your edit works well, notification sent exactly after 10 mins. Waiting for 10% so that it suspends
@Videonauth that's awesome ! I had arduino for long time but haven't done much with it. Arduino is less of a pain in the butt , than professional microcontrollers.
If I were to type a certain command, it would give me a long output in the terminal. I only need a few characters of this output. How do I, in a bash script, save only certain characters from a terminal output as a variable?
For example, if my script is:
#!/bin/bash
ifconfig
I could save the...
http://askubuntu.com/questions/801335/tgz-extract-error-like-data-format-violated I removed the ubuntu version since the version does not matter at all here.
I've built a simple, custom, PAM module and the module works as expected with pamtester and with some other pam testing code I found online.
I've also built a simple dotnet core application which uses pinvoke to authenticate against pam.
As mentioned, the custom module works with pamtester and ...
@Sandro which distribution to use is a very personal choice. Different people prefer different ones. Apart from the obvious bias you'll get from most users in this room, we can't suggest anything unless you explain what you want from it.
However, yes, if you're moving to Linux for the first time, I would recommend either Mint or Ubuntu. They're probably the easiest to start with. Mint is slightly easier than Ubuntu (they will install things like mp3 support and proprietary drivers by default).
@Sandro Any distro will do for that, the question is how easy/advanced you want it. Do you want something that works out of the box or are you willing to spend some time getting it to work so you can get a system that's exactly how you want it?
@Sandro For support, Ubuntu and Mint have very good and active communities. Arch probably has the best documentation but that is most certainly not a beginner-friendly distro.
If you go for Ubuntu, you can get help here, on Ask Ubuntu and if you go for anything else, you can ask on Unix & Linux or Super User.
We would like to know how to fix the Mono/.NET 4.5 C# ping constructor throws an exception was thrown by the type initializer for System.Net.NetworkInformation.Ping error on Ubuntu 16.04.
We using monodevelop 5.10 and mono version 4.4.0.
This problem does not occur on Ubuntu command line. T...