Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • ASDss: where do u download source and clients now
      August 18, 2017, 10:39:31 PM
    • ASDss: yo
      August 18, 2017, 10:39:20 PM
    • dan v jad: click me 4 da fun ;)[link]
      August 18, 2017, 04:39:58 PM
    • stCky: Palidinho is your OpenGL (was it OpenGL?) stuff open source anywhere?
      August 16, 2017, 09:07:22 PM
    • Travas:BUILD THE WALL
      August 15, 2017, 09:28:49 PM
    • Travas: i have ass cancer
      August 15, 2017, 09:23:29 PM
    • stCky: what are the fudge are you tryna ask?
      August 15, 2017, 08:21:35 PM
    • bader: what are the rsps community alive ?
      August 15, 2017, 05:46:16 PM
    • bader: yo guys
      August 15, 2017, 05:46:08 PM
    • Spacehost:[link] Updated our thread :)
      August 15, 2017, 09:40:34 AM
    • Adaro: The client is in Download section at Homepage
      August 15, 2017, 01:09:20 AM
    • FaTe_Of_GoDs: where do i get the client?????????????
      August 14, 2017, 05:23:14 PM
    • stCky: can anyone help me? I cant login to the shoutbox
      August 13, 2017, 05:45:15 PM
    • drubrkletern: appeal denied
      August 13, 2017, 02:35:27 PM
    • King_Trout:[link]
      August 13, 2017, 11:17:12 AM
    • Cole1497: no sorry
      August 13, 2017, 10:27:14 AM
    • ayz: yo can anyone explain something to me
      August 13, 2017, 08:08:51 AM
    • coolking12: Hi
      August 13, 2017, 04:16:06 AM
    • stCky: n+1
      August 11, 2017, 06:09:24 PM
    • PalidinoDH: How many more pages are going to show errors before this dude gets on and fixes shit
      August 11, 2017, 04:57:00 PM

    Author Topic: Host a Server on Linux (Ubuntu)  (Read 28986 times)

    0 Members and 1 Guest are viewing this topic.

    Offlinenic ster91

    • Member
    • **
    • Posts: 20
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #60 on: July 09, 2009, 08:28:20 PM »
    One problem, when I click 'run.sh' it comes up in the terminal very quickly, then vanishes. Could it be problems with variables?
    back when i was 7 or 8 i fudgeed my teddybear.
    this is by far one of the most African rigged tutorials i have ever seen...


    OfflineTulitikku

    • Member
    • ***
    • Posts: 132
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #61 on: July 13, 2009, 10:36:48 AM »
    One problem, when I click 'run.sh' it comes up in the terminal very quickly, then vanishes. Could it be problems with variables?
    Try adding a
    Code: [Select]
    sleepTo the end of your script (You can also add how many seconds it pauses for, by adding a number after the sleep command). This pauses the script, allowing you to see the possible error message that there is.


    Add a link for Xubuntu, perhaps? Since Gnome is pure shit compared to it.

    OfflineSneaky_

    • Member
    • ***
    • Posts: 114
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #62 on: July 17, 2009, 10:47:20 AM »
    OMG I SEARCH THIS TUT ABOUT 2weaks :D

    Hehe; Looks like your reply Contains an Caps-Lock on.
    Maybe if you chill abit?

    Oh yeah, Great tutorial.

    Regards,
    Sneaky_


    Offlinebirdman4657

    • Member
    • **
    • Posts: 81
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #63 on: July 18, 2009, 01:34:30 AM »
    Ok this is the first time ive tried linux, i really want to use it... i have done everything... been playing with it for about 13 hours... and i keep getting these errors


    "cd: 3: can't cd to bin"

    and the script is:

    #!/bin/bash
    cd bin && java -Xmx1024M server




    in an earlier post you said to take out the "cd bin &&"...
    this error shows up when you click on run > and goto "run in terminal" (without the cd bin &&) (i added sleep at the end of the script so i could read it)

    Pwnscape Server.
    npc.cfg: file not found.
    npcdrops.cfg: file not found.
    autospawn.cfg: file not found.
    item.cfg: file not found.
    globaldrops.cfg: file not found.
    doors.cfg: file not found.
    shops.cfg: file not found.


    this is the error i get when i try to run it FROM the terminal (without the cd bin &&) ...

    [email protected]:~$ sh '/home/jody-server/Desktop/A-S-E/run'
    Exception in thread "main" java.lang.NoClassDefFoundError: server
    Caused by: java.lang.ClassNotFoundException: server
       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
       at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: server.  Program will exit.


    lol... WTF? i need to get my server back online pronto... PLZ HELP!


    also if sum1 could give me the original enviroment variables... that would be great

    OfflineTulitikku

    • Member
    • ***
    • Posts: 132
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #64 on: July 18, 2009, 04:55:42 AM »
    https://ubuntuforums.org/showthread.php?t=319138
    I originally used that to set my Java. Use it in case the .deb package install fails.

    OfflineServer-Unknown.Net

    • Member
    • ****
    • Posts: 396
    • Thanks: +0/-0
      • View Profile
      • My Web Portfolio
    Re: Host a Server on Linux (Ubuntu)
    « Reply #65 on: July 18, 2009, 11:43:40 AM »
    Hey, is ubuntu like another computer/laptop? or like a internet-computer or w/e? I never did understand how useful these were, still don't.
    I am Jays... ;)

    Offlinemod_zez

    • Member
    • **
    • Posts: 82
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #66 on: July 18, 2009, 07:26:34 PM »
    ok i need help   how do i use this lol   im only 11 and used linux for 5 days and ima do a rsps on linux but how do i use this

    chmod -x run
    join lastpkers.no-ip.org almost on 24/7 awesome server
    dont forget to join lastpkers.smfforfree.com!

    OfflineTulitikku

    • Member
    • ***
    • Posts: 132
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #67 on: July 19, 2009, 05:22:26 AM »
    Hey, is ubuntu like another computer/laptop? or like a internet-computer or w/e? I never did understand how useful these were, still don't.
    Ubuntu is an Operating System (OS), and is fully functional. You can browse the Internet, view e-mails and do pretty much anything a windows operating system can.

    ok i need help   how do i use this lol   im only 11 and used linux for 5 days and ima do a rsps on linux but how do i use this

    chmod -x run
    Uhm, what are you trying to do with it?

    Offlinemod_zez

    • Member
    • **
    • Posts: 82
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #68 on: July 19, 2009, 09:34:42 AM »
    Hey, is ubuntu like another computer/laptop? or like a internet-computer or w/e? I never did understand how useful these were, still don't.
    Ubuntu is an Operating System (OS), and is fully functional. You can browse the Internet, view e-mails and do pretty much anything a windows operating system can.

    ok i need help   how do i use this lol   im only 11 and used linux for 5 days and ima do a rsps on linux but how do i use this

    chmod -x run
    Uhm, what are you trying to do with it?

    im trying to run my server......  but it pops up and disapears
    join lastpkers.no-ip.org almost on 24/7 awesome server
    dont forget to join lastpkers.smfforfree.com!

    OfflineTelenim

    • Member
    • ****
    • Posts: 2,976
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #69 on: July 19, 2009, 09:37:24 AM »
    Thanks, this actually worked :)

    Offlineyondergod22

    • First Time Poster
    • *
    • Posts: 2
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #70 on: July 24, 2009, 06:10:25 AM »
    Hi, Thanks for the guide but I need help please. I hate not figuring out stuff on my own but I just sat here for like half an hour and I can't get it to work  :o

    When I run chmod -x run
    I get
    Code: [Select]
    chmod: cannot access `run': No such file or directoryI did cd to the directory and run.sh is in there, so I am confused >=[

    I'm not a COMPLETE linux noob, I've been using it for a while but I normally don't do stuff like this.

    Oh and btw, idk if it matters, but I'm trying to use the client from this (I have the server running on my other computer)


    Thank You :)

    OfflineTulitikku

    • Member
    • ***
    • Posts: 132
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #71 on: July 24, 2009, 06:26:29 AM »
    Hi, Thanks for the guide but I need help please. I hate not figuring out stuff on my own but I just sat here for like half an hour and I can't get it to work  :o

    When I run chmod -x run
    I get
    Code: [Select]
    chmod: cannot access `run': No such file or directoryI did cd to the directory and run.sh is in there, so I am confused >=[

    I'm not a COMPLETE linux noob, I've been using it for a while but I normally don't do stuff like this.

    Oh and btw, idk if it matters, but I'm trying to use the client from this (I have the server running on my other computer)


    Thank You :)

    That chmod is used to make the shell script an executable one, I've always used this instead:
    sh Insert shell script here.sh

    In the terminal, of course.

    Offlineyondergod22

    • First Time Poster
    • *
    • Posts: 2
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #72 on: July 24, 2009, 08:06:37 AM »
    ]That chmod is used to make the shell script an executable one, I've always used this instead:
    sh Insert shell script here.sh

    In the terminal, of course.
    Thanks for the reply. When I do that I get this:
    Code: [Select]
    [email protected]:~/Desktop/317$ sh run.sh
    Usage: java [-options] class [args...]
               (to execute a class)
       or  java [-options] -jar jarfile [args...]
               (to execute a jar file)

    where options include:
        -d32          use a 32-bit data model if available

        -d64          use a 64-bit data model if available
        -client  to select the "client" VM
        -server  to select the "server" VM
        -hotspot  is a synonym for the "client" VM  [deprecated]
                      The default VM is client.
                      
        -cp <class search path of directories and zip/jar files>
        -classpath <class search path of directories and zip/jar files>
                      A : separated list of directories, JAR archives,
                      and ZIP archives to search for class files.
        -D<name>=<value>
                      set a system property
        -verbose[:class|gc|jni]
                      enable verbose output
        -version      print product version and exit
        -version:<value>
                      require the specified version to run
        -showversion  print product version and continue
        -jre-restrict-search | -jre-no-restrict-search
                      include/exclude user private JREs in the version search
        -? -help      print this help message
        -X            print help on non-standard options
        -ea[:<packagename>...|:<classname>]
        -enableassertions[:<packagename>...|:<classname>]
                      enable assertions
        -da[:<packagename>...|:<classname>]
        -disableassertions[:<packagename>...|:<classname>]
                      disable assertions
        -esa | -enablesystemassertions
                      enable system assertions
        -dsa | -disablesystemassertions
                      disable system assertions
        -agentlib:<libname>[=<options>]
                      load native agent library <libname>, e.g. -agentlib:hprof
                        see also, -agentlib:jdwp=help and -agentlib:hprof=help
        -agentpath:<pathname>[=<options>]
                      load native agent library by full pathname
        -javaagent:<jarpath>[=<options>]
                      load Java programming language agent, see java.lang.instrument
        -splash:<imagepath>
                      show splash screen with specified image
    run.sh: 2: Theme.jar: not found

    EDIT: L0L nevermind, i figured it out by comparing the run.bat and run.sh of the moparscape client, I had the replace the semicolon  with a colon. Thanks for the guide :D I never would have known that .bat and .sh files were basically the same thing.

    You should include that in your main post, as an example, here's what I had

    run.bat file:
    Code: [Select]
    @echo off
    java -Xmx500m -cp .;Theme.jar Gui
    and the run.sh I made:
    Code: [Select]
    #!/bin/bash
    java -Xmx500m -cp .:Theme.jar Gui
    « Last Edit: July 25, 2009, 08:30:28 PM by yondergod22 »

    Offline`Lewk_

    • Member
    • ****
    • Posts: 2,855
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #73 on: October 03, 2009, 11:05:32 PM »
    sudo sh run.sh

    go onto the Ubuntu help section here and read some of the tutorials so you understand the OS better.
    Code: [Select]
    [email protected]:~$ sudo sh Run.sh
    sh: Can't open Run.sh[/code
    Thats strange...

    Then I would suggest making an executable of the shell script by using this command:
    Code: [Select]
    sudo chmod +x Run.sh
    If the problem keeps reoccurring go onto the Ubuntu forums and ask.
    Code: [Select]
    [email protected]:~$ sudo chmod +x Run.sh
    chmod: cannot access `Run.sh': No such file or directory
    I tried this in the directory with it. I guess i'll have to ask like you suggested.
    Put Run.sh in your home folder, and do something simular to windows. Use the cd command. I don't know it, but google is your friend.
    http://i39.tinypic.com/2vlv30i.png
    [13:16] *** alex321 has joined #moparscape
    [13:16] <alex321> ::rules
    [13:16] <alex321> ::runes
    [13:20] <Fat_Cookies> ::yell lOooooooooooooooooool

    OfflinePoridge

    • Member
    • ***
    • Posts: 237
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #74 on: October 04, 2009, 03:21:31 PM »
    Wow i fudgeiNG LOVE YOU.
    Poridge is the most descent person in Mopar

    OfflineMod Bigbucks

    • Member
    • **
    • Posts: 46
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #75 on: November 22, 2009, 01:34:04 PM »
    I run the file and get the following
    Code: [Select]
    [email protected]:/home/rsps# ./run.sh
    -bash: ./run.sh: /bin/bash^M: bad interpreter: No such file or directory
    Bigbucks-Scape BETA Completion!
    IIIIIIIIII 0%

    OfflineMaximum ZxZ

    • Member
    • ****
    • Posts: 754
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #76 on: November 26, 2009, 09:44:12 PM »
    I got a Linux VPS. Is it the same as this ? Because I want to set up my server on it and I don't know how.

    Offlinekneistol

    • Member
    • ****
    • Posts: 921
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #77 on: December 28, 2009, 12:13:33 PM »
    help with step 6
    i cant run the client :(
    help me
    it wont start and i have done everythin
    u said :(
    Nothing that could be done today should be done tomorrow :)

    OfflineDenoria

    • Member
    • ****
    • Posts: 526
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #78 on: December 30, 2009, 04:05:01 AM »
    Nice tutorial!  ;)

    Offlineskater91411

    • First Time Poster
    • *
    • Posts: 1
    • Thanks: +0/-0
      • View Profile
    Re: Host a Server on Linux (Ubuntu)
    « Reply #79 on: December 31, 2009, 01:25:34 PM »
    Very nice tutorial.

    I had set up linux the day I happened to run across this and thought what the heck might as well try it and I keep running into an error. Whenever I try to install something such as sudo apt-get install unrar I get this error
    Code: [Select]
    E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
    I dont understand whats wrong, and also when I try to install a program from the software center it says "Waiting for other software manager's to quit"

    Thanks
    « Last Edit: December 31, 2009, 01:29:02 PM by skater91411 »

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal