Reputation
422
Top tag
Next privilege 500 Rep.
Access review queues
Badges
6 17
Impact
~26k people reached

Oct
22
comment Username is not in the sudoers file. This incident will be reported
I still get the message after typing this as well as adduser NAME sudo. I think there m,ust be something else. I'm using Debian 7.8.
Oct
19
comment xfce4-screenshooter creates something invalid in clipboard when taking screenshot
@MichaelSchumacher Better?
Oct
13
comment Does omxplayer run on normal 64bit?
@Jan You could comment that on every question about software and also many questions about programming.
Oct
12
comment Check if all listed packages are installed in bash
I wanted to do exactly what you do, it's wasted effort to save list of missing libraries. Just check'em all, and if any is missing, prompt user for apt-get. I already got your code working with ugly if statement, but variable would be preffered. I plan on wraping it into a function.
Oct
12
comment Check if all listed packages are installed in bash
Is there some short way to save results? Eg. in C/C++ I'd do installed = installed || isInstalled(libArray[i]). So similarly, I'd like to put false in a variable if one or more were not installed. I think I can do this with if, but that's a lot of code for nothing.
Oct
7
comment How to ensure proper file permissions when running installer bash as sudo?
Actually, whatever you wrapped in caused to return root 0, not current user (XXXXX 1000). But removing the wrapper fixed the issue.
Oct
7
comment How to ensure proper file permissions when running installer bash as sudo?
I wanted id of the user that issued the sudo ./install.sh command, so that I can install the files with him being the owner. That was point of my question.
Oct
7
comment How to ensure proper file permissions when running installer bash as sudo?
How can I get the owners user id and group when the script is running under sudo?
Oct
6
comment Get percentage information from 7z command in bash
@Marco Well, I already actually gave up. Further this question is about 7z specifically, so maybe someone could post one of these hacky approaches mentioned on superuser.
Oct
6
comment Get percentage information from 7z command in bash
@Marco Seems that jar is not installed on debian by default... 7zip was. Isn't there another alternative?
Oct
6
comment Get percentage information from 7z command in bash
@lese So the switch in help is just an error then?
Oct
6
comment What do I do when the last XFCE4 panel dissapears?
@clearkimura Yeah, if it wasn't for that context menu, I'd be lost. Shortcut keys also work, even newly defined ones.
Oct
6
comment Remove specific (known) extension from filename if it's there
I meant backtick, that's why I tried <code> to escape it. And no, there's no backtick in your code, but if I were to assign result to variable, I'd do this: var=`printf '%s' "${file%.ext}"`
Oct
6
comment What do I do when the last XFCE4 panel dissapears?
Panels are managed by right-clicking a panel, so my question is: how do I manage (restore) panels once they're gone. However since then I noticed it's just some bug - on further logins the panel appears after error prompt announcing that no panel is running...
Oct
6
comment Remove specific (known) extension from filename if it's there
Can I somehow also use this expression in direct assignment (eg. without <code>`</code> character).
Oct
6
comment Remove specific (known) extension from filename if it's there
If there are better solutions, please post them! I don't insist on grep, it's just the only thing I got working so far.
Oct
6
comment What's this magic? aptitude search “?provides(java-runtime)”
@perror I don't remember asking what JRE means.
Oct
6
comment Install latest version of number-versioned software like Tomcat using apt-get?
Works thanks. If you ever came here again, could you please tell me what's the awk thing doing with the curly braces?
Oct
5
comment Install latest version of number-versioned software like Tomcat using apt-get?
@jordanm thanks, good point.
Oct
5
comment How do I fix Debian that refuses to connect to the internet in VirtualBox?
@lviggiani ifconfig command is not available...