#networking

1 messages ยท Page 283 of 1

tame carbon
#

Tinkering with electronics is easier if you have at least some tools

vale storm
#

It's so dumb that they changed the HDMI port to two micros.

vale storm
tame carbon
#

@vale storm I used one of those FTDI converters in the past to configure network switches.
But the loose wires and breadboard setup was a bit messy

#

so I bought a proper console cable

vale storm
#

I don't even have a breadboard.

#

Even though I literally have a class called "electronics" in university.

#

F indeed.

tame carbon
#

@vale storm I took a minor in embedded electronics and software development

#

half a year at school, where all we did all day was tinker with electronics and raspberry pi's

#

lot of fun :)

vale storm
#

@tame carbon I'm so jealous. It's all theoretical for me.

tame carbon
#

the embedded courses were great. they grouped us up

#

and our group, was 100% linux

#

everyone else was using windows laptops

vale storm
#

My former "computer science for engineers" professor refuses to use python because he says it's inferior.

thick minnow
tame carbon
#

no language is inferior. every language has its niche use.

#

except PHP.

vale storm
#

Yes, exactly.

vale storm
tame carbon
#

I use python only for 1 thing really.

#

and that's data analysis.

vale storm
#

Python is great for quick prototyping.

tame carbon
#

because numpy and matplotlib.

#

ingesting a raw data file, minor parsing and then feeding into a calculation

#

python is just ez for that

vale storm
#

Anyway, my professors all kinda refuse to teach anything practical.

peak cloak
#

I used python to make an animation with manim, pretty nice for that

tame carbon
#

@vale storm sounds like you made a poor choice in education :/

vale storm
#

Nah, it's not my main focus.

tame carbon
#

@vale storm lol we hijacked our school hall, and had battery packs with arduinos, setting up our own mesh network xD

peak cloak
#

@tame carbon I hate that my teacher refuses to let me use Latex for my resume

vale storm
#

My study course is called "physics and technology for spaceflight applications", the technology part is only half of what I do.

peak cloak
#

google docs is such a pain with formatting

tame carbon
#

we had like a 5-hop broadcast from the other side of the school

peak cloak
#

and ugly

tame carbon
#

with ad-hoc mesh networking

vale storm
#

Oh wow, that sounds fun.

tame carbon
#

@vale storm they used this as a platform, to teach routing and route discovery

#

and how to build self healing networks

vale storm
#

That's sick.

#

I should do way more practical stuff.

peak cloak
tame carbon
#

@peak cloak NRF24L01 ^

peak cloak
#

ah

tame carbon
#

tiny 2.4GHz band wireless receivers

#

~ 1.5mbit/s per channel

vale storm
#

I don't even own an Arduino.

thick minnow
#

Wow that seems amazing

peak cloak
#

I have like 3 arduinos

#

more like 5

vale storm
#

Are the cheap knockoff ones any good or are the real ones the only good ones?

peak cloak
#

nah some cheaper ones work

#

I only have 1 offical one

tame carbon
#

@vale storm I wouldn't buy arduinos at all

vale storm
#

Why not?

#

I heard they're great.

tame carbon
#

because they are slow as fuck, and overpriced.

#

I'm a big fan of the blue pill, STM32, a 32 bit arm microcontroller

#

its cheaper, runs at 72MHz instead of 16.

#

and has more memory, more progmem, its 32 bit instead of 8.

peak cloak
#

I need to use something with a ATmega32u4

#

for my project

tame carbon
#

๐Ÿคข atmel

peak cloak
#

well the ATmega32u4 is a native usb controller, because I need to use WebUsb

vale storm
#

I honestly don't even know what I would need an Arduino or another microcontroller for.

tame carbon
peak cloak
#

also with arduino you have a lot of libraries and 3rd party support

tame carbon
#

@vale storm those can essentially be programmed with the arduino toolkit

peak cloak
tame carbon
#

^ this is gr8

#

reimplementation of the arduino standard lib, for stm32

#

Generic STM32 board comparison with Arduino Pro Mini or Nano
Currently such cheap STM32 boards (aka "Blue Pill") are available for less than $2.20 on Aliexpress
It is up to 12 times faster than ATMEGA 328 based Arduino, it is even faster than expensive ARM based MCUs like Arduino Duo.

Module specifications:
Model: STM32F103C8T6
Core: ARM 32 Co...

โ–ถ Play video
#

To give you an idea of speed difference ^

vale storm
#

Okay... 12 times faster is crazy.

peak cloak
#

yeah

tame carbon
#

$2,20 on ali

#

xD

peak cloak
#

I don't really need speed right now

#

let me find the screen we are using

tame carbon
#

@peak cloak not just that, you know how slow usb UART is with arduinos lol?

#

when you do realtime measurements, and dump data to UART

#

your program slows, a LOT.

#

main reason that the STM32 is so much faster in this demo ^ has to do with DMA

#

Direct-memory-access speeds up graphics rendering a lot.

peak cloak
#

this is what we are going to use

tame carbon
#

overpriced.

peak cloak
#

tbh it's really cool

tame carbon
#

$32 lol.

tame carbon
#

Neat

peak cloak
#

doesn't even need to be connected to an arduino

tame carbon
#

It sits ontop of a raspberry pi

peak cloak
tame carbon
#

?

peak cloak
#

@tame carbon we tried to use this one 2.4 SPi ILI9341 Waveshare LCD Display

tame carbon
#

@peak cloak but?

peak cloak
#

the person responsible for programming the screen couldn't figure out to draw images and everything

vale storm
tame carbon
#

what

#

@peak cloak lmao wat. you can use SDL to directly draw pixels on screen

peak cloak
#

ยฏ_(ใƒ„)_/ยฏ

#

what's SDL

#

He tried to use some library

#

I prob could have figured it out

tame carbon
#
SDL_Window *window;
SDL_Renderer *renderer;
SDL_CreateWindowAndRenderer(800, 600, 0, &window, &renderer);

//Probably on a loop
  SDL_RenderDrawPoint(renderer, 400, 300); //Renders on middle of screen.
  SDL_RenderPresent(renderer);
#

`Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.

`

peak cloak
#

that's too resource intensive for arduino though?

tame carbon
#

its a dead simple 'game engine'

#

@peak cloak its a tiny library to do rendering and such

#

the GBA emulator on my homebrew PSP uses it too

#

@peak cloak what, arduino?

peak cloak
#

yeah, the Leonardo

tame carbon
#

lol no

#

you need a linux kernel for this

peak cloak
#

yeah

#

that's what I thought

tame carbon
#

I had my waveshare displays on a pi

#

with touch support lol

#

fuck me., that was a hell to configure

#

since i had to manually calibrate my display

peak cloak
#

this one we tried

tame carbon
#

SPI

peak cloak
#

yeah

tame carbon
peak cloak
#

I was too busy with web to help him out

#

lol

#

so in the end there was a library

tame carbon
#

there's a driver for that SPI display

peak cloak
#

he told me he couldn't find any good libraries for it

#

whatever, the new screen is really cool too

vale storm
#

I've been wanting to make an entire self-hosted service suite with my RPi.

#

But the fact that I can't even access the router to enable port forwarding and stuff probably prevents me from doing this in any kind of a reasonable manner.

tame carbon
#

@vale storm set up a reverse tunnel

vale storm
#

I know I could use some VPN solution but it's meh.

tame carbon
#

you can use a cloud VPS, and then set up a VPN between your own router and the VPS

vale storm
#

I've used ZeroTier before to achieve just that but it's hacky.

#

Also, my upload speed is laughable.

#

690 Kbps.

#

Good luck downloading files from your server with those speeds.

#

Also, download speed is capped at 14 Mbps.

#

So yeah, it's not ideal.

thick minnow
peak cloak
#

why use a vpn?

#

with such slow speeds to make it even slower

thick minnow
#

Well, It's more than enough for me

#

Also

#

the VPN started as a small summer project

#

That I'm using daily now

#

It ain't too bad

tame carbon
#

he's using vpn so he doesnt get hacked kek

thick minnow
#

Nah

#

It's mostly for getting around censorship in my region these days

peak cloak
#

ah, where?

vale storm
#

Those pesky Netflix geoblockers.

#

That only serve content in specific areas.

tame carbon
#

only sites that geoblock me are american sites

#

because they cannot comply with GDPR.

thick minnow
#

I live in one of the GCC countries

tame carbon
#

middle east

vale storm
#

Oof.

thick minnow
#

Yea

vale storm
#

They could.

tame carbon
#

true

vale storm
#

We're getting upload filters in the EU now.

#

It really sucks.

tame carbon
#

it was passed, but hasnt been implemented.

peak cloak
#

upload filters?

#

what

tame carbon
#

@peak cloak Article 13

vale storm
#

Yes, but in Germany it's almost implemented.

vale storm
peak cloak
#

bruh

vale storm
# peak cloak upload filters?

Basically, content platforms are responsible for the content they serve and have to check at the time of upload if it's copyrighted material. If they don't, they are liable for the damages.

#

Nobody knows how this is supposed to be implemented.

tame carbon
#

@peak cloak the fear is that, platforms are going to be worried about fines, that they will put preventative measures in place

peak cloak
#

When lawmakers don't understand how the internet works

tame carbon
#

aka: an upload filter.

peak cloak
#

You can't stop someone from sharing files on the internet

vale storm
#

Exactly, and the fear is that this will contribute to false blocking and stuff.

tame carbon
vale storm
#

It's not even clear if memes are gonna be able to be uploaded anymore.

thick minnow
vale storm
#

I haven't.

tame carbon
#

@vale storm memes are apparently fair use.

vale storm
#

Yeah, but filters might still block them.

tame carbon
vale storm
#

Because you can make a meme out of some photo someone took.

tame carbon
#

most of what this directive proposes, I do support to the fullest.

vale storm
#

Copyright law is just messed up though. Tom Scott has a great video about it.

thick minnow
#

Yea, I've seen that

#

one

tame carbon
#

@vale storm the problem is that the people lobbying for this, are mostly from record labels and movie associations

vale storm
#

Yeah. And newspapers.

tame carbon
#

Yeah but link tax is not gonna happen.

vale storm
#

At least here in Germany.

vale storm
#

Google could just say 'alright, no more links to news sites'

tame carbon
#

paying for linking is rediculous.

vale storm
#

Yeah.

tame carbon
#

if these news paper organizations want to make money, put up a fucking paywall.

#

instead of ruining the internet

vale storm
#

"save our free internet" is what that says btw.

tame carbon
#

@vale storm Yeah I'm aware of the protests

vale storm
#

There were so many people.

tame carbon
#

its just, that the CDU/CSU has such a grip on politics in germany

vale storm
#

Yes.

#

It's horrible.

tame carbon
#

that we can't really do much until the old people have died.

vale storm
#

Hopefully that changes this year with the elections coming up.

thick minnow
#

Can I ask what is "CDU/CSU"?

vale storm
#

Two parties.

tame carbon
#

Actually, its one party.

vale storm
#

The conservatives.

thick minnow
#

Ah okay

vale storm
tame carbon
#

Christian Conservative party

#

majority in germany

#

have been for the last 29 years

vale storm
#

It's one union of two different parties.

tame carbon
#

Yep

#

CSU is in Bavaria

#

and CDU is countrywide

vale storm
vale storm
tame carbon
#

@vale storm they've had the same coalition for decades now?

vale storm
#

No, in 2005 we had CDU / FDP

tame carbon
vale storm
#

From 2005 to 2009

#

And I think from 2009 to 2013, but I'm not sure about that.

#

But from 1998 to 2005 we had the SPD and the Greens.

tame carbon
#

@vale storm you know who I voted for during EU parliamentary elections?

vale storm
#

Volt?

tame carbon
#

Die Partei

vale storm
#

Nice.

#

They're kinda breaking apart though.

tame carbon
#

They made two seats

vale storm
#

Yes.

tame carbon
#

I haven't been keeping up since then.

vale storm
#

But one of them left the party recently.

tame carbon
#

oh, really?

#

Semsrott?

vale storm
#

Yeah.

tame carbon
#

He should have stayed at ZDF

vale storm
#

Because he says Sonneborn posted a racist tweet.

tame carbon
#

Sonneborn is still my hero.

vale storm
#

But the tweet was kinda meh, it feels like Nico just wanted to get out and needed a reason, however small it may be.

tame carbon
#

@vale storm german general elections, I vote for the Left

vale storm
#

Wait. You're German?

tame carbon
#

Ganz sicher, :)

vale storm
#

Wtf

thick minnow
#

Left=Liberal, Right=Conservatives, right?

#

Or wrong

vale storm
tame carbon
#

guys

vale storm
tame carbon
#

lets steer away from this, since they don't take kindly to political talk in this server.

thick minnow
#

Yea

tame carbon
#

@vale storm I have dual citizenship

#

so I'm both dutch and german

#

I speak both fluently

vale storm
#

Ahh, cool!

thick minnow
#

Nice

vale storm
#

So you live in the Netherlands though, right?

tame carbon
#

Yeah, like 5 minutes from the dutch-german border

vale storm
#

I think we've had this exact convo before.

tame carbon
#

the Rhine is quite close

#

@vale storm the only reason I interest myself in german politics, has to do with their power in EU

#

Whatever germany does, goes for all of europe

#

since CDU/CSU holds such immense power in EU

vale storm
#

Yeah.

tame carbon
vale storm
#

Ugh, Windows.

#

Ya hate to see it.

tame carbon
#

Windows doesnt give a fuck to user settings

thick minnow
#

Thankfully, I don't have to deal with that anymore

#

Also

#

There should be that pasue for 7 days

#

Spam it

tame carbon
#

Off

#

should be Off.

vale storm
#

Exactly.

tame carbon
#

I swear

peak cloak
#

select pause until infinte

tame carbon
#

microsoft has found out a way, to store 3 different states in a boolean.

vale storm
#

My android is still on a build from over a year ago. ๐Ÿ˜‚

peak cloak
#

quatum bit

tame carbon
#

@vale storm lol in databases you can use NULL

#

TRUE, FALSE or NULL

vale storm
#

Nice.

tame carbon
#

I used that to hack 'gender fluidity' support into my minecraft server

vale storm
#

So it's not a quantum bit after all.

tame carbon
#

when people were upset of being shoved into boxes of 'male/female'

vale storm
#

That's really cool.

tame carbon
#

so, true is male, false is female, and null is none of the above

vale storm
#

Love it.

thick minnow
#

Nice

vale storm
#

Male, female, other.

#

Makes total sense.

tame carbon
#

yeah this doesnt work if you are facebook though

vale storm
#

In Germany we now have male, female, and diverse.

tame carbon
#

and have to support 53 different genders

vale storm
#

At that point you may as well just have a text box where people can put whatever they want.

cedar igloo
tame carbon
#

I'm not against gender fluidity from a social aspect
I'm purely against it for technical reasons xD

vale storm
#

Hahaha, yeah, binary is easier.

tame carbon
#

@vale storm I swear, if you make a site that supports that

#

I will sign up: "Apache attack helicopter"

vale storm
#

Dude

#

I literally had that written out

#

Just now

tame carbon
thick minnow
vale storm
#

Lol.

#

Microsoft is a fucking meme at this point.

jaunty talon
#

MITM? :)

tame carbon
#

@jaunty talon it does the same for .jar files

vale storm
#

Java is evil.

tame carbon
#

@vale storm I beg your pardon?

vale storm
#

โ€“ Microsoft

tame carbon
#

.NET stinks.

vale storm
#

โ€“ everybody

tame carbon
#

it reeks of propietary bullshit

vale storm
#

FOSS all the way.

thick minnow
#

Ayyyyyyy

tame carbon
#

I curse .NET, but I use it daily

vale storm
#

Nice.

thick minnow
#

the irony

jaunty talon
#

Java and .NET can be FOSS :P

tame carbon
vale storm
#

Btw, I want someone to make it so I can use my android phone as a screen for my Raspberry Pi via a cable.

thick minnow
#

Wait ain't this supposed to be the Networking channel?

tame carbon
#

@thick minnow secretly, this is the place where people who have a clue take shelter

thick minnow
#

Haha

vale storm
#

This is as close to the Illuminati as it gets.

#

This channel.

#

We are enlightened.

tame carbon
#

safe haven for linux

peak cloak
#

over serial

lean pebble
tame carbon
#

@vale storm VNC ?

vale storm
#

Direct USB-C to Micro HDMI would be sick, thank you. KEKW

lean pebble
vale storm
tame carbon
#

@vale storm you can set up an IP tunnel over usb

lean pebble
#

Usb c to hdmi?

lean pebble
#

Usb a to hdmi

vale storm
#

Wait, are you telling me this might be possible?

peak cloak
#

there is also this

#

USB to TTL cable

thick minnow
#

Well, I got to be going right now, hopefully I'll see ya guys soon

lean pebble
#

See ya

#

And remember don't download windows updates ๐Ÿ˜‚

#

They're dangerous

tame carbon
#

@peak cloak he doesnt have a serial interface

vale storm
#

Remember,
sudo pacman -Syu

tame carbon
#

I already suggested this earlier

#

enabling uart on the kernel

#

and then using serial

vale storm
#

Yeah.

peak cloak
#

ah

#

didn't see it

vale storm
#

But I want a display output directly on my smartphone via a simple cable, lol.

peak cloak
#

oh

#

a display, not just a console

vale storm
#

Yes.

peak cloak
#

