Can I host a blockland server on a linux machine?

Author Topic: Can I host a blockland server on a linux machine?  (Read 1310 times)

So I bought a vps and I was wondering if I could host a blockland server on it.
Is there compatible software for that?


yes it runs quite well with wine, i have done it before

Well I tried using wine but it says it can't load a window

I just enter "wine Blockland.exe -dedicated"

Well I tried using wine but it says it can't load a window

I just enter "wine Blockland.exe -dedicated"
What distro?
Are you running it on an X session?

16:43 - keesfani: hi I made that topic about running a blockland server on linux
16:43 - »TheBlackParrot«: i saw
16:43 - keesfani: yeah so I am very new to linux like I bought the vps yesterday
16:44 - »TheBlackParrot«: do you know what distro it's running or do you have no idea
16:44 - keesfani: well I dont know what a distro is :v
16:44 - »TheBlackParrot«: what linux is it
16:44 - »TheBlackParrot«: debian
16:44 - »TheBlackParrot«: ubuntu
16:44 - »TheBlackParrot«: centos
16:44 - »TheBlackParrot«: etc.
16:44 - keesfani: ubuntu
16:45 - »TheBlackParrot«: aaaand are you able to get a desktop running or is it just the console
16:45 - keesfani: Ubuntu 13.04 64Bit
16:45 - keesfani: just console
16:45 - »TheBlackParrot«: ok, one sec
16:46 - »TheBlackParrot«: the issue with blockland on wine without a desktop (you reeeally should have found one with windows if you had the chance)
16:47 - »TheBlackParrot«: if you run it without a desktop, you won't have access to blockland's console pretty much at all
16:47 - »TheBlackParrot«: unless you use eval or have some PHP scripted remote console
16:48 - »TheBlackParrot«: so you could try not using a desktop at all, or install a few things on your computer that will let you get in to a desktop on the server
16:49 - keesfani: let's try it without a desktop
16:49 - »TheBlackParrot«: alrighty
16:49 - »TheBlackParrot«: do you know how to install things
16:49 - keesfani: apt-get install xxxx
16:49 - »TheBlackParrot«: yes
16:50 - »TheBlackParrot«: install xvfb, x11-xkb-utils, and xserver-xorg-core
16:50 - keesfani: ok
16:50 - »TheBlackParrot«: also xterm
16:53 - keesfani: ok
16:53 - keesfani: did it
16:54 - »TheBlackParrot«: you may need to install screen as well
16:54 - keesfani: I already have that
16:54 - keesfani: I used it for minecraft servers which I got working
16:54 - »TheBlackParrot«: oh ok
16:55 - »TheBlackParrot«: type in "nano /usr/bin/blockland"
16:55 - »TheBlackParrot«: then copy paste what i send here into it
16:56 - keesfani: it's an empty file for me btw
16:56 - »TheBlackParrot«: it's supposed to be lol
16:56 - keesfani: ok good
16:56 - »TheBlackParrot«: #!/bin/sh

