Announcement

Collapse
No announcement yet.

chmod to 775?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    chmod to 775?

    Hey All,

    1st: Sorry to be asking so many questions.

    Next: I want to run Eternal-Lands. http://www.eternal-lands.com/page/download.php

    It tells me
    To play on Linux:
    Download the zip file, and unzip it.
    cd to the directory where you installed it.
    chmod to 775 install.sh and execute it
    There are two .bin files, on for 32b and the other for 64b. Depending on your platform, chmod the binary to 775, and execute it.
    edit el.ini and change datadir to where you unzip everything
    Also, the zip file has no base directory, so you should unzip it in a new directory you create.
    Now I got the .zip file downloaded and unziped to elc_150_linux.

    Ok so now what? In the elc_150_linux there is a folder elc-150 do I CD to that one and then do what is told to me, cause that is the one with all the files in it.

    Thanks, and again sorry to be so buggy.

    James

    #2
    Re: chmod to 775?

    ok so let me get this straight, u changed to the directory u zipped it to correct?

    and you did
    Code:
    chmod 775 ./install.sh
    right?

    well if u did that, then you do
    Code:
    ./install.sh
    EDIT:

    what is the output of
    Code:
    ls [full path of elc_150_linux]
    Code:
    ls [full path of elc-150]

    Comment


      #3
      Re: chmod to 775?

      what is the output of
      Code:

      ls [full path of elc_150_linux]
      OK I typed
      Code:
      james@DeskTop:~$ ls /Desktop/elc_150_linux
      Cause it's on my desktop, is that right? Be cause I got

      Code:
      ls: /Desktop/elc_150_linux: No such file or directory
      But if I CD into my desktop directory it is listed.

      elc_150_linux
      So I CD to that one and get

      Code:
      elc-150
      So I CD into that one

      Code:
      2dobjects      entrable.lst    license.txt   SDL.dll
      3dobjects      eternallands.ico  mapedit.ini   SDL_image.dll
      3dobjects.txt    files.lst      mapeditor    SDL_net.dll
      actor_defs      global_filters.txt MapEditor.exe  servers.lst
      alut.dll       harvestable.lst   mapeditor.html skeletons
      animations      iconv.dll      mapeditor.ico  sound_warnings.txt
      browser.lst     install.sh     mapinfo.lst   textures
      commands.lst     key.ini       maps      tiles
      custom_mirrors.lst  knowledge.xml    meshes     tmp
      e3dlist.txt     languages      mines.xml    uninstall.exe
      elc.png       libcal3d-12.dll   mirrors.lst   vorbis.dll
      el.exe        libiconv-2.dll   music      vorbisenc.dll
      el.ini        libpng12.dll    ogg.dll     vorbisfile.dll
      el.x86-64.linux.bin libpng13.dll    OpenAL32.dll  wrap_oal.dll
      el.x86.linux.bin   libxml2.dll     particles    zlib1.dll
      Hope this helps. Not sure what I did wrong when trying the "ls [path name]"

      Thanks,
      James


      Comment


        #4
        Re: chmod to 775?

        well since the install shellscript is in the other directory,it doesnt matter. but the reason you got "No such file or directory" is because "/Desktop/elc_150_linux" is not the full path. (because u need ur home directory before that).
        Code:
        ~/Desktop/elc_150_linux
        ~ is the same as ur home directory.

        (if u want to specify a relative path u must use a dot.
        Code:
        ./Desktop/elc_150_linux
        meaning that if u are in ur home directory, u put a dot (because your desktop is IN your home directory (i hope all this makes sense)

        but since the install shell script is in the elc-150 directory. do exactly this (please show the input and output of this)


        Code:
        cd ~/Desktop/elc-150
        chmod 755 ./install.sh
        ./install.sh
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~
        In case you didnt know: [EDITsorry I made a mistake)]
        chmod changes the permissions of the file.
        4 is readable
        2 is writable
        1 is executable

        the first number is the owner
        the second is the group
        and the third is all other users

        every folder and file has a user owner and a group owner.

        you add the above numbers together to get what permissions each category has.

        so with 755
        owner=7 (4+2+1=7, meaning owner can read,write to,and execute the file)
        group=5 (4+1=5, meaning any user that is part of the file's group can read or execute the file)
        user=5(4+1=5, meaning any other user can read and execute the file).

        EDIT:
        thats why with a lot of commands u have to use sudo
        because the file may have the permissions 744 (and owned by root), so u may need to be root to execute or make changes to them (sudo is basically "do as root" as you may or may not already know)

        also if the folder is 744 (also owned by root), then u cannot do normal commands like moving a file from an important folder (for example, if i folder is on your desktop, you can mv is as user
        Code:
        mv ~/Desktop/file ~/file
        because both your ~ and Desktop are owned by the user
        but if root owns a folder like /etc/ you must do sudo to move a folder inside of /etc/)

        just a 101 on permissions, but if didnt know this, it could help u later on XD

        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~

        but anyway, try those commands and post the input/output

        Comment


          #5
          Re: chmod to 775?

          ok had to do "cd ~/Desktop/elc_150_linux/elc-150" cause that's where all the files are

          Code:
          chmod 755 ./install.sh
          Brings me back to a command line. So..

          Code:
          ./install.sh
          Get

          mkdir: cannot create directory `/home/james/.elc': File exists
          Thanks,
          James

          PS: forgot to put this in here.

          Code:
          james@DeskTop:~$ cd ~/Desktop/elc-150
          bash: cd: /home/james/Desktop/elc-150: No such file or directory

          Comment


            #6
            Re: chmod to 775?

            hmmm, looks like maybe you already ran the install shellscript when trying it on your own.

            im not sure but i suspect that install.sh is trying to create /home/james/.elc, and it looks like it is already there, so you must have already ran the shellscript

            could you please post the output of
            Code:
            ls -A ~/.elc
            (~/.elc is the same as /home/james/.elc)

            Comment


              #7
              Re: chmod to 775?

              james@DeskTop:~$ ls -A ~/.elc
              mines.xml servers.lst
              james@DeskTop:~$

              Comment


                #8
                Re: chmod to 775?

                just a clean
                Code:
                ls ~/Desktop/elc_150_linux/elc-150
                should show us enough


                but just for fun also show
                Code:
                ls -A ~/Desktop/elc_150_linux/elc-150

                Comment


                  #9
                  Re: chmod to 775?

                  just a clean
                  Code:

                  ls ~/Desktop/elc_150_linux/elc-150
                  Code:
                  james@DeskTop:~$ ls ~/Desktop/elc_150_linux/elc-150
                  2dobjects      entrable.lst    license.txt   SDL.dll
                  3dobjects      eternallands.ico  mapedit.ini   SDL_image.dll
                  3dobjects.txt    files.lst      mapeditor    SDL_net.dll
                  actor_defs      global_filters.txt MapEditor.exe  servers.lst
                  alut.dll       harvestable.lst   mapeditor.html skeletons
                  animations      iconv.dll      mapeditor.ico  sound_warnings.txt
                  browser.lst     install.sh     mapinfo.lst   textures
                  commands.lst     key.ini       maps      tiles
                  custom_mirrors.lst  knowledge.xml    meshes     tmp
                  e3dlist.txt     languages      mines.xml    uninstall.exe
                  elc.png       libcal3d-12.dll   mirrors.lst   vorbis.dll
                  el.exe        libiconv-2.dll   music      vorbisenc.dll
                  el.ini        libpng12.dll    ogg.dll     vorbisfile.dll
                  el.x86-64.linux.bin libpng13.dll    OpenAL32.dll  wrap_oal.dll
                  el.x86.linux.bin   libxml2.dll     particles    zlib1.dll
                  but just for fun also show
                  Code:

                  ls -A ~/Desktop/elc_150_linux/elc-150
                  Code:
                  james@DeskTop:~$ ls -A ~/Desktop/elc_150_linux/elc-150
                  2dobjects      entrable.lst    license.txt   SDL.dll
                  3dobjects      eternallands.ico  mapedit.ini   SDL_image.dll
                  3dobjects.txt    files.lst      mapeditor    SDL_net.dll
                  actor_defs      global_filters.txt MapEditor.exe  servers.lst
                  alut.dll       harvestable.lst   mapeditor.html skeletons
                  animations      iconv.dll      mapeditor.ico  sound_warnings.txt
                  browser.lst     install.sh     mapinfo.lst   textures
                  commands.lst     key.ini       maps      tiles
                  custom_mirrors.lst  knowledge.xml    meshes     tmp
                  e3dlist.txt     languages      mines.xml    uninstall.exe
                  elc.png       libcal3d-12.dll   mirrors.lst   vorbis.dll
                  el.exe        libiconv-2.dll   music      vorbisenc.dll
                  el.ini        libpng12.dll    ogg.dll     vorbisfile.dll
                  el.x86-64.linux.bin libpng13.dll    OpenAL32.dll  wrap_oal.dll
                  el.x86.linux.bin   libxml2.dll     particles    zlib1.dll

                  Comment


                    #10
                    Re: chmod to 775?

                    el.x86-64.linux.bin
                    el.x86.linux.bin
                    the website states there are two binary files, a 64b and a 32b, depending on your platform. do u know which yours is? (as soon as you power on your computer, it should tell you)

                    im guessing the second one is the 32b one, and the first obviously must be the 64-b one.

                    Code:
                    chmod 755 ~/Desktop/elc_150_linux/elc-150/[whichever bin is right for your platform]
                    then simply running
                    Code:
                     ~/Desktop/elc_150_linux/elc-150/[the bin you just chmodded]
                    should give you your desired result

                    Comment


                      #11
                      Re: chmod to 775?

                      did it work?

                      Comment


                        #12
                        Re: chmod to 775?

                        No it hasn't worked yet. I am taking a break from this for right now. Sometimes I need to walk away and come back and re-read the directions and see what I missed

                        James

                        Comment


                          #13
                          Re: chmod to 775?

                          okay well i'll try installing it on my machine when i get the chance to see if i have any luck

                          and taking a break is fine. just remember not to give up. You have plenty of help when you need it

                          Comment

                          Working...
                          X