Running depot tools as root is sad. ? gclient config .. chromium/src.git

6,394 views
Skip to first unread message

Robert Ferenc

unread,
Oct 6, 2012, 1:03:10 PM10/6/12
to discuss...@googlegroups.com
Hello my ubuntu return this on 

root@xxxx:~/chromium#  gclient config http://git.chromium.org/chromium/src.git --git-deps
Running depot tools as root is sad.
root@xxxx:~/chromium# gclient config https://src.chromium.org/chrome/trunk/src
Running depot tools as root is sad.
root@xxxx:~/chromium#


how i can fix this problem ? thanks!

Harald Alvestrand

unread,
Oct 6, 2012, 1:58:13 PM10/6/12
to discuss...@googlegroups.com
Don't.

That is - don't compile as root, don't run depot tools as root. Run them as a normal, unprivilleged user.

Running as root when you don't have to is a bad, bad habit.
 

--
 
 
 

Ivan Vučica

unread,
Oct 6, 2012, 3:04:52 PM10/6/12
to discuss...@googlegroups.com, discuss...@googlegroups.com
...uhm, don't run depot tools under root?

You shouldn't do anything but sysadministration as root, anyway. Especially not development of consumer oriented, highly complex, networked, potentially vulnerable software -- such as Chromium.

Right?
--
 
 
 

Robert Ferenc

unread,
Oct 7, 2012, 7:05:30 AM10/7/12
to discuss...@googlegroups.com
hello Harald and Ivan, thanks.

i tried to create a regular user with permissions of the root user, and I changed to:

ssh#  su - userx

but changing user my gclient d'not work.



I'm a web application developer.

i have followed  getting-started of  WebRTC at the moment much confusion for me.
I tried follow guides until the 'last step, which reported the error, that i asked at the beginning of the topic, yesterday I tried to delete the folders and repeat all over again.

It 'also need the entire library of chromium that compressed zip weigh 1.8g ?
I also compile the library libjingle ?

What are actually the libraries to test working webrtc peer

linux Ubuntu 12.04 LTS - 64bit 
Kernel :  2.6.38.2-xxxx-std-ipv6-64
 

At the time I made ​​an insert compilations, that I was not given any results working:
 

http://www.webrtc.org/reference/getting-started
 




what steps should I do to install correctly over again what server, and test peerconnection?

Harald Alvestrand

unread,
Oct 7, 2012, 8:19:41 AM10/7/12
to discuss...@googlegroups.com
Top-posting: What are you trying to do?

If you just want to write Web pages that use WebRTC, use a beta or canary version of the browser. Drop this "compile" stuff.

On Sun, Oct 7, 2012 at 1:05 PM, Robert Ferenc <applicaz...@gmail.com> wrote:
hello Harald and Ivan, thanks.

i tried to create a regular user with permissions of the root user,

That's your problem right there.
If you need permissions of the root user while compiling, you're doing something wrong..

 
and I changed to:

ssh#  su - userx

but changing user my gclient d'not work.

Why not just log out and log in as a normal user?
Did you change ownership of the files too?
 



I'm a web application developer.


That may be your other problem. If you have no background in compiling, building and debugging, you're much better off staying with canary builds of the browser. The build instructions are not an introduction to computer science.
And following the webrtc build instructions will not give you a working browser; they only give you the webrtc libraries and their test suites.
 
i have followed  getting-started of  WebRTC at the moment much confusion for me.
I tried follow guides until the 'last step, which reported the error, that i asked at the beginning of the topic, yesterday I tried to delete the folders and repeat all over again.

It 'also need the entire library of chromium that compressed zip weigh 1.8g ?
I also compile the library libjingle ?

What are actually the libraries to test working webrtc peer

linux Ubuntu 12.04 LTS - 64bit 
Kernel :  2.6.38.2-xxxx-std-ipv6-64
 

At the time I made ​​an insert compilations, that I was not given any results working:
 

http://www.webrtc.org/reference/getting-started
 




what steps should I do to install correctly over again what server, and test peerconnection?

--
 
 
 

Robert Ferenc

unread,
Oct 9, 2012, 10:50:22 AM10/9/12
to discuss...@googlegroups.com
with the command gclient sync and permission i have solved.

If you just want to write Web pages that use WebRTC, use a beta or canary version of the browser. Drop this "compile" stuff.

how i can do to use beta or canary version with webrtc on Ubuntu 12.04 tls.


I did not find documentation how to install it on the server

Harald Alvestrand

unread,
Oct 9, 2012, 11:58:05 AM10/9/12
to discuss...@googlegroups.com

Ivan Vučica

unread,
Oct 9, 2012, 12:30:57 PM10/9/12
to discuss...@googlegroups.com
Robert,

On 7. 10. 2012., at 13:05, Robert Ferenc <applicaz...@gmail.com> wrote:

i tried to create a regular user with permissions of the root user, and I changed to:

ssh#  su - userx

but changing user my gclient d'not work.


Forget about logging in as the root user. Simply, always log in as a regular user, and preferably do so under a client-oriented operating system such as Ubuntu, so you don't get led astray by possibility of logging in as root.

Let me re-emphasize: you never want to work as root, unless you're configuring the system. If you can't do client work as non-root, you're doing not just something wrong -- you're doing a lot wrong. Even services such as Apache, which need to initially run as root due to TCP ports less than 1024 (including 80 and 443) being off-limits for listening to regular users, drop to a less-privileged account as soon as possible.

Try working under Ubuntu if something in your current distribution is leading you to commit such a grievous sin as doing regular work as root.

Whatever kind of work you do -- not just compiling stuff, but working -- don't do it as root, unless you are absolutely, 100% sure it needs to be run as root. And if you think a particular piece of work must be done as root -- double check, triple check, with other people if necessary.

Compiling stuff is never done as root. System-wide installation, of course. But compiling? Never. Web browsing? Never. Word processing? Never. Text editing? Only if it's a configuration file you're editing.

Yes, I'm spending an awful lot of time dissuading you. It's that important -- even if there's a high probability that you already are aware that Running as Root is Bad™.

Robert Ferenc

unread,
Oct 9, 2012, 5:09:12 PM10/9/12
to discuss...@googlegroups.com
there is ok ?


./google-chrome-stable_current_amd64.deb   # for install

Robert Ferenc

unread,
Oct 10, 2012, 5:13:56 AM10/10/12
to discuss...@googlegroups.com
sudo add-apt-repository ppa:chromium-daily/dev

sudo apt-get install chromiun-browser

There is no package chromiun-browser

chromiun-browser requires other configurations for the WebRTC ?


Harald Alvestrand

unread,
Oct 10, 2012, 10:20:26 AM10/10/12
to discuss...@googlegroups.com
Please spell correctly. It's "chromium", not "chromiun".



--
 
 
 

Reply all
Reply to author
Forward
0 new messages