screen -dmS blockland su blockland -c 'GAMEMODE="Crumbling_Arena"; xvfb-run --auto-servernum --server-num=1 xterm -e "wine ~/Blockland/Blockland.exe ptlaaxobimwroe -dedicated 1 -gamemode $GAMEMODE"'
16:56 - »TheBlackParrot«: you can change that GAMEMODE thing to whatever you'd like to run
16:56 - keesfani: It's one line for me
16:57 - »TheBlackParrot«: yep
16:57 - keesfani: is it white space sensitive?
16:57 - »TheBlackParrot«: yes
16:57 - keesfani: ok im gonna put custom
16:57 - »TheBlackParrot«: be sure to edit your addon prefs then, it'll use those
16:58 - »TheBlackParrot«: once you're through, you need to add a "blockland" user and a "blockland" group
16:58 - keesfani: ok
16:58 - keesfani: add where?
16:58 - »TheBlackParrot«: uh hold on
16:59 - »TheBlackParrot«: https://help.ubuntu.com/13.04/serverguide/user-management.html#adding-deleting-users
16:59 - keesfani: btw it says GAMEMODE="Crumbling_Arena" is that good?
16:59 - »TheBlackParrot«: change that from "Crumbling_Arena" to "Custom"
16:59 - keesfani: ok
17:00 - »TheBlackParrot«: then chmod +x /usr/bin/blockland
17:00 - keesfani: so adduser Blockland
17:00 - keesfani: and
17:01 - »TheBlackParrot«: without the capital
17:01 - keesfani: addgroup blockland
17:01 - keesfani: ok
17:01 - »TheBlackParrot«: yes
17:01 - »TheBlackParrot«: and then adduser blockland blockland
17:01 - »TheBlackParrot«: so it's added to the group
17:02 - keesfani: adduser blockland gives me an error: "adduser: The group `blockland' already exists.
"
17:02 - »TheBlackParrot«: that's fine
17:02 - »TheBlackParrot«: i said that in case ubuntu didn't do that automatically
17:02 - keesfani: ok
17:02 - »TheBlackParrot«: what you need to do now is make a directory in /srv for blockland
17:02 - »TheBlackParrot«: mkdir /srv/blockland
17:03 - keesfani: ok done
17:03 - »TheBlackParrot«: see if you have a /etc/passwd file
17:03 - »TheBlackParrot«: ls -al /etc | grep passwd
17:04 - keesfani: -root@keesfani:~# ls -al /etc | grep passwd
-rw-r--r--   1 root  root    1357 Dec 26 16:31 passwd
-rw-------   1 root  root    1323 Dec 26 16:31 passwd-
17:04 - »TheBlackParrot«: nano /etc/passwd
17:04 - keesfani: yes
17:04 - keesfani: it has stuff
17:05 - »TheBlackParrot«: find blockland's entry, should be at the bottom
17:05 - »TheBlackParrot«: change "/home/blockland" to "/srv/blockland"
17:05 - keesfani: I dont see it
17:05 - »TheBlackParrot«: copy it here
17:07 - keesfani: :100:101::/var/lib/libuuid:/bin/sh
messagebus:x:101:103::/var/run/dbus:/bin/false
bind:x:102:107::/var/cache/bind:/bin/false
fetchmail:x:103:65534::/var/lib/fetchmail:/bin/false
sshd:x:104:65534::/var/run/sshd:/usr/sbin/nologin
syslog:x:105:109::/home/syslog:/bin/false
klog:x:106:110::/home/klog:/bin/false
smmta:x:107:112:Mail Transfer Agent,,,:/var/lib/sendmail:/bin/false
smmsp:x:108:113:Mail Submission Program,,,:/var/lib/sendmail:/bin/false
ftp:x:109:114:ftp daemon,,,:/srv/ftp:/bin/false
mysql:x:110:115:MySQL Server,,,:/nonexistent:/bin/false
colord:x:111:118:colord colour management daemon,,,:/var/lib/colord:/bin/false
17:07 - »TheBlackParrot«: ugh ubuntu
17:07 - »TheBlackParrot«: hold on
17:07 - keesfani: root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
libuuid:x:100:101::/var/lib/libuuid:/bin/sh
messagebus:x:101:103::/var/run/dbus:/bin/false
bind:x:102:107::/var/cache/bind:/bin/false
fetchmail:x:103:65534::/var/lib/fetchmail:/bin/false
sshd:x:104:65534::/var/run/sshd:/usr/sbin/nologin
syslog:x:105:109::/home/syslog:/bin/false
klog:x:106:110::/home/klog:/bin/false
smmta:x:107:112:Mail Transfer Agent,,,:/var/lib/sendmail:/bin/false
smmsp:x:108:113:Mail Submission Program,,,:/var/lib/sendmail:/bin/false
ftp:x:109:114:ftp daemon,,,:/srv/ftp:/bin/false
mysql:x:110:115:MySQL Server,,,:/nonexistent:/bin/false
colord:x:111:118:colord colour management daemon,,,:/var/lib/colord:/bin/false
17:07 - keesfani: there
17:08 - »TheBlackParrot«: it's not even in that either
17:08 - »TheBlackParrot«: hm
17:08 - »TheBlackParrot«: ls -al /home and see if blockland even has a folder there
17:09 - keesfani: root@keesfani:~# ls -al /home
total 8
drwxr-xr-x  2 root root 4096 Nov 19 21:53 .
drwxr-xr-x 23 root root 4096 Nov 19 21:54 ..
17:09 - »TheBlackParrot«: wh
17:09 - »TheBlackParrot«: did you add a blockland user?
17:10 - keesfani: adduser blockland
17:10 - keesfani: I did addgroup blockland
17:10 - »TheBlackParrot«: did you do adduser too
17:10 - keesfani: and when I did adduser it didnt let me and gave me that error
17:10 - keesfani: *adduser blockland
17:11 - »TheBlackParrot«: which error
17:11 - »TheBlackParrot«: try it again
17:11 - keesfani: adduser: The group 'blockland' already exists.
17:11 - »TheBlackParrot«: delgroup blockland
17:11 - »TheBlackParrot«: useradd blockland
17:12 - keesfani: ok
17:12 - keesfani: done
17:12 - »TheBlackParrot«: cat /etc/passwd
17:12 - »TheBlackParrot«: see if it's there now
17:14 - keesfani: yeah it is
17:14 - »TheBlackParrot«: ok good lol
17:14 - keesfani: blockland:x:1000:1000::/home/blockland:/bin/sh
17:14 - »TheBlackParrot«: change /home/blockland to /srv/blockland
17:15 - keesfani: done
17:15 - »TheBlackParrot«: i just forgot
17:16 - »TheBlackParrot«: you need to install a desktop regardless to enter your key
17:16 - »TheBlackParrot«: fuq
17:16 - »TheBlackParrot«: apt-get install openbox x11vnc
17:16 - keesfani: ok
17:16 - keesfani: done
17:17 - »TheBlackParrot«: is ~/.xinitrc a blank file
17:18 - keesfani: I have ftp installed and I dont see a /root/.xinitrc
17:18 - »TheBlackParrot«: ls -al ~
17:18 - »TheBlackParrot«: probably hidden
17:19 - »TheBlackParrot«: if there's not one at all, cp /etc/skel/.xinitrc ~
17:19 - keesfani: I dont see it
17:19 - »TheBlackParrot«: which folder
17:19 - »TheBlackParrot«: /etc/skel
17:19 - »TheBlackParrot«: or ~
17:20 - keesfani: drwx------  9 root root 4096 Dec 26 17:20 .
drwxr-xr-x 23 root root 4096 Nov 19 21:54 ..
-rw-------  1 root root    0 Dec 26 17:20 .Xauthority
-rw-------  1 root root 3373 Dec 26 18:13 .bash_history
-rw-r--r--  1 root root 3106 Oct 27  2012 .bashrc
drwx------  2 root root 4096 Dec 25 16:48 .cache
drwxr-xr-x  3 root root 4096 Dec 26 17:00 .config
drwxr-xr-x  3 root root 4096 Dec 26 17:00 .local
-rw-------  1 root root   14 Dec 26 18:15 .nano_history
-rw-r--r--  1 root root  140 Oct 27  2012 .profile
drwxr-xr-x  4 root root 4096 Dec 26 17:39 .wine
drwx------  9 root root 4096 Dec 26 17:26 Blockland
drwxr-xr-x  4 root root 4096 Dec 26 11:07 minecraft
17:20 - »TheBlackParrot«: i'm assuming ~
17:20 - keesfani: yes
17:20 - »TheBlackParrot«: so
17:20 - »TheBlackParrot«: cp /etc/skel/.xinitrc ~
17:20 - keesfani: root@keesfani:~# cp /etc/skel/.xinitrc ~
cp: cannot stat '/etc/skel/.xinitrc': No such file or directory
17:20 - »TheBlackParrot«: ls -al /etc/skel
17:21 - keesfani: drwxr-xr-x   2 root root 4096 Nov 19 21:53 .
drwxr-xr-x 113 root root 4096 Dec 26 18:17 ..
-rw-r--r--   1 root root  220 Mar 30  2013 .bash_logout
-rw-r--r--   1 root root 3637 Mar 30  2013 .bashrc
-rw-r--r--   1 root root  675 Mar 30  2013 .profile
17:21 - »TheBlackParrot«: apt-get install xorg-server xorg-xinit
17:22 - keesfani: E: Unable to locate package xorg-server
E: Unable to locate package xorg-xinit
17:22 - »TheBlackParrot«: dammit ubuntu
17:22 - »TheBlackParrot«: hold on
17:23 - »TheBlackParrot«: ls -al /usr/bin | grep startx
17:23 - keesfani: root@keesfani:~# ls -al /usr/bin | grep startx
-rwxr-xr-x  1 root root       4834 Jun 17  2012 startx
17:23 - »TheBlackParrot«: :/
17:23 - »TheBlackParrot«: we'll just create .xinitrc manually then
17:24 - »TheBlackParrot«: nano ~/.xinitrc
17:24 - keesfani: ok
17:25 - »TheBlackParrot«: #!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

