Skip to content

u/Afwas

In this archive from Mar 2012 to Jun 2015

0
posts
11
comments
0
media
15
score

You want only the minetest-server on your server. Change config to make it available online. In /etc/minetest/<name>.conf see section "Server stuff" and add you server's IP at "bind_address" and a Domain name at "server_address"

# Around line 245 in /etc/minetest/<name>.conf
# Server stuff
bind_addresss = 123.456.789.012
server_address = example.com

Now restart server

$ sudo systemctl restart minetest@<name>

and test with your minetest-client at home

1 points

I have a BeagleBone Black with an attached HDD set up as server. I use it to store backups (I use duplicity over ssh to connect to this setup) from different servers and laptops, amongst other uses as mentioned in previous posts.

2 points

I found a function to 'easily' add color. It's bash scripting language so it's still somewhat complicated. First you want your terminal in 254 colors. Add this to somewhere high in .bashrc

export TERM=xterm-256color

Next the declaration of the function

function EXT_COLOR () { echo -ne "\[\033[38;5;$1m\]"; }

and a variable containing the escape sequence to terminate color

NO_COLOUR="\[\033[0m\]"

Usage The function takes as argument the code for the color you specify. In bash that would look like:

"${EXT_COLOR 117}"

This would replace $1 in the tail of the function declaration with the color code 117. After adding the text you want to remove the color-declaration with

"${NO_COLOR}"

To wrap it up: after the declaration of 354 color, the function and the variable this should work in your example:

echo "ALL HAIL THE ${EXT_COLOR 117}GLOW${NO_COLOR} CLOUD"

This would internally by bash be replaced with

echo "ALL HAIL THE \[\033[38;5;117m\]GLOW\[\033[0m\] CLOUD"

Notice the use of " and \ and ${...}

1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.