• General Linux Chat and Small Questions v. Year of the Linux Desktop!
    4,886 replies, posted
[QUOTE=Jalict;50045960]I am trying to get RescueTime to work as a service for systemd (Haven't done that before, so excuse me for a moment here) RescueTime is located in /bin/rescuetime and my rescuetime.service looks like: [code] [Unit] Description=Rescue Time [Service] ExecStart=/bin/rescuetime [Install] WantedBy=multi-user.target [/code] But systemctl status rescuetime.service reports back: [code] Apr 01 10:45:24 jalict-laptop systemd[1]: Started Rescue Time. Apr 01 10:45:24 jalict-laptop rescuetime[5271]: couldn't open display Apr 01 10:45:24 jalict-laptop rescuetime[5271]: couldn't open display Apr 01 10:45:24 jalict-laptop rescuetime[5271]: xprop: unable to open display '' Apr 01 10:45:24 jalict-laptop rescuetime[5271]: xprop: unable to open display '' Apr 01 10:45:24 jalict-laptop rescuetime[5271]: couldn't open display Apr 01 10:45:24 jalict-laptop rescuetime[5271]: RescueTime: cannot connect to X server Apr 01 10:45:24 jalict-laptop systemd[1]: rescuetime.service: Main process exited, code=exited, status=1/FAILURE Apr 01 10:45:24 jalict-laptop systemd[1]: rescuetime.service: Unit entered failed state. Apr 01 10:45:24 jalict-laptop systemd[1]: rescuetime.service: Failed with result 'exit-code'. [/code] [editline]1st April 2016[/editline] I have installed rescuetime using AUR as I thought that would set everything up for me, but doesn't look like so :([/QUOTE] add [code] Environment="DISPLAY=:0" [/code] to your [Service] .
[QUOTE=Lyoko2;50046620]add [code] Environment="DISPLAY=:0" [/code] to your [Service] .[/QUOTE] Could you explain me what that does? I mean I can understand that it directs it to display index 0, but what would that mean exactly? But I am getting new error: [code] Apr 01 14:20:21 jalict-laptop rescuetime[32227]: xprop: unable to open display ':0' Apr 01 14:20:21 jalict-laptop rescuetime[32227]: No protocol specified Apr 01 14:20:21 jalict-laptop rescuetime[32227]: xprop: unable to open display ':0' Apr 01 14:20:21 jalict-laptop rescuetime[32227]: No protocol specified Apr 01 14:20:21 jalict-laptop rescuetime[32227]: couldn't open display Apr 01 14:20:21 jalict-laptop rescuetime[32227]: No protocol specified Apr 01 14:20:21 jalict-laptop rescuetime[32227]: RescueTime: cannot connect to X server :0 Apr 01 14:20:21 jalict-laptop systemd[1]: rescuetime.service: Main process exited, code=dumped, status=11/SEGV Apr 01 14:20:21 jalict-laptop systemd[1]: rescuetime.service: Unit entered failed state. Apr 01 14:20:21 jalict-laptop systemd[1]: rescuetime.service: Failed with result 'core-dump'. [/code]
well your previous log indicated to me that it is a GUI application, but in the new log it looks like it can't find Display :0, which means either no xorg/wayland is running or systemd default user (root?) can't access your display. you can try setting "User=<yourUserName>" in [service] as well.
Schedule a safe-reboot in the middle of the night where there's least usage? That's what I did when running Windows as a server.
[QUOTE=Van-man;50053385]Schedule a safe-reboot in the middle of the night where there's least usage? That's what I did when running Windows as a server.[/QUOTE] [img]https://imgs.xkcd.com/comics/hard_reboot.png[/img]
[QUOTE=~Kiwi~v2;50053414]Yeah that's what I've done. Shuts down at 1AM. Turns it self back on via BIOS settings at 7:30AM. Still fucks up every now and then. Which is enough to drive me insane cause normally I don't notice it unless Windows complains it can't connect to all network drives or my Dad is bitching he can't access them either :v:[/QUOTE] My solution to HDMI sync only maintaining connection for a few days was to move to a client/server relationship because it's easier to restart a raspi than the whole damn file server
[QUOTE=TrafficMan;50053411][img]https://imgs.xkcd.com/comics/hard_reboot.png[/img][/QUOTE] i thought that this was a good idea. fsck said otherwise.
I recently had to reinstall Ubuntu, but ever since I did, but Facepunch is listing my location as France, even though I am not from France. I'm a bit worried as to what's going on; I am neither using a proxy nor a VPN, so why is this happening? When I reinstalled Ubuntu, during the installing process (at the part where Ubuntu detects your location), Ubuntu set my location as Paris. I thought that that might have been a mistake, changed the location to my actual location (Jordan) and then continued with the installation. I didn't think much of this, but it seems now that Facepunch is mistaking me from being from France. I don't have a problem with this, but I want to know what's causing this. What I am using now is an almost fresh installation of Ubuntu (I installed it on Friday). [editline]02.03.2016[/editline] Now, Facepunch is listing my real location again, so it seems that the problem has been fixed, but what caused it? Was it a problem in Ubuntu or Facepunch?
[QUOTE=Reflex F.N.;50053624]I recently had to reinstall Ubuntu, but ever since I did, but Facepunch is listing my location as France, even though I am not from France. I'm a bit worried as to what's going on; I am neither using a proxy nor a VPN, so why is this happening? When I reinstalled Ubuntu, during the installing process (at the part where Ubuntu detects your location), Ubuntu set my location as Paris. I thought that that might have been a mistake, changed the location to my actual location (Jordan) and then continued with the installation. I didn't think much of this, but it seems now that Facepunch is mistaking me from being from France. I don't have a problem with this, but I want to know what's causing this. What I am using now is an almost fresh installation of Ubuntu (I installed it on Friday). [editline]02.03.2016[/editline] Now, Facepunch is listing my real location again, so it seems that the problem has been fixed, but what caused it? Was it a problem in Ubuntu or Facepunch?[/QUOTE] Flags on Facepunch (and most likely the automatic detection thing in the Ubuntu installer) come from your IP address.
[QUOTE=Van-man;50053385]Schedule a safe-reboot in the middle of the night where there's least usage? That's what I did when running Windows as a server.[/QUOTE] I've rebooted Ubuntu servers a couple of times before in the middle of the night, but it only took like 1 minute or so before the machine was back up. Kernel updates and such and such.
[QUOTE=maaatts;50053644]Flags on Facepunch (and most likely the automatic detection thing in the Ubuntu installer) come from your IP address.[/QUOTE]Yes, I know, and that's why I was a bit curious as to why my IP address is being considered a French IP. It's really weird. Well, the issue seems to have somehow disappeared, but I'm still curious. Yesterday, I tried resetting my modem because I thought that that might reset my IP, and it seems to have fixed the issue.
I have two Razer naga mice. The epic version and the molten edition. The molten edition is the one I use for school, and it works really well. Though the epic edition works in strange ways. It sometimes refuses to start when I boot. In Manjaro KDE it rarely start, and in Ubuntu GNOME I sometimes has to wait for it to start, and then it might just stop either with LEDs or LED's on. In Xubuntu it seems to work in wireless mode and have the same same problems as Ubuntu GNOME. Am I haunted?
[QUOTE=Levelog;50018648]I decided to give KDE a try. I don't like it so far, but we'll see.[/QUOTE] Pretty sure my battery life has taken a nosedive since this decision.
KDE is a bit heavy on the system resources at times, but you can disable features you might not use - like the Baloo file indexing - to save on those. Running a full KDE environment and doing my work in there costs me about 10-15 minutes of battery time over just using AwesomeWM, in my own testing. When I need battery time on my laptop I skip X / WMs entirely, the only way to be sure. All I need is a TTY, (Neo)Vim / Emacs, and some other utilities of choice. Most of which have CLIs or TUIs anyway. Though I must say that when it comes to programming, the power hog is the compiling of the code, so it's not like it matters in the end anyway.
Yeah I think I'm going back to XFCE. Bye KDE.
[QUOTE=ace13;50056541]Though I must say that when it comes to programming, the power hog is the compiling of the code, so it's not like it matters in the end anyway.[/QUOTE] remember to `make -j65535` for maximum battery efficiency
Just tried using orbment (wayland wm) with nvidia proprietary drivers and, unfortunately, they still apparently don't work with wayland. Oh well. I'm sure it'll be all good eventually.
[QUOTE=maaatts;50058790]remember to `make -j65535` for maximum battery efficiency[/QUOTE] I once set up a full compile of the [b]entire[/b] KDE package with 'make -j' on a university machine. I think that's the only time I've ever seen load average reach above 400, at least on systems with actual desktop processors.
Big C++ applications love to eat CPUs at compile-time. I tried gentoo once or twice; Compiling firefox made me go back to binary distros.
[QUOTE=initrd;50069742]Big C++ applications love to eat CPUs at compile-time. I tried gentoo once or twice; Compiling firefox made me go back to binary distros.[/QUOTE] [URL="https://wiki.gentoo.org/wiki/Distcc"]Distcc [/URL]is your friend if you have multiple computers available.
[QUOTE=initrd;50069742]Big C++ applications love to eat CPUs at compile-time. I tried gentoo once or twice; Compiling firefox made me go back to binary distros.[/QUOTE] Behold, [url=https://packages.gentoo.org/packages/www-client/firefox-bin]www-client/firefox-bin[/url]!
Tbh all this talk of Gentoo makes me really want to just go ahead and get it, and slave my other PCs to compile for one to make it faaast. might just say w/e to what I said before and do it to my laptop. or my phone. because that's possible.
nah man, just start the updates before you go to bed or leave for work or something unless you're running it on ancient hardware it should be mostly done if you keep it regular enough
Does compiling shit yourself on its own really have that much of a performance benefit? I mean without tweaking the flags and shit.
[QUOTE=FPtje;50071694]Does compiling shit yourself on its own really have that much of a performance benefit? I mean without tweaking the flags and shit.[/QUOTE] A bit. Some applications will perform significantly better if their libraries are using -O3 -march=native and so on, but it really depends. For the most part, I'd say don't do Gentoo for the performance unless what you're doing (at work) is extremely performance and/or security critical.
Nah, the major benefits of compiling it yourself is the customization layer, not the performance as much. Or at least that's what got me interested. Need to apply a set of patches to something? Drop them in /etc/portage/patches, Portage will drop them in for you*. Or hell, it may even have its own package or USE flag. Prefer libressl over openssl? libav over ffmpeg? PulseAudio? No PulseAudio? JACK? No problem, we can roll with that. Binary packages don't always offer that kind of flexibility. (*It doesn't apply to EVERY package by default for some reason, but it can be made to do so)
[QUOTE=mastersrp;50071926]A bit. Some applications will perform significantly better if their libraries are using -O3 -march=native and so on, but it really depends. For the most part, I'd say don't do Gentoo for the performance unless what you're doing (at work) is extremely performance and/or security critical.[/QUOTE] The ease-of-use of other distros makes up for slightly worse performance in applications in most cases, I think. Besides, there's nothing really stopping you from compiling the programs you use on other distros; portage just makes it a bit more convenient.
[QUOTE=Lyoko2;50047307]well your previous log indicated to me that it is a GUI application, but in the new log it looks like it can't find Display :0, which means either no xorg/wayland is running or systemd default user (root?) can't access your display. you can try setting "User=<yourUserName>" in [service] as well.[/QUOTE] Late answer; Dude thanks, that did it!
-O3 actually kinda sucks in some scenarios. When your target platform is a small microcontroller, you end up compiling -Os, because small code tends to execute faster on those platforms.
[QUOTE=Dr. Evilcop;50072213]The ease-of-use of other distros makes up for slightly worse performance in applications in most cases, I think. Besides, there's nothing really stopping you from compiling the programs you use on other distros; portage just makes it a bit more convenient.[/QUOTE] apt-get source makes it infinitely more difficult though. The great thing about Gentoo, and recently also Void Linux and Alpine Linux, is that the entire build system is out there, provided for you, so you can make the same packages that everyone else uses, or change them using the original tools.
Sorry, you need to Log In to post a reply to this thread.