3,347 reputation
418
bio website
location
age
visits member for 2 years, 6 months
seen Dec 17 at 7:58

Nov
8
comment Convert all non-JPG images to JPGs
@user8547: yes, that should work. I don't think convert will modify in place, but you can add a line right after the convert line rm ${FILENAME}, which will delete the original file.
Nov
7
comment Convert all non-JPG images to JPGs
@don_crissti: but the man page shipped with Debian does. So this feature still needs to spread it seems ... or the man page is broken. Documentation is not valued as much as it used to be.
Nov
7
comment Convert all non-JPG images to JPGs
@user8547: no, you forgot the * before the . and a ; after FILENAME and another ; after jpg. The newlines matter. Maybe your shell's manual can help you with these details ...
Nov
7
comment Convert all non-JPG images to JPGs
@user8547: if you are specifically looking to convert just all bmp and png images, you can use the while loop provided above, but replace ls | grep -v jpg$ with echo *.{bmp,png}. Within that echo statement, you can even complement the ,-separated list of extentions to include other formats as well.
Nov
7
comment Convert all non-JPG images to JPGs
@user8547: no, it won't. You need to iterate over all filenames, you cant just supply them all to mogrify.
Oct
29
comment Is it possible to run vlc as root?
If you actually did install vlc that way ... have you just tried running vlc as root? Why doesn't it work? What does happen when you try? What did you expect to go differently?
Oct
26
comment Remote Xfce session in a separate console?
@Vasilly.Prokopyev: oh ... that's what you meant. Well, when setting up the ssh connection, you can add -L177:127.0.01:177 and -R6001:127.0.0.1:6001 to the ssh call, to make this work over SSH. However, in that scenario you could just install x2goserver on your desktop pc and x2goclient on your netbook. I do believe the client can be full screen.
Oct
18
comment Use bash's read builtin without a while loop
@kasperd: i use head as simple exemplarisch. Usually the heads are greps.
Oct
15
comment Why is ping much faster when using -f
I don't understand this answer. ryekayo's average rtt is higher when using the -f option. So 1. the OP's claim can't be reproduced, 2. the excerpts from the man page don't give the slightest hint at which measurement is more accurate and 3. what's a "fair" result anyways?
Oct
15
comment Use bash's read builtin without a while loop
My problem was that I thought bash would put everything between the pipe symbol and the end of the line into the same subshell, but apparently it only reads the next statement.
Oct
15
comment Use bash's read builtin without a while loop
I think I got it: The actual point is that WHEN USING PIPES, bash creates subshells for each processes of the pipeline, and due to scoping the variables are gone, after the pipeline. Using {} makes the remainder of the line an (one!) element of the pipeline, while inside that subshell the variables are available. Using process substitution one is not using pipes and therefore bash does not spawn subshells.
Oct
15
comment Use bash's read builtin without a while loop
{} ... I only tried (). Why does the ; in your second example not start "a new set of commands"? Actually I don't understand the < < construct at all. Need to think ...
Sep
24
comment Using per-user keyboard XKBOPTIONS for all desktop environments
What happend to ${HOME}/.xsessionrc? I'm using Ubuntu 14.04 and it still honors it ...
Sep
24
comment “abbreviation” for dd$ if current line is empty
I don't know what configurations you guys are using, but using the actual vim (vi improved), in insert mode the backspace key performs exactly as in "other editors". Or am I missing something?
Sep
24
comment Is iptables -p proto -m proto redundant?
IIRC it is a relatively new feature that iptables guesses which modules it has to load, in order to get certain functionality. TCP at least used to be a module that one could choose to load or not. So -m tcp -p tcp would be the most portable version of TCP rules
Sep
24
comment Accidentally deleted /dev/tty, how to bring it back on debian7?
5. It would really surprise me if it wasn't.
Sep
24
comment Does Linux provide Predictive Self-Healing on x86?
Actually, the article you linked says that the Linux in Linux on POWER does not have self healing capabilities. While Linux has all the monitoring and configuration capabilites to implement "self-healing", I don't know about any ready to use systems. I suppose systemd will be able to do it better in a foreseeable version anyways.
Sep
22
comment More shell scripts than one in one text file?
Hello and welcome to ul.sx! If you don't mind typing exit instead of end., then yes, there is.
Sep
22
comment How do I substract 5 minutes from a Unix timestamp?
Hello and welcome to ul.sx! Please be specific and ensure your answers are always complete, including stating you answer's idea before providing code snippets.
Sep
14
comment PCI Pass through for gaming, Arch Linux
Hello, welcome to ul.sx! There are quit a few articles on this on the Internet, well written with quite straight foward approaches, e.g. the the first one i get when i google for kvm pci passthrough graphics Why don't give them a try first?