I'm using Ubuntu 12.10 and I have installed Android SDK, set it's path in my user .bashrc and it works.
The problem is that my phone requires adb to be ran by root for permissions, but running adb with sudo I get the following error:
sudo: adb: command not found
I tried to simply use sudo -E adb start-server, but it doesn't work.
I made a bin directory in my home folder where I place all my scripts. Then in my .bashrc I added the following:
export PATH=$PATH:/home/myusername/bin
So I could access files I placed in there from anywhere. But some of the scripts need to be executed as root.
On one of my Ubuntu 11.10 servers, when I use sudo -i to become the root user, root's .bashrc is not being executed.
For a few weeks I have been pondering why whenever I do man <command> I get: No manual entry for <command>.
I have found the cause of this now, it seems to be a setup script for ROOT(the program root.cern.ch, not the user). This has to be compiled from source and I then need to put the line in my .bashrc file:
To add :/usr/local/go/bin to the PATH with Ubuntu 10.04 LTS (Lucid) and permanently change the PATH, I just edited the files /etc/environment and /etc/login.defs.
And these modifications were OK both for my current user account and my root account.
i.e.
In my linux machine, path are configured as follows
non-root user:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/java
root user:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
when i tried to
sudo echo $PATH
it shows non-root user path only not root path
but when i put
echo $PATH
in script and tried to execute with sudo, it give
There is a recent question regarding multiple sysadmins working as root, and sudo bash -l was referenced.
Actually I have just installed gsutil by following the instructions here.
But now when I am typing gsutil at command prompt I am getting following:
No command was given.
Choose one of -b, -d, -e, or -r to do something.
I am compiling an Android app on server with java build tool ant.