Change font size
It is currently Wed Sep 18, 2019 6:30 am

Forum rules


{L_IMAGE}
Keep the training material related in some way to OSGrid and OpenSIM or tools that you would use externally to opensim such as image editors and database tools etc... but ultimately the material presented benefits OpenSIM and OSGrid.



Post a new topicPost a reply Page 4 of 9   [ 83 posts ]
Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 9  Next
Author Message
 Post subject: Re: Guide for OpenSim on a VPS virtual private server for OSGrid
PostPosted: Tue Oct 04, 2011 7:45 am 
OSG Elite
User avatar

Joined: Sat Nov 06, 2010 10:19 am
Posts: 1047
Location: Czech Republic
Hello,
let's hope that Void is OK.

We ended at me explaining you that script called opensim which is used to start the simulator must be set es executable using command chmod.
http://en.wikipedia.org/wiki/Chmod
http://www.computerhope.com/unix/uchmod.htm (link i provided you)

While you are using new system you are expected to learn it's basics to be able manage it in case of troubles.

Bo


Top
 Profile  
 
 Post subject: Re: Guide for OpenSim on a VPS virtual private server for OSGrid
PostPosted: Tue Oct 04, 2011 8:21 am 
OSG Elite
User avatar

Joined: Sat Jun 14, 2008 12:28 am
Posts: 381
Location: Australia
Bo, yes we did and after reading the link you provided I activated chmod 777 for that file, yet I still get the same result, permission denied, I feel I have incorrect settings elsewhere, I created a user "opensim" and set console user as opensim, after you said dont use root, so I dont know if I am on the right track.
I am learning basics of linux as I go, I am usually able to work most things out by myself and dont often ask for help unless I am completely stuck, once shown something I can work with it, I just need some help in this case.


Last edited by Cam Chevalier on Tue Oct 04, 2011 8:26 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Guide for OpenSim on a VPS virtual private server for OSGrid
PostPosted: Tue Oct 04, 2011 8:25 am 
OSG Elite
User avatar

Joined: Sat Nov 06, 2010 10:19 am
Posts: 1047
Location: Czech Republic
How do you start that file? Please be descriptive.


Top
 Profile  
 
 Post subject: Re: Guide for OpenSim on a VPS virtual private server for OSGrid
PostPosted: Tue Oct 04, 2011 8:28 am 
OSG Elite
User avatar

Joined: Sat Jun 14, 2008 12:28 am
Posts: 381
Location: Australia
I used your suggestion "opensim start 1"
also I used monit -t and the file shows up good


Top
 Profile  
 
 Post subject: Re: Guide for OpenSim on a VPS virtual private server for OSGrid
PostPosted: Tue Oct 04, 2011 8:40 am 
OSG Elite
User avatar

Joined: Sat Nov 06, 2010 10:19 am
Posts: 1047
Location: Czech Republic
So you log to the ssh, cd (change) to the folder with the executable opensim and run
{L_CODE}:
./opensim start 1

?
Do for me a listing of the folder using ls -l command, please
{L_CODE}:
ls -l opensim
-rwxr-xr-x  1 osgrid osgrid 4545 Sep  8 10:21 opensim

The file opensim should have that 3 x like mine has.
Thanks

PS: here is better explanation of the rights: http://www.comptechdoc.org/os/linux/use ... ilesp.html


Last edited by Bo Iwu on Tue Oct 04, 2011 8:59 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Guide for OpenSim on a VPS virtual private server for OSGrid
PostPosted: Tue Oct 04, 2011 8:51 am 
OSG Elite
User avatar

Joined: Sat Jun 14, 2008 12:28 am
Posts: 381
Location: Australia
Yes using that command ./opensim start 1 the result is permission denied

{L_CODE}:
ls -l opensim
-rw-r--r--  1 root root 1716 Oct  4 10:40 opensim

this is interesting, what does it mean?


Top
 Profile  
 
 Post subject: Re: Guide for OpenSim on a VPS virtual private server for OSGrid
PostPosted: Tue Oct 04, 2011 8:57 am 
OSG Elite
User avatar

Joined: Sat Nov 06, 2010 10:19 am
Posts: 1047
Location: Czech Republic
Cam Chevalier {L_WROTE}:
{L_CODE}:
ls -l opensim
-rw-r--r--  1 root root 1716 Oct  4 10:40 opensim

Your file was not chmoded properly.
There is no x in the signs. We need to chmod it again, please.
Run, please:
{L_CODE}:
osgrid@mail ~/os $ chmod 755 ./opensim
osgrid@mail ~/os $ ls -l opensim
-rwxr-xr-x 1 osgrid osgrid 4545 Sep  8 10:21 opensim

You will get those X whose means that file is executable then...

PS1: here is a good explanation of the rights: http://www.comptechdoc.org/os/linux/use ... ilesp.html

PS2: if you are uploading the file via FTP again and again it may DOWNGRADE the rights to non-executable under some conditions. Best is edit it directly in linux using native editor like is nano


Last edited by Bo Iwu on Tue Oct 04, 2011 9:06 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Guide for OpenSim on a VPS virtual private server for OSGrid
PostPosted: Tue Oct 04, 2011 9:05 am 
OSG Elite
User avatar

Joined: Sat Jun 14, 2008 12:28 am
Posts: 381
Location: Australia
Thank you , that made a difference, opensim start 1 now does something, but what it does is...
{L_CODE}:
: 107 unexpected operator
sorry but I've never heard of sim 1. Exiting


Top
 Profile  
 
 Post subject: Re: Guide for OpenSim on a VPS virtual private server for OSGrid
PostPosted: Tue Oct 04, 2011 9:11 am 
OSG Elite
User avatar

Joined: Sat Nov 06, 2010 10:19 am
Posts: 1047
Location: Czech Republic
Did you set properly your sims in the function setup please? It is supposed to look similary to this:

{L_CODE}:
setup() {
    if [ ! $1 ]; then
        show_help
        exit 1
    else
        SIM=$1
    fi

if [ $SIM == "1" ]; then
        MONO="/usr/bin/mono"
        PID="/home/osgrid/os/current-1/1.pid"
        OPENSIM_DIR="/home/osgrid/os/current-1"
        CONSOLE_PORT="9101"
        CONSOLE_USER="**"
        CONSOLE_PASS="***"
    elif [ $SIM == "2" ]; then
        MONO="/usr/bin/mono"
        PID="/home/osgrid/os/current-2/2.pid"
        OPENSIM_DIR="/home/osgrid/os/current-2"
        CONSOLE_PORT="9102"
        CONSOLE_USER="***"
        CONSOLE_PASS="***"
  else
        echo "Sorry, I've never heard of sim ${SIM}.  Exiting."
        exit 1;
    fi
}


Top
 Profile  
 
 Post subject: Re: Guide for OpenSim on a VPS virtual private server for OSGrid
PostPosted: Tue Oct 04, 2011 9:31 am 
OSG Elite
User avatar

Joined: Sat Jun 14, 2008 12:28 am
Posts: 381
Location: Australia
ok I changed from
{L_CODE}:
if [ $SIM == "your_sim" ]; then

to
{L_CODE}:
if [ $SIM == "1" ]; then

and now I get "sorry Ive never heard of sim 1 when I run opensim start 1
however when I start monit using
{L_CODE}:
/etc/init.d/monit start

it starts ok


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 4 of 9   [ 83 posts ]
Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 9  Next


Who is online

Users browsing this forum: legacy_google [bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net