well first step would be to get access to the pi via a console right?

#

I remember crystal saying it may be a sd card issue

tame carbon
#

at this point, we dont even know if the pi boots properly.

vestal smelt
#

Random thought
How hard is it to move data from 1 LAN connected PC to another? (connected to LAN as well)
and how to actually do it=

tame carbon
#

@vestal smelt there's a myriad of ways you can do this

lean pebble
#

Scp / rsync

vestal smelt
#

ร–h
What?

peak cloak
#

scp pi@berry.presentmonkey.home:file.txt /home/presentmonkey/Desktop

vale storm
#

@tame carbon wait, could a light on the wifi adapter in my Pi be an indicator that it's booted?

vestal smelt
#

on windows 10(pro)
19042.746

peak cloak
#

example to copy file.txt from my pi to my Desktop

lean pebble
#

scp -r for recrusive

peak cloak
#

yep

peak cloak
tame carbon
#

@peak cloak that wont help him

lean pebble
#

Well on windows scp

#

Powershell have built in scp

peak cloak
#

windows also has this weird buit in thing

tame carbon
#

you still need a server :3

peak cloak
#

it's like nearby sharing or something

lean pebble
#

From 2 windows machines?

vale storm
#

Just use Windows Network Sharing.

lean pebble
#

Smb

vestal smelt
#

Lol
I just need a connection, where I can just download and up stuff to it
Like, not switching PC

vestal smelt
lean pebble
#

Both machines runs windows?

vestal smelt
#

YES
10 pro

lean pebble
#

Share folder between them

vale storm
#

I don't use Windows but I think there's a way to enable something where you can see the folder of one PC aon the other one.

lean pebble
#

Yea

tame carbon
#

@vestal smelt you can enable directory sharing in windows directly

#

@vestal smelt the other computer can then browse this by entering the following in the address bar: \\<ipaddress>\Sharename

vale storm
#

Isn't it forward slashes with network storage locations in windows?

vestal smelt
#

Well
it could be great
If I knew what it is called in finnish

vale storm
#

I always get confused.

vale storm
tame carbon
#

@vestal smelt right click the directory you want to share and press properties

#

sharing options are in the 2nd tab

tame carbon
#

@vale storm there's two lights

vale storm
#

No, not on the ethernet port.

tame carbon
#

there's two LEDs on the board itself

#

one for system status

#

and the other for wireless

vale storm
#

