Re: Setting up build environment without root priveleges

View: New views
6 Messages — Rating Filter:   Alert me  

Re: Setting up build environment without root priveleges

by David Novick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


> Hello,
> I am attempting to set up the gumstix build environment without root
> privileges.  No matter what I try (modifying .conf files), I always get the same
> bitbake output, and it comes out very quickly.  The following is what happens:
> $ bitbake gumstix-basic-image
> /gumstix/gumstix-oe/bitbake/bin/bitbake: Permission denied.
> Since I don't know where or why permission is being denied, I'm having trouble
> in troubleshooting this problem.
> Can anyone offer advice on setting up the build environment without root
> privileges?
> Thanks,
> Chrissy
>
>

I followed the directions @ gumstix.net on Setting up a build environment:
http://www.gumstix.net/Software/view/Getting-started/Setting-up-a-build-environment/111.html

on two different machine, and didn't have a problem with my user account.



     

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Parent Message unknown Re: Setting up build environment without root priveleges

by Chrissy Murray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When following the instructions on http://www.gumstix.net/Software/view/Getting-started/Setting-up-a-build-environment/111.html, how did you get around the following steps without super-user privileges?
$ sudo groupadd oe
$ sudo usermod -a -G oe your_username
$ sudo mkdir /usr/share/sources
$ sudo chgrp oe /usr/share/sources
$ sudo chmod 0775 /usr/share/sources
$ sudo chmod ug+s /usr/share/sources

Thanks,
Chrissy

----- Original Message ----
From: Chrissy Murray <gossamurr22@...>
To: gumstix-users@...
Sent: Thursday, May 22, 2008 11:48:44 AM
Subject: Setting up build environment without root priveleges

Hello,
I am attempting to set up the gumstix build environment without root privileges.  No matter what I try (modifying .conf files), I always get the same bitbake output, and it comes out very quickly.  The following is what happens:
$ bitbake gumstix-basic-image
<home directory>/gumstix/gumstix-oe/bitbake/bin/bitbake: Permission denied.
Since I don't know where or why permission is being denied, I'm having trouble in troubleshooting this problem.
Can anyone offer advice on setting up the build environment without root privileges?
Thanks,
Chrissy


     

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Setting up build environment without root priveleges

by Matt Robbins-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I noticed that on my two machines, the groupadd command did not seem to fully take effect until I rebooted, i.e. the group appeared in the /etc/group file, but the command # groups did not list it.  I was having some trouble a little later on in the process then when you describe though (when bitbake wanted to download stuff to /usr/share/sources).  Hope this helps.

-Matt

On Thu, May 22, 2008 at 4:13 PM, Chrissy Murray <gossamurr22@...> wrote:
When following the instructions on http://www.gumstix.net/Software/view/Getting-started/Setting-up-a-build-environment/111.html, how did you get around the following steps without super-user privileges?
$ sudo groupadd oe
$ sudo usermod -a -G oe your_username
$ sudo mkdir /usr/share/sources
$ sudo chgrp oe /usr/share/sources
$ sudo chmod 0775 /usr/share/sources
$ sudo chmod ug+s /usr/share/sources

Thanks,
Chrissy

----- Original Message ----
From: Chrissy Murray <gossamurr22@...>
To: gumstix-users@...
Sent: Thursday, May 22, 2008 11:48:44 AM
Subject: Setting up build environment without root priveleges

Hello,
I am attempting to set up the gumstix build environment without root privileges.  No matter what I try (modifying .conf files), I always get the same bitbake output, and it comes out very quickly.  The following is what happens:
$ bitbake gumstix-basic-image
<home directory>/gumstix/gumstix-oe/bitbake/bin/bitbake: Permission denied.
Since I don't know where or why permission is being denied, I'm having trouble in troubleshooting this problem.
Can anyone offer advice on setting up the build environment without root privileges?
Thanks,
Chrissy




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Parent Message unknown Re: Setting up build environment without root priveleges

by David Novick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oops, my bad, I though you where having problems using bitbake as a user...

Not that I know much about the process, but I'm guessing you'll need root to at least do those commands.

I'm guessing that it's trying to do source code caching, and it can't find/write to /usr/share/sources.
Can you ask an admin to run those commands?

If not, I'm guessing that you're going to have to find a way to disable the caching...???

----- Original Message ----

