#general

3141 messages · Page 173 of 4

acoustic pilot
#

plenty of us around here are self-taught and know our way around linux sys admining

#

even before Stack Overflow was a thing lol

austere ivy
#

UwU

acoustic pilot
#

I was probably a couple years into self-teaching myself at that point, but similar time frame

austere ivy
#

I started programming in the womb.

#

So 2013

acoustic pilot
#

IRC (Freenode) and Google were my primary resources

merry talon
#

we were all that one idiot on freenode once

austere ivy
#

Don’t forget Stackoverflow

acoustic pilot
#

Back then you had paywalled Experts Exchange Q&As polluting the search results.

austere ivy
#

Or, in my case, Womboverflow

#

/s

acoustic pilot
#

You don't really hear people say RTFM anymore 😛

austere ivy
#

You don’t really hear people say Commandblocks anymore :(

#

Everyone forgot the OG programming language

dapper nacelle
#

if I set the material of a chest to air and then back to a chest, does it still keep it's items?

austere ivy
#

Wow that’s a good question I would think not but if it’s done in the same tick..?

dapper nacelle
#

not in the same tick

austere ivy
#

Test it yourself.

dapper nacelle
#

if I save the block inside of a variable

austere ivy
#

UwU I never joked about that?

dapper nacelle
#

kek

austere ivy
#

Yeah and it’s 2027 right now? Are you guys living in the past? lol, it’s time to go ahead to the future old man.

ancient bolt
#

@austere ivy you weren't even in the womb yet

unreal quarry
#

@austere ivy I'm not a programmer 😛

golden gust
#

can confirm

#

runs

unreal quarry
#

hugs cat

dapper nacelle
#
Block block = location.getBlock();
BlockData blockData = block.getBlockData();
block.setType(Material.AIR);
block.setBlockData(blockData);
#

if the block that was stored here was a chest

#

would it keep it's content

golden gust
#

It shouldn't

cloud slate
dapper nacelle
#

what do I need to store then

golden gust
#

But, then again, with 1.14...

unreal quarry
#

setType(AIR) causes the chest contents to drop to the ground

golden gust
#

use a block snapshot

dapper nacelle
#

hm..

#

I want override the block

#

so first save it, then remove it, then place it again

unreal quarry
#

you'd also get a big pretty stacktrace for trying to put chest blockdata on an air block

marble summit
#

Welp

dapper nacelle
#

I guess

marble summit
#

just got a domain

#

Now how do i use it 😂

dapper nacelle
#

but doesn't blockdata contain the material

marble summit
#

(Namecheap Domain)

dapper nacelle
#

so setting the blockdata should effect change the material

unreal quarry
#

blockdata contains the data about the block. in the case of a chest this includes the tile entity data, too.

#

the reason you get a stacktrace is the tileentity must be there (from a setType() call) before the data is applied

dapper nacelle
#

@marble summit

#

these are the settings I use

#

you'd of course have to set your own data in the black spots

marble summit
#

Also now that i have a soyoustart server do i need to do anything to set it up?

#

Or is it fine the way it starts out

unreal quarry
#

you have to go to the control panel in SyS and install an OS

marble summit
#

Already got os

#

Ubuntu 18.04

unreal quarry
#

then you can login to the server and set everything else up the way you want

marble summit
#

How to do that then

unreal quarry
#

ssh

marble summit
#

Well like how to set up the ssh

unreal quarry
#

you on windows?

marble summit
#

I got a ssh somewhere on my mac

#

That i used to connect to my DO VPS when i used DO

unreal quarry
#

just use that and connect to your domain (or ip if it hasnt propagated yet)

dapper nacelle
#
Block block = location.getBlock();
BlockData blockData = block.getBlockData();
block.setType(Material.AIR);
block.setType(blockData.getMaterial());
block.setBlockData(blockData);
#

would this be better

#

it still doesn't replace the block

#

but changes the type

unreal quarry
#

@dapper nacelle maybe. but why? i smell an XY problem here.

dapper nacelle
#

I need to set a block to e.g. a redstone block and after e.g. 5 seconds set it back to the block it used to be

unreal quarry
#

oh, then yeah. that should work

#

just dont forget to block.update()

dapper nacelle
#

where?

marble summit
#

Ok i ma now on namecheap, so iu set the ip address to my soyoustart ip?

unreal quarry
#

or block.getState().update() whatever it is

golden gust
#

Store the block state, it contains all that information

dapper nacelle
#

I see

unreal quarry
#

i wish bukkit had a tileentity api

#

runs away

vestal jasper
#

I wish bukkit had a proper way to make players break blocks

#

Instead of manually calling the blockbreakevent and processing the result yourself

upbeat scaffold
golden gust
#

Part of the issue there is the reliance on nms

upbeat scaffold
#

👋

dapper nacelle
#

how do I re apply the state?

golden gust
#

Lots of things really aren't super clean to expose, especially when people start coming in with other requirements about it

#

The update method

dapper nacelle
#

I can only het the state

#

oh I see

unreal quarry
#

blockState.update()

golden gust
#

note the booleans, btw

dapper nacelle
#

wait

#

huh

unreal quarry
#

arent they true,true if you dont specify?

dapper nacelle
#

doesn't the blockstate get mutated

unreal quarry
#

blockState is a snapshot

marble summit
#

on SRV Record target what do i put there

unreal quarry
#

@marble summit you dont need SRV records for a dedi

marble summit
#

Oh i was doing what was in the link

unreal quarry
#

SRV records are mainly used for people running servers on non-standard ports (because shared hosting gives the port 29343 instead of 25565). SRV just reroutes one port to another

dapper nacelle
#
Block block = location.getBlock();
BlockState blockState= block.getState();
block.setType(Material.AIR);
block.getState().update();
blockState.update();
#

am I right?

golden gust
#

BlockState is a snapshot

marble summit
#

Ok so now that i made the A Record how to connect

dapper nacelle
#

the word snapshot has no meaning to me

golden gust
#

You can't call getState later on because it's going to return a new snapshot of the current block

#

(copy of the current state)

unreal quarry
#
Block block = location.getBlock();
BlockState oldState= block.getState();
//remove the chest contents here
block.setType(Material.AIR);
//block is no longer visable at this state
oldState.update();
//block is back to old block with old chest contents
dapper nacelle
#

I see

#

but if it's a chest it'll drop it's content, right?

#

I need to prevent that

golden gust
#

Yes, but getState returns a copy of the current block

#

So, you can do that and modify the block in the world all you want

dapper nacelle
#

so that means I can clear it's content first

marble summit
#

Ok issue, when i connect to my server it asks for a password when i do not think i set one

#

Like what password do i use

unreal quarry
#

@marble summit SyS gave you one

#

its in your email

marble summit
#

Oh

unreal quarry
#

@dapper nacelle think of getState() like taking a photograph. after its taken you can do anything to the original and the photograph is still the same one you took. to "undo" your changes just re-apply the snapshot back to the world with update()

dapper nacelle
#

I see

#

well

marble summit
#

I put it in

dapper nacelle
#

actually I figured that out a bit before you explained it there

marble summit
#

But it says permission denied

golden gust
#

You did use the right username, right?

marble summit
#

Oof i said ruot lol typo

#

Ok im in now

#

So how do i link my ssh to this thing

#

Or does it automatically do it when i connect to root for the first time

golden gust
#

to what "thing"?

marble summit
#

the server

golden gust
#

for ssh, you use an ssh client and basically just connect to it

marble summit
#

Which one to use then

void void
#

Any one you want.

marble summit
#

Are they pre installed?

#

Or do i need to install one

unreal quarry
#

i am so confused @marble summit at what youre even doing now lol

void void
#

You may need to install a client on your system unless your on MAC or Linux PC.

marble summit
#

I am a mac

unreal quarry
#

mac ships with ssh

#

just open a terminal and type ssh

marble summit
#

Yeah thats how i connected

#

ssh <user><ip>

void void
#

Now you just need to secure it and install what you want on the server itself.

marble summit
#

Then how to secure it

golden gust
#

then you're logged in via ssh

void void
#

refer to your search engine of what your concerned with and secure it from there and also read docs on recommendations for any panels you will be using, daemons, etc etc etc.

dapper nacelle
#
BlockState oldState = block.getState();
BlockState alsoAState = block.getState();
```if I execute them right after each other will they be the same object?
golden gust
#

no

dapper nacelle
#

good

unreal quarry
#

they will be different instances

#

but might be similar contents

dapper nacelle
#

idc about that

#

wierd that it does't have a clone method

#

but I suppose there is no real need for it

marble summit
#

how to disconnect from the server now exactly

unreal quarry
limber knotBOT
#

(DiscordBot) Multiplicity #4 - length 2m 59s - 291 likes, 9 dislikes (97.0%) - 164,499 views - Turbogroove1 on 2009.11.11

marble summit
#

Ok

#

gonna use their guide

#

Also, what if my ip changes with fail2ban?

unreal quarry
#

dont forget to disable root access via ssh, and setup a non-root account and uses ssh keys to connect, and disable ssh connects via passwords

#

etc etc

#

lots of secure things to do

#

😉

marble summit
#

Yeah i made a new user

#

Im following a guide

#

Way better guide than DO

#

How to locate areas in a nano'ed file?

unreal quarry
#

ctrl W

marble summit
#

Lol

#

Its just blank

#

When i open the sshd_config with nano

golden gust
#

the one in .ssh?

#

It won't exist until you create it

marble summit
#

Im doing what the guide tells me

#

o

golden gust
#

oh

#

You're probably not typing the path correctly

marble summit
#

I connected with ssh
then typed in
nano /etc/ssh/sshd_config

#

This is on my non root user

golden gust
#

only root can edit files in there

marble summit
#

Ohh ok

#

It didn't specify what user

#

How to disconnect from a server?

#

Cause CMD + C doesn't do anything

#

Ok did it

#

Do i do all of this tutorial on the root user?

#

Or on my new user

#

Cause it never tells me which one to do things on

acoustic pilot
#

It's usually a good idea to avoid running as root, in general.

marble summit
#

Oh ok

#

So i don't install fail2ban to root?

acoustic pilot
#

Well there are of course things you can only do as root

golden gust
#

package installation/configuration is generally done as root (or, sudo, but that's ew, imho)

marble summit
#

Cause i installed fail2ban to root 😂

acoustic pilot
#

but things like running your Minecraft server wouldn't be done as root

#

that's fine

marble summit
#

Do i still set it up

#

on root

#

for fail2ban

#

or no

golden gust
#

Yes, as all the config files can only be modified by the root user

marble summit
#

Ok

#

fail2ban do i need to edit the config?

limber knotBOT
#

cat huh!? You su into root to use package managers instead of using sudo?

marble summit
#

I remember using cat wzrd

limber knotBOT
#

No, f2b has good defaults

marble summit
#

Cause DO likes cat

limber knotBOT
#

I mean electroniccat *

golden gust
#

I login using root

limber knotBOT
#

what that's illegal

golden gust
#

I consider having sudo installed a bit of a security impact when your users you don't want to have access to root are given a tool to do that

old badge
#

living life on the edge

limber knotBOT
#

But .. just don't add them to the sudo/wheel group?

marble summit
#

Welp ok i got fail2ban installed onto root

acoustic pilot
#

IIRC the purpose of sudo is/was to prevent accidental fuck-ups as root

marble summit
#

Do i need to do anything else to root?

#

Or should i disconnect

golden gust
#

You'll probably wanna install java

marble summit
#

Ok how to install java

acoustic pilot
#

can probably just install openjdk from apt

marble summit
#

Cause i've only ever installed python on a server before 😂

unreal quarry
#

remember, after you disable root access to ssh you can becaome root from any user using su. there is no need for sudo in a production environment

marble summit
#

Yeah

#

i already su'd my user

acoustic pilot
marble summit
#

Like immediately when i made it

limber knotBOT
#

Billy that is not good advice

#

root should always be locked

#

and use sudo, or sudo su, to act as root

acoustic pilot
#

I appreciate the session expirations

#

and having to think twice before typing a command

#

but a lot of people just ignore sudo

limber knotBOT
#

D:

worn ember
#

uses root unironically

limber knotBOT
#

It's bad practice not to lock root imo

worn ember
#

whats with this nick lol

marble summit
#

After i am done installing java do i need root anymore?

worn ember
#

i'd honestly only make profiles for services that can execute commands

marble summit
#

Cause i installed java

golden gust
#

I'm kinda following the "docker all the things" route

acoustic pilot
#

what you should ideally do is add your user to the sudo group and then you should stay out of root forever.

#

but that's just my opinion

marble summit
#

I made a user and typed su <user>

worn ember
#

but why tho

marble summit
#

then put in the passwords

worn ember
#

its nto because you log in to your root its any less secure

marble summit
#

Is that correct?

limber knotBOT
#

what an annoying nick DarkEyeDragon...

old badge
#

test it

marble summit
#

How?

limber knotBOT
#

.MO, how did you add a user?

marble summit
#

adduser or something

limber knotBOT
#

did you add the user to the sudo group?

marble summit
#

I typed su <user>

limber knotBOT
#

no

#

type exit

#

that will drop you back to root

marble summit
#

i mean su root*

limber knotBOT
#

what the shit

marble summit
#

Im doing what the guide tells me 😂

limber knotBOT
#

su means switch user

marble summit
limber knotBOT
#

why'd you switch to root if you were already root

#

No that is not what the guide says to do

#

the guide says you run su root when you want to become root

marble summit
#

Oh

limber knotBOT
#

okay that's a terrible guide

marble summit
#

Then what do i do to the user then to give it the rights it needs

limber knotBOT
#

Are you root?

marble summit
#

Yeah

#

Im connected to both my user and root rn

limber knotBOT
#

Okay, as root, run

#

usermod -aG sudo yourusername

#

that adds your user to the sudo group

marble summit
#

Ok

acoustic pilot
#

on Ubuntu you can just do adduser yourusername sudo

marble summit
#

how to test it out?

limber knotBOT
#

Have you set a password for your user?

marble summit
#

Yeah

#

It has its pass n stuff

limber knotBOT
#

okay, do su username

#

then when you're that user, do sudo test

marble summit
#

Ok

#

Hmm

limber knotBOT
#

it will prompt you to enter your password; do it

marble summit
#

Says im still not in the sudoers file

limber knotBOT
#

if no error appears then it worked

#

okay

#

type exit so you become root again

#

done?

marble summit
#

Ok it worked this time

limber knotBOT
#

...?

#

doing sudo? or exit?

marble summit
#

I put in the password and it didn't give a error this time as bakamo

acoustic pilot
#

as your user, what does whoami show you?

marble summit
#

my user

acoustic pilot
#

okay

#

and sudo whoami ?

marble summit
#

root

#

is what it says

acoustic pilot
#

great

limber knotBOT
#

hallelujah

marble summit
#

Ok so did i do it right?

acoustic pilot
#

you should always be logged in as bakamo

marble summit
#

Ok

acoustic pilot
#

and when you need to do something as root user, you do sudo <whatever command goes here>

#

You will be periodically prompted for your password based on activity

#

This is a Good Thing.

marble summit
#

So now i just gotta connect to this thing with filezilla and put my mc server into it?

limber knotBOT
#

I recommend you lock the root user so that only you can use it through either sudo command or su and then the command

#

Although first, exit your session and reconnect using your new user

#

just to check it works

acoustic pilot
#

oh, right

#

yeah configure a new SSH session under YOUR username

#

not root

marble summit
#

A SSH Connection for FileZilla? or for the server

acoustic pilot
#

for the server

marble summit
#

Ok how to configure that

acoustic pilot
#

well, how are you doing it right now?

marble summit
#

ssh <user><ip>

#

thats how i connect

acoustic pilot
#

okay, so try connecting with your username instead of root

marble summit
#

yeah

#

thats what i've been doing

#

It asks me for my user pass

acoustic pilot
#

okay good

marble summit
#

and then it logs in

acoustic pilot
#

now you can set up FileZilla using the same connection info

marble summit
#

Ok

acoustic pilot
#

remember to use SFTP (not FTP, not FTPS)

remote dagger
marble summit
#

im getting a time out error when i try to sftp connect?

#

Ohh

#

I think its cause im using a domain

#

and not the ip

old badge
#

are you using port 22?

acoustic pilot
#

if that fixes it then it means you prob haven't set up your domain correctly

marble summit
#

Im not using port 22 unless its default that

#

I don't know

acoustic pilot
#

your FileZilla port would be the same port as your SSH port, which is 22

marble summit
#

how to check

acoustic pilot
#

(22 is the default SSH port)

old badge
#

@marble summit you followed that OVH tutorial word for word?

marble summit
#

Yeah i did what it told me

old badge
#

there's a section there that they tell you to change your SSH port

valid magnet
old badge
#

so you are probably using a different port

ionic silo
marble summit
#

Oh ok

#

Does it matter what port it is as long as im not using it?

regal spire
golden gust
#

You'd just need to make sure to connect to it

marble summit
#

According to my config my port is indeed 22

golden gust
#

but honestly, you're not really doing yourself any favors switching the port it's on

marble summit
#

It probably has to do with filezilla

golden gust
#

Are you sure that you got the right address?

#

Did you get the password wrong or something?

marble summit
#

No its right

limber knotBOT
#

Have you tried using cyberduck

#

I use Cyberduck on my mac

marble summit
#

I may try that out

#

I heard that domains are a bit weird on fz

limber knotBOT
#

free if you don't download it from the App Store

golden gust
#

Yes, but did you get it wrong enough times to ban yourself with fail2ban? 😄

unreal quarry
#

use your ip for now @marble summit

marble summit
#

Yeah

#

That is the plan atm

unreal quarry
#

it takes 48-72 hours for a new domain to propogate

marble summit
#

Since it doesn't matter

#

I can still ssh connect to my domain

golden gust
#

oh, if it's just the domain having issues leave it

#

as billy said, dns propagation is slooooooow

limber knotBOT
#

Took 5seconds for mine to update for me

old badge
#

@marble summit did you try connecting to SFTP with your new SSH port? If you didn't change anything in FileZilla it's assuming the port is still 22

limber knotBOT
#

depends on the DNS server

marble summit
#

Anyways now that i have sftp connected n stuff

#

Which directory do i place my server file

#

and do i need to put any modifications into my paper server

#

to make it work with my domain

limber knotBOT
#

Oh, the great debate begins

unreal quarry
#

@marble summit now you've entered the realm of personalization. you do what you want here. freedom to do anything ^_^

marble summit
#

Ok ima just put the paper directory under my user

limber knotBOT
#

If they can ssh to the domain then they can sftp to the domain ...

#

^

#

the issue is either wrong port or wrong domain

#

or wrong protocol

golden gust
#

Not if the domain hasn't been seeded to the world properly yet

limber knotBOT
#

But it resolves correctly since ssh works

unreal quarry
#

domain dns propogation is regional/route dependent

marble summit
#

So, do i need to do anything to make my minecraft server use my domain? or does it run under the domain the sys server is running on

limber knotBOT
#

Yes but it has already resolved correctly for ssh

golden gust
#

You'd create a dns record to point to the server

marble summit
#

How would one do that

limber knotBOT
#

they already did that

#

there is no reason that it arbitrarily decides it wants to wait a little longer before the changes apply to sftp too

golden gust
#

I thought he said that it wasn't working for ssh?

limber knotBOT
#

Im pretty sure..

marble summit
#

No it works with ssh

limber knotBOT
#

Nope, working for ssh but not for sftp

golden gust
#

Oh

unreal quarry
#

could have sworn he said he used his ip to connect to ssh, not the domain...

golden gust
#

You did configure filezilla to use stfp and not ftp?

limber knotBOT
#

<d:.​MO​> I can still ssh connect to my domain

golden gust
#

The quick connect uses ftp by default

limber knotBOT
#

just use cyberduck...

marble summit
#

Idk its fine for now

limber knotBOT
marble summit
#

I'll fix it later

#

Or figure it out later atleast

limber knotBOT
#

pretty sure you can install Cyberduck with homebrew

unreal quarry
#

mac doesnt have built in sftp protocol in it's filemanager? I just use gnome's and it works great

limber knotBOT
#

It might

unreal quarry
#

❤ linux

marble summit
#

But anyways, do i need to modify anything in my paper server to allow it to run on my SyS? or will it run fine

limber knotBOT
#

I just use the one built into my terminal, it can even follow the path I have in the console around ;D

#

brew cask install cyberduck is what I use

#

It doesn't @unreal quarry

unreal quarry
#

crappy

limber knotBOT
#

We tend to use something like Transmission to mount it

unreal quarry
#

you think they'd have stolen that from *nix too

#

runs

verbal garnet
#

fish:// ?

limber knotBOT
#

sftp://

#

.MO: No.

#

It will be fine.

marble summit
#

Ok

limber knotBOT
#

But yea we use MountainDuck or Transmission for file transfers

marble summit
#

Transfering my mc server to my SyS

limber knotBOT
#

If you want to pay Transmission is the best

#

If not use Cyberduck

marble summit
#

How to change my directory?

limber knotBOT
#

cd

marble summit
#

Thought so

limber knotBOT
#

Use .. to go up a directory, just like using the terminal on mac

unreal quarry
#

i thought Transmission was a free torrent client..

#

hmm

cosmic raft
#

it is

limber knotBOT
#

Oh, im thinking Transmit sorry

marble summit
#

What session manager to use btw, screens? or whatever its called

limber knotBOT
#

I use tmux

#

^

#

Transmit isn't on setup if you use that btw .MO

marble summit
#

Ok nice i can connect to my mc server just not with the domain name

verbal garnet
#

i use screen or byobu usually

limber knotBOT
#

Is byobu still maintained?

marble summit
#

So how long did you say it takes for a domain to work?

static badge
#

alright wtf is going on with the weeb trash in here 🚮

marble summit
#

@static badge Shut up furry

static badge
#

mfw

marble summit
#

Furries have less opinions than weebs cause animals have no soul™

void void
#

@marble summit 48-72 hours.

marble summit
#

@void void Ok cool

#

Welp now i just gotta make my builder actually send me the god damn spawn files 😂

void void
#

but I think you can flush your own dns so it will work faster for you at least?

verbal garnet
#

well looks like dev on byobu is pretty much stalled

void void
#

dns cache*

limber knotBOT
#

stalled

#

2years of nothingness

verbal garnet
#

nothing really ever dies in OSS

limber knotBOT
#

Unity

#

Ubuntu Phone

verbal garnet
#

the codes still out there tho is what i mean 😄

marble summit
#

how to install tmux?

golden gust
#

Weeelll, acttually

limber knotBOT
#

The package name is tmux

golden gust
#

Unity was forked

void void
#

apt install tmux

limber knotBOT
#

Wasn't it dropped after it was forked?

#

like HugsBSD

golden gust
#

Yes, but apparently in revival again

limber knotBOT
#

Pls be joking

#

Its just a theme now right?

#

Right?

marble summit
#

Ok how to use tmux now 😂

old badge
#

bruh

void void
#

google it

limber knotBOT
#

RTFM

marble summit
#

Is it the same syntax as screens

limber knotBOT
#

no

void void
#

you do CTRL + B + / or % if I remember correctly?

#

to create new horizontal/vertical panes

marble summit
#

Ok so similar syntax

limber knotBOT
#

Reminder for kashike: @merry talon B A N K

void void
#

also .MO you've setup firewall rules too right

limber knotBOT
marble summit
#

I haven ot

void void
#

I'd recommend to do that

marble summit
#

have not*

#

Ok

#

Yeah i'll work on that right now im just getting my session made

#

Are there any settings for colored terminal info?

void void
#

apt install ufw; ufw limit <SSH>, ufw allow 25565, ufw enable is my goto :>

limber knotBOT
#

I suggest using ZSH and oh-my-zsh for cooler terminals ;D

gloomy sphinx
#

have you ever thought about how flys are idiots with wings

limber knotBOT
#

Or fish, fish is nice too

void void
#

also .MO use SSH keys if you don't

#

:>

limber knotBOT
#

I use Kryptco

#

Its nice

marble summit
#

I use ssh already

void void
#

but keys?

#

not plain passwords

marble summit
#

Mac already has a key on it

void void
#

what

gloomy sphinx
#

what

limber knotBOT
#

Not keyring

gloomy sphinx
#

you want to use ssh keys instead of a password to login to your box

marble summit
#

Ohh

#

Ok

void void
#

yeah

marble summit
#

How would one do that

limber knotBOT
#

STFW

void void
#

ssh-copy-id username@server-IP

gloomy sphinx
#

he has to make they keys first

void void
#

true true

#

also, disable root, create a new user, disable plain text passwords completely

limber knotBOT
void void
#

root login*

limber knotBOT
#

Ignore the adding part

#

Ok, back to guide writing

ancient bolt
#

Trying to create an intro presentation on Gradle 😦

marble summit
#

@void void Well like a ssh key already exists on my mac, so what i'd want to know is how to link it to my SyS

#

(Cause i've set up ssh on DO a long time ago)

void void
#

You do “ssh-copy-id username@server-IP”.

marble summit
#

Ok

#

From the mac?

void void
#

Yes from the one you want to connect via.

marble summit
#

Ok

#

Now what

#

Ok now it asks for my passphrase good

void void
#

Now you edit /etc/ssh/sshd_config and disable plain password login.

marble summit
#

Ok

void void
#

But before you do that I hope that user has sudo perms

#

Otherwise you’re locked out

marble summit
#

I do

void void
#

Okey yeah

#

Edit the config and do “service ssh restart”

marble summit
#

so sudo nano /etc/ssh/sshd_config?

void void
#

Yes

#

And find the use plain passwords and set it to false

#

Also permitrootlogin to no

marble summit
#

Is it passwordauthentication?

#
# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication yes
void void
#

Yes

#

Set to no

marble summit
#

ok nice

void void
#

And permitrootlogin no

#

And restart the service

marble summit
#

already did that, ok ima restart

void void
#

And then try to connect it should be just the ssh key

#

And a passphrase if you have that

marble summit
#

yep already got a passphrase

void void
#

Paraphrase for the ssh key right

marble summit
#

What happens if i ever get a different system? do i just put my ssh info onto there too?

#

Yeah

void void
#

Yeah, you can enable temporarily plain passwords or add the key the other way around

marble summit
#

Ok good

void void
#

But the steps are the same

#

I’d recommend that you install ufw too

marble summit
#

I believe it is already installed

void void
#

Okey then do

#

“ufw limit 22” or whatever ssh poet you use

#

and “ufw allow 25565”

marble summit
#

Ok

#

rules updated

void void
#

Then do “ufw status verbose” and paste it here

cosmic raft
#

ah how I love CAH

void void
#

So I can see it’s right and then you can enable it

marble summit
#

status inactive

void void
#

Oh enable it

marble summit
#

Command?

void void
#

Then do “ufw status verbose”

#

“ufw enable”

marble summit
#

status active, then theres some extra settings. do i paste it here?

void void
#

Yeah I want to see them

marble summit
#
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip

To                         Action      From
--                         ------      ----
22                         LIMIT IN    Anywhere                  
25565                      ALLOW IN    Anywhere                  
22 (v6)                    LIMIT IN    Anywhere (v6)             
25565 (v6)                 ALLOW IN    Anywhere (v6) 
void void
#

Ya perfect

#

@cosmic raft far right myself

marble summit
#

Excellente

void void
#

what the fuck does ufw limit do

#

Way safer now

marble summit
#

So, how would one connect to the server with mc?

void void
#

i prefer iptables

#

ufw is easier to use as a start

#

but what does limit do

#

What you mean mo

marble summit
#

Well like im running a mc server on it

void void
#

It’s has a rare limit simple

#

you connect with <IP>:25565

#

rate

#

lol

#

you can set a rate limit on any iptables rule 😭

marble summit
#

I can connect to it with an ip (no ports needed) but if i do the domain it times out

void void
#

It’s just a layer on top simple, I rather tell him about that to easiy set it up

#

yea i know and it's shitty

#

ufw gey

#

Domain is still getting sent out

#

kill ufw

#

Like dns aren’t refreshed yet mo

marble summit
#

Oh

#

Ok

void void
#

If you do “ping domain.com” it prob says unreachable

marble summit
#

Uh

#

Its doing stuff

#

its spamming byte messages n stuff

void void
#

But you get no RTT right

marble summit
#

what is rtt

void void
#

Let me see what it says

#

inb4 timeout

#

Yeah prob not reachable, 48-72 hours or whatever

marble summit
#

64 bytes from <the sys ip>

void void
#

screenshot?

marble summit
#

when i do ping <my domain>

#

Ok

#

it looks like its pinging

void void
#

Oh but

#

Why do you ping from your server

marble summit
#

?

void void
#

Ping from your Mac

marble summit
#

yep

#

same thing

void void
#

Then it should be reachable?

marble summit
void void
#

That works so

marble summit
#

Ok

void void
#

What is the issue?

#

why is that IP different

#

what are you trying to connect with

#

Oh the ips are different ye haha

marble summit
#

😂 im just doing what they tell me

void void
#

I can connect to your MC server, different version tho.

#

Connect with 149.56.107.102.

#

Not that 192 one.

marble summit
#

Yeah it works when i do that just not if i put in my domain name to connect

#

in mc

void void
#

what IP is your domain set to tho

#

Is your domain pointing to another IP?

marble summit
#

and its pointing to the ip of my sys

void void
#

But what IP address did you point it to

#

Yeah but have you made sure the IP is correct

#

149 or 192

marble summit
#

one sec

#

ima get the info from namecheaop

#

I have a warning on namecheap that i gotta verify contact info?

void void
#

wait 😂 is 149.56.107.102 yours?! I joined it and it's some GalaxMania

#

Yes you have to for ICANN

marble summit
#

How to do that

void void
#

they probably emailed you

old badge
#

namecheap probably has the guide for that

marble summit
void void
#

But is that IP yours 😂

#

GalaxMania?

#

thought you said Mocraft

marble summit
#

That is my SyS ip

#

If i put that into my mc with no port or anything it connects me to my server

old badge
#

isn't your SyS ip the 169 one?

void void
#

please

#

tell me output

marble summit
#

2607:5300:60:a5b6::

void void
#

kek

marble summit
#

It gives me my ipv6

void void
#

cat /etc/hosts

marble summit
#

on the mac?

void void
#

no

marble summit
#

or on the server

void void
#

your sys

marble summit
#

no such file or directory

void void
#

lmao wot

#

what OS are you using 😂

marble summit
#

one second

#

it just worked when i tried it again

void void
#

What about hostname -I ?

marble summit
#
127.0.0.1    localhost

# The following lines are desirable for IPv6 capable hosts
::1    ip6-localhost    ip6-loopback
fe00::0    ip6-localnet
ff00::0    ip6-mcastprefix
ff02::1    ip6-allnodes
ff02::2    ip6-allrouters
ff02::3    ip6-allhosts
149.56.107.182    ns530608.ip-149-56-107.net    ns530608
void void
#

hmm ok

#

So you are GalaxMania?

marble summit
#

No

void void
#

:L

marble summit
#

I don't know what that is

void void
#

well, that's what I connect to with that IP

marble summit
#

my server is 1.13.2

#

This is what i get when i connect to the ip

old badge
marble summit
#

the Server Address i put in is
149.56.107.182

void void
#

i reversed your IP and got the correct record, so now all I've got to go on is that you do in fact own that dedi and set it up correctly/connecting to correct port hyperthink

marble summit
#

Uh yeah i do i got it off of namecheap

void void
#

dedi not domain

marble summit
#

Oh

#

The Host is a SyS server

#

That i got yesterday

#

I connect to it with ssh <username>@mocraft.net

void void
#

You have two ips 😂

marble summit
#

Wait i do?

void void
#

gg

#

According to DNS

marble summit
#

W h a t 😂

void void
#

two A records?

marble summit
#

How the hell do i have two ips

old badge
#

your host gave it to you

marble summit
#

I have 3 record types in my manage page

#

A Record

#

CNAME Record

#

and URL Redirect Record

void void
#

149.56.107.182 is one of them, but when connecting to that I go to GalaxMania so I'm hesistant to trust that that is your ip

marble summit
#

Then what do i do

old badge
#

yeah something is funky here thonk

golden gust
#

Your issue is is that you have two records for a singular address

marble summit
#

do i show you my management page?

#

for sys

void void
#

I mean if you want to, but something is funkyfunky here

#

its not just the transition from a record to a record that is happening?

golden gust
#

You also can't have a cname on the root record for the domain

void void
#

didnt it take 48-72 hours?

golden gust
#

(Some DNS providers will be nice and flatten that for you)

cosmic raft
void void
#

@void void that would explain, but the other IP address itself still goes to the other server; i.e. dns unrelated

marble summit
old badge
#

lmao

marble summit
#

thats what it gives me

void void
#

you dont have any relation to that galaxy server .mo?

marble summit
#

No

golden gust
#

Why do you have a cname record?

void void
#

what the fuck 😂

marble summit
#

This is what SyS default generated for me

#

and NameCheap

golden gust
#

You mean, namecheap created it?

#

if so, delete it

marble summit
#

Delete which information

void void
#

I don't understand 😂 That IP address he has in his SYS goes to a different server

cosmic raft
#

@atomic marten link again?

golden gust
#

Did you say that namecheap created a cname record on your domain when you got it?

marble summit
#

Yeah

#

It made a CName record

golden gust
#

If so, that might be their parking and you'll need to disable that, or at the very least remove that record

void void
#

galaxymania is not another SyS customer maybe?

marble summit
golden gust
#

That's not the issue

#

Yes, remove that cname

marble summit
#

Ok now what

golden gust
#

Yea, they have their parking pages enabled by default, there is a setting to disable it or something

void void
#

What exactly are you thinking is the issue, cat, because we've run through quite a few things. The IP itself that is on his A record goes to a server already running that is apparently unaffiliated with him

old badge
#

The thing I don't understand is how your SyS server has two IPs but one of them redirects to a server that is not yours

cosmic raft
#

@atomic marten Found no media for <..>

#

yes

#

Found no media for <..>

golden gust
#

The issue is there on the page, they have more than one record for a domain, so DNS returns more than one record

void void
#

Ok but going to the IP that he says is his does not work.

cosmic raft
#

can't share that, let me see if it works for another

void void
#

Not a DNS issue 😂

#

Something is deeply fucky

cosmic raft
#

not using @

golden gust
#

ssh'ing into the wrong server?

marble summit
#

😂

void void
#

[X] doubt

golden gust
#

either way, fix the records and see what happens

marble summit
#

I deleted the CName

void void
#

He took a screenshot of the SYS page with the IP, showed his DNS with that IP, I tried direct-connecting that IP and get into a server he doesn't own...with that IP

marble summit
#

Do i reboot the server?

void void
#

😂

cosmic raft
#

hmm

#

it worked for another

void void
#

this is like magic

#

or something

golden gust
#

You mean 192.64.119.214?

void void
#

no

golden gust
#

what IP isn't his?

halcyon star
marble summit
void void
#

149.56.107.182

#

Another server is running on it

#

That he has no idea about

#

Apparently.

marble summit
#

I like literally got this server yesterday

void void
#

what the fuck

#

now galaxcraft is nowhere to be found

#

what is happening

marble summit
#

They turned it on today

void void
#

now I got into MoCraft.

marble summit
#

Weird

golden gust
#

.mcping 149.56.107.182

void void
#

fuck, the cat might have been right but I have no idea why he was right, as I bypassed dns entirely.

#

always listen to the cat

marble summit
#

mcping?

#

where do i use that command

golden gust
#

I tried using it, I probs got the wrong command name or something

#

dinnerbones tool is apparently broke agian

marble summit
void void
#

.mcp 149.56.107.182

limber knotBOT
void void
#

guess not

marble summit
#

Idk how that works lol its 1.14.1

#

And im 1.13.2

void void
#

heard of viaversion

marble summit
#

No

old badge
tardy lynx
#

version compatibility plugin

marble summit
#

And the ip is 104.219.4.183:25565

void void
#

yeah, I don't understand either

marble summit
#

On the galaxcraft

void void
#

I used the IP you gave, connected, got galaxcraft

#

¯_(ツ)_/¯

#

i rlly dunno, now let dns update and try mocraft.net i guess

#

wtf i kinda wanna go on the galaxy's edge ride on disneyland

#

haven't been there for years

#

fuck, it might be over a decade

#

getting too fuckin old guys

#

😦

golden gust
#

Shoulda asked

#

We could have easily told you that you're old

void void
#

fak u

#

are you like 13

#

or 14

#

what

#

Definitely not

golden gust
#

I mean

void void
#

though sometimes I wish

golden gust
#

I'd say around 200

void void
#

D:

#

halfway to 60?

golden gust
#

At least from how much he says he's old

void void
#

pets @golden gust

#

2 old guys

#

hmm

#

i bet cat is like 22-23

#

thats not old

#

ye it is

#

shut up

#

are you that old simple

golden gust
#

24

void void
#

i am that old

golden gust
#

😄

kind edge
void void
#

guys

#

im like 321

#

im 25, im old

#

I've had 4 21'st birthdays.

#

pls

#

how's your skin at 321

old badge
void void
#

like you got wrinkles

#

Wtf, in the star wars thing at disneyland the currency changes

#

into SW credits

#

lmfao

#

i'd go broke

#

$200 lightsabers

#

you wish motherfuckers

#

i'll bring my own blade

#

I think loans are more important to pay off

#

than a shitty saber

#

I have so much fucking debt bro

#

😦

#

yeah, a saber aint gotta help you right

#

No, and I didn't say I was gonna buy one lmao

#

I was balking at the price

#

i more got the vibe you would buy all the different ones

#

ya kno

#

$12 beers too

#

christ

#

That I would probably buy

#

is it some IPA

#

but it better be good and not just DL markup

#

why is American beer watery

#

Don't ask me I don't drink that shit

#

😦

vestal jasper
#

commiting the .idea folder monkaPixel

marble summit
#

Hey dudes

void void
#

with a proper .gitignore, the .idea folder is fine to commit

marble summit
vestal jasper
#

the root folder is committed along with the project root monkaPixel

marble summit
#

I believe i fixed it

void void
#

yea his structure is bad

#

it just has one ip!

marble summit
#

Im able to connect to it now

void void
#

omg mo

#

good job m8

#

thats nice

#

u did it

marble summit
#

Lol

vestal jasper
#

entire thing

void void
#

yea i saw that, optimally it would just be i think compiler, encodings, workspace, modules, and vcs?

#

i thinl

#

idk

#

nop less than that

marble summit
#

This is what i did to make it work thonking

void void
#

😂

#

srv record isnt necessary if you have a second A

marble summit
#

W e l p

#

Atleast it works

void void
#

A for creativity

#

¯_(ツ)_/¯

marble summit
#

Now i gotta reboot my mac

#

Cause its being a turd rn

void void
#

no you dont

#

is it caching dns

#

not sure a reboot fixes that

#

heh

marble summit
#

No like its just due to my mac sucks

#

and it has not rebooted in a few days

void void
#
#Clear DNS
flushdns() {
  dscacheutil -flushcache
  sudo killall -HUP mDNSResponder
}
marble summit
#

and games have crap fps if i don't reload

void void
#

mac flushdns^

#

add to bashrc, hash -r, then use flushdns

marble summit
#

whut

void void
#

do u use Mac simple

#

ye

marble summit
#

Im using a Mac from 2013

void void
#

i also use mac

#

im surprised

#

I thought simple used arch

marble summit
#

Its just a really old mac

void void
#

on like a thinkpad

#

I also use arch yes

#

not on the Mac no

#

Umm a old host STILL haven't gotten to a ticket that was open like mid last way to queue a cancellation. I don't want my account to be charged for a service that I won't be using and later on possibly turned over to a debit collector. What do I do about this if they auto generate an invoice for the service before/if they ever replies to the ticket?

#

Don't pay it and tell them to cancel it?

#

CALL them?

#

You're the one I was talking to that was so blown away by the difference in phone/ticket support right

#

I don't think they have number that I can relay them at though and I already put in a sales ticket 4 days ago.

golden gust
#

Do you have a card or something on the record?

void void
#

Well, depending on who the host is, just don't pay the invoice.

#

no I deleted the card from their system. WHMCS apparently ships with that likely for EU laws.

#

yeah so

#

don't pay the invoice

#

And it was MineOcity.

golden gust
#

Yea, just leave it

void void
#

Alright.

#

screenshot the ticket either way maybe?

golden gust
#

Maybe contact your card provider to give them a warning

void void
#

that u did tell them earlier

golden gust
#

(Just because ^)

void void
#

They shouldn't be able to charge it and if they somehow can anyways I will tell the provider that I removed the card and ticket #

#

Yeah my bank has a ticket system, all I do when I have an issue like that is I let them know that I've cancelled with the provider, show a screenshot of the ticket I make (if there is no cancel service option, else I show them the cancellation page/number), and let them know the vendor should not be allowed to charge me

#

They take that info and watch my account then

#

But maybe that's just my bank.

#

can you also like filter that stuff simple, for like light sabers?

#

shatup

#

:D

#

Yea I don't think US Bank have a ticketing system either. You gotta call them I think for anything.

#

Not abnormal

#

(For customer queries)

#

But they most likely have a ticketing system they use for internal management, so call them give all that info and they will make a ticket for themselves. After that, it's off your back

#

so

#

All ya gotta do 😉

#

lol why have I never noticed that NCIS has a news agency called "ZNN" (over CNN)

#

quiet cat

golden gust
#

coz ur dum?

void void
#

my channel now

golden gust
#

See, I was going to not say it, but then you told me to be quiet

golden gust
#

brb, going to test gravity in ur flat

void void
#

@upper flicker he's bullying me

golden gust
limber knotBOT
#

(DiscordBot) Physics Cat knocking everything onto the ground. - length 1m 9s - 338 likes, 13 dislikes (96.3%) - 32,599 views - ruppie213 on 2015.12.07

golden gust
#

load averages: 10.36 7.57 6.06 does that mean all is fine?

void void
#

GOD DAMN IT PHYSICS CAT

#

yes fine

#

ignore it

#

let it work

#

fine

#

only bad if reaches 99999999999999999

marble summit
#

Ok just rebooted

void void
#

grats

marble summit
#

turd mac ftw

void void
#

THIS CAT IS PISSING ME OFF

#

THROWING EVERYTHING

#

.lart @golden gust

limber knotBOT
#

gives @golden gust a 2 gauge Prince Albert.

void void
#

Oooh kinky

golden gust
#

oh god

#

I googled

#

Why?!

void void
#

😂

#

LOL

#

I'll never understand getting a prince albert, but I'm glad you just learned

golden gust
#

Like, I'd heard the term, just didn't know what it was exactly