On my wifi dongle. (Yes, it's a Pi 4, but I used my edimax to see if that would work)

#

It's glowing blue.

vestal smelt
#

I ll look into it late

lean pebble
vale storm
#

I don't have access to my router.

lean pebble
#

Oh

vale storm
#

And Fing (nmap app) doesn't pick up an ip address of the Pi.

lean pebble
#

Maybe try arp

vale storm
lean pebble
#

I like fing

vale storm
#

This is what I meant by dongle.

vale storm
lean pebble
#

Can you connect it via cable ?

vale storm
#

To what?

lean pebble
vale storm
#

Yes.

#

With my host.

lean pebble
#

I mean rj45 cable to your pi

#

Fing find everything here

vale storm
#

But to what? The ethernet of the router? That's a different sub-network.

#

And I only have one ethernet wall outlet.

#

Which is not even mine.

lean pebble
#

Your pc connected with network cable ?

vale storm
#

No.

lean pebble
#

Ok

tame carbon
#

@lean pebble we're going in circles

#

I've already gone over this

vale storm
#

Yeah, we had that discussion earlier.

lean pebble
#

I wasn't here lol

tame carbon
#

There isnt much he can do rn

lean pebble
#

Hotspot from your phone to pi

vale storm
#

Tried that too.

lean pebble
#

Via usb

tame carbon
#

His Pi isnt even connecting to wifi.

vale storm
peak cloak
#

usb console?

#

right?

tame carbon
#

@lean pebble he can't configure dynamic interfaces at this time.

lean pebble
#

Connect your cable charger and open hotspot on your phone

tame carbon
#

since that requires access

lean pebble
#

Not on Linux

#

I did it alot

tame carbon
#

Static IP to a PC is the easiest.

#

with a regular lan cable.

vale storm
#

My working laptop doesn't have an ethernet port if that's what you're saying.

tame carbon
#

@vale storm lol you got some shitty I/O going on over there

#

no ports

vale storm
#

Yes sir.

tame carbon
#

no serial

#

no nothing

vale storm
#

Two thunderbolt USB-C and one USB-A.

#

That's it.

lean pebble
vale storm
#

Oh, and a 3.5 mm combo jack, yay.

tame carbon
#

@lean pebble yeah but the problem is, he can't get the client for this configured on the pi

vale storm
#

@lean pebble but how does the pi know to connect to BT?

lean pebble
#

No bluetooth

#

Usb

tame carbon
#

@lean pebble even then, the interface is unconfigured.

lean pebble
#

You connect your phone with usb

tame carbon
#

it wont connect.

lean pebble
#

Are you sure ?

vale storm
#

How would I even connect the phone to the Pi? Like, what cable?

lean pebble
#

I did it on my laptops when my lan interface wasn't working and my wifi to

vale storm
#

Yeah, which cable though?

lean pebble
#

The cable you charge your phone with

tame carbon
#

@vale storm android can tether over USB, exposing a network interface to the host

vale storm
lean pebble
#

It's ok

#

Your pi have usb ports

tame carbon
#

look

#

all if this is fine and dandy

#

but at this time

#

we don't even know if the pi boots.

lean pebble
#

One port to your phone and the other side to pi

#

Well light are a good indicator

tame carbon
#

@vale storm I would buy an hdmi adapter right now, and leave it for now

vale storm
#

Okay, turned on USB tethering.

tame carbon
#

or a serial cable kek

lean pebble
#

Ok

vale storm
#

Fing doesn't show the Pi.

lean pebble
#

You should see there the IP of the pi if it's booted correctly

vale storm
lean pebble
#

No fing

#

Fing is wifi only

tame carbon
#

@vale storm yeah but then you have an adapter at least

dusky zenith
#

What is the best type of CAT networking cable?

vale storm
#

No idea honestly.

#

Probably depends on your budget.

tame carbon
#

@dusky zenith 5e or 6.

lean pebble
#

The best is cat8 and home use best is 5e/6/6a

tame carbon
#

I would use cat6a for indoor installation.

lean pebble
#

Or 7

tame carbon
#

Cat8 is a joke.

dusky zenith
#

I mean I've heard of 7 and 8 being a thing but honestly I'm new to networking

lean pebble
#

Expensive joke

tame carbon
#

@dusky zenith for 1G copper, 5e is good enough. 6 has a reinforced core and 6a comes with shielding

tame carbon
#

if you plan on running ethernet next to electrical wires, 6a is preffered

vale storm
lean pebble
#

Man you have update

tame carbon
#

This isnt going to work ;P

vale storm
tame carbon
#

@lean pebble you have to configure DHCP on the pi with this.

lean pebble
lean pebble
#

Without any configuration

tame carbon
#

@lean pebble you plugged in a new NIC

#

you need to run ifup

#

or ip link set dev <device> up

vale storm
#

@tame carbon I have another idea. What if I use my mouse to use macros that type specific stuff into the console headless-ly? (I don't have a wired keyboard)

tame carbon
#

@vale storm yeah, the idea with that is... serial KEKW

vale storm
#

But I could just use my gaming mouse, no?

tame carbon
#

I think you are overcomplicating this issue.

vale storm
#

Probably.

tame carbon
#

You need a machine with an ethernet interface

#

so you can set up static IP

#

anything else is overcomplicated.

vale storm
#

Which I tried earlier and then the laptop just went bye bye for no reason.

lean pebble
tame carbon
#

@lean pebble that'd be a first lol

#

I've never seen a system automatically ifup a new NIC

lean pebble
#

That's how I fixed my pc networking last time

#

Usb thethering creating automatically temporary nic by usb and connect it

#

From my experience

#

The only os I needed use interaction in was windows

#

With this annoying 'yes no' prompt

tame carbon
#

var data = new List<object[]>();

#

I wish you can do this in java

lean pebble
#

On rj45 port (ethernet ) / wlan you're right you always need manually but usb you don't need it

vale storm
#

I found my Arch rescue media.

#

Now the problem is that my keyboard is broken.

#

How do I type on the laptop?

lean pebble
#

Why did you broke it?

vale storm
#

Some keys just don't work.

#

And sometimes they do.

lean pebble
#

It's a laptop of desktop?

vale storm
#

Laptop.

#

I don't have an external keyboard.

#

I have three laptops though.

lean pebble
#

Just use the build in keyboard

vale storm
#

It doesn't work.

lean pebble
#

Oh

vale storm
#

That's what I'm saying.

lean pebble
#

I missed it

#

Use another laptop

vale storm
#

Normally I use KDE Connect or an on-screen keyboard to control it.

lean pebble
#

I love kde connect

vale storm
vale storm
lean pebble
#

Using it to copy things from pc to my phone

#

Sometimes I connect the bluetooth too and use the pc for talk on the phone

#

๐Ÿ˜†

#

The problem it's not 100% working

#

Sometimes it does and sometimes doesn't

vale storm
#

How do I know which partition is which? I don't remember which one I made the home partition and which one is root.

#

lsblk doesn't really help.

tame carbon
#

@vale storm lol at this point, a live OS is good enough KEKW

#

all you need is IP and ssh.

thick minnow
#

What does KDE connect do?

vale storm
lean pebble
#

Not just control

vale storm
tame carbon
#

@vale storm again, wired ethernet.

lean pebble
#

Get everything from your phone on your pc

tame carbon
#

I dont use wifi for this sort of debugging

vale storm
#

But I want to connect the pi to the pc via Ethernet...

thick minnow
#

Also if you have a phone you should be able to tether from it roght?

tame carbon
#

I am stepping out of this conversation

#

we're going in circles

lean pebble
#

Guys I just received my oneplus earbuds they're awesome

vale storm
#

I probably just don't understand what exactly I'm supposed to do.

lean pebble
#

And linus just uploaded a video of gaming on starlink

vale storm
#

Saw that.

tame carbon
#

psybreaks ^ for those who enjoy breakbeat

vale storm
#

The keyboard fucking works. I don't understand.

#

I'm too tired for this shit, I didn't sleep at all last night.

thick minnow
#

Then take a break

#

come back after a while

tame carbon
#

amount of times I've solved problems under the shower, is astounding

vale storm
#

I love it.

tame carbon
#

psychedelic breakbeat :)

#

80% of what I listen to is psytrance

thick minnow
#

Well

tame carbon
#

try this ^ :D

#

This is my kinda jam

vale storm
#

Lol. @lean pebble was right.

thick minnow
#

for me 90% of what I listen to is Classical and moreover neo-classical

vale storm
#

I had to do nothing when connecting my phone to my laptop and enabling USB tethering.

thick minnow
#

The only time you need to do anything to tether form a phone is when you use macOS

vale storm
#

I think I figured out why the Arch laptop doesn't boot.

#

LibreOffice is installed incorrectly.

tame carbon
#

wait wat

peak cloak
#

wat, how does Libreoffice have to do with boot

vale storm
#

So I installed LibreOffice last night and the install said something about mime database can't be updated.

#

And after that I shut down the computer and it didn't boot back up.

tame carbon
vale storm
#

And now I can't even uninstall LibreOffice because pacman says it's not installed.

peak cloak
#

just seems very unstable

vale storm
#

It's not though.

#

This probably has something to do with the laptop itself, it's really horrible.

#

On my other laptop it works really really well.

thick minnow
#

wow

#

just wow

tame carbon
#

party is long overdue

#

stupid pandemic.

oblique marlin
#

but its the best port

#

u are right but no antivirus detects payload which communicate through port 80 and 8080 because antivirus thinks its a browser

#

if i use any other port then antivirus will detect it

stable spoke
#

hey guys/gals, Gotta question. anyone know if its possible to be hacked in a way that your network boots up your computer from sleep, then makes your fan increase rpms at a very alarming rate? possibly by using my computing power maybe? my antivirus software stated someone tried to access my computer over 2,000 times at 3 something am this morning.

stable spoke
# peak cloak it's definatly possible

Thanks, yeah i just finished the computer scan and it was definitely a virus(2 of them) in my recycle bin... nice place to hide them. was called Suspect!

peak cloak
stable spoke
lean pebble
#

anyone know how to convert sqllite to mysql?

tame carbon
#

@lean pebble what, transport data between databases?

#

@lean pebble I don't think it can be done like that, if I had to make that happen, I'd write some code to do it

lean pebble
#

now I have bigger problem xD

#

I installed some management panel and I can't access it with my username and pass

peak cloak
#

kinda confused by what you are asking?

#

I use proxmox which is KVM + QEMU

#

I have multiple VM's running

#

As for networking I have it use macvtap which "spoofs" mac addresses based on the VM so each VM gets it's own IP from the router

lean pebble
#

fucking panel management

peak cloak
lean pebble
#

haha

#

I found one nice

peak cloak
#

just a simple installer

lean pebble
#

not pterodac

#

crap

peak cloak
#

and it's a system service

#

no

#

not with sr-iov

lean pebble
#

monkey wanna see this panel?

peak cloak
#

sure

lean pebble
#

pretty nice

#

took me only 15 minutes to install and configure xD

#

I played with ssl thats why I had a problem xD

peak cloak
#

pufferpanel?

lean pebble
#

ya

peak cloak
#

ah

#

tried it before

lean pebble
#

working great

peak cloak
#

I forgot the exact problem I had

#

waiting rn for HE to reply

#

I'm convinced it's a problem on their end

lean pebble
#

what is the problem again?

peak cloak
lean pebble
#

oh

peak cloak
#

and I just checked my email

#

and they reset the tunnel

#

WORKS

lean pebble
#

I had it too yesterday I fixed it

peak cloak
#

YES

lean pebble
#

miss configured xD

peak cloak
#

it was on their end

lean pebble
#

nice

peak cloak
#

I spent way too much time on that

#

now I need to setup radvd again

tame carbon
#

at least if you send an email to HE

#

you get a reply.

peak cloak
#

yeah

#

suprised

#

that they even have good support for free users

lean pebble
#

I don't use radvd

peak cloak
#

dhcp6?

lean pebble
#

pfsense uses dhcpv6 / ra

#

together

tame carbon
#

@peak cloak they are v6 evangelists.

#

they push this shit hard, the more people use it the better.

#

@winged ledge virtualization for GPUs

lean pebble
#

amd virtualization option

#

for gpus like crystal said

tame carbon
#

@winged ledge the idea being, that many operating systems can use the same graphics card

lean pebble
#

I have 2 gpus for for virtualization but you can do it with one to

tame carbon
#

Currently if you want accelerated graphics in a VM, you have to passthrough an entire graphics card

#

SR-IOV would allow the host to allocate compute time to guests

#

and allow many systems to share a single card

#

CPUs already have native support for virtual machines. Keeping a lookup table in memory for mapping virtual memory to physical memory

#

But this isnt to say for other components.

#

network cards we've hacked our way around with mac spoofing (mac-v-tap)

#

but GPUs are complicated, in that the firmware on the card and the driver in the OS are very tightly integrated

#

@winged ledge LTT showcased this

#

they had a linux host, with two graphics cards

#

and a windows guest, who'd get one GPU passed through

#

you just need enough

#

RAM is shared

#

storage, you have to allocate.

#

@winged ledge You could have a linux host operating system, with that GT210

#

and then add the 2060 to the system as well

#

you can pass the 2060 directly to the virtual machine

#

so the linux host can use the GT210 for display output, and windows can use the 2060

#

In this configuration

#

you'd end up 1 computer, 2 monitors and two sets of keyboard/mouse

#

Get an unrestricted 30-day free trial of FreshBooks at https://www.freshbooks.com/techtips

Check out ORIGIN PCโ€™s New EVO15-S, powered by NVIDIA GeForce GTX 1070 Max-Q and their latest specials here : http://bit.ly/2KG67ZJ

Windows collects so much user data these days! How can you get your game on while controlling how much privacy you give up?...

โ–ถ Play video
#

watch this. and be amazed.

#

last 5 minutes of the video ,are the most interesting

#

thats where they showcase exactly what I just explained.

#

@winged ledge no, you wont be able to switch it

#

since these are IOMMU groups that are being allocated.

waxen scroll
#

@tame carbon has literally anyone installed linux for gaming as a result of these many linux videos he does? I think not. ๐Ÿคฃ

tame carbon
#

@waxen scroll my friend runs this rig. lol

#

@waxen scroll he managed to pull this off with looking glass and all

#

using a vega64

#

though he said that the config for libvirt was a rabbit hole

#

@waxen scroll its a bit hacky still. Since looking glass presents itself as a windows kernel driver, which is to be compiled on the system locally.

#

@winged ledge forget SR-IOV.

#

you wont be able to use that

#

Its propietary and drivers are only given to enterprise customers.

#

no consumer access

#

@winged ledge and as to the passthrough of a graphics card

#

you need a specific motherboard

#

that has the right configuration for IOMMU

#

@winged ledge read that article

#

@winged ledge devices are part of so called 'IOMMU groups'

#

and you cannot pass a device to a VM, but rather pass an entire IOMMU group

#

that means, the PCIe slots on your motherboard, have to be in seperate groups, to be able to passthrough one graphics card

#

same goes for USB controllers

#

and other peripherals

#

@winged ledge you need to look at what IOMMU groups your motherboard have

#

make sure the two GPUs are on seperate groups

#

so you can allocate one to the VM

#

@winged ledge I really recommend looking up some more articles on how to do this

#

because GPU passthrough and all the settings, is a bit of a habbit hole

cedar igloo
#

anyone know how to remove openssh key authentication? using an ubuntu cloud image, and would like to remove the requirement for ssh key authentication

tame carbon
#

@cedar igloo though I strongly recommend against disabling it, you can allow both key and password login, by changing the config in /etc/ssh/sshd_config

#

public exposed SSH servers should never have password login enabled.

cedar igloo
#

its just convenience for now. its not exposed to the public

#

its in vsphere local cluster

tame carbon
#

@cedar igloo PasswordAuthentication yes

#

that's the config field you are looking for

#

@cedar igloo There's another config, for root. PermitRootLogin which you can set to without-password to only allow keyfiles for root

#

by setting it to yes you can use a password

#

but root login via ssh is dirty. so I always set mine to no

cedar igloo
#

would i need that for using sudo with a normal user (with the correct privileges) over ssh?

tame carbon
#

no, this is purely ssh

#

you can still su to root after you are logged in

cedar igloo
#

ok, i dont think i need that enabled then. i dont need to ssh as root

#

ok, i think i need to configure something else. still getting the following error:

C:\Users\Admin>ssh ubuntu@10.0.10.103
ubuntu@10.0.10.103: Permission denied (publickey).
tame carbon
#

@cedar igloo its using the keyfile

#

@cedar igloo just out of curiosity, why not just use ssh keys?

#

its easier

cedar igloo
#

just find password authentication easier when i am automating stuff

tame carbon
#

what

#

for automation, keys are actually easier.

#

you can just provide a keyfile as an argument

#

instead of password.

#

@cedar igloo did you restart the sshd?

cedar igloo
#

i did /etc/init.d/ssh restart

#

path might be wrong

#

i just tried remembering what the path was off the top of my head

tame carbon
#

you shouldnt call init scripts

#

systemctl restart ssh

cedar igloo
#

i tried systemctl restart openssh and that didnt work. didnt realise it was just ssh

tame carbon
#

@cedar igloo though for real, you might just be off easier using keyfiles

#

you can use ssh -i /path/to/your/id_rsa

#

to manually provide an identity file to login with

#

by default it grabs the one in your home folder

cedar igloo
#

ok, ill give it a go. will need to reinstall the vm as it was a customisation option in vsphere and i dont want to type out a long rsa key manually

tame carbon
#

automating SSH without keys is annoying

#

because password prompts.

#

@cedar igloo ah yeah

#

for installing the key on the remote system you can do two things

#

either

#

copy paste the contents of ~/ssh/id_rsa.pub to ~/ssh/authorized_keys on the target system

#

or

#

use ssh-copy-id a program, which does this for you

#

ssh-copy-id user@host

#

it asks for a password

#

and then copies your public key to the server

cedar igloo
#

i guess thats a linux command...

tame carbon
#

@cedar igloo you have ssh on your system

#

ssh-copy-id is part of the openssh suite

cedar igloo
#

oh, enter that on the server

tame carbon
#

no

cedar igloo
#

im confused...

tame carbon
#

@cedar igloo okay, let me take a step back and explain from simplest terms

#

keyfile auth, uses two files

#

id_rsa and id_rsa.pub

#

the first one is your private key (which you should keep private)

tame carbon
#

and the public key is for everyone else

#

By giving the server the public key

#

the server can generate a challenge which it encrypts with your public key

#

you can then verify you are the owner of that key, by decrypting the challenge with your private key

#

and sending it back to the server.

#

generating these keys, you do once on your own system (your laptop or whatever)

#

this is an 'identity'

#

and you can permit this identity to login, by just adding their public key to your authorized_keys file

#

This way, you can allow access to a user, without ever sending them a password

#

and you can also easily revoke access, without having to change the password

#

by just removing the key from the list

#

@cedar igloo on your own client machine, you run ssh-copy-id to copy your own public key, to the server

#

so the next time you login, your computer can use your private key to identify against the server

cedar igloo
#

C:\Users\Admin>ssh-copy-id
'ssh-copy-id' is not recognized as an internal or external command,
operable program or batch file.
sorry, i probably did something wrong

tame carbon
#

wait

#

really?

cedar igloo
#

im on windows. just ran PS C:\WINDOWS\system32> Add-WindowsCapability -Online -Name OpenSSH.Client* too

tame carbon
#

git-scm comes with a full suite of bash coreutils

#

including all the ssh commands

cedar igloo
#

got git bash installed

tame carbon
#

nice

#

use that

cedar igloo
#

ok, ill give it a go

peak cloak
thorny vector
#

Just use wsl, make your life easier

tame carbon
#

@thorny vector ew

thorny vector
#

Not ew. wsl2 is great.

tame carbon
#

EWWWW

#

even worse perf.

cedar igloo
#

$ ssh-copy-id ubuntu@10.0.10.103
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/c/Users/Admin/.ssh/id_ed25519.pub"
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
ubuntu@10.0.10.103: Permission denied (publickey).

๐Ÿ˜ฆ

thorny vector
#

wsl2 isn't for high performant operations. Its for easy access to a parallel linux system

#

Same reason I have powershell on my linux workstation

tame carbon
#

@thorny vector ok resolved it

#

just took a quick screenshare and fixed the issue

#

:)

