|
wooger posted:And Adobe don't package it, so you'll have to install Chrome and point Chromium to the pepper flash .so file, or else grab it from an unofficial repo depending on your OS. In debian/ubuntu at least it should be as easy as apt-get install pepperflashplugin-nonfree which automates all that for you.
|
# ? Feb 25, 2015 19:18 |
|
|
# ? Jun 5, 2024 02:22 |
|
I have a java jar that runs inside a while loop forever. It has a memory leak after 24 hours that I don't care enough to debug. I wrote a simple bash script that does two things:code:
|
# ? Feb 25, 2015 19:51 |
|
I believe killall will match any process by its name - does your bash script have java in the name, by chance? Here's an example of what I mean:code:
Edit: Try looking at something like pgrep/pkill to do what you're looking for. Killall is a bit heavy-handed for most practical scenarios. Cidrick fucked around with this message at 20:49 on Feb 25, 2015 |
# ? Feb 25, 2015 20:45 |
|
just do "pkill -9 java && java blah -jar" if your java is being run by some script or is in argv, use pkill -f -9 java instead.
|
# ? Feb 25, 2015 21:02 |
|
Bhodi posted:just do "pkill -9 java && java blah -jar" Well I gave this a try but I think this fails the first time when the process isnt running so it never starts. I tried putting them on separate lines and im awaiting the result of that. I investigated the reply above, but whats strange is if I invoke the script manually, it works fine. I can open two terminals and run the script in both, it will always kill the previous process and start a new one no problem. It only seems to kill and do nothing in the cronjob.. I'm not sure what could be different there.
|
# ? Feb 25, 2015 23:53 |
|
FateFree posted:Well I gave this a try but I think this fails the first time when the process isnt running so it never starts. I tried putting them on separate lines and im awaiting the result of that. I investigated the reply above, but whats strange is if I invoke the script manually, it works fine. I can open two terminals and run the script in both, it will always kill the previous process and start a new one no problem. It only seems to kill and do nothing in the cronjob.. I'm not sure what could be different there. Past the actual cronjob, please. And what user it's running as
|
# ? Feb 25, 2015 23:57 |
|
A few more Debian questions, now that I have an automated SID installation: 1) Is the preferred driver install for ATI cards 'apt-get install glx-alternative-fglrx'? 2) How does everyone else run automated commands after the install? I'm using late command in the preseed but I'd rather write an actual script instead of putting everything on one line. 3) When I install debian base with zero additional software, install firefox dependencies, then run firefox, all the tab and menu fonts are insanely small. How can I increase these particular font sizes? All other fonts appear to be the correct size? I've fooled with .Xdefaults, it seems to work once, but if I close firefox and open it again, it appears to be reset. Anyone else run into this small font problem?
|
# ? Feb 26, 2015 01:25 |
|
evol262 posted:Past the actual cronjob, please. And what user it's running as script.sh code:
code:
|
# ? Feb 26, 2015 01:39 |
|
"java" probably isn't on the path. Try specifying the full, absolute path to java. Cron jobs typically run with a very limited or even empty PATH environment variable unless you set one explicitly in the crontab.
|
# ? Feb 26, 2015 01:57 |
|
Hmm I changed that and thought that was a good lead.. but I'm seeing the same results. I ran the script once in a terminal and waited an hour to see the output. Finally I saw this in the terminal:code:
|
# ? Feb 26, 2015 03:20 |
|
FateFree posted:Hmm I changed that and thought that was a good lead.. but I'm seeing the same results. I ran the script once in a terminal and waited an hour to see the output. Finally I saw this in the terminal: Your script never finishes because java never returns. Either write a proper startup script which daemonizes or prepend the "java -m"... line with nohup
|
# ? Feb 26, 2015 03:35 |
|
evol262 posted:Your script never finishes because java never returns. I don't know anymore, I added nohup and the only difference is I don't see any message in the terminal when the process gets interrupted, it still never starts up. This is turning out to be way harder than it should be. Maybe I need a full path to the java jar... I am going to try that next. Edit - that full path to the jar file seems to have done the trick (as well as maybe the other solutions which I left) thanks everyone! FateFree fucked around with this message at 14:19 on Feb 26, 2015 |
# ? Feb 26, 2015 13:01 |
|
FateFree posted:I don't know anymore, I added nohup and the only difference is I don't see any message in the terminal when the process gets interrupted, it still never starts up. This is turning out to be way harder than it should be. Maybe I need a full path to the java jar... I am going to try that next. Is there any reason you're using kill -9 instead of a normal SIGTERM? You're not letting the application gracefully shut down and could damage your data. It might be better to kill it with sigterm, keep checking for its existence for 30-60 seconds, then kill with sigkill if it still hasn't exited.
|
# ? Feb 26, 2015 16:11 |
|
I would really try to build a nice init script around it that makes a pidfile and uses that to manage the process.
|
# ? Feb 26, 2015 17:10 |
|
spankmeister posted:I would really try to build a nice init script around it that makes a pidfile and uses that to manage the process. There's even a tool to generate init scripts for you these days.
|
# ? Feb 26, 2015 17:26 |
|
KDE, Xfce, or Cinnamon for desktop environments?
|
# ? Feb 26, 2015 17:33 |
|
funny way to spell posted:KDE, Xfce, or Cinnamon for desktop environments? In the same vain, emacs or vim for text editing? Use whatever you like. You'll get twice as many answers as you give choices.
|
# ? Feb 26, 2015 17:44 |
|
I'm looking for recommendations about my file server's backup solution. First, some background: I have a personal file server, 12 2TB drives in RAIDZ2 under CentOS 7, which itself is running on a separate SSD, connected via GigE. Long story short, it contains all my media I've been encoding, obtaining, etc. since about 2001, shared out via Samba. The kind of server that, if I lost it in a fire and didn't have backups, I'd probably die from alcohol poisoning shortly thereafter. Until a few months ago it was running an ancient install of Windows Server 2008 R2, with the drives on a hardware controller running a RAID-6 array. The backup program I used, whose name escapes me, handled everything rather nicely. It handled my external drives as a pool, if I moved a file around and/or renamed it, it would move it instead of create a duplicate copy, etc. Right now my backup solution is primitive, to put it mildly; ~/scripts/BackupX, which runs an rsync command to move one or more directories to the external drive mounted at the time. The limitations of this should be obvious. Anyway, does anyone have any recommendations for a better solution? I dicked around with what I found in the CentOS repos, but wasn't particularly impressed by what I found. Should I bite the bullet and setup Bacula from scratch? I've administered existing installs in the past, for what it's worth. Comedy "build a duplicate server, backup to that, and bury it in an open field until the next backup" option? Regardless, my cruddy stop-gap solution needs to go.
|
# ? Feb 26, 2015 17:49 |
|
funny way to spell posted:KDE, Xfce, or Cinnamon for desktop environments? No love for Mate? Cinnamon is nice; but there are some things that you'd think would be tweakable (notification pop-up location, for example) that aren't.
|
# ? Feb 26, 2015 18:15 |
|
I use Cinnamon right now and I like it well enough. I tried gnome-wayland and that's a much smoother experience although I don't really like the gnome interface. A cinnamon-wayland would be ideal for me. XFCE is fine, I've used it in the past but I prefer Cinnamon because it seems better integrated and just a bit more modern than XFCE. I never liked KDE but I've heard good things about Plasma 5 so I might give it a spin sometime. It all boils down to personal preference anyway, so just try it out and see what you like.
|
# ? Feb 26, 2015 18:32 |
|
FateFree posted:script.sh I would personally grab the actual process ID from ps and then kill that explicitly. For some reason people hate ask but you could do something like: ps -aux |grep [p]arser |awk {print $2} to grab the process id and then run kill on just that.
|
# ? Feb 26, 2015 18:36 |
|
CHEF!!! posted:I'm looking for recommendations about my file server's backup solution. First, some background: If you're already doing the zfs thing then zfs send/receive is probably the "best" way of doing things.
|
# ? Feb 26, 2015 18:52 |
|
Uh, I guess that's a question worth asking. If under Windows I register and buy music on iTunes, will I be able to copy it over and play it under Linux (or simply play off the Windows partition, although I haven't had uncouraging results with such operations)? I've read that iTunes music doesn't have any DRM, but I'd like to be certain.
|
# ? Feb 26, 2015 20:02 |
|
supermikhail posted:Uh, I guess that's a question worth asking. Depending on your distribution, you may need to install an AAC codec because of patents. You can buy a codec pack or download a codec for free if you don't mind the legal risk. Alternatively, install Chrome or transcode your files to FLAC, and you'll be able to play them.
|
# ? Feb 26, 2015 23:47 |
|
dpbjinc posted:Depending on your distribution, you may need to install an AAC codec because of patents. You can buy a codec pack or download a codec for free if you don't mind the legal risk. Alternatively, install Chrome or transcode your files to FLAC, and you'll be able to play them. AAC -> FLAC ?... If you bought music before they switched to no DRM then you need to make sure you delete and re-download those tracks, Itunes doesn't do a conversion for you. http://www.wired.com/2014/03/kill-itunes-drm/
|
# ? Feb 27, 2015 00:31 |
|
Megaman posted:A few more Debian questions, now that I have an automated SID installation: Bump
|
# ? Feb 27, 2015 03:40 |
|
funny way to spell posted:KDE, Xfce, or Cinnamon for desktop environments? I use pretty much exclusively KDE nowadays. Ran Gnome 2 for years, and used to run XFCE a fair amount, but on my current machines I run KDE. Even my netbook handles it nicely now.
|
# ? Feb 27, 2015 03:48 |
|
Hot tip for Debian users: if you back off systemd to systemd-shim (current jessie systemd borked on my system for some reason), keep an eye on your system logs, I lost 3gb and a full /var before I understood why squid wasn't starting up.
|
# ? Feb 27, 2015 04:00 |
|
Megaman posted:Bump For #2, at work we do the time-honored "wget a shell script and pipe it to bash". Which is generally a terrible idea, but fine on a controlled private network.
|
# ? Feb 27, 2015 05:10 |
|
So a new version of Ubuntu 15.04 beta is out. How does one "upgrade" to it?
|
# ? Feb 27, 2015 05:45 |
|
dpbjinc posted:Depending on your distribution, you may need to install an AAC codec because of patents. You can buy a codec pack or download a codec for free if you don't mind the legal risk. Alternatively, install Chrome or transcode your files to FLAC, and you'll be able to play them. Ubuntu. I see faac which is an "AAC encoder", in my synaptic, but no "decoder" and I'm guessing that's the problem. Oh, there's also "gstreamer0.10-plugins-bad-multiverse 0.10.21-1ubuntu3". Its name includes "plugins for AAC", so if I install this I probably should be good?
|
# ? Feb 27, 2015 06:07 |
|
Liam Emsa posted:So a new version of Ubuntu 15.04 beta is out. How does one "upgrade" to it? Are you already on 15.04? If you are then you don't have to do anything. Otherwise https://help.ubuntu.com/community/Upgrades#Upgrading_to_development_releases. If you're currently on 14.04 or earlier then you'll need to do some extra work. supermikhail posted:Ubuntu. I see faac which is an "AAC encoder", in my synaptic, but no "decoder" and I'm guessing that's the problem. https://help.ubuntu.com/community/RestrictedFormats
|
# ? Feb 27, 2015 07:40 |
|
I... didn't have them? Odd... That's an awful lot of packages, yet I've been playing music without any problems. How come? supermikhail fucked around with this message at 08:15 on Feb 27, 2015 |
# ? Feb 27, 2015 08:02 |
|
I just spent the last 6 hours figuring out a way to install ArchLinux on the old EeePC 701 I found in my closet and making it run properly. What is wrong with me. E: I did have a question: People at work are having a hard time figuring out some connectivity problems with a project at work. I've basically impressed people with the voodoo of cross-compiling tcpdump to work with our architecture, and so debugging things has fallen on me. Any suggestions on how I should poke at Linux for info on what's going on down in wlan0 land? Mudlark fucked around with this message at 08:44 on Feb 27, 2015 |
# ? Feb 27, 2015 08:35 |
|
supermikhail posted:Uh, I guess that's a question worth asking. It doesn't have DRM so should work OK. You can read/write to the windows partition reliably with NTFS-FUSE. Downsides: Why pay apple when you can buy MP3s elsewhere for cheaper, direct from Linux? iTunes is a problem: any playlists and tagging changes you make are tied up in their proprietary database in the app, rather than written to the files themselves. So you may find things look different / wrong in Linux, or just in any other player app. funny way to spell posted:KDE, Xfce, or Cinnamon for desktop environments? Nice troll attempt I've never been happy with KDE: too many options in different places, horrible default appearance. It may be configurable to look nice, but I've never seen it. XFCE is struggling for development resources, and doesn't really have much worth right now imo as it's surprisingly heavy. If you want something light & traditional, use LXDE. Cinnamon is alright, but I'd prefer to use Gnome with a few extensions to be honest.
|
# ? Feb 27, 2015 09:30 |
|
wooger posted:It doesn't have DRM so should work OK. You can read/write to the windows partition reliably with NTFS-FUSE. I used to buy music from Bandcamp, but Paypal now requires registration if you're in Russia, and I'm a bit stuck between two evils. And iTunes has a wider selection, I suppose, although I pretty much only know of two Linux-compatible music sites, the other of which is something called "cdbaby"? Which I haven't used for a while because it's kind of laggy.
|
# ? Feb 27, 2015 09:50 |
|
wooger posted:
I'm of the same mind, even though I've complained about Gnome 3 a bunch of times here. The extensions make it close to what I'd want and the dark theme looks fine with minimal effort. I tried KDE and found the same issues, and while Cinnamon was fine, compiling a newer, C++14-compliant version of GCC was a nightmare on Mint, so I stuck with Fedora's rapid package updates.
|
# ? Feb 27, 2015 10:13 |
|
i use cinnamon on fedora works4me
|
# ? Feb 27, 2015 11:09 |
|
funny way to spell posted:KDE, Xfce, or Cinnamon for desktop environments? in any case your pathetic troll attempt failed, mr fyad poster
|
# ? Feb 27, 2015 13:31 |
|
|
# ? Jun 5, 2024 02:22 |
|
I really like what KDE is trying to accomplish, but nearly 10 years ago I went about configuring e17 to my tastes (took almost an hour!) and haven't liked anything else so much since, so I still use that I think I'm old
|
# ? Feb 27, 2015 13:38 |