Author Topic: JavaOp, no gui, shell  (Read 7687 times)

0 Members and 1 Guest are viewing this topic.

Offline Dan

  • Newbie
  • *
  • Posts: 6
    • View Profile
JavaOp, no gui, shell
« on: May 20, 2008, 07:03:56 pm »
Hello all

I am having problems with getting JavaOp to work without a gui, I have had JavaOp before but that was on a windows machine.
This is on a shell, no matter what I try to do, it will not find the plugins, it trys to open the gui to navigate to the plugin folder.
Java is installed, and I have also tried looking on these boards for answers but none really.

Any ideas?






dan@Nekron:~/Desktop/Core$ java -jar CommandlineConfiguration.jar

Unable to find any plugins.
Please download the plugin package from
http://www.javaop.com/download.html
and extract them somewhere.  You will be prompted to find them.

(.:15245): Gtk-WARNING **: cannot open display:

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: JavaOp, no gui, shell
« Reply #1 on: May 20, 2008, 08:27:23 pm »
Does it display anything after that? I thought I set it so, if it couldn't find the gui, it would automatically prompt you on the shell?

If it doesn't, run this:

echo "/path/to/plugins" >> ~/.javaop2/_PluginPaths.txt

Then run the bot.

Offline Dan

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: JavaOp, no gui, shell
« Reply #2 on: May 20, 2008, 10:52:14 pm »
Ok, that worked thank you, it didn't prompt me to enter in the path in, but that echo thing worked.

now, how do I set the bnls server by command line?  I got everything else done



nvm got it, thanks for the support
« Last Edit: May 20, 2008, 11:20:41 pm by Dan »

Offline Dan

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: JavaOp, no gui, shell
« Reply #3 on: May 21, 2008, 09:22:22 am »
Ok, now my problem is getting the JavaOp to stay connected when I close the putty window, is there a command I give it to run in the background or something, and I can safely close my putty window and have the bot stay connected?

Thanks

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: JavaOp, no gui, shell
« Reply #4 on: May 21, 2008, 09:33:05 am »
Learn how to use "screen". Here is a quick rundown, but I suggest learning it good:

1. Run "screen" (starts a "screen" session)
2. Run the bot
3. Close the putty window (detaches the "screen" session)
4. If you need access to the bot, run "screen -r" (-r = resume)

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: JavaOp, no gui, shell
« Reply #5 on: May 21, 2008, 11:09:16 am »
It might be worth mentioning that Ctrl + a d detaches the session (you press ctrl + a, let go of those keys and press d) without killing the terminal.

Offline Dan

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: JavaOp, no gui, shell
« Reply #6 on: May 21, 2008, 12:56:05 pm »
ah yes, screen, I remember that, how do I quit the bot after I put it on screen though?

I can resume fine but can't seem to quit the bot.
I don't want to use the battle.net commands to do it, I want to use console.




Thanks

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: JavaOp, no gui, shell
« Reply #7 on: May 21, 2008, 02:40:34 pm »
If you run screen --help it should tell you how to kill a session.

Wait.. I'm on Linux. Sec!

Hm, Ctrl+C on a resumed screen seemed to kill it. How to make the bot QUIT, I'm not sure from the console. Maybe just /quit?
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: JavaOp, no gui, shell
« Reply #8 on: May 21, 2008, 02:46:52 pm »
Log into the server, resume screen like I said, kill the bot with control-c, exit screen with "exit"

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: JavaOp, no gui, shell
« Reply #9 on: May 21, 2008, 04:00:01 pm »
Log into the server, resume screen like I said, kill the bot with control-c, exit screen with "exit"


If you run screen with the command you use to launch the bot, it'll shut itself down when the bot is closed (assuming you haven't launched any other programs in that screen session).

example:
$ screen "java -jar ./iagosbot.jar"

Offline Dan

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: JavaOp, no gui, shell
« Reply #10 on: May 22, 2008, 04:12:33 pm »
is it possible to have more than one screen going?

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: JavaOp, no gui, shell
« Reply #11 on: May 22, 2008, 04:20:59 pm »
is it possible to have more than one screen going?

Yes, but screen -r won't work, since you'll have more than one session.  To resume, you can either use screen -R, which will resume the first detached session it comes across, or you can do the following.

screen -ls will list all of the screen sessions.  I forget exactly how they're formatted, but I'm pretty sure it's something like PID.somecrap.  If you name the session, done with screen -t name when you're launching screen, then you can do screen -r name.  Otherwise, do screen -r PID.

Offline Dan

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: JavaOp, no gui, shell
« Reply #12 on: May 22, 2008, 04:26:38 pm »
ohh ok, Thanks guys.

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: JavaOp, no gui, shell
« Reply #13 on: May 25, 2008, 02:29:56 am »
It might be worth mentioning that Ctrl + a d detaches the session (you press ctrl + a, let go of those keys and press d) without killing the terminal.

You don't actually have to let go of ctrl; it works both ways.

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: JavaOp, no gui, shell
« Reply #14 on: May 25, 2008, 02:31:50 am »
It might be worth mentioning that Ctrl + a d detaches the session (you press ctrl + a, let go of those keys and press d) without killing the terminal.

You don't actually have to let go of ctrl; it works both ways.

Great, but that's pretty much irrelevant.

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: JavaOp, no gui, shell
« Reply #15 on: May 25, 2008, 02:34:42 am »
It might be worth mentioning that Ctrl + a d detaches the session (you press ctrl + a, let go of those keys and press d) without killing the terminal.

You don't actually have to let go of ctrl; it works both ways.

Great, but that's pretty much irrelevant.

So's your post, troll!

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: JavaOp, no gui, shell
« Reply #16 on: May 25, 2008, 11:43:48 am »
It might be worth mentioning that Ctrl + a d detaches the session (you press ctrl + a, let go of those keys and press d) without killing the terminal.

You don't actually have to let go of ctrl; it works both ways.

Great, but that's pretty much irrelevant.

So's your post, troll!

he's more like troll in training
through my infinite wisdom i've turned him into a troll against his own wishes

btw, happy Topaz Week.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: JavaOp, no gui, shell
« Reply #17 on: May 25, 2008, 11:52:19 am »
It might be worth mentioning that Ctrl + a d detaches the session (you press ctrl + a, let go of those keys and press d) without killing the terminal.

You don't actually have to let go of ctrl; it works both ways.

I know, but I specified to avoid having to answer that question in the future.