The tag has no wiki summary.

learn more… | top users | synonyms

16
votes
1answer
877 views

Why use env in shebang?

What is the purpose of using #!/usr/bin/env <sh|bash|python> shebang compared to #!/bin/bash, #!/bin/sh or #!/usr/bin/python?
1
vote
1answer
1k views

how to include an environment variable in the launcher?

I was trying to make some scripts dynamic by including the environment variable $LOGNAME and even $HOME. but it don't seem to work when placed in a launcher. I am trying to make code a bit more ...
-2
votes
3answers
1k views

How do I change to the desktop/layout like in the picture?

I would love to change my desktop to the one below: Could someone please help?
8
votes
2answers
2k views

Is there a difference between “.” and “source” in bash, after all?

I was looking for the difference between the "." and "source" builtin commands and a few sources (e.g., in this discussion, and the bash manpage) suggest that these are just the same. However, ...
8
votes
2answers
133 views

Setting LOG=1 in /etc/environment

I asked a question earlier about viewing the history of notify-osd using the indicator-notifications app. The answer was that I needed to add LOG=1 in my /etc/environment file. That sounded ...
7
votes
3answers
6k views

Stop/start battery charging through software?

If a laptop is powered on and connected to AC power, is there a way to issue a command that tells it not to charge the battery? EDITED: Perhaps charging of the battery may be stopped if there were a ...
1
vote
1answer
694 views

NoClassDefFoundError: org/apache/derby/tools/ij

Derby says to install to opt, so I did: thufir@dur:~$ thufir@dur:~$ ll /opt/db-derby-10.9.1.0-bin/lib/derbytools.jar -rw-r--r-- 1 root root 174932 May 31 12:19 ...
1
vote
2answers
644 views

Added folders to PATH cannot be found using sudo [duplicate]

Possible Duplicate: Environment variables when run with 'sudo' I've added a new folder to my path, but when running the programs (in that folder) with "sudo" it does not work. When ...