Jump to content

Debian CLI only on VPS - Problem


Recommended Posts

Posted

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?  

Posted (edited)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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