[one-users] How to set environment variable?

Tuan Le Doan tuan.fetk52 at gmail.com
Fri Aug 17 01:30:15 PDT 2012


Hi,

Thank you for your help, i have fixed it with unset command :)

Thank you, Hector.

2012/8/17 Hector Sanjuan <hsanjuan at opennebula.org>

> Hello, if you have a system-wide install (as you mentioned in the other
> thread), ONE_LOCATION should NOT be set. You can unset it with:
>
> oneadmin $> unset ONE_LOCATION
>
> Make sure is not set in .basrc or you would have to re-unset everytime.
> Also, unless your not using the defaults, there should be no need to set
> ONE_AUTH, ONE_XMLRPC, modify PATH either.
>
> Hector
>
> PS. ONE_LOCATION indicates the folder for self-contained installations.
> This install mode can only be done compiling the sources and installing
> manually.
>
> En Fri, 17 Aug 2012 09:08:44 +0200, Shrey Mehrotra <shrey.jssian at gmail.com>
> escribió:
>
>  Try this
>>
>> Create a file[~/.bash_profile] to set ENVIRONMENT VARIABLES to start and
>> use services rendered by "one" and "sunstone"
>>
>> nano ~/.bash_profile
>> export ONE_LOCATION=/var/lib/one
>> export ONE_AUTH=$ONE_LOCATION/.one/**one_auth
>> export ONE_XMLRPC=http://localhost:**2633/RPC2<http://localhost:2633/RPC2>
>> export
>> PATH=$ONE_LOCATION/bin:/usr/**local/bin:/var/lib/gems/1.8/**
>> bin/:/var/lib/gems/1.8/:$PATH
>>
>> source ~/.bash_profile
>>
>> warm regards..
>> Shrey Mehrotra.
>> Impetus Infotech India Pvt. Ltd
>> 9953241734
>>
>>
>>
>> On Fri, Aug 17, 2012 at 9:47 AM, Tuan Le Doan <tuan.fetk52 at gmail.com>
>> wrote:
>>
>>  Hi everybody,
>>>
>>> I had an error when started one and sunstone, it could not find the
>>> location of one and sunstone:
>>> [oneadmin at localhost root]$ one start
>>> Can not find /var/lib/one/bin/oned
>>>
>>> [oneadmin at localhost root]$ sunstone-server start
>>> grep: /var/lib/one/etc/sunstone-**server.conf: No such file or directory
>>> Cannot find /var/lib/one/lib/sunstone/**sunstone-server.rb
>>>
>>> I think I had something wrong about environment variable:
>>> [oneadmin at localhost root]$ echo $ONE_LOCATION
>>> /var/lib/one
>>>
>>> It should be "$HOME/one", right?
>>> But i don't know how can i change it. Can anyone help me?
>>>
>>> Thank you.
>>>
>>> --
>>> *Le Doan Tuan--------------------------**---------------------------*
>>>
>>> Undergraduate Student of School of Electronics & Telecommunications.
>>> Hanoi University of Science & Technology
>>> Tel    : +84 987 248 215
>>> Yahoo: ledoantuan1
>>> Skype: ledoantuan1
>>>
>>>
>>> ______________________________**_________________
>>> Users mailing list
>>> Users at lists.opennebula.org
>>> http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
>>>
>>>
>>>
>
> --
> Hector Sanjuan
> OpenNebula Developer
>
> ______________________________**_________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/**listinfo.cgi/users-opennebula.**org<http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>
>



-- 
*Le Doan Tuan-----------------------------------------------------*
Undergraduate Student of School of Electronics & Telecommunications.
Hanoi University of Science & Technology
Tel    : +84 987 248 215
Yahoo: ledoantuan1
Skype: ledoantuan1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120817/3a387806/attachment-0002.htm>


More information about the Users mailing list