Jump to content

Debian CLI only on VPS - Problem


Michal Ziak

Recommended Posts

Hi guys,

I finally pushed my bot on my debian VPS, however, there is one issue i cannot deal with, using this command:

# java -jar "BOT.jar" -debug 5005 -login ######:######  -bot ######:######:0000 -script myfancyscript:true -allow norandoms,lowcpu,lowresource,nointerface,norender -world 474 -proxy xxxxxxxxxx:xxxx

Output was:

We were unable to login automatically!
-You must update Web Walking through the Boot UI.
Debug enabled on port 5005
Starting local script with name:myfancyscript
Clearing all randoms from OSBot
Starting OSBot in low cpu mode
Starting OSBot with no interfaces, inherits lowresource
Starting OSBot in no render mode
 

But i have no possibilities to run bot through any gui. Is there any possibility to walk around this one?  

Link to comment
Share on other sites

Okay, finally installed VNC and started webwalk ... however i came to next error, where I am kind of lost.

Quote

Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
        at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
        at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
        at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:132)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at java.awt.Toolkit$2.run(Toolkit.java:860)
        at java.awt.Toolkit$2.run(Toolkit.java:855)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
        at javax.swing.UIManager.getSystemLookAndFeelClassName(UIManager.java:611)
        at org.osbot.BotApplication.iIiIIiiIiiii(lab:14)
        at org.osbot.Boot.main(qs:201)

Update: for those who will face similar issue, you need to set enviromental variable DISPLAY to some output which you send to null (for example export DISPLAY=:10).
 

Edited by Michal Ziak
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...