« first day (1880 days earlier)      last day (3066 days later) » 

12:02 AM
Do I really need to mess with block level permissions to mount an ntfs external device as user? This did not use to be the case.
3
Q: Unable to mount NTFS partition from user account

JibranI'm trying to mount a Windows ntfs partition on openSuse 11.4. When I mount it using the root account (either directly or via sudo) it mounts without problems. But when I try mounting it without any root privileges, it gives me the following error: Error opening '/dev/sda2': Permission denied Fa...

 
 
11 hours later…
10:58 AM
Is there a way to get list of all processes running in Java.
ps aux | grep java
is not working
 
 
1 hour later…
12:26 PM
@Wally Maybe something like jre? Do you know what the processes are called?
 
 
2 hours later…
1:59 PM
@Wally How is it "not working"? Does it return nothing? More than you want? Less than you want? Nothing relevant?
 
2:25 PM
@terdon Is it Ok to write a question basically saying, please explain this bug report to me?
 
I don't see why not. As long as you explain which part is confusing, it should be fine.
 
@terdon Well, it involves the dreaded systemd.
 
In that case, it's off topic on principle :P
 
I don't actually have a position in the init wars. I'm just hoping the dust will eventually settle.
 
2:34 PM
Well, systemd broke something. I don't understand how or why.
At least, I think it was systemd. I'm not even 100% on that.
Might make a change from people asking us which distribution to use.
 
2:45 PM
:)
 
3:02 PM
Looks like ps aux | grep jre and ps aux | grep java weren't returning anything cos the new version of Nixnote is re written in C++. Cool.
 
3:14 PM
Is that an improvement?
 
3:24 PM
@terdon systemctl restart nginx vs /etc/init.d/nginx restart, I don't really care which I have to type but I would prefer to have to not remember which I need to use based on which machine I'm using
 
@casey service nginx restart
Can't service be configured to work with either?
 
@terdon no idea, thats one variant of the init services I've never really used :)
well, one front-end to them I've not used
 
4:00 PM
Is there a way to get the name of the title to the media playing in vlc or other media players in CLI?
I'm thinking of lsmod or ps
 
4:16 PM
@Wally I don't think ps would show that unless you launch vlc with the file as an argument. lsmod? Do you mean lsof?
 
ps aux|grep vlc
pc       27636  3.5  2.2 1261964 86656 ?       Sl   21:46   0:03 /usr/bin/vlc --started-from-file /media/pc/Everything/TV shows/Discovery Channel - The History Of Hacking.avi
pc       27682  0.0  0.0  11748  2160 pts/0    S+   21:47   0:00 grep --colour=auto vlc
Yes I think it's lsof
 
@Wally Yes, as I said, it will show if you start it with the file name as an argument. What if you start it from the GUI? Or with nor argument and just open something from the vlc GUI? Or what if you launch it with a directory? How can you know which file is being played?
 
It's working if I launch it with nemo
github.com/z411/trackma uses lsof to get the name of anime that is playing and update it.
 
@Wally Yes, because you launched it by double clicking a specific file.
@Wally try this:
file=$(lsof -c vlc 2>/dev/null | tail -n1 | grep -o '/.*')
I am assuming that the current file will always be the last one listed. I may be wrong, but if I'm not, the above gives you the path of the file currently played.
 
No output
 
4:26 PM
@Wally No, that saved it in a variable. Run echo $file to see it or remove the variable:
lsof -c vlc 2>/dev/null | tail -n1 | grep -o '/.*'
To get the file name without the path, you can do:
 
still no output
 
lsof -c vlc 2>/dev/null | tail -n1 | grep -Po '.*/\K.*'
@Wally Which one?
 
All three of them give no output
 
Is vlc running?
 
Yes
 
4:28 PM
What does this return:
lsof -c vlc 2>/dev/null | tail -n1
 
vlc     27636   pc   22u  unix 0x0000000000000000       0t0   413118 socket
 
Ah damn. So the last line is not always the right one. What is vlc playing?
 
pc       27636  1.7  2.3 1261964 90572 ?       Sl   21:46   0:14 /usr/bin/vlc --started-from-file /media/pc/Everything/TV shows/Discovery Channel - The History Of Hacking.avi
pc       28063  0.0  0.0  11748  2076 pts/0    S+   21:59   0:00 grep --colour=auto vlc
/media/pc/Everything/TV shows/Discovery Channel - The History Of Hacking.avi
I'm thinking of making a question for this!
 
Might be a good idea. My approach is very hacky. This should work, by the way:
lsof -c vlc | awk '$4~"[0-9]r" && $5=="REG"' | grep -o '/.*'
I'm sure there's a nice clean way of doing this via dbus but I don't know how.
 
0
Q: How to get the title of the media playing in VLC or other media players using CLI?

WallyI want to get the title of the media playing in VLC using the Command Line. The closest thing I currently have is this command. ps aux | grep vlc The output is pc 27636 2.1 2.3 1261964 90028 ? Sl 21:46 0:23 /usr/bin/vlc --started-from-file /media/pc/Everything/TV shows/Disco...

@terdon It works
It even prints multiple videos
 
4:38 PM
The problem is that if you are watching something with subtitles, it will return both the meda file and the subs.
@Wally Yes, is that a good thing?
 
yeah it's ok since I'm using this for python. I will just use .readlines().
@terdon Can you post that as an answer?
 
Sure. Just trying to figure out what the lsof output codes I'm using are. I made that up as I went along and would rather know what it is for an answer.
Wait a while before accepting though, I;m sure there's a more elegant way of doing this.
 
Ok
 
5:34 PM
Grrrr... My machine at work has been unstable since a kernel upgrade. Left it on a text console hoping to catch the panic message. Came in this morning, found it had died. Scrollback still worked, but it turns out systemd had eaten the entire scrollback desperately trying to restart journald. UGH. BAD SYSTEMD, BAD.
And it seems the option is only "log to journald, or kmesg if not available" ... no "or /dev/null if not available" :-(
So let's hope netconsole catches the panic.
 
Hi @derobert.
What's happening?
 
upgraded to 4.3, machine now hangs sometimes. Well, sort of hangs, seems disk I/O is dead, but everything else fine. So I'm hoping a netconsole will catch the panic.
 
Do you understand what this bug report is on about? bugs.debian.org/cgi-bin/bugreport.cgi?bug=774149
 
And of course, I'm hoping there is a panic!
 
@derobert Fires, people running in the streets...
 
5:39 PM
@FaheemMitha what its about? looks like some bug in usbmount ... goes on for pages though
 
@derobert Yes, it does. I was hoping someone would explain it to me. Might post it as a question.
 
looks like some interaction with udev/systemd process supervision
anyway, be back in bit. Got to go figure out why my webcam watching my circulator crashed :-(
hopefully, it's just the camera
 
@derobert Something like that. Aren't computers fun?
 

« first day (1880 days earlier)      last day (3066 days later) »