#

@cedar igloo now you see why ssh login is easier?

#

@cedar igloo you can then protect your own private key with a passphrase

#

so when I do ssh somebox

#

if its the first session in a terminal

#

I get a popup from my desktop environment

#

asking for login to my keyfile

cedar igloo
#

yeah. how would i deal with adding access to a new machine?

#

hypothetically

tame carbon
#

@cedar igloo generate another keyfile on that machine

#

or, do it like the cool kids and use a hardware ssh key

#

like a yubi key

#

plug that into the computer and it does that for you

cedar igloo
tame carbon
#

@cedar igloo setting up ssh keys for git so you can use ssh instead of http, its pretty much the same process

#

you can either use a single key which you keep private

#

or generate a key per machine, which is more secure, you shouldn't copy keyfiles.

#

@cedar igloo SSH allows things like ssh keyforwarding

#

so you can do ssh: computer -> server -> another server

#

and the server in the middle, forwards the key handshake from your computer

cedar igloo
#

like apache guacamole?

#

or can any linux server act as a bridge kind of thing?

tame carbon
#

@cedar igloo imagine you have one public terminal server on a computer grid

#

and from there, you log onto servers behind the firewall

#

but you still use the ssh key that is on your laptop/desktop/workstation

#

so you can ssh user@terminalserver

