17,026 reputation
23565
bio website
location Marseille, France
age 34
visits member for 2 years, 3 months
seen 5 hours ago

Elected moderator on Unix & Linux. Feel free to @ping me in chat if there's anything I can help you with.

I've been using Linux since the late '90s and have gone through a variety of distributions. At one time or another, I've been a user of Mandrake, SuSe, openSuSe, Fedora, RedHat, Ubuntu, Mint, Arch and for the past few years Linux Mint Debian Edition (which is basically Debian testing but more green).

My Linux expertise, if I can grace it with such a lofty title, is mostly on manipulating text and regular expressions since that represents a large chunk of my daily work.

profile for terdon on Stack Exchange, a network of free, community-driven Q&A sites


2d
comment how to install/upgrade r-base to 3.02?
@DanielKessler does the slash make any differenece? Trailing slashes are usually optional and can be left out. The version name is just a directory in the repository so it really shouldn't make any difference.
Nov
25
comment Behaviour of symlinks
@IbrahimApachi exactly. It was a link linking to itself. On my system, I can create the link but when I try to read it I get "Error: too many levels of symbolic links". It basically goes into an endless loop.
Nov
25
comment Root crontab not running
Just to make sure, you are closing the crontab after editing it, right? Also, how did you "run as root"? What is the output of sudo crontab -l | grep -v '#'?
Nov
25
comment Problem with words in Terminal
Is this gnome-terminal? And Unity? Does it work OK with xterm?
Nov
25
comment Bash question with system processes? Stopping and renicing “Java” processes
Hi and welcome to the site. Please edit your question and include the name of the process you want to stop and how it is started. Also explain how nice "did you no good". Were there any error messages? Did it change the priority? What exact command did you try? Have you read any basic bash guides?
Nov
23
comment Creating shortcuts on desktop for applications
@Saeid87 they do. Had you installed open source software (like R) instead of something proprietary (like matlab), it would have come as a package and with a ready shortcut file. In any case, creating a shortcut is as simple as ln foo bar, you're the one who wants to complicate things by running in a GUI and fiddling with .desktop files :P
Nov
23
comment Creating shortcuts on desktop for applications
@Saeid87 done. To get the icon recognized, save it as matlab.png in ~/.icons and then point the .desktop file to matlab (no extension). I think that should work.
Nov
23
comment Creating shortcuts on desktop for applications
Ah, in that case my workaround will probably not change anything. I've never used matlab but I know it has an interpreter. Could you need the terminal in order to run it? Perhaps changing Terminal=false to true would help.
Nov
23
comment Creating shortcuts on desktop for applications
Sure but first, did you try running it from the command line as I suggested? Does it work if you're not in /opt/MATLAB/R2014a/bin/ and simply execute /opt/MATLAB/R2014a/bin/matlab from your home directory?
Nov
23
comment Creating shortcuts on desktop for applications
OK, please also edit your question and clarify whether it works if you launch from your $HOME directory using /opt/MATLAB/R2014a/bin/matlab. I'm guessing the way it's set up requires it to be launched from the directory where the script is located. A possible workaround would be to write a little script that just contains cd /opt/MATLAB/R2014a/bin/ && ./matlab and then point your .desktop file to that. Let me know if it works and I can post an answer.
Nov
23
comment Creating shortcuts on desktop for applications
What's matlab.sh? Your first example uses ./matlab.
Nov
22
comment How can I make my mouse middle click act like the space bar?
What does "act like the spacebar" mean? Do you want a space character to be printed or do you want to, for example, scroll a webpage? What applications are you referring to?
Nov
22
comment How do I increase the total size of my storage devices?
What makes you think it was "the same drive"? Just because they look identical on the outside does not mean they are.
Nov
22
comment How to pass '*' wildcard to path parameter of find command via a variable in script?
@muru perhaps but I'm also curious how to do the small part of thw problem that is specified. As we both told the OP, this is probably not the best way but how do you pass a variable with both wildcards and spaces to find from within a script? The answer might be "don't" but I'm not sure.
Nov
22
comment How to pass '*' wildcard to path parameter of find command via a variable in script?
@PaddyLandau since this is too old to migrate, you might want to post a question on Unix & Linux explaining what the script does and what you need. There may be a way to do this as you have been trying to or there might be a different solution that will only become apparent if we understand what the script does. There tends to be more scripting expertise on U&L so you're likely to get a solution there. Just try and change the question enough so it's not considered cross-posting. In the meantime, I'll offer a bounty on this one.
Nov
22
comment How to pass '*' wildcard to path parameter of find command via a variable in script?
Yeah, this is surprisingly tricky. I just updated my answer with another approach, why not use globbing instead? If that still doesn't work, I suggest you post a new question on Unix & Linux explaining what your final objective is and why you need to have the pattern as a variable. This type of thing is likelier to get a better answer there.
Nov
21
comment How to pass '*' wildcard to path parameter of find command via a variable in script?
Please don't..
Nov
21
comment How to pass '*' wildcard to path parameter of find command via a variable in script?
@PaddyLandau yes. I have deleted my answer which was using eval (undeleted now) because I was trying to to it the "better" way using printf but I couldn't get it to work. This is almost certainly an XY problem. You should probably explain more about what your script is doing and why this needs to be hardcoded into it. I am pretty sure there will be better ways to do it.
Nov
21
comment How to pass '*' wildcard to path parameter of find command via a variable in script?
This is all true of course, but the OP needs to do it in a script. That changes things since the expansion of wildcards gets significantly more complex and this doesn't work.
Nov
20
comment Packages are not installing
You alsmost certainly have another instance of dpkg running. Probably an open synaptic window. See here.