> From: Chrissy Murray <gossamurr22@...>
> To: gumstix-users@...
> Sent: Thursday, May 22, 2008 2:13:01 PM
> Subject: Re: [Gumstix-users] Setting up build environment without root priveleges
>
> When following the instructions on
> http://www.gumstix.net/Software/view/Getting-started/Setting-up-a-build-environment/111.html,
> how did you get around the following steps without super-user privileges?
> $ sudo groupadd oe
> $ sudo usermod -a -G oe your_username
> $ sudo mkdir /usr/share/sources
> $ sudo chgrp oe /usr/share/sources
> $ sudo chmod 0775 /usr/share/sources
> $ sudo chmod ug+s /usr/share/sources
>
> Thanks,
> Chrissy
>
> ----- Original Message ----
> From: Chrissy Murray
> To: gumstix-users@...
> Sent: Thursday, May 22, 2008 11:48:44 AM
> Subject: Setting up build environment without root priveleges
>
> Hello,
> I am attempting to set up the gumstix build environment without root
> privileges.  No matter what I try (modifying .conf files), I always get the same
> bitbake output, and it comes out very quickly.  The following is what happens:
> $ bitbake gumstix-basic-image
> /gumstix/gumstix-oe/bitbake/bin/bitbake: Permission denied.
> Since I don't know where or why permission is being denied, I'm having trouble
> in troubleshooting this problem.
> Can anyone offer advice on setting up the build environment without root
> privileges?
> Thanks,
> Chrissy
>
>
>      
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@...
> https://lists.sourceforge.net/lists/listinfo/gumstix-users



     

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Setting up build environment without root priveleges

by Chris Dollar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Chrissy,

On Thu, May 22, 2008 at 2:13 PM, Chrissy Murray <gossamurr22@...> wrote:
When following the instructions on http://www.gumstix.net/Software/view/Getting-started/Setting-up-a-build-environment/111.html, how did you get around the following steps without super-user privileges?
$ sudo groupadd oe
$ sudo usermod -a -G oe your_username
$ sudo mkdir /usr/share/sources
$ sudo chgrp oe /usr/share/sources
$ sudo chmod 0775 /usr/share/sources
$ sudo chmod ug+s /usr/share/sources

You really don't need those steps.  What that is trying to do is create a new group on your system called 'oe', make you a member of that group, and give that group write permissions to /usr/share/sources.  By default gumstix-oe downloads files to /usr/share/sources . Since you don't have root privs on your machine just do this:
$ mkdir <home directory>/gumstix/sources
And then edit the file: <home dir>/gumstix/gumstix-oe/build/conf/site.conf and change:
DL_DIR = "/usr/share/sources"
to
DL_DIR = "<home dir>/gumstix/sources"

Chris

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Parent Message unknown Re: Setting up build environment without root priveleges

by Chrissy Murray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks David and Matt for the tips!  I think David is right about needing to track down an admin.  I thought I would check for any workarounds just in case...
Regards,
Chrissy


----- Original Message ----
From: Chrissy Murray <gossamurr22@...>
To: gumstix-users@...
Sent: Thursday, May 22, 2008 1:13:01 PM
Subject: Re: Setting up build environment without root priveleges

When following the instructions on http://www.gumstix.net/Software/view/Getting-started/Setting-up-a-build-environment/111.html, how did you get around the following steps without super-user privileges?
$ sudo groupadd oe
$ sudo usermod -a -G oe your_username
$ sudo mkdir /usr/share/sources
$ sudo chgrp oe /usr/share/sources
$ sudo chmod 0775 /usr/share/sources
$ sudo chmod ug+s /usr/share/sources

Thanks,
Chrissy

----- Original Message ----
From: Chrissy Murray <gossamurr22@...>
To: gumstix-users@...
Sent: Thursday, May 22, 2008 11:48:44 AM
Subject: Setting up build environment without root priveleges

Hello,
I am attempting to set up the gumstix build environment without root privileges.  No matter what I try (modifying .conf files), I always get the same bitbake output, and it comes out very quickly.  The following is what happens:
$ bitbake gumstix-basic-image
<home directory>/gumstix/gumstix-oe/bitbake/bin/bitbake: Permission denied.
Since I don't know where or why permission is being denied, I'm having trouble in troubleshooting this problem.
Can anyone offer advice on setting up the build environment without root privileges?
Thanks,
Chrissy


     

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users