x11vnc --forever &
exec openbox-session
17:25 - »TheBlackParrot«: now on your computer, you need to install a vnc viewer
17:25 - »TheBlackParrot«: like realvnc, tightvnc, etc.
17:26 - keesfani: ok
17:26 - keesfani: what vnc viewer do you recommend?
17:26 - »TheBlackParrot«: i use realvnc
17:27 - »TheBlackParrot«: i'm more into X forwarding through SSH with Xming on windows but that's a whole different ordeal lol
17:27 - »TheBlackParrot«: once you have realvnc installed, do "startx" on your server
17:29 - keesfani: it says I need a license key
17:30 - »TheBlackParrot«: you shouldnt
17:31 - keesfani: ok I got one and I think it's working
17:31 - »TheBlackParrot«: do you have a desktop
17:32 - »TheBlackParrot«: you should be able to right-click and have a menu popup if you do
17:32 - keesfani: I think I installed the server
17:33 - »TheBlackParrot«: lol
17:33 - keesfani: ehm
17:33 - keesfani: btw
17:33 - keesfani: when I do startx I get this:
17:33 - keesfani: Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
17:33 - keesfani: after initializing a bunch
17:34 - »TheBlackParrot«: ufcking ubuntu i swear
17:34 - »TheBlackParrot«: hold on
17:34 - »TheBlackParrot«: try xinit
17:35 - keesfani: Fatal server error:
xf86OpenConsole: Cannot find a free VT: Invalid argument

(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
Server terminated with error (1). Closing log file.
^Cxinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: unexpected signal 2
17:37 - »TheBlackParrot«: because ubuntu is stupid as hell, you'll have to use a login manager to get x started
17:37 - »TheBlackParrot«: apt-get install lxdm
17:38 - keesfani: debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
17:39 - »TheBlackParrot«: what
17:39 - »TheBlackParrot«: did you type in the right command?
17:39 - »TheBlackParrot«: it's "apt-get install lxdm"
17:39 - keesfani: I did it again and I think it works now
17:39 - »TheBlackParrot«: ok
17:40 - »TheBlackParrot«: ls -al /etc/X11
17:40 - keesfani: drwxr-xr-x   9 root root  4096 Dec 26 18:38 .
drwxr-xr-x 114 root root  4096 Dec 26 18:38 ..
lrwxrwxrwx   1 root root    13 Dec 26 17:18 X -> /usr/bin/Xorg
-rwxr-xr-x   1 root root   709 Apr  1  2010 Xreset
drwxr-xr-x   2 root root  4096 Nov 19 21:55 Xreset.d
drwxr-xr-x   2 root root  4096 Nov 19 21:55 Xresources
-rwxr-xr-x   1 root root  3730 Mar 22  2012 Xsession
drwxr-xr-x   2 root root  4096 Dec 26 16:31 Xsession.d
-rw-r--r--   1 root root   265 Jul  1  2008 Xsession.options
-rw-r--r--   1 root root    13 May 29  2013 XvMCConfig
-rw-r--r--   1 root root   601 Nov 19 21:55 Xwrapper.config
drwxr-xr-x   2 root root  4096 Dec 26 18:38 app-defaults
-rw-r--r--   1 root root    15 Dec 26 18:38 default-display-manager
drwxr-xr-x   4 root root  4096 Dec 26 17:18 fonts
lrwxrwxrwx   1 root root    14 Apr  1  2013 openbox -> ../xdg/openbox
-rw-r--r--   1 root root 17394 Dec  3  2009 rgb.txt
drwxr-xr-x   2 root root  4096 Dec 26 17:18 xinit
drwxr-xr-x   2 root root  4096 Feb  2  2013 xkb
17:40 - »TheBlackParrot«: ls -al /etc/lxdm
17:40 - keesfani: total 40
drwxr-xr-x   2 root root 4096 Dec 26 18:38 .
drwxr-xr-x 114 root root 4096 Dec 26 18:38 ..
-rwxr-xr-x   1 root root   64 Mar  1  2012 LoginReady
-rwxr-xr-x   1 root root   64 Mar  1  2012 PostLogin
-rwxr-xr-x   1 root root   64 Mar  1  2012 PostLogout
-rwxr-xr-x   1 root root   64 Mar  1  2012 PreLogin
-rwxr-xr-x   1 root root   64 Mar  1  2012 PreReboot
-rwxr-xr-x   1 root root   64 Mar  1  2012 PreShutdown
-rwxr-xr-x   1 root root 1622 Mar  1  2012 Xsession
lrwxrwxrwx   1 root root   27 Dec 26 18:38 default.conf -> /etc/alternatives/lxdm.conf
-rw-r--r--   1 root root 1026 Mar  1  2012 lxdm.conf
17:41 - »TheBlackParrot«: nano /etc/lxdm/PreLogin
17:41 - keesfani: ok
17:41 - »TheBlackParrot«: add "x11vnc --forever" to it
17:41 - keesfani: at the end?
17:41 - »TheBlackParrot«: x11vnc --forever &
17:41 - »TheBlackParrot«: yes
17:42 - keesfani: #!/bin/sh
#
# Note: this is a sample and will not be run as is.
x11vnc --forever
17:42 - »TheBlackParrot«: &
17:42 - »TheBlackParrot«: dont forget the &
17:42 - keesfani: #!/bin/sh
#
# Note: this is a sample and will not be run as is.
x11vnc --forever &
17:42 - »TheBlackParrot«: yep
17:42 - keesfani: ok
17:42 - keesfani: save?
17:42 - »TheBlackParrot«: yes
17:43 - »TheBlackParrot«: and then run lxdm
17:43 - keesfani: root@keesfani:~# lxdm
17:43 - »TheBlackParrot«: yes
17:43 - keesfani: gave no feedback
17:43 - »TheBlackParrot«: ps -A | grep lxdm
17:43 - keesfani: gave no feedback aswel
17:44 - »TheBlackParrot«: ubuntu right, ugh
17:44 - »TheBlackParrot«: /etc/init.d/lxdm start
17:44 - keesfani: root@keesfani:~# /etc/init.d/lxdm start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service lxdm start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start lxdm
lxdm start/running, process 3858
17:45 - »TheBlackParrot«: ps -A | grep lxdm
17:45 - keesfani: gave no feedback
17:45 - »TheBlackParrot«: service lxdm start
17:45 - keesfani: root@keesfani:~# service lxdm start
lxdm start/running, process 3869
17:45 - »TheBlackParrot«: ps aux | grep lxdm
17:46 - keesfani: root@keesfani:~# ps aux | grep lxdm
root      3875  0.0  0.0   6512   784 pts/0    S+   18:45   0:00 grep --color=auto lxdm
17:46 - »TheBlackParrot«: it told you it started running
17:46 - »TheBlackParrot«: yet it never actually did
17:46 - keesfani: uhm
17:46 - keesfani: then why is it telling me that?
17:47 - »TheBlackParrot«: i have no idea
17:47 - »TheBlackParrot«: ps -A | grep 3869
17:47 - keesfani: gave no feedback
17:50 - »TheBlackParrot«: you'll need to ask someone else on the forums
17:50 - »TheBlackParrot«: i can't deal with 13.04's bullstuff
17:50 - »TheBlackParrot«: i have no idea

thank god for intelligent newbies

ps: there's a pgrep command