#networking

1 messages ยท Page 258 of 1

tame carbon
#

every home router is different

#

because every ISP thinks they can do it better

peak cloak
#

I mean, if I type home.redacted.com which is my public ip, I get to my router config page too (when I am on my home network, from outside it's just a timeout like expected)

lean pebble
#

Unless his ISP enable access from external networks on port 80

#

I'm not

tame carbon
#

@peak cloak same

lean pebble
#

Just tried from different network my public IP

tame carbon
#

but if you entered this public ip

lean pebble
#

Do you try it from the same network ?

tame carbon
#

you wouldnt see this page

#

its only because its coming from my lan

lean pebble
#

Ya if you surfing your external IP from your internal network it should send you to your router

tame carbon
#

not nessesarily

#

depends on your fw rules

lean pebble
#

But if you surf from different network like 4G it shouldn't do that

tame carbon
#

admin panel on the mikrotik is on the input chain

#

if I was to host a service on my public ip on same port, it would be forward

lean pebble
#

Port forwarding is ok

#

Just curious why host website at home ? ๐Ÿค”

peak cloak
#

I did once

#

to learn

tame carbon
#

^

lean pebble
#

I did it to but only for internal network

#

And specific IPs

#

From outside

tame carbon
lean pebble
#

For testing and learning pf

hollow marlin
#

less web hosting, more BGP and MPLS

lean pebble
#

And fw

peak cloak
#

someone wanted to host a virtual airline software on his computer (not server) over wifi. I was like super bad idea, but I can help you

tame carbon
#

@peak cloak this is my poor attempt at making a browseable FTP server

peak cloak
#

I mean, it looks good

tame carbon
#

the UI I yoinked from somewhere else

#

the rest of the code

lean pebble
#

I used to own cs:s servers and csgo with fdl

tame carbon
#

is a php script

#

that just looks in the /var/www/html

#

and there's some rewrites

#

to make the php script invisible

lean pebble
#

I owned mc server to

#

I was to lazy to manage it after someone hacked the mc console

#

๐Ÿ˜‚

#

By one of the plugins

peak cloak
#

in my school server all I am running is multiplayer sleep, geysermc, floodgate, and luckyperms

lean pebble
#

Geysermc?

tame carbon
#

big loop that assembles dir structure

peak cloak
#

allows bedrock players to connect to java

tame carbon
#
header('Content-type: application/json');

echo json_encode(array(
    "name" => $dir,
    "type" => "folder",
    "path" => $dir,
    "items" => $response
));
lean pebble
#

Oh

peak cloak
#

and floodgate allows them to join without needing a java account

#

basically bypassing online-mode

lean pebble
#

Ok

tame carbon
#

@peak cloak luckyperms?

lean pebble
#

Like old days when it was possible to play online but offline

#

Permissions like expernissons

peak cloak
lean pebble
#

And essentials group

tame carbon
#
/**
 * Provides permissions for a user
 */
public interface PermissionProvider {

    /**
     * Gets the permissions for a user and server
     *
     * @param player the user
     * @param server the server
     * @return the list of permissions
     */
    Map<String, Boolean> getPermissions(UUID player, String server);

    /**
     * Gets the groups a user is in
     *
     * @param player the user
     * @return the list of groups
     */
    List<String> getGroups(UUID player);

    /**
     * Adds a group to the player's group list
     *
     * @param player the user
     * @param group  the group
     */
    void addGroup(UUID player, String group);

...
#

cough

lean pebble
#

There is one old permissions plugin I used to love

tame carbon
#

I totally didnt write my own

#

it hooks into vault and all is fine

tame carbon
#

I maintain my own permission system

#

all third party plugins integrate with it through vault

#

@peak cloak all the stuff is synced with discord

#

and the forum

peak cloak
#

Technically, my first and only programming class was java. It was that early that I was really confused about print() because I thought it would print to the printer

lean pebble
#

Who made you permissions crystal

peak cloak
#

I could probobly learn it, but I don't have the time for that

tame carbon
#
@Override
    public Map<String, Boolean> getPermissions(UUID uuid, String server) {
        PreventBlockingCode.ensureAsync();
        try (Connection connection = database.open()) {
            PreparedStatement ps = connection.prepareStatement(
                    "SELECT `groups`.groupname, `groups`.inherit " +
                            "FROM playergroups JOIN `groups` ON playergroups.groupname = `groups`.groupname " +
                            "WHERE player = UNHEX(?) ORDER BY priority;"
            );
            ps.setString(1, uuid.toString().replace("-", ""));
            ResultSet rs = ps.executeQuery();
            Map<String, Boolean> permissions = new HashMap<>();
            List<GroupPermission> groups = new ArrayList<>();
            while (rs.next()) {
                groups.add(new GroupPermission(rs.getString("groupname"), rs.getString("inherit")));
            }
            rs.close();
            ps.close();
            groups.forEach(c -> {
                try {
                    permissions.putAll(c.getPermissions(connection, server));
                } catch (SQLException e) {
                    logger.error("failed to get permissions", e);
                }
            });

            ps = connection.prepareStatement(
                    "SELECT permission, granted " +
                            "FROM playerpermissions " +
                            "WHERE player = UNHEX(?);"
            );
            ps.setString(1, uuid.toString().replace("-", ""));
            rs = ps.executeQuery();

            while (rs.next()) {
                permissions.put(rs.getString("permission"), rs.getBoolean("granted"));
            }

            return permissions;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
#

inheritance is fun

#

esp in sql databases

lean pebble
#

I like databases

#

All plugins should connect to some db

#

This file is only the db part for permission

#

Nice code

#

I'm learning Java now in my studies

tame carbon
#

@lean pebble yeah thats just one layer

#

this is just the database end

#

we have another plugin that uses this API to provide the permissions to vault

lean pebble
#

This plugin made especially for you?

tame carbon
#

our gameserver project which started in like 2013

#

has over 160 repositories now

#

on our git

lean pebble
#

Nice

#

Can we join?

tame carbon
#

I'm not the boss of that :3

#

I've been a long time member

lean pebble
#

To github

#

๐Ÿ˜†

tame carbon
#

nah

#

we keep our code closed source

#

except our APIs

#

and tools

lean pebble
#

You're a developer ?

peak cloak
#

it's probobly not on github is it?

tame carbon
#

yeah

#

no

#

we have a private gitea instance

#

and maven repos, build server with autodeploy pipelines xD

#

look, this is a community effort

#

and we have some smart people xD

#

quite a few self taught

#

I learned how to code with this as a hobby

lean pebble
#

What language do you program?

tame carbon
#

This is 100% java

#

well

#

ok 90%

lean pebble
#

I know mc is Java

tame carbon
#

there's some shellcode

#

as well as a lot of SQL

lean pebble
#

You can program mc in golang to

tame carbon
#

like 4k lines of SQL

#

all our data we store

#

is all in one database

lean pebble
#

And python and etc

tame carbon
#

our own system has about 60 tables now

lean pebble
#

Nice

#

But there are players that plays in there ?

#

Or only your team

peak cloak
#

yeah

#
#

it's this I think

tame carbon
#

see for yourself

lean pebble
#

Nice

tame carbon
#

but most of us suck at web dev

#

I can do APIs

#

but html fuck no

lean pebble
#

I need to learn js

#

And APIs

tame carbon
lean pebble
#

I made my own login / register web system in python

tame carbon
#

this is the entire backend

#

ignore all the html css crap

lean pebble
#

Only for the API page ๐Ÿ˜‰

tame carbon
#

This is just the core database and API project

#

this takes care of our entire data mechanism, chat, message exchange

#

discord integration

#

and backend API connection

#

I wrote this over the course of like 4 years

lean pebble
#

Alot of hard work

#

I'm a little bit jealous

tame carbon
#

I also wrote a potions plugin off the cuff in like two weeks

lean pebble
#

I want to open my own custom mc server since ever

tame carbon
#

With custom crafting

#

but we actually plan on rewriting this, and making it even more immersive

#

since we have written all kinds of tools to make 3d modelled entities appear wherever we like

#

I think our texture team uses blender

lean pebble
#

That's sound awesome

tame carbon
#

its just a bunch of individuals on a discord server

#

working together

#

I am not as active anymore as before

#

only for emergencies

lean pebble
#

I always was good in QA others codes

#

And fixing some code

lean pebble
#

I'll go finish download my js course

tame carbon
#

this is all hardcore java

lean pebble
#

Ya

tame carbon
#

we even wrote our own classloader implementations to allow for hotloading of code xD

#

I love the jvm

#

you can hack it quite hard

lean pebble
#

Man you making me want sit all day all night to create my super duper mc server

#

๐Ÿ˜†

tame carbon
#

@lean pebble when I first started getting into this early 2009

#

I was already into computers

#

and then in 2010 minecraft alpha went public

#

$5

lean pebble
#

Me too but not on programing

tame carbon
#

best investment ever

peak cloak
#

the more you talk the more I know I suck at programming

lean pebble
#

I got my mc account for 1$

#

When it was alpha

tame carbon
#

but yeah I ran my own servers for a long time for friends, had a couple failed communities

#

thats how I came into contact with java, linux, networking

peak cloak
#

I don't have mc, I use my brother's account when I need it

tame carbon
#

and eventually I started writing my own programs

#

sql is also something I learned early on

#

not properly until I went to school for it

lean pebble
#

I'm learning sql now

#

But I used it since I first launched my cs:s server

#

And my first maplestory private server

tame carbon
#

minecraft is so successful because it is written in java

peak cloak
#

bedrock sucks

tame carbon
#

purely because of the JVM's capabilities

#

and the early adopters of modding

lean pebble
#

Minecraft is soo successful because it cross platform

tame carbon
#

performance wasn't amazing

#

but we had an a networked piece of software that ran on a server

#

and you could build a world in 3d with your friends

lean pebble
#

I think it could be better without Microsoft interfering

tame carbon
#

AND we can modify the code

#

like in 2010

#

this was so rad

#

now that minecraft has gone mainstream

#

I see zoomers playing minecraft

peak cloak
#

oh speaking of the non-classic mc, minecraft earth is shutting down

tame carbon
#

and it lost its charm for me

#

what is that

lean pebble
#

I wanna try to run my mc server on golang

peak cloak
lean pebble
#

I found a pretty nice golang engine for mc

tame carbon
#

I only care about the java version

peak cloak
#

same

tame carbon
#

thats my lifeblood

lean pebble
#

Mine to

peak cloak
#

I only run geyser mc, because some people don't have java

#

pretty amazing project tbh

tame carbon
#

@peak cloak lol next undertaking might be

#

forking paperspigot

#

we need a patch lol

peak cloak
tame carbon
#

stupid teleport is broken

#

when a user is riding another user

#

we use that to make up to 3 pets spawn above player's heads

#

like a pixie

lean pebble
#

Let's try this mc source

tame carbon
#

@peak cloak I didnt actually write all of this lol

#

I only worked on the network bit and adding support for our system to work with bungee

#

that honestly

#

is still the most difficult thing

peak cloak
#

bungee is a mc reverse proxy right?

tame carbon
#

yeah

lean pebble
tame carbon
#

the amount of code that fires when you call this one function lol

oak night
tame carbon
#

yes

oak night
#

Thanks

tame carbon
#

ubuntu server?

oak night
#

yup

tame carbon
#

did you tick the openssh-server box?

oak night
#

Sure i did

#

so usefull

lean pebble
#

Intellij?

tame carbon
#

first thing you should do after installation

#

is run sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y

#

installer doesnt always update every package

oak night
#

apt update i know

tame carbon
#

and there's also some packages you do not need, that are installed and can be autoremoved

#

usually older kernel

oak night
#

What about autoremove

tame carbon
#

you don't need the kernel from installation

oak night
#

OK

tame carbon
#

but that is automatically handled

#

if it boots then you have a working system

#

so you can delete those, saves another 120MB

#

@oak night have you set this kind of system up before?

#

first thing you should do is install your public ssh key

#

and then disabling password login and root login on ssh

tame carbon
#

makes login secure

oak night
#

^?

#

np it has finished

tame carbon
#

screenshot?

peak cloak
#

/etc/ssh/sshd_config

tame carbon
#

@oak night did you create a user account?

oak night
#

Sorry for my bad english

tame carbon
#

or is it just root ?

tame carbon
#

k, well don't run your programs as root

#

especially networked software

oak night
#

ok

tame carbon
#

create users for that

#

There's info on how to create user accounts

#

also how to use the firewall

peak cloak
tame carbon
#

sudo apt install nginx

peak cloak
#

nginx vs apache vs caddy?

oak night
#

apache

#

i prefer it

tame carbon
#

@oak night ew

#

ewwwwww

lean pebble
tame carbon
#

its a patchy webserver

#

slow

peak cloak
#

I was never able to setup ssl with nginx. I mean that was a year ago, so I probobly could now

lean pebble
#

Now I like you more crystal

peak cloak
oak night
#

What?

tame carbon
#

@peak cloak was about to ask that too

oak night
#

i'm stupid

tame carbon
#

@oak night your client computer, the one you are sitting at rn

oak night
#

I have to get iso ouot

tame carbon
#

do you have windows? cus then we need some tools

#

@peak cloak git-bash is best for windows ssh

peak cloak
#

ssh-copy-id was so easy

tame carbon
#

yeah it includes that

#

and all the gnu coreutils

lean pebble
#

Monkey I can help you with ssl if it's on Linux with nginx

tame carbon
#

ssl on nginx is fucking ez

lean pebble
#

Ya

tame carbon
#

letsencrypt

lean pebble
#

If you use certbot it's even more easier

peak cloak
#

Idk, I wasn't able to get it to work. Probobly some dumb thing

tame carbon
#

you then tell it you use nginx

peak cloak
#

yeah I used that

tame carbon
#

and you just have this copypasta

#

you add to your server def

#

but it can do it for you

lean pebble
#

Now certbot have a module for auto install on nginx

tame carbon
#

neat

lean pebble
#

Ya

peak cloak
#

ah, you see I was trying to do it in containers

#

so that's why

#

overcomplicating it

tame carbon
#
root@panel:/# cat /etc/nginx/sites-available/api.knockturnmc.com 
server {
        listen 80;
        server_name api.knockturnmc.com;
        return 301 https://$server_name$request_uri;
}

server {
    server_name api.knockturnmc.com;
    listen 443 ssl;

        ssl_certificate /etc/letsencrypt/live/api.knockturnmc.com/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/api.knockturnmc.com/privkey.pem;

        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
        ssl_dhparam /etc/nginx/ssl/dhparam.pem;
lean pebble
#

Nope

#

Same to

peak cloak
#

well certbot was in a seperate container

tame carbon
#

at the top the 80 -> 443 redirect

oak night
#

you guys are going too fast!!!

lean pebble
#

I don't use port 80 at all

#

Just 443

#

๐Ÿ˜†

peak cloak
tame carbon
#

@oak night are you sure you want to use apache?

oak night
tame carbon
#

@oak night nginx is very lightweight, and the config files are more readable

oak night
#

i just Cant follow your talks

tame carbon
lean pebble
#

Monkey on what distro you tried to install ?

peak cloak
#

I forgot tbh

#

it was a while back

lean pebble
#

On centos is easy

#

yum install certbot-nginx nginx certbot

tame carbon
#

@oak night if we mean to mention you directly we'll tag you like so

lean pebble
#

Then 1 command and you're done

tame carbon
#

otherwise its just general chatter

tame carbon
#

@oak night but I asked, what makes you want apache specifically?

oak night
#

i used it more times

#

nginx gave me problems

tame carbon
#

mh

#

my problem with apache is the overcomplicatd xml config when proxying and especially CGI

oak night
#

Probably cuz i'm new to ubuntu server and this kind of stuff

tame carbon
#

mod_php angers me so much

lean pebble
#

I still need to learn how to use the reverse proxy option in nginx the right way

tame carbon
#

I use php-fpm

oak night
tame carbon
#

it uses a unix socket to provide php functionality to nginx

#

so this makes nginx use maybe 2-3MB memory

oak night
#

It does this thing every time i open the virtual machine

peak cloak
#

what vm software are you using

#

or is it a vps

oak night
#

Virtualbox

tame carbon
#

derp

peak cloak
#

I never used that

oak night
peak cloak
#

always kvm

tame carbon
lean pebble
#

Kvm / VMware if on windows

tame carbon
#

vmware for windows

lean pebble
#

Ya

tame carbon
#

because they do what parellels does

#

you can virtualize individual windows

oak night
#

so it is better VMware

tame carbon
#

no

#

vmware is absolute garbage

oak night
#

ok

#

so what then?

lean pebble
#

It's good if your main os is windows

tame carbon
#

but its ok for a desktop vm platform

lean pebble
#

That's what I think

oak night
tame carbon
#

Virtualbox was terrible performance for me for some reason

lean pebble
#

Now I'm using kvm because my main is Linux

tame carbon
#

but most of my VMs are headless kvm

peak cloak
#

kvm causes the guest vms to kernel panic for some reason

lean pebble
#

I moved my windows gaming to kvm

tame carbon
#

@peak cloak never had that

oak night
lean pebble
#

Found it more stable than bare metal windows

peak cloak
#

haven't really tried to troubleshoot since I will switch distros soon

tame carbon
#

@oak night err

#

did you remove the install media?

oak night
lean pebble
#

I need to find a way to make my kvm work from my regular user

tame carbon
#

@oak night is this still in the installer?

lean pebble
#

Now I'm stuck on root

tame carbon
#

you didnt reboot did you?

oak night
peak cloak
#

even if it fails unmounting you should be able to do a hard reboot from my experience

tame carbon
#

you probably suspended the vm

#

just restart it

oak night
#

i removed the installer

#

BUt it still shows me this

lean pebble
#

Reboot againn

#

Crystal

oak night
#

without doing anything?

lean pebble
tame carbon
#

I am installing virtual box rn

oak night
#

i know

lean pebble
#

No crystal

#

Don't do it

tame carbon
#

what version of ubuntu was that?

#

focal?

oak night
#

i'll use VMware

#

it is much better

tame carbon
#

@oak night nah virtualbox is fine

lean pebble
#

VMware is easier and more stable from what I encountered

tame carbon
oak night
#

i have both on my windows 7 laptop

lean pebble
#

I left it only because it doesn't support gpu passthrough

tame carbon
#

shit

#

nvvvm

lean pebble
#

Lol

oak night
#

dont install it

#

Its ok

lean pebble
#

You need some storage ?

#

Send the delivery I'll send you 2tb more

tame carbon
#

I only have like 5 games installed on the system

#

if I want to play something else, I just delete something I dont play

lean pebble
#

Too much

tame carbon
#

my internet fast enough

lean pebble
#

Ya

#

Mine is slow af

oak night
#

i have total of 5 TB on my personal PC

lean pebble
#

So I have 8tb total

#

Thinking about switching all my HDDs to SSDs

#

But 2/3tb SSDs are expensive

oak night
#

Do you think i have enought VMwares?

lean pebble
#

Lol

#

Maybe 2 much

#

That's what I hate in windows

#

"Not responding"

oak night
#

i HATE windows 7

lean pebble
#

Then stuck for hours

#

But I hate Microsoft support the shittiest support ever

#

They can't troubleshoot their own os

#

Always told me to format and switching my SSD because os failed to load

#

Now same ssd functioning on my kvm machine with windows and works perfect

tame carbon
#

microsoft has support?

lean pebble
#

Ya

#

I was surprised to

tame carbon
#

that must be new

lean pebble
#

Nah

oak night
tame carbon
#

brilliant eh

oak night
#

I'll KILL windows 7

tame carbon
#

@oak night your problem wasnt virtual box btw

#

you just messed something up during installation

oak night
#

Ok

#

BTW i'll use VMware

#

BTW

lean pebble
#

Why not installing the os directly on this system instead win 7

oak night
#

STILL SAME SCREEEN

oak night
lean pebble
#

Oh

oak night
#

it is of my dad

lean pebble
#

So make it yours

tame carbon
#

@oak night delete the virtual disk

peak cloak
#

@oak night is that your main computer because I would just put proxmox on it

tame carbon
#

try again

#

you clearly did something wrong

#

also

tame carbon
#

oh, didnt mean to open that context menu

peak cloak
lean pebble
#

@tame carbon
Why your disk is ide and not virtio

oak night
#

Not now

peak cloak
#

because if you are just using a computer for VM's I would install anything other than windows

tame carbon
#

@lean pebble no idea

lean pebble
#

Haha

#

Mine is sata

tame carbon
#

@lean pebble two of my VMs have direct passthrough

#

to the sata interfaces

lean pebble
#

My windows have one ssd passthrough to

oak night
tame carbon
#

this is a tiny system

#

ryzen 2600

#

with nvme to boot and 4x 4TB

#

on rust

lean pebble
#

4tb SSD?

peak cloak
tame carbon
#

no 250GB

peak cloak
#

and uses KVM

tame carbon
#

I only use it for kernel images

#

like the VMs themselves

#

all the data is stored elsewhere

#

I make snapshots of the systems sometimes

oak night
lean pebble
#

How do you make snapshot with kvm?

oak night
#

Not installed on a computer

#

?

peak cloak
tame carbon
#

@lean pebble suspend, copy vm

#

?

oak night
#

i dont know

peak cloak
#

maybe technically, but it's not suppported

lean pebble
#

Oh ok

#

Mine is off right now I think

tame carbon
#

@lean pebble might be able to do live snapshotting too

peak cloak
tame carbon
#

@lean pebble snapshot1

lean pebble
#

I have only grey migrate button and clone

tame carbon
#

wat was that

#

here we go

#

you can just go to view -> snapshots

#

and click on the +

lean pebble
#

I don't have it

tame carbon
#

virt-manager is just a GUI for libvirt

lean pebble
#

Ik

tame carbon
#

works with KVM/QEMU

lean pebble
#

I have it

#

I just don't have this option

tame carbon
#

really?

#

you open a vm

#

and then click on the view tab at the top

oak night
#

re you serius

tame carbon
#

@oak night did you not click autogrow?

oak night
#

probably not

tame carbon
#

well cancel

#

and set that

oak night
#

Set

#

Should i delete the old hdd

tame carbon
#

you can

lean pebble
#

Grey out

tame carbon
#

I have, Console, Details, Snapshots, Fullscreen, Resize to VM, Scale Display, etc

lean pebble
#

I have it to

#

But snapshot grey out

oak night
#

what hour is where you are

#

Here are 11 13 pm

peak cloak
#

5:13 pm

lean pebble
#

Here 00:14am

oak night
lean pebble
#

Israel

#

You?

oak night
#

Italy

lean pebble
#

Nice

#

Monkey you are not from Amsterdam?

peak cloak
#

nope

#

US

lean pebble
#

Oh

peak cloak
#

NJ/NY area

oak night
#

Why

#

every time this error

lean pebble
#

I thought you're living in Amsterdam

peak cloak
#

just checking the integrity of the data

oak night
#

Ok but it has to do it every time?

tame carbon
#

@lean pebble probably because you don't use qcow2

#

rather, have passthrough

lean pebble
#

Maybe

tame carbon
#

qcow is a copy on write filesystem

#

so you can make savepoints

peak cloak
tame carbon
#

@lean pebble you can go to the disk settings

#

and make sure you set the persistency properly

oak night
#

Btw could i use a old rooted tablet to host a webserver?

tame carbon
#

probably

peak cloak
#

technically yeah

tame carbon
#

I've ran a minecraft server on my ipod touch 3rd gen

peak cloak
#

as long as you can put linux on it

lean pebble
oak night
#

i've kali linux on my phone

#

So i could

#

also run it there

tame carbon
#

@lean pebble yeah you doint want snapshots on those

peak cloak
#

you don't want to install kali linux

tame carbon
#

only if all your hardware is virtualized, will this work

peak cloak
#

use debain or ubuntu

oak night
#

i could install both

#

so

peak cloak
#

kali is meant to be booted off a usb

#

for hacking and pen testing

oak night
#

that is why i love kali

tame carbon
lean pebble
#

So I cant do that ๐Ÿ˜‘

#

Well maybe next time

#

When I'll upgrade to 128gb ddr4 and 64 cores ๐Ÿ˜‚

#

For more vms

oak night
#

me that i have a 4 cores and 16gb of mortal ram

tame carbon
#

smallest VMs I have are like 512M

lean pebble
#

I have now 64gb and 16/32 cores / threads

tame carbon
#

most software doesnt need a lot of ram

#

minecraft is one of those exceptions

lean pebble
#

Windows needs alot of it

tame carbon
#

yeah

#

but we're talking VMs here

#

I assume headless

lean pebble
#

That's why I gave him 32

#

I have only one kvm for gaming

#

Windows that's why it's off right now

#

Because I'm not gaming

oak night
#

What is watchdog: BUG : soft lookup

peak cloak
#
The watchdog daemon will send an non-maskable interrupt (NMI) to all CPUs in the system who, in turn, print the stack traces of their currently running tasks.```
oak night
tame carbon
#

@peak cloak which is what

#

casper-md5 check

#

he's running a live OS

oak night
peak cloak
#

well the installer is live

tame carbon
#

casper is for virtual persistence in live systems

peak cloak
#

casper-md5 check is expected to cause a softlockup?

tame carbon
#

no

#

but I think his vm is dodgy/faulty

peak cloak
#

yeah

oak night
#

i could try

#

With a different version of ubuntu server

peak cloak
#

pretty sure it's your vm, not ubuntu server

#

I just installed 20.04LTS 2 weeks ago

oak night
#

Or maybe i can install it on my pc and passing it on the laptop

tame carbon
#

@oak night are you sure you have plenty of memory?

oak night
#

Drive memory or ram?

tame carbon
#

ram

#

on your host

oak night
#

it has 4gb

tame carbon
#

like your guest needs at least 512M

oak night
#

the laptop

#

And i gave 2 to the os

tame carbon
#

if you allocate too much might run into issues with the live OS

#

mh

#

@oak night thats pushing it

#

@peak cloak I think it was just really slow lol

#

@oak night are you on an ssd?

#

I/O is kernel mode lol

oak night
#

i should give ubuntu 512Mb

oak night
#

Not on that pc

tame carbon
#

@oak night 4G with windows, and then a guest OS

#

you barely have enough memory to run windows

peak cloak
#

I usually give like 1 gb to a vm

oak night
#

i ran kali on that machine

#

On a vm

peak cloak
#

on your laptop?

oak night
#

YUp

peak cloak
#

with 4gb of host ram

oak night
#

Yup

peak cloak
#

kali is debian right?

tame carbon
#

ish

oak night
#

idk

lean pebble
#

Yap

#

Based on Debian / ububtu

oak night
#

ubuntu is based on what?

tame carbon
#

debian

peak cloak
#

debian

lean pebble
#

Debian

oak night
#

so it should run

#

WHY

lean pebble
#

Only windows based on air

tame carbon
#

and wishful thinking

peak cloak
#

windows is dos

lean pebble
#

No air

tame carbon
#

how was it?

#

plug and pray?

lean pebble
#

Because it have nothing but bugs

oak night
peak cloak
#

there are some nice parts of windows

#

for desktop

oak night
peak cloak
#

windows managment

#

X11 is eh on linux

tame carbon
#

@peak cloak hardware support for windows is quite narrow

lean pebble
#

I prefer ps aux and htop/top

#

Or glances

tame carbon
#

and drivers are mostly propietary

oak night
#

i would use linux

tame carbon
#

which has a lot of issues going into the future

oak night
#

But every program that i use is on windows

tame carbon
#

simply put

peak cloak
tame carbon
#

this whole microsoft closed source ecosystem and all their partners, its not ment to last

peak cloak
tame carbon
#

its ment to make them tonns of money

#

because

oak night
#

Photoshop

tame carbon
#

capitalism

oak night
#

And i dont like gimp

peak cloak
#

ah it's called wayland

lean pebble
#

If you want a powerful htop/top you can use glances and even get your I/O stats real time

oak night
#

Dreamweaver lightroom

lean pebble
#

And if you system crash it have the reason there

oak night
#

Does Epic games launcher works on linux?

tame carbon
peak cloak
#

but nvidia driver's don't support wayland I think

lean pebble
#

It even comes with web based

#

And you can use it to monitor more than 1 system

oak night
#

When games will run on linux and it'll run adobe's programs

#

i'll switch(use a nintendo switch)

peak cloak
#

adobe no

tame carbon
#

linux is perfect to run a windows vm on

peak cloak
#

most games can be run through proton

#

I was suprised cities skylines can run on linux

tame carbon
#

it does

lean pebble
peak cloak
#

I mostly play KSP

oak night
peak cloak
#

yep

oak night
#

i like it

peak cloak
#

big space fan

lean pebble
#

I want KFC

peak cloak
#

and aviation

oak night
lean pebble
#

Can you send via air delivery?

oak night
#

i'm too a fan (computer fan)

lean pebble
#

I wish KFC will come back to Israel

tame carbon
peak cloak
#

also linux audio

#

not perfect

oak night
#

I dont know guys

tame carbon
lean pebble
#

I had no problems with Linux audio

oak night
#

i like linux

#

but i don't want to do the switch

tame carbon
#

I mean, there's still a lot of games on here I can play

lean pebble
#

I have windows kvm machine only for gaming

peak cloak
#

pulseaudio is a pretty improvement though

lean pebble
#

Because 2 of my favorite games are not on steam

peak cloak
lean pebble
#

So can't use proton

tame carbon
#

windows auto is terrible

#

you have

oak night
#

guys can i export my windows to a windows virtual machine?

tame carbon
#

1 output

#

and 1 media output

#

you cannot redirect audiostreams outside of applications

peak cloak
oak night
#

how

#

?

#

Cuz if i can do it

peak cloak
#

System Backup Image

oak night
#

I can do the switch

peak cloak
#

with linux, you just need to be confortable with the command line

lean pebble
#

You can do it if you have VMware esxi server.
They have a feature that does it for you
Easy way

peak cloak
#

and googling

oak night
#

not

#

Not that much

peak cloak
#

I find myself to not use apt a lot more than the included kde software center

lean pebble
#

I need to find a way to go back to my regular user on my fedora

peak cloak
#

faster for me to do sudo apt install neofetch

lean pebble
#

I was too annoyed because sudo so I moved back to root for installing things and update and now I can't move back

tame carbon
#

spotify works well on ubuntu too :o

tame carbon
lean pebble
#

I know

tame carbon
#

most melodic cursing ever

lean pebble
#

But I'm running on root now because my kvm machine

peak cloak
#

sudo su - root

lean pebble
#

I installed it via root so I can't start it from regular user

peak cloak
#

idk how bad practice that is

lean pebble
#

I love infected mushrooms

#

Hell no

#

Haha

tame carbon
#

:(){ :|:& };:

peak cloak
#

what does that do

lean pebble
#

I'm not removing alot of stuff so...

lean pebble
#

I'm using Linux since I was 13

tame carbon
#

me since 15

lean pebble
#

On servers

tame carbon
#

yeah thats where I started too

#

I use it daily on my laptop now

#

all the tools I use professionally run on that very well

peak cloak
lean pebble
#

Now I use it on my main pc

peak cloak
#

all except for davinci resolve work fine

tame carbon
#

using linux, like when everything is dialed in

#

just feels more natural

peak cloak
#

the built-in audio recorder doesn't work

tame carbon
#

less obstructed by clicking

peak cloak
#

it records from ALSA not pulse

tame carbon
#

you can simply automate steps and tasks

#

into tiny scripts

#

like, I use LaTeX when writing documents

#

just have a list script that generates a pdf

#

and I have the document on the monitor, and the raw text on the other monitor

#

auto updates

peak cloak
#

and davinci won't import h.265 and h.264

#

which is a common codec

#

you need to use ffmpeg to transcode it to another one

tame carbon
#

yeah I was just about to say

#

like

lean pebble
#

Wtf why my quemu takes 99% cpu

tame carbon
#

isnt ffmpeg like the swissarmy knife for video transcoding?

peak cloak
#

the other codec has big file sizes

lean pebble
#

My windows machine only on 1% cpu usage

peak cloak
#

still, would be nice to not have to transcode it before importing

tame carbon
peak cloak
#

resolve on windows also doesn't have a h.264 encoder but windows does which it offloads to windows

tame carbon
#

xD

#

Good luck

peak cloak
#

linux doesn't

peak cloak
lean pebble
#

Quemu uses 99% on 1 core

peak cloak
tame carbon
#

There are frontends

oak night
#

installing ubuntu server on a vm on my main pc

peak cloak
#

that's the command to transcode webm to dnxHD .mov

tame carbon
#

@peak cloak I'm googling for ffmpeg frontends right now

#

like

#

we dont have to use the commandline

#

we can use a frontend to configure

#

and then just copy the commandstring

#

xD

#

thats how I do this stuff lol

#

handbrake

#

oh man

#

I remember from years ago during xp era

#

ripping DVDs

#

took

#

days

peak cloak
#

I wrote a script to transcode all files in a dir but I deleted it because I finished a project

oak night
#

why you need to install a kernel?

tame carbon
#

@oak night ffmpeg is just a program

oak night
#

For ubuntu server

#

Sorry

tame carbon
#

once you have ubuntu installed

#

its just

peak cloak
#

kernel is what talks to the hardware directly

tame carbon
#

apt install ffmpeg

oak night
#

Thanks

peak cloak
#

windows has one

#

every OS needs one

tame carbon
#

NT kernel

#

"Next Technology" kek

oak night
#

you guys are awesome

peak cloak
#

everything else is built on top of the kernel

tame carbon
#

MacOS runs XNU Kernel

peak cloak
#

windows is a minimal kernel I think it's called

#

linux is a monolithic right?

tame carbon
#

yes

#

but does support loading kernel modules whose source are outside of the kernel source tree

#

with dkms

oak night
#

Wait ubuntu server is still technically networking?

tame carbon
#

@oak night every other channel on LTT is windows

peak cloak
#

well, this is where all the linux people hang out

tame carbon
#

here, everyone knows linux

#

cus thats what 90% of servers run

oak night
tame carbon
#

windows is for mortals

oak night
#

I'm gonna die

#

I use windows

#

๐Ÿ˜†

tame carbon
#

Im using too

peak cloak
tame carbon
#

but not for important things

oak night
#

i have multiple keys of windows server

#

For free

tame carbon
#

windows is garbage

#

how many times have we seen a worm speed so badly

#

like

peak cloak
#

there are some good parts

tame carbon
#

NotPetya few years ago

#

WannaCry was the initial attack, then was patched

#

and notpetya cripped Ukrain's IT infra structure, and a couple corporations internationnally

#

due to unpatched servers

oak night
#

Do you guys use visual studio enterprise?

tame carbon
#

no

peak cloak
#

nope

#

vscode

tame carbon
#

IDEA

peak cloak
#

I don't do any serious coding

oak night
#

me too

#

i'm a 14 year guy who just likes pc and stuff

tame carbon
#

I've done a lot of coding, mostly java

#

and maven is commandline based

#

and intellij just integrates well with it

#

java is a language you'll want a full IDE for

lean pebble
#

I need to fix my intellij

#

Not working properly

tame carbon
#

clear cache

lean pebble
#

No cache

#

Java integration issues

#

Need to reinstall

tame carbon
#

wat

lean pebble
#

Cannot run code only build

tame carbon
#

(Balogh) Petya is a family of encrypting malware that was first discovered in 2016. The malware targets Microsoft Windowsโ€“based systems, infecting the master boot record to execute a payload that encrypts a hard drive's file system table and prevents Windows from booting. It subsequently demands that the user make a payment in Bitcoin in order t...

#

This is considered the worst cyber attack ever

#

It pretended to be ransomware

#

but nobody actually restored systems

#

Maersk was also hit xD

#

150 of their global domain controllers got hijacked

#

and had all their backups wiped

#

they got lucky though, in Equador they had a power outage at the time

#

and 1 backup survived

peak cloak
#

wow

#

there must be some linux malware though?

tame carbon
#

@peak cloak it was using EternalBlue

#

the exploit that was stolen from the NSA by hackers

peak cloak
#

it's always the NSA isn't it

tame carbon
#

it was a zeroday exploit in the SMB protocol

#

allowed you to break into any networked windows computer

lean pebble
#

Like always

tame carbon
#

and NotPetya was a worm

#

so it was self-replicating

lean pebble
#

Always smb hacked

tame carbon
#

as was WannaCry

#

@peak cloak if there's no firewall

#

it can spread and spread and spread

#

so in this case

#

A series of powerful cyberattacks using the Petya malware began on 27 June 2017 that swamped websites of Ukrainian organizations, including banks, ministries, newspapers and electricity firms. Similar infections were reported in France, Germany, Italy, Poland, Russia, United Kingdom, the United States and Australia. ESET estimated on 28 June 201...

#

They sent an infected PDF to an employee of the govt

#

and then managed to get through into systems of banks

#

all over the world

oak night
#

How do you infect a pdf?

peak cloak
#

isn't pdf an annoying doc format

#

it can run js?

lean pebble
#

I hate pdfs

#

Annoying

tame carbon
#

oh shit

#

no

#

My mistake

#

that was a different hack

oak night
#

But can it run code?

lean pebble
#

But they're good

tame carbon
#

@peak cloak now I remember

lean pebble
#

Ya

tame carbon
#

they hacked MeDoc

peak cloak
#

pdf's are a pain to edit using anything else other than adobe acrobat

tame carbon
#

MeDoc was an update distributor for enterprise windows networks

tame carbon
#

they installed a 1.2GB payload package

#

which was then distributed to a bunch of networks over the world

lean pebble
#

You can infect even a photo

peak cloak
tame carbon
#

MeDoc provides periodic updates to its program through an update server. On the day of the attack, 27 June 2017, an update for MeDoc was pushed out by the update server, following which the ransomware attack began to appear. British malware expert Marcus Hutchins claimed "It looks like the software's automatic update system was compromised and used to download and run malware rather than updates for the software."

peak cloak
#

but it can't run on linux

oak night
lean pebble
#

Because photo is a kinda zip

oak night
#

i'm interested in those things

#

Not in doing them

lean pebble
#

You can hide files into photos

oak night
#

But in knowing how they've done them

lean pebble
#

By drag them into the photo

peak cloak
#

it's really complicated low level stuff

tame carbon
#

@peak cloak MeDoc had about 400,000 customers across Ukraine, representing about 90% of the country's domestic firms[8] and prior to the attack was installed on an estimated 1 million computers in Ukraine.

peak cloak
#

idk myself

tame carbon
#

@peak cloak and guess who was behind the attack

lean pebble
#

Infecting a photo it's not too complicated

peak cloak
#

russians?

tame carbon
#

yeah

oak night
#

Is there anyone who could teach us?

oak night
lean pebble
#

The Russians

#

๐Ÿ˜‚

tame carbon
#

@peak cloak Ukraine is currently russia's cyber battleground testlab

#

with the annexation of the Krim and all

oak night
#

I love this server

#

and is just my first day in it

tame carbon
#

@peak cloak I've read into this, its quite scary what these kind of exploits can do

peak cloak
#

@thorny vector works in cyber security I think

tame carbon
#

EternalBlue is a cyberattack exploit developed by the U.S. National Security Agency (NSA). It was leaked by the Shadow Brokers hacker group on April 14, 2017, one month after Microsoft released patches for the vulnerability.
On May 12, 2017, the worldwide WannaCry ransomware used this exploit to attack unpatched computers.:1 On June 27, 2017, th...

lean pebble
#

I hided files into photos at age 15

tame carbon
#

@peak cloak so even though it was patched

lean pebble
#

Ya

peak cloak
tame carbon
#

@peak cloak lol that hack on ukraine even disabled the radiation monitoring system around chernobyl

oak night
#

ok

lean pebble
#

I dragged so e files into some image

tame carbon
#

scary stuff

peak cloak
tame carbon
#

yeah

peak cloak
tame carbon
#

and running windows xp

lean pebble
#

You click on the photo it opens a program

tame carbon
#

do you know how many ATMs run on windows lol?

oak night
#

Can you teach me?

#

@lean pebble

lean pebble
#

Just adding to this photo a piece of code that runs to