#⌨coders-cave
1 messages · Page 83 of 1
basically
i just run it
uvicorn app:app --host 0.0.0.0
and also
i just ssh to my rpi
im not coding on my device
i edit the files from remote server
this is fastapi yes?
yes
epic
hm yes
Nah
Oof
its oki i have backup
i was trying to resize the root filesystem
got it working now
hiiiiii
Me who codes scratch
atleast more fun lol
helping
First impressions
The guy at the mechanics inserted the internet cable while the computer was on so it just crashed
He also had a shit ton of problems installing an os so its either that both of us suck or that something aint right
Ok well i understand the warnings now
Arch is hard
And many problems came
Should be ok but still (also probably caused my first double fault on it so I feel proud)
Or just fault
First discord message from arch lookin good
arch isnt as complicated actually
downloading stuff is really simple
the only problem is compatibility
@floral bloom please read channel description
Hello
umm so I need some help with the linux file system
apparently my sda2 is full which is a ext4 mounted to...nothing???
its mounted to /
and its 100% used so I cant install anything
then we have sda3 another ext4 with 209gb of space mounted to home
but apparently its not because well I cant install anything on it...I guess
No you can't use template metaprogramming when the app is running, so any inputs into the Paramus have to be compile time constants, so you can't put in user input, for example.
It's restricted to literals and pre-initialized vars (int i = 35; const int c = 86; // etc)
Declaring at runtime is dumb
Add muskets
HELP i can get worlbox on mac when i click steam on the web it dosnt do anything
If i was going to make mods for worldbox would i have to write them in the same coding language as worldbox?
did you look at the context ?
wtf is that supposed to do
The OS is complete ?
Congrats
No
I havent even got a chance to work on it lately
I have changed to arch linux which as much as I love arch and its design may have been a mistake considering I know nothing about Linux's terminal or file system
Yes
unity
uhhhhhh
it does something, i guess
none of you know how long it took for me to install windows 10 diesel_cli
never doing it again on windows
what are you using diesel_cli for?
rust postgresql
the setup process is really straightforward
except i spent literal weeks trying to fix it
well
it's not like i did it every day
because it was extremely frustrating
🤔
Maybe
but it's too late to explore that now that i've actually got it working
still need to figure out frontend which is
mmmmmmmmmmmmmmmmmmm
Not really fun
what i have right now is very barebones, just html
with rust feeding data to pages
i wonder if i could get React working
yeah it's not hard
im just curious if you can mix react and rust
Probably gonna have to read docs of the crates im using for exchanging data
why do you even want to use rust
speed
What are you planning to create?
Well then it make sense
yeah
But why not just normal game with an engine

the scale isn't large enough to bother doing that xdd
easier to make a website than a game with proper networking and cheat prevention and everything
You don't really need those before the game starts growing but understandable
oh btw
i've screwed around with various rust game engines
uhhh
they're not good
just don't 
So rust isnt the best language for anything game or graphics
It can do those things sure
But its very annoying and its definitely not designed for that
I have tried like 3 Graphics APIs on rust including vulkano and gfx and all of them had awful design
Yeah
what?
also
the usual like
filesystem are
/dev/sda1 -> /boot
/dev/sda2 -> /
mounting a device to /home is eh
you probably want to reformat your partition
try df -h
and show me result
I deleted some pacman cache so I got some space back
but still something about this filesystem seems odd
also
when you install stuff through pacman or apt-get for other distros
do they go somewhere outside the home folder or inside the home folder where the command was run on
I'VE BEEN WAITING FOR THIS MOMENT
Look at this video and you'll surely understand it atleast a bit more
https://youtu.be/A3G-3hp88mo
FREE Linux Hacking Lab: https://bit.ly/3uAFUiz
💯💯Think you're smart?? Take the quiz: https://bit.ly/3fXv6ag (FREE)
Watch the entire series: http://bit.ly/linuxforhackers
*Sponsored by HTB Academy
Sign up for the Hacker Academy: https://bit.ly/3uAFUiz
Check out HackTheBox: https://bit.ly/3wJC...
Also, Linux for hackers by networkchuck is the best linux introduction YouTube series I've ever seen
first one
/home is for user files
for the rest of the filesystem are
/
like
/usr/lib
those are mounted on /
oh so its most likely going in /
thats bad
how will I fit everything on / when it only has 10gb
don't use
big
distro
or use musl based distro
also
your sda3 is fuckin
big
WHO THE HELL NEED THAT MUCH PARTITION FOR /home

you can like
backup /home
and then like
repartition your disk
basically resize sda2
to all the size
since /home is on /
/home will use the available size
id suggest use vm first
to play around
like qemu
So I actually decided to try to get a mechanic to install arch for me
o
and as soon as he said "This install was hard I had to type many commands"
I was like
"Oh fuck no"
but
why did they
use like
all the available size
for /home