#

and then from there

#

run ssh user@anotherserver

#

and it still uses the key on your own machine

#

SSH agent forwarding is like going another layer deeper. For example, imagine youโ€™re connecting to a remote server, and you want to git pull some code that youโ€™re storing on Github. You want to use SSH authentication for Github, but you donโ€™t want your private keys on that remote server, only on your machine.

#

To solve this problem, you can open your local SSH agent to the remote server, allowing it to act as you while youโ€™re connected. This doesnโ€™t send your private keys over the internet, not even while theyโ€™re encrypted; it just lets a remote server access your local SSH agent and verify your identity.

#

like

#

ssh is incredibly useful and powerful. But still very simple

#

depends on the ssh server if you have agent forwarding enabled

#

which can only be configured by root

#

so if the server you connect to doesnt have it on, you cant use it

#

@cedar igloo I've written software in java that uses ssh in code to interact with a remote server. Setting up logins for that was dead simple

#

in your config file, you only have to provide a filepath to the private key

#

and an optional passphrase

#

there's many agents, like for example, lastpass could be used as an ssh agent

#

I use the gnome keyring for this

#

it falls back to password login

#

which it will refuse after I enter, because its not allowed xD

#

@static knoll werent you looking for a place to play modded mc?

thorny vector
#

@cedar igloo if you want to build a custom Linux image, with users already created, and you can even install packages, use cubic

tame carbon
#

cubesos?

#

oh

#

@thorny vector only other descriptive operating system I know of is NixOS

#

then there's the usual saltstack and ansible rigs

thorny vector
#

Nope. I made a custom image with it, then set it to pxe boot. Instant access to any netboot machine. Salting and everything else is too much work when I can just do this.

tame carbon
#

@thorny vector I've used buildroot once

#

toolchain to build embedded linux systems with

stable spoke
# peak cloak do you have upnp enabled in your router

hey PresentMonkey, I think I do have Upnp enabled, should I disable that? and will that impede traffic? because i understand most traffic goes through a specific port i think 80 or 8080, and if it comes through somewhere else my anti-virus software wont see it or detect it until its installed.

peak cloak
#

I would disable it

stable spoke
hollow marlin
#

Its not their responsibility to tell customers that

peak cloak
#

^

#

@hollow marlin it turns out it was an issue on HE's end

#

they reset the tunnel and it's fixed

#

now on my end it's just slow

hollow marlin
#

Must not have been a graceful termination and was just stuck. If you do move the tunnel a good practice is to shutdown the tunnel interface and it should tear it down without HE getting involved

peak cloak
#

yeah, I tried deleting the tunnel as well on HE's end, must have not waited enough

lean pebble
#

@peak cloak still same issue ?

peak cloak
lean pebble
#

Oh good progress

#

What is the issue now ? If you have connectivity

peak cloak
#

slow speeds going through the switch

desert briar
#

Maybe if we get rid of Erina we'll get rid of your networking issues. The guy is like a black cat of internet troubleshooting ๐Ÿ˜›

peak cloak
#

on router i get 20mbps

#

on pi I get 118 kbps

desert briar
lean pebble
#

Ok

desert briar
#

Just hanging around, cant come up with anything. So yeah. Afraid I cant help on this one boss

peak cloak
lean pebble
#

When you're not using the ipv6 tunnel on the pi all good?

peak cloak
#

it starts then stops

peak cloak
#

maybe I could setup a server on link-local address

#

that way I can check if it's ipv6

lean pebble
#

Your ipv6 is tunneled right?

peak cloak
#

yes

lean pebble
#

Try disable the ipv6 on your pi

peak cloak
#

ipv4 is fine

lean pebble
#

For test

hollow marlin
#

Where is the other end of the iperf connection?

lean pebble
#

Ok that what I wanted to know

lean pebble
#

So clearly is the tunnel configuration

peak cloak
#

it's not the server is slow, because I get 20 mbps on the router on the same server

hollow marlin
#

Yeah I would just try it with link local

lean pebble
#

What is the command you used to test it

#

I'll test on my vps that works with he ipv6 to

peak cloak
#

iperf3 -c iperf.scottlinux.com -6

#

you could do it on a server closer to you

#

your vps is in Germany?

#

speedtest.wtnet.de

lean pebble
#

Yap

#

I'll try to both

#

For me your server is good

#

52mbit

#

Lowest it 14mbit

#

Can be better I have 1gb up/down

#

Let's test with closer server

#

The de server is too busy

peak cloak
#

you may have to wait and try again

lean pebble
#

Ya

peak cloak
#

there are 2 more in germany

#

speed.myloc.de

#

ping.netnik.de

lean pebble
#

Must better lowest 357mbit highest 541mbit

#

Myloc refused

#

You can take them down ๐Ÿ˜† they are not working the last two

#

Did you rebooted the pi?

primal ice
hollow marlin
#

Well its maybe worth opening a separate terminal and running top while testing. I can't imagine it being a bottleneck

peak cloak
#

so it's not switch

lean pebble
#

Nope it's not your end I guess

hollow marlin
peak cloak
#

but running the test on my router directly is fine

lean pebble
#

Ok

#

Reboot the pi