10gb for arch isn't enough
They probably havent used linux alot so they thought I would install stuff there rather than use packages
imagine using linux expecting not to install packages
I mean idk the guy also installed the text interface version by mistake and complained about having to write to terminal
o
So...he wasnt a linux expert per say
downloading stuff via terminals is absolutely amazing
and terminals are great in general
not really
what's inside it
I got the pc yesterday so havent put much
a few pictures and an OS project from github
ye idc about the files all of them are either broken or useless
agreed
okay great
basically all you need now is
okay first
do cat /etc/fstab
i wanna know result
where is your /boot mounted at
there appears to be no sda1
it just works
interesting
thus is the full output?
thus?
how doss your machine even boots without a bootable partition
its a typi
I...
it goes straight to grub so I dont find any problems booting
yea that I have written those
They exist on sector 1...or sector 0 idr the base
and then run a few commands
no its sector 1 either heads or...actually this doesnt matter
uhh what does this mean danger wise
whats the chance I fuck everything up and a reinstall is needed
because I kinda dont have a usb nor a good mechanic
well
basically
remove partition 3
and resize the partition 2
to all available size
the chances you fuck up everything is low
because
Im pretty sure I have done that before but it was on windows and that does everything for you
/home will just be unmounted
o
ok I think I understand
so lets get to doing this I should probably search a tutorial or the wiki
wiki is always better
there's this
also
check
if you have
e2fsck resize2fs
two of this command
Ok writing from phone now but there is this thing
Where my entire pc crashes randomly
And I need to cold reboot
ah
what about your memory
is it enough?
try free -hw
(it shows your memory info and swap)
mine looks like this
Lemme get a pic
gives actually more info
try cfdisk /dev/sda
yes
also what will happen to my desktop when I remount...oh wait I dont delete the folder
right
nope
it just unmounts it
i suggest like
logging in to root
because it'll use /root
instead of /home
so it doesn't fuck everything up
where's your desktop stored at though
/home/alu/Desktop
xfce4
first off
try
sudo umount /home
if it fucked up
don't worry
you can reboot
it'll mount itself back
since its registered in /etc/fstab
ok Im actually learning about filesystems
/boot
will need those later
mhm
linux is better than windows he said as he suffers for days because of linux
ur a masochist or smthing
unmounting rn
oki
also like where should I be in the terminal in this
eh?
should I be outside of home
on root
don't be in /home
and i suggest using root user
because
its on /root
instead of /home
target is busy
nice
okay since that happens
is there a way you can run iso file
on your pc
so like
it doesn't boot arch
so nothing is mounted
I can't think of a way of doing this without a usb
Rei the linux specialist 
resize partition 3 to
8gb ish
or whatever to make your contents fit
in this case
5gb is enough
just navigate to the sda3
and resize
and put
5G
after that
resize sda2
and make it take all the available size
don't write yet
ok about to do this
okie
when you done
take a picture of the screen
make sure you don't frick up
like i did
and accidentally reformatted my whole disk
im more nervous than that time I shouted I will kill you in a dark street and someone responded
No way
yes way
Ok uhhh
what happened
Resized sda3 to 5G
Bruh someone responded to someone else saying "I will kill you" in a shady location.
There's no way, that's too perfect.
Got 208.1Gs free
usually cfdisk tries to take all available size
But sda2 limits to 10.....bytes
WHAT
Is a big number
wait what
What the hell?
No no wait
it is
Its not 10 bytes
Its 10alot of number bytes
of the terminal
o
Pics or it didn't happen.
dont touch sda1 the bootloader wont be happy
yes
see the
"type"
nav
press it
and look for
(83) Linux
idk why its for Linux Home
usually / is mounted as linux
either way
the type works for ext4
sk don't worry
you won't need to like
do shit
I cant seem to find 83
Phone is easier
Why cant this have a search bar damnit
Anyway uhh no just linux but I did find alot of linux types
jesus christ
hm
try changing it to Linux Filesystem
there's supposed this much
1 FAT12 24 NEC DOS 81 Minix / old Lin c1 DRDOS/sec (FAT-
2 XENIX root 39 Plan 9 82 Linux swap / So c4 DRDOS/sec (FAT-
3 XENIX usr 3c PartitionMagic 83 Linux c6 DRDOS/sec (FAT-
4 FAT16 <32M 40 Venix 80286 84 OS/2 hidden C: c7 Syrinx
5 Extended 41 PPC PReP Boot 85 Linux extended da Non-FS data
6 FAT16 42 SFS 86 NTFS volume set db CP/M / CTOS / .
7 HPFS/NTFS 4d QNX4.x 87 NTFS volume set de Dell Utility
8 AIX 4e QNX4.x 2nd part 88 Linux plein tex df BootIt
9 AIX bootable 4f QNX4.x 3rd part 8e Linux LVM e1 DOS access
a OS/2 Boot Manag 50 OnTrack DM 93 Amoeba e3 DOS R/O
b W95 FAT32 51 OnTrack DM6 Aux 94 Amoeba BBT e4 SpeedStor
c W95 FAT32 (LBA) 52 CP/M 9f BSD/OS eb BeOS fs
e W95 FAT16 (LBA) 53 OnTrack DM6 Aux a0 IBM Thinkpad hi ee GPT
f W95 Etendu (LBA 54 OnTrackDM6 a5 FreeBSD ef EFI (FAT-12/16/
10 OPUS 55 EZ-Drive a6 OpenBSD f0 Linux/PA-RISC b
11 Hidden FAT12 56 Golden Bow a7 NeXTSTEP f1 SpeedStor
12 Compaq diagnost 5c Priam Edisk a8 UFS Darwin f4 SpeedStor
14 Hidden FAT16 <3 61 SpeedStor a9 NetBSD f2 DOS secondary
16 Hidden FAT16 63 GNU HURD or Sys ab Amorce Darwin fb VMware VMFS
17 Hidden HPFS/NTF 64 Novell Netware b7 BSDI fs fc VMware VMKCORE
18 AST SmartSleep 65 Novell Netware b8 BSDI swap fd Linux raid auto
1b Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid fe LANstep
Ok changed it
To linux filesystem
There is still a maximum size
Also im guessing write would save changes and im also guessing that will fuck things up
yes
for noe just
quit
it won't save
and then redo
this time use 50gb
for the /dev/sda2
gpt sucks
its for uefi based boot
Wait before doing this
Shouldn't sda2 be linux home...wait why is it linux home
Its not even mounted to home
exactly
because
gpt partition table
the one used for windows
i guess the only way out here is
use an iso
for your pc
so you can do changes there
since sda won't be mounted
nothing is using it
hence not booting
Well im sure I can handle with 10 gb for a while
for this task
Until I get a usb which i break like the last 5
ew
Thats a really powerful comment
no
sad
broke the last one
How did you break 5 USBs?
after not knowing how to use grub
I do os dev stuff
And I dont know how to use grub
dont tell him that he can just reformat the USB
But thats hard(shut it) and I lost it
I tried that for like 5 minutes and gave up cuz the last usb was shit anyway
Makes sense.
the other 4 I lost after putting them in a backpack for 5 months
I may be the death of USBs but im the start of every USB company
i have 1
I mean, that's kinda true.
I get people rich
wait haydot
do you not have
literally anything
to boot from
other than your disk
and...other stuff to boot from...
big is it
I need to check what devices I have
I have only one USB stick which contents I'm never gonna change again as I'm scared it'll be hard to get win10 installation sticks made soon
ah
I'm never changing to win11 and I need windows for gaming
win11 is shit
win11 kinda sucks
exactly
Yeah Win11 is just Win10 but with new textures and slower performance.
and worse setting design
more bloated
and less developer tools
and spyware
I think
and more marketable
windows is basically now
"everyone can use except you can't edit the system because fuck you"
yep
You are trying to write to a folder you made in desktop? Where is your permission
lmao
its basically like android now
actually win11 is faster than win10 on the latest intel CPUs
I'm most likely gonna change to Linux whenever I find a reliable way to use epic games on Linux and a good alternative for visual studio as nothing beats it for C# from what I've seen
because of the schedular
I said reliable lol
thats good for 10% of the population
rider is actually very good
Linux has a version of Visual Studio Code.
sometimes its better
remove the "code" and then it doesnt
I know but I need Visual Studio 2019 for school
No it has vsc
i meant
just use Rider
jupe was talking about
VS is the IDE
vs
i use it sometimes
not vscode
lemme check it
Yeah I know now.
its better sometimes
ok also @main brook thanks for helping in these hard times 
I've never seen bad jetbrains development tool

I have GitHub student developer pack lol
i don't
:(
jupe gets all the cool shit
I gave them my school email
he got the adobe thing from school
i gave them my school email too
but
they reject me for not showing enough proof
iam a student
at my school I got suspended from using a computer without the teacher telling me to
what
use it
that's dumb
For me the process was, give them email, wait 2 days, get cool shit
Well I did kinda deserve it
atleast you're not a hacker or whatever
I flexed on the teacher the entire year about how good I am and how I make dangerous shit so she was like "Yea dont get close to the pc please"
lmao
Me and my friend kept joking about hacking the whole last school year in lower secondary school and no one gave a shit because we were friends with the IT guy in the school
we actually did MITM on our phones at school once
like attacked our phones
not do it to others
rebooting after doing something like this is always so scary
agree
try use a vm
use qemu
qemu uses custom
file location
so its not in /usr
except for its dependencies
and of course
binary
which is less
than like 500mb
what
I can hack (loads cmatrix)
Yes but
because stereotypes from movies
yep
so its extra dangerous hacking
what how
yea
there are many things you can do in cmatrix
slow down speed up
go upside down
@orchid frigate try installing qemu
already got it
NICE
We did stuff like scanning the school Network for open ports and stuff like that and actually reported possible vulnerabilities to the IT guy so no matter what we did no one cared
I use it like 90% of the time for testing
oh
that's nice
Thats nice
Now that I think about what I would do I kinda scare myself
sounds cooler than it is, we literally only found like 3 random web servers with something that looked like security camera stuff
If I find vulnerabilities at my school I would honestly probably test them before reporting
and they were open to the internet so we were just like yo this could be bad
"test"
lmao
lmao
why everyone so honest
Yea I dont enjoy my school alot sometimes
read kernel buffer failed
hmmm
lemme get my kernel knowledge all up in here
Yea I got nothing
havent coded in 3 weeks
I can barely make a working bootloader and thats the easiest part of an os suprisingly
HAYDOT GUESS WHAT
peaches
Tomato
Pretty sure I saw it yea
ok so I do same thing but with linux root thing
goddamnit its not there
delete sd2
oh
fuck
well i guess we'll keep it as home
okay so
delete sda2
and then add it
what
there's "delete" nav
yea I get that part but
Isnt sda2...root
yeah but
its at runtime
changes won't be saved until write
and then reboot
and it should also
be the default type
question before I do this
hm?
basically no
unless
you revert it manually
that max size is a pain in the ass
so
I can do that I will just have to take a screenshot of how its rn
yes
please
send it here too
when you write
it should tries to re read the partition table
which will fail
because
its not fully read
what about the now version
screenshot it too
the now as in like
the after
after I do everything
you recreate
ok
the sda2
ok so steps:
- delete sda2
- Create sda2
- Save it as....LInux filesystem type?
- Give it much memory
basically
delete sd2
create sda2
let it take default memory
which is usually all of them
and just
keep it as the default
type
screenshot it
don't write yet until we're ready
lemme slowly exit and reset everything
ok no changes made
Is there another tool for this
there's gparted
is it good
eh I have like 10Gs only available anyone so the pc isnt very useful anyone so lets have some fun
OH DAMN
nice ui
Wait it actually looks really good
wait why would it not fix the problem tho
it seems to have all the tools for resizing and stuff
here's a dumb question
exactly how bad of an idea is it to unmount sda2
if i can
or wait we are trying to do that...
file systems are amazing and terrible
I do have a laptop
But doing anything on it may result in a crash
its like kinda old and I cant reinstall windows to clean it
not because i cant but because its kinda like the home pc and...yea this explanation is useless
waiting
waiting
damn thats not much space
but anyway so the problem is this stupid limit
what if I try to set it to the limit
Lmao
well
looks like
all we can do
is switch the position
from fstab
and also the params
or not
basically
Ok im guessing this is like plan B type situation
So what will we gain from this
wait
switch
Oh
also
replace the pass to
and then
move the whole line
above
so it should be like
can you
paste the fstab
here
Im just thinking how insanely difficult it will be to create a file system on my own
i don't wanna write all that
Doing it
ok my brain died for a second there its fine im back
ok but like wdym by sending you the fstab do you mean like the same thing
because i kinda forgot or dont know what it is
ok brb im getting reports from discord
oki
I got like the cleanest screenshot ever it felt satisfying
also what is 0 1 and 0 2
and why are we replacing it
its the the order
for checking
the docs suggest
0 1
for /
and 0 2 for /home
also
haydot
as text
not image
Ok
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda2
UUID=957250ba-5ae7-42c4-b60d-3cc056b81600 / ext4 rw,relatime 0 1
# /dev/sda3
UUID=4d594db8-2314-46c7-bdb9-194c9f114605 /home ext4 rw,relatime 0 2
#swapfile
/swapfile none swap sw 0 0
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda2
UUID=957250ba-5ae7-42c4-b60d-3cc056b81600 /home ext4 rw,relatime 0 2
# /dev/sda3
UUID=4d594db8-2314-46c7-bdb9-194c9f114605 / ext4 rw,relatime 0 1
#swapfile
/swapfile none swap sw 0 0
try this
write to /etc/fstab
and then reboot
it will work
but i think
wait
this stuff looks spooky
Filesystems
sda3 to linux filesystem
Are the spookiest
i value my sanity
or, whatever is left
i accidentally
Please do
of my sanity
File systems destroy sanity
Sounds like a bad idea
Yea idea that is not the right word but my heart rate of doing this for the first time is like 300
Ok so the plan:
- Change fstab to your(e) version
- Reboot
not yet
Seems simple enough
change the types
cfdisk
sda2 -> linux home
sda3 -> linux filesystem
because linux home is for /home partition
linux filesystem is for /




