#unix

1 messages ยท Page 14 of 1

foggy laurel
#

Windows Developers 11

#

they would have to rebuild all their tooling

#

or just build a DE for Linux and call it a day

prime magnet
summer trail
#

Yes, Rapberry Pi is Linux, but Arduino isn't. Arduino devices don't run an OS at all. They're microcontrollers. The software you write for them is firmware that's executed as soon as the device boots up. On an Arduino, your software is the OS. There's no OS above your software managing it.

foggy laurel
prime magnet
#

basically port their corporate tooling

wise forge
#

Windows Subsystem for Linux ๐Ÿ˜

prime magnet
wise forge
fluid warren
wise forge
foggy laurel
#

I gave up on WIndows. It's just sitting on my old SSD that came with my computer

fluid warren
#

Windows doesn't deserve an ssd

foggy laurel
prime magnet
#

I havenยดt installed Windows since a friend gave me to try Debian on a CD (it was sarge, around 2002). I continue using it because companies force me to do it from their machines

fluid warren
#

A CD is wild

fickle granite
#

CD's are luxury! Why, in my day, we had to install the operating system from punched paper tape!

You try telling that to today's youth, and they won't believe you!

fluid warren
#

That's insane

#

I only knew about like having to use 15 floppy disks

fickle granite
fluid warren
#

A bootable USB must be magic to you

prime magnet
fickle granite
#

I'd say "there's something sticking out of the edge of your weird folding drinks tray"

#

and "why does your drinks try have a keyboard"

tribal finch
#

Just a point of clarity - the /bin vs /usr/bin divide was never about commonality. It had to do with partitioning, in the dark ages when disks were tiny and slow - you would partition the faster parts of the disk and put the booting and core binaries there. Other stuff would be on other partitions, or not even on a disk at all, maybe some other storage medium

tribal finch
#

Iโ€™m not sure by what objective metrics one can say that

  • full linux kernel
  • can run systemd
  • can run GUI applications
  • can run DEs
  • paravirtualized so it fairly performant
  • transparent and seamless integration with windows
  • installation is as simple as wsl --install
prime magnet
#

if you measure it by the capacity of having Linux inside Windows, then it's great. But it's like watching a bad movie that describes a good movie. I'm still forced to the rest of the things I don't like. Probably this is more a complain to my company directives than WSL.

tribal finch
#

If i measure by the ability to be linux or do linux things, itโ€™s pretty great too ;)

prime magnet
# tribal finch If i measure by the ability to be linux or do linux things, itโ€™s pretty great to...

I'm not sure. I wanted this (and it was not as easy as wsl --install) : Since I prefer Linux desktops, and since my company has a corporate VPN software, I wanted to use my Windows laptop as proxy using WSL, a linux thing right?, I tried hard using X11, VNC, but it was really really hard, most of the guides require somewhat skills and still it didn't work. Actually it worked when I tunneled ssh but it was too slow. I will continue using WSL because that's the best I can get at the moment, I do wish WSL continue growing and include more and more features. I remember WSL 1 was really hard to setup Docker, now it is easier. Perhaps version 3 will allow UI interfaces to run smoothly so I can focus on the good movie and forget the bad movie ๐Ÿ™‚

tribal finch
#

wsl --install it should be these days Thinking

#

I tried hard using X11, VNC, but it was really really hard, most of the guides require somewhat skills and still it didn't work
can you elaboriate? Were you trying to run an X11 application locally, or forwarding it from a remote system?

prime magnet
tribal finch
#

oh, that's a little complicated, lol.

#

might have been better to just use a local desktop + SOCKS proxy

prime magnet
tribal finch
#

Yup

prime magnet
#

I would need to see if I can access to WSL via LAN. Thanks for the suggestion ๐Ÿ™‚

tribal finch
#

Good luck!

rotund girder
prime magnet
rotund girder
#

Everything on windows is so sloooow. Microsoft Teams made a big event about their launching time going down to something like 8 seconds. It's a chat client!..

fluid warren
fickle granite
#

corporate virus checker maybe

#

Maybe they expect you to launch it once when you log in, and leave it running

fluid warren
#

I mean ffs most users still think there's a risk in shutting your pc down with the button

rotund girder
scarlet lynx
#

Hi, im looking for help compiling python 3.12 on Rh7 / CentOS7 does anyone had expereince with that? Please ping me

scarlet pivot
#

@main olive hello brother

fickle granite
#

@scarlet lynx not directly, but I've done it on Debian. You almost certainly want to check out pyenv or uv, since those know how to build from source on various platforms

twin karma
#

I want to use qubes with devpod. Particularly for a webdev IDE + web browser. Is this possible and/or advisable

#

Building on windows and/or lubuntu, but devpod so maybe build in qubes when set-up

clever phoenix
#

Anyone think they can help

Im on windows 10 and when ever i launch a game after like 1-2 minutes both my monitors go black and the audio is cut off but my pc is still on? Any fixes? no idea if this is related to this channel either

rotund girder
#

I would try to monitor used cpu and used memory while the game is running.

Does this happen even if the game is not in full screen mode?

#

And no, this is not a windows channel, but also, there is no windows channel here I would assume ๐Ÿซ 

You can try Linux instead ๐Ÿ˜‰

formal pasture
#

Hi! Does anyone know if a daemon process does not appear in launchctl list on MacOS, does it mean that it, in fact, is not a daemon?

clever phoenix
#

Holy shit right as I said that

#

It stopped

spark mulch
nimble socket
undone idol
#

Can I stop making virtual environment everytime I have to run jupyter, python3 and other commands in the new Ubuntu 24.04 ?

lapis cloud
#

Generally speaking you'd only make one venv (per project, etc), not one every time you want to run something. But otherwise, uhh, I guess you can use pyenv instances instead of virtualvenvs.

undone idol
lapis cloud
#

Not besides their docs, no

twin karma
rotund girder
#

I heard you like containers, so I put a Snap in your Flatpak in your Appimage.

primal crown
#

Install snackfak.app

scarlet lynx
meager elm
#

I'm trying to find an alternative library to xinput-python that works in Linux. My mail goal is to get a library that I can use in Blender to control animations with an xbox controller. Found this addon, but it only supports windows. Anyone know of any decent alternatives? Sorry if this is the wrong channel for this sort of question.

wise forge
#

perhaps u will find what u seek

meager elm
ionic birch
#

does anyone know tkinter??

rigid nacelle
#

what you guys think is more configurable from an user's point of view? Arch or gentoo?

#

for example, if I wanted to add a keyboard shortcut at system level, would it be possible without actually recompiling the kernel in any of them or not?

final island
rigid nacelle
barren temple
#

My Linux doesnt boot. Cant access bios either. Even motherboard led doesnt light up. Linux sucks.

primal crown
barren temple
#

Ik. But it was Powered By Linux. Now it isnt. ๐Ÿ˜…

slim mason
barren temple
#

I think the psu is goner

#

Goes into warranty. Piece of shit power if it broke this soon

slim mason
#

You could check if it is running using a multitester

#

Check the voltage

#

But don't fry yourself on the
12 volt DC
Haha

fickle granite
formal pasture
#

Hey! Does anyone know if path.getctime is faster then open(file)?

formal pasture
#

And whether path.getctime is less taxing then opening a file?

astral grove
#

it should be. But the only way to find out for sure is to test/benchmark :)

fickle granite
#

that is always the answer to questions like "is X faster than Y"

slim mason
#

It always depends on how you want to use it

barren temple
#

I was about to start taking off cables from the back of the thing. I took out usb-keyboard, and wroom it goes. ๐Ÿ˜ฎ

#

wasn't psu. My keyboard ate all the electrons

#

I wonder if my keyboard is linux powered. I could blame that.

barren temple
#

I was like... Okkay. This is possible also.

opal lynx
#

hey guys. how do you think, is it bad practice to write bash scripts like that:

SCRIPT_DIR=$(dirname "$(realpath "$0")")
cd "$SCRIPT_DIR"
... do work

the idea is to make script's directory the working directory
i often do that because i prefer to rely on script's context, for me it's cleaner, but i always feel like i'm doing it just wrong way..

final island
#

dir=~/.local/share/magazine
and then
cat "$dir/a" for example

#

but that's more of a personal preference

final island
spark mulch
opal lynx
opal lynx
#

i think i like this way because of this is like python scripts work. when you run the script, it's working dir is location of the script

final island
#

never noticed that

opal lynx
#

bash and python work same

fickle granite
#

and yet every newbie on the planet assumes it works that way, leading to zillions of questions like "why can't my script open that file; it's RIGHT THERE

final island
final island
#

I just happened to get used to it and make use of it

#

but the other way around would be more intuitive definitely (while I'm not saying it would be better)

fickle granite
#

I would like to propose that the "can't find file" exception include the current directory, to help newbies; but I assume that making a proposal to the core python team would take an insane amount of effort

spark mulch
fickle granite
#

huh; what is "python-ideas"?

fickle granite
# spark mulch Mostly looking up if it was proposed before, and then post on python-ideas.
unique tundra
#

Anyone develops with Pytorch/Tensforflow in Python using Fedora?

#

I think I had come a fine installation of the necessary nvidia drivers for the gpu accelerated Pytorch version. However.. from time to time I get this
KeyboardInterrupt
The X11 connection broke: No error (code 0)
XIO: fatal IO error 0 (Success) on X server ":0"
after 2029 requests (2029 known processed) with 0 events remaining.

I haven't gotten much online, could this be a gpu problem?

torn geyser
#

I think it might be good to use || exit or similar here.

#

And a if [[ -z "${var}" ]]; then ... for checking empty stdout, probably.

shrewd stratus
#

perhaps a check for $var being / would be helpful instead

torn geyser
#

Mm. dirname is expected to always print something if successful, even with --help.

#

So, might be vacous here.

lethal hill
#

How can I install pygtk2 for python2? I've tried using pip2, python2 -m pip, and so on and nothing worked. FWIW I use Fedora 41

fickle granite
#

I don't know, but you should think about why you want to install anything for python2. It's very old and unsupported.

lethal hill
fickle granite
#

again, I'd think about using that software at all; who knows what vulnerabilities it has

lapis cloud
lethal hill
lethal hill
lapis cloud
#

it's just called pip. of course, make sure first it refers to the python2 one

#

depending on the distribution you might not even have python2 installed - a lot of distros these days ship only with python3, don't know about fedora.

#

in which case you'd want to install pyenv* and install python2 using it
* not the only way, of course, but it's the one I prefer since it doesn't involve any changes to the global python installation

lethal hill
fickle granite
lapis cloud
#

and the changelog for these new versions mentions "Fix day-of-week for changelog entry 3.11.3-1.", so (ah, that's not a python version, nevermind) maybe someone already ported it

#

oh dear, I think it predates setup.py. how do I even install or launch this

lapis cloud
#

in fact it seems to need python3, I think, because I can't run ./configure with python2

#

@lethal hill it launches at least. Here's what to do:

  • grab solfege_3.23.4.orig.tar.gz from https://launchpad.net/ubuntu/plucky/+source/solfege
  • use an old python3 version (I used 3.9 and it worked, but I suspect it'd be better to use something even older like 3.6 if you can install it)
  • run ./configure in the source code folder. Install dependencies until it stops screaming at you (in my case, texinfo).
  • run make. Install dependencies until it stops screaming at you (in my case pip install PyGObject)
  • run as python ./solfege.py.
    That's enough to make it launch. I seem to be missing some programs like timidity for it to actually play sounds, which I don't want to install.
noble ingot
#

Hello

#

I want to setup python on nvim but I don't know which lsp to choose

rotund girder
final island
#

yep, two lsps at once

rotund girder
final island
noble ingot
#

What is the difference between basedpyright and regular pyright?

#

Also, I'm not sure how to configure the lsp correctly, I get many errors in snippets that are fine with pycharm and vscode

#

Mostly related to type validation

#

I wish I could find which parameters are used by default by pylance

astral grove
#

though that's not directly related to pylsp

astral grove
#

though idk if it's even possible to do that with pylance, I wanted to check some things with it but when I didn't find any obvious ways to run it in CLI I gave up

#

all repos I contribute to use mypy or pyright

carmine hazel
#

I uSe ArCh bTw

stark sleet
#

Hi guys, i need a help with a project i have in my mind , i was hoping someone could help

#

Please dm , i just want to know a roadmap of creating a linux distribution

foggy laurel
#

Just be aware it requires hours if not days of compiling software

fluid warren
foggy laurel
fluid warren
#

id honestly suggest a bare gentoo if you really want to make a distro

foggy laurel
#

They said they wanted to make a distro, and lfs can give you an idea of how the process would go, you still need to maintain packages and stuff like that unless you're basing off another distro

fluid warren
#

gentoo gives almost the exact same learning without manually running every single command

#

and you can use binaries if you dont want to spend 3 hours compiling the kernel

#

and it has a godly PM so you dont need to worry about dep conflicts

#

you can really go in any direction off a fresh gentoo install and make your own distro

#

chromeOS for example

late marsh
#

is anyone online here

#

?

fickle granite
#

nobody here but us zombie processes

tawdry fjord
#

Real

woeful blaze
#

im installing linux mint with balena and keep getting the error "unable to spawn child processes"

misty spindle
#

hi,
despite using chmod 600 ec2-key-pair,
keep receiving this error:

Load key "ec2-key-pair": error in libcrypto
ec2-user@10.0.4.35: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
fickle granite
#

perhaps the folder its in, or one of the parent folders, isn't readable and executable

#

try "strace"

rotund girder
#

In a project, say you have ~6 commands related to building/testing, how would you setup scripts to run this?

Hierarchy of Makefiles? Shellscripts? Combination? I'm thinking I would like something alike:

$ make generate
$ make generate2
$ make compile
$ make lint1
$ make lint2
$ make configure
$ make test_performance
$ make test_random_style_a
$ make test_random_style_b
$ make test_unittests 
shrewd stratus
#

instead of making an hierarchy of Makefiles (which would be unnecessarily complicated), perhaps look into Makefile's (or any other build/task system's) feature for task dependencies

#

@rotund girder, ^

rotund girder
shrewd stratus
rotund girder
rotund girder
#

Some are 5 lines of bashscript, which I know better than makefile syntax. So I'm a bit afraid of tripping over makefile string handling ๐Ÿ™ˆ

fickle granite
#

I started with a single bash script

#

it got more and more complex

#

eventually I replaced it with a justfile. Yes, it's an extra dependency; but it works very nicely

rotund girder
#

Yes thanks, just is the only option I know about that I might wanna use. Introducing new dependencies is not ideal though. So gotta weigh pros and cons ๐Ÿ‘

fickle granite
rotund girder
#

It's nice to get targets and therefore automatic completion in command line

fickle granite
#

that is my justfile

rotund girder
#

It's just a file. ๐Ÿง 

fickle granite
#

indeed

#

as is most software

rotund girder
#

What difference does [script('bash')] do?

rotund girder
fickle granite
#

as are most nerds ๐Ÿคฃ

fickle granite
rotund girder
#

Ah, so as soon as I want more than one line I need a script tag ๐Ÿ‘

fickle granite
#

yep

#

it's a pretty nice system. It's actively maintained and improved, docs are pretty good, fairly portable

rotund girder
#

Yeah, I think I found just too early last time. I was interested but a colleague at work said "why?" and I couldn't motivate it.

fickle granite
#

I rarely have to touch my justfile any more; but if I were still using a pile of shell functions, I bet I'd still be fiddling with them

rotund girder
#

I think there is a use case now.

Might be suitable for a team learning session.

rotund girder
fickle granite
#

I guess the latter.

#

I think the real benefit I'm getting from the justfile is the simple list of dependencies for each recipe. You'd think that'd be easy enough to do with shell functions, but for some reason I was always getting those wrong.

rotund girder
fickle granite
#

also, of course, new toys are kewl

finite shard
#

am new to linux i thought wsl will be the gateWay to explore but programs taking too much time to download most of my house i am just downloading packages that are roughly of some Mbs are talking house to download i search youtube , web all soulutions are graphical that includes changing mirror but since am on wsl2 on windows i have to deal with terminal so kinda take a look and guide me as am someone who's just getting started and it's already too frustrating

#

any Unix/Linux expert here

#

?

fickle granite
#

I didn't quite understand what you said, but it seems your downloads are too slow. Are you running "apt"?

wise forge
finite shard
#

but problem is with WSL 2 only

#

tired of reading threads on internet , watching youtube finally ended up here

finite shard
wise forge
finite shard
#

india , and not using vpn

wise forge
#

there are two choices for the problem

#
  1. wsl2 is not having proper drivers installed for network
#
  1. it is smth windows specific my memory flashes smth abou tit
wise forge
wise forge
# finite shard thankyou sir lemme try there

On my part i can advice taking USB, making Live USB installer out of it for Ubuntu. (with Rufus or smth)
Launching it in "Preview" mod (booting from usb) without installation and for fun checking internet speed in this way. You can preview ubuntu usage in an almost full way without its installing

That could help narrowing down source of issue
If internet slow speed will be present => than issue is installing Internet drivers specific to your thing for Linux
if it will be not present => then smth windows specific to wsl2

finite shard
#

sir i just tested internet speed with speedtest cli , internet speeds are fine same as windows but installing packages through apt is troubling me

#

that is taking for ever some packages in kilobytes also taking so much time downloading

#

i installed WSL to increase productivity but rather it is slowing me down

wise forge
wise forge
fickle granite
#

I wonder if BatMan's /etc/apt/sources.list points to servers that are "far away"

fickle granite
#

not sure. First you'd want to see if that's really the problem.

#

Can you paste that file here?

finite shard
#

wait

#

command not found

fickle granite
#

type cat /etc/apt/sources.list; paste the output

#

!code

shy yokeBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

finite shard
#

Ubuntu sources have moved to the /etc/apt/sources.list.d/ubuntu.sources

file, which uses the deb822 format. Use deb822-formatted .sources files

to manage package sources in the /etc/apt/sources.list.d/ directory.

See the sources.list(5) manual page for details.

fickle granite
#

hmm

finite shard
#

should i just reinstall wsl 2?

#

or other distro?

wise forge
#

probably the first one

fickle granite
#

could be; I don't know how to fix either of those

finite shard
#

i think problem is with mirrors

#

as i was watching yt videos

#

they were changing mirrors graphically

#

and speeds increases but i don't know how to do that from terminal

#

no information bout this on web

fickle granite
#

do ls -l /etc/apt/sources.list.d/ubuntu.sources; paste the output

wise forge
#

Or actually try all recipes from this Github issue ๐Ÿ˜„ it has multiple ones

finite shard
#

Thank you sir i should try everything if nothing works i will just install another distro

fickle granite
#

I doubt that will help

pliant storm
#

ubuntu is more windows than linux

frosty gazelle
worn shore
#

Any libraries that can control fan speeds on linux? Im reading rpms and temps with psutils but as far as I can tell there isnt any fan control libs

shut pivot
night night
#

Why canโ€™t you dereference twice in one instruction in NASM?

buoyant siren
#

!pban 1301386861004062741 spam

shy yokeBOT
#

:incoming_envelope: :ok_hand: applied ban to @river rampart permanently.

tribal finch
wise forge
tribal finch
#

Haha, yeah :)

rotund girder
wise forge
#

i don't wish to quit my job, despite it being heavily python one

#

not the best time to change it

#

and the current job has many advantages regarding their coding workflow standards

#

not wishing to downgrade myself to lower stuff. in this situation usage of python i see as acceptable evil

steep ingot
#

how do i handle interruputs with gpio rise/fall?

fickle granite
#

please delete all but one of the copies of this message

feral fiber
# steep ingot https://github.com/desultory/sys_gpio/blob/main/src/sys_gpio/pin.py

If you need to deal with hardware interrupts then Python may be not the most appropriate language. Interrupt routines are supposed to be as fast as possible to avoid hijacking hardware resources as much as possible. Running complex code from within interrupts is prone to (though not limited to) crash the entire system. If your system is fast enough you could poll hardware interrupt flags instead but with scripted languages there's no guarantee the code never misses an event.

Compiled languages such as C/C++, Rust (just to name a few) are more appropriate. However handling interrupts requires extreme care as to avoid corrupting the entire application and often requires a different programming approach. I'd strongly recommend learning about the context of hardware interrupts and their implications, as well as how to write efficient interrupt handlers first.

steep ingot
#

i think it's fine, i've been running that code for several days now for testing and it does what it needs

feral fiber
#

Could you share the piece of code that you're talking about (which "works")?

#

And no, it's not fine to run an interpreter inside an interrupt. But without seeing the actual code, it's impossible to tell whether it does what you think it does the way you think it does, too.

steep ingot
#

i sent the code lol

shy yokeBOT
#

src/sys_gpio/pin.py lines 109 to 115

def poll_value(self, timeout=5):
    """Polls the value of the pin"""
    from select import select

    with open(self.pin_path / "value", "rb") as f:
        f.read()
        readable, _, exceptional = select([], [], [f], timeout)```
steep ingot
#

it literally just does that

muted iris
#

Hello, interested about your opinions / habits for your dev environment. Wich OS / tools do you use and why ?

steep ingot
muted iris
# steep ingot

Do you advice Gentoo ? What make you choose this distribution ? Pros, maybe cons ?

steep ingot
#

it's excellent as a "development environment"

#

esp if you're already compiling all of your own stuff

#

you don't have to compile tho

heady heath
#

I use arch btw!

#

.

fickle granite
#

Let me guess -- do you use Arch? ๐Ÿค”

plush oasis
#

Anyone have any good sources for learning about setting up custom operating systems based off linux?
Such as raspbian

steep ingot
#

making one?

#

or using one?

plush oasis
steep ingot
#

i mean the point of gentoo is kinda sorta to make your own distro

feral fiber
# steep ingot i sent the code lol

The reason I asked is I don't see where interrupts are used in that code, which brings me to wonder if you are familiar with interrupts and how to handle them.

#

(Unless I missed something of course)

#

Anyway, I don't think I'll be reviewing hundreds of lines of code here.

#

Besides, like I said, scripting is one of the poorest choice to handle interrupts. You definitely want to stay away from that kind of implementation.

#

(Assuming what you're asking for is even possible)

barren temple
#

@plush oasis There is or was such a book as LFS (Linux From Scratch)

steep ingot
#

it literally just uses "select" to wait until it gets an interrput from a file

#

and continues

#

you've typed more than the portion of code you would need to review

#

but as i have said, it does not do anything "in the interrupt" it just waits for the interrupt and contineus

#

it's to check if a pin goes low during a period to know if it's ready to transmit

steep ingot
#

the code, again (colored this time)

#

it just runs "select" to block for abit

#

nothing to it

feral fiber
steep ingot
#

you're on a soapbox saying not to use python, in a python server

#

it's a bit out of place don't you think?

#

also if you want to get technical, that is really only like 3 lines of code

feral fiber
#

Oh, ok, then. My bad. Please use Python for anything you want. Sorry for the noise.

steep ingot
#

it works fine, in the 3 days you've been saying interrupts are somehow dangerous/bad in python, i've been using them and my code works more or less flawlessly, i get 2 transmissions/second and 1tx error out of every ~5k transmissions over LoRa in a population dense area, that is more than i need

feral fiber
#

Just being sarcastic.

FTR, no, being on a Python server doesn't mean your question is legit nor that the language necessarily is the best (let alone even remotely applicable). You're just expecting asking people with experience to confirm your own biases instead of guiding you towards a better implementation.

steep ingot
#

lol i proved python is applicable here

#

it works

#

you're telling me an interrput is somehow wrong and even possibly dangerous

#

i sent the code, please tell me how that may be dangerous

#

why would "select" be in the python stdlib if using it in a basic case can end horribly?

steep ingot
#

i think you're talking out your ass tbh, sounds like normal "python bad" drivel, and you asked to look at my code and now refuse to comment on 3 lines of code

#

it's literally made for this you clown lol

quiet seal
#

Manjaro is based from arch linux...

quiet seal
# fair pike okay

one of the cool things about linux is package managers you can install applications with a single command...

#

like sudo apt-get install vlc

fair pike
#

ph

#

oh

quiet seal
#

on debian based systems....

fair pike
#

is 115 gb usb stick enough

#

16gb ram rtx3050 amd ryzen 5500

quiet seal
#

of course there's also the GUI interface to the package manager

#

yeah you're fine. write mx linux to that usb stick and test it out. you don't have to install it

#

watch a youtube video on how to do it or read up on it...

fair pike
#

whats wrong with Ubuntu

quiet seal
#

Ubuntu has a special place in my heart as my first foray into linux was with Ubuntu 10.10...

#

but to me personally their Desktop Environment sucks

fair pike
#

wdym

quiet seal
#

try mx linux and debian and you will see. with VenToy you can put multiple distros on a single usb stick

#

Ventoy is an open source tool to create bootable USB drive for ISO files. With ventoy, you don't need to format the disk again and again, you just need to copy the iso file to the USB drive and boot it.

fair pike
#

oh okay

quiet seal
#

use ventoy and go 'distro hopping'! happy trails!

fair pike
#

i can go into bios and change startup

quiet seal
#

yeah you'll need to press the keyboard KEY to bring up the boot menu and select the usb stick instead of your hdd

#

i'll hang around and help you out if you need it

fair pike
#

Fedora whats good about that

quiet seal
#

read their page... Fedora is bleeding edge kinda....

fair pike
fair pike
quiet seal
#

bleeding edge refers to having the latest versions of the software

#

not necessarily stable....

fair pike
#

oh

#

why do the icons look so bad on linux can i change it

quiet seal
#

kinda like how there's nightly versions of software

#

it's bleeding edge...

quiet seal
#

so we have ubuntu, fedora, and mx linux....

#

that's 3 distros

#

with ventoy you can put all three of them on the usb stick as an ISO and choose which one you want to boot into

fair pike
#

looks nice

quiet seal
#

step 1: download ventoy and put it on the usb stick

fair pike
#

aight

#

cant i use bios to do that

quiet seal
#

after ventoy installs to the usb stick there will be a usb folder in windows that you can put the linux ISO's in

quiet seal
fair pike
#

okay

#

which one

quiet seal
#

Ventoy is an open source tool to create bootable USB drive for ISO files. With ventoy, you don't need to format the disk again and again, you just need to copy the iso file to the USB drive and boot it.

fair pike
#

done

quiet seal
#

MAKE SURE YOU SELECT THE USB STICK!

fair pike
#

aight

quiet seal
#

yup, that looks like the usb stick

fair pike
quiet seal
#

hahaha

#

now you should see a folder on the usb in the file manager. download and put the isos inside it

fair pike
#

is ventroy even safe

quiet seal
fair pike
quiet seal
# fair pike

how much free space does it say you have in that folder?

fair pike
quiet seal
#

that's the one

#

put the downloaded iso's in that folder

fair pike
#

for the os?

quiet seal
#

yeah

fair pike
#

will it use my ssd storage?

quiet seal
fair pike
#

okay

quiet seal
#

we aren't installing, just test-driving

fair pike
#

i wanna try ubuntu

fair pike
#

long run

quiet seal
fair pike
#

wdym

quiet seal
#

i would wait on installation though. there's things to consider beforehand

fair pike
#

I thought am installing the OS whilst keeping windows

quiet seal
#

also you need somewhere to install it. I'm guessing windows has your entire hdd taken up

#

so then there's the question... do you have another hdd/partition to install linux to?

fair pike
#

No clue

quiet seal
#

we can get into that later. don't you wanna take it for a spin first? a test-drive is a no commital action...

fair pike
#

for test drive

#

isnt that the same as installing

#

because you have to run it

quiet seal
fair pike
#

yeah and store data on the USB stick

#

thats what i want to do

#

and leave windows as my main os

#

i can give it some of my storage from ssd which i dont mind

quiet seal
#

from that screenshot you've shown above you would need to resize C:\ so that you can install it and dual-boot. Persistant USB kinda sucks....

#

you can use GParted to resize C:\

fair pike
#

this stuffs long af

quiet seal
#

from within MX Linux....

quiet seal
fair pike
#

setting it up

#

how much storage would be needed

quiet seal
#

i mean you have plenty. you could give it 250GB

#

or 500GB

fair pike
#

thats so much

#

im not gonna be using it alot

quiet seal
#

i'm trying to tell you that you can just test it out without commiting

#

hell you can mount your C:\ partition if you wanna save something to it while testing

fair pike
#

cant i save on usb?

#

like make usb its own os with storage

quiet seal
#

setting that up is another can-o-worms

#

but yes it can be done

#

let me find the relevant documentation on that.....

fair pike
#

I can give it around 20 gb for storage

#

i dont store alot

#

i just want it for customization

quiet seal
#

see the purple? that could be your partition to save stuff to....

fair pike
#

if i install

#

can i delete it all

#

and get ALL of my storage back including usb

#

i wanna install it

#

real thing

quiet seal
#

i don't reccomend installing to the usb stick

#

do you have another usb stick lying around?

#

you could install it onto that

#

i gotta cook some food

#

be back in a few

fair pike
#

okay

#

ping me

#

i installed it what nexr

quiet seal
#

@fair pike progress?

steep ingot
#

hmm

#

i can't get unshare to behave

#

unshare(CLONE_NEWNS | CLONE_NEWUSER) doesn't let me make mounts

steep ingot
#

nvm

opal barn
#

Linux is probs more laggy

#

And this stuff is long

#

Uninstalling the os is long aswell

quiet seal
#

Did you plug the USB into a usb3 port?

fair pike
fair pike
fair pike
quiet seal
#

Anything is possible by mistake

#

Stick to windows lol

fair pike
#

hm

fair pike
#

How much storage does it require

main olive
#

@fair pike hey how you doing

fair pike
#

good wbu

main olive
#

could you explain me what do you need help with?

fair pike
#

i got questions before installing

main olive
#

yes

#

go head

fair pike
#

How much storage does it require

#

Arch linux

main olive
fair pike
#

wdym

main olive
#

What do you want?
Do you want to use linux only or linux with windows?

fair pike
#

linux with windows

#

I wanna use windows too

#

switch between them

main olive
#

That's called dual booting

fair pike
#

oh

#

How much storage will it take

main olive
#

How much do you have?

fair pike
#

How hard will it be to install and comepletly delete it

fair pike
main olive
#

And what type of storage it is?

fair pike
#

SSD

main olive
#

Good

#

You need create two partition of the 1tb

fair pike
#

will i be later to uninstall it

main olive
#

Prior to booting

main olive
fair pike
#

yea

main olive
#

Yes

fair pike
#

How hard is it to setup

#

and will it be even smooth

#

than windows

main olive
#

On scale of 1 to 10 around 7

fair pike
#

damn

main olive
fair pike
#

linux looks better

odd plover
fair pike
#

Arch linux

#

Idk which one to go with

odd plover
#

I do not recommend Arch for a beginner, at all.

#

Nor do the Arch developers.

main olive
fair pike
#

I want the most control

#

I mean we can learn on the way

main olive
#

He want most control

#

and arch is intended for the same purpose

fair pike
#

Will i be able to make it look good

main olive
#

yes you will

#

You can use what every you like

#

like gnome or kde

fair pike
#

I just want a clean aethetic look thats smooth

odd plover
fair pike
#

i got 16gb ram rtx 3050 amd ryzen 5500

main olive
fair pike
odd plover
main olive
fair pike
#

Lets try it out

main olive
#

But its safer to dual boot just incase

fair pike
#

yeah

#

I wanna dual boot

#

Im keeping windows

main olive
#

So do you have usb?

fair pike
#

yeah

#

115

main olive
#

is it type 3?

fair pike
#

yeah

#

supports 3.1

main olive
#

Good

#

So you have any idea how to download iso and flash it?

#

Or completely new to linux?

fair pike
#

Complety new to linux

#

I have sued

#

used

#

kali

fair pike
#

then boot into bios

#

and launch into the usb

quiet drift
#

Pop!_OS btw

fair pike
main olive
#

@fair pike here's the difference

fair pike
#

?

main olive
#

Arch has to be configured

fair pike
#

yeah ive seen it

odd plover
# fair pike whats that

it's a user-friendly distro developed on top of Ubuntu by System 76, a company that sells Linux hardware.

fair pike
#

oh

main olive
#

ubuntu is ready made for beginner

fair pike
#

Imma stick to windows i cant lie

#

Imma take some time and decide

main olive
quiet drift
#

@fair pike you have backed up the files you care about though, right?

main olive
#

I mean if you can configure it go with arch

#

Else use kido(beginner friendly) distro

fair pike
#

All i got is some games chrome and apps

#

vsc python node etc

main olive
#

Okay here's thing

#

what distor you want to use?

fair pike
#

Imma stick to windows

#

for now

main olive
#

A bro why ?

fair pike
#

No clue

main olive
#

have some guts and try linux

fair pike
#

I wanted linux because i think its smoother and looks better

fair pike
#

Less distractions when studying ig

main olive
#

Yes

fair pike
#

less apps

main olive
#

Okay

#

@fair pike So I would recommend you to use manjaro linux

#

its based on arch

fair pike
#

wdym

main olive
#

but easy to setup and install

fair pike
#

so its arch but its easy to setup

main olive
#

And its pre configured

fair pike
#

has everything of arch but setup is easy

main olive
#

so don't have to configure one

main olive
fair pike
#

lets try it out

main olive
#

You can change those things later on

fair pike
#

if i dont like it i can uninstall anyways

main olive
#

if you want to

fair pike
#

lets go

main olive
#

Install manjaro linux?

fair pike
#

yeah

main olive
#

Make sure to create partition before

fair pike
#

tell me how to

#

which one

main olive
#

Heres the things

fair pike
#

?

main olive
#

Kde , gnome ,..
These are environment (GUI in simple terms)

#

So its all about preference

fair pike
#

oh

main olive
#

Search kde and gnome , etc and look at Ui

fair pike
#

aight

main olive
#

Which you prefer go with it

#

They have different animations , controls, etc

fair pike
#

which ones the most customizable

main olive
#

So its not just look but experience

fair pike
#

I want it smoot af

main olive
#

Gnome is good but I personally like kde

fair pike
#

can i do something like this with kde

main olive
fair pike
#

lets go with kde

main olive
#

But gnome is different and kde is different

main olive
fair pike
#

yeah

#

Imma try kde

main olive
#

I suppose you want gnome?

fair pike
#

kde

odd plover
# fair pike can i do something like this with kde

if you already have a GNOME customization tutorial that you like I don't see why you wouldn't just install GNOME and follow the instructions though.
like it is possible to replicate (approximately) that look in KDE, but you already have a source for doing it in GNOME.

main olive
#

Either of them can be customized

main olive
#

Go ahead and install it and flash it

fair pike
#

i got kde ones too

main olive
#

Great

#

@fair pike Have you created partition?

#

For linux?

fair pike
#

Nope

main olive
#

Do you know how to do so?

fair pike
#

no

#

So basically

odd plover
#

You can create and resize partitions in the installer. That's what I generally prefer to do rather than messing with it from Windows (which can't read or recognize Linux filesystems).

fair pike
#

I dont download alot of files or save them its mostly apps

#

i would just do like 50gb

#

more than enough

fair pike
#

whats a safe option

#

50gb

main olive
#

During installation setup

#

When you reach partition :
Choose : Create or Resize Partitions (Manual Partitioning)

fair pike
#

okay

#

Do you guys regret switching from windows to linux

main olive
#

Cause I use both

fair pike
#

oh damn

main olive
#

Create New Partitions

Root (/):
Filesystem: ext4 (recommended).
Size: At least 20 GB (more is better).
Mount point: /.
Swap (optional):
Size: Equal to your RAM size (or up to 8 GB).
Type: Swap.
Home (/home):
Filesystem: ext4.
Size: Use remaining space for personal files.
EFI Partition (if using UEFI):
Size: 300โ€“500 MB.
Filesystem: FAT32.
Mount point: /boot/efi.
Apply Changes
Confirm your changes and proceed.

fair pike
#

So when i use linux i want it to use all my resources as windows is not being used

#

like 16gb ram

#

@opal barn ignore

fair pike
#

good

main olive
fair pike
#

Setting it up

main olive
#

Do you use laptop or desktop?

fair pike
#

Desktop

#

gaming pc

main olive
fair pike
#

huh

main olive
#

Now its upto you

fair pike
#

How much ram do i give it

#

i want to make sure its safe

#

incase anything wrong

main olive
#

Use all

#

Swap ensures that your system doesn't crash, just incase if it exceeds rams

fair pike
#

okay

#

what if linux crashes or something

main olive
#

But by defualt linux wants to use all of resource as possible

fair pike
#

this looks so niceeeeeeeee

#

never knew linux has so much control

main olive
fair pike
#

i wish i can only use keyboard and not mosue

main olive
fair pike
#

whats that

#

can i do it with kde

#

whats dot files

main olive
fair pike
#

after seeing how linux looks windows sucks

main olive
#

You will have idea what you can with it

main olive
fair pike
#

can i install 2 themes at once and switch between them

#

nearly done

#

ive installed iso

fair pike
main olive
#

have you downloaded iso?

fair pike
#

yeah

main olive
#

yes

#

make sure that rufus setting must be defualt

fair pike
#

Should i continue

#

@main olive

#

wtf just happend

feral fiber
main olive
#

@fair pike I would recommend you to use balena etcher in this case

fair pike
#

okay

feral fiber
#

I see no problem there.

fair pike
feral fiber
#

Your USB key has been "formated" like a CDROM drive, it's typical with flashing a flash drive with an ISO image.

#

And it's completely normal.

main olive
# fair pike

Creator has not made it compatible with typical file copying process , i guess balena etcher will work

fair pike
#

how do i delete it tho

#

i pressed eject and it went

#

anywyas

quiet seal
fair pike
#

idk

feral fiber
# fair pike how do i delete it tho

Your USB flash drive is now recognized as a DVD ROM, it's perfectly normal, there's nothing wrong with that. That's the result of flashing it with an ISO image.

fair pike
#

i deleted it..

#

using fletecher etcher thingy now

feral fiber
#

It's going to look exactly the same.

fair pike
#

oh

main olive
#

@fair pike Could you share the complete SS?

#

Not just a snippet

feral fiber
fair pike
main olive
#

Why?

#

I mean go to your file explorer and click ss

fair pike
main olive
#

Have you ejected your usb?

fair pike
#

yeah

#

you said to you the etcher thingy

main olive
#

But wihtout usb

fair pike
#

?

main olive
#

Where you are flashing ?

fair pike
#

to the usb

main olive
#

How?

fair pike
#

wdym how

#

i selected usb because that was the only option

#

on etcher

main olive
#

Okay

feral fiber
#

And that's normal, all these tools are made to create bootable USB flash drives!

fair pike
#

its nearly done

#

75%

main olive
#

Somehow balena recognize the usb that is plugged in but you have ejected it from windows thats confusing

fair pike
#

i ejected the dvd looking logo

#

this one

main olive
#

Yeah that was your usb

#

I suppose

fair pike
#

its done

feral fiber
#

See? Exactly the same results with Rufs as with Etcher. That's normal.

main olive
fair pike
#

yea

main olive
#

You doing right

#

Its was my fault, I got confused

fair pike
#

OOps

#

i ended the process by mistake

main olive
#

Really?

fair pike
#

yeah

#

bruh

#

now what

#

flashing it again

main olive
#

Your sure like to troll us

fair pike
#

aint joking

feral fiber
#

What do you think Etcher is going to give as a result?

fair pike
#

no clue

feral fiber
#

That thing is a tool to make a USB drive bootable, that is boot your computer with it

fair pike
#

yeah i know

feral fiber
#

You won't get Linux installed on your computer by magic

fair pike
#

ik

feral fiber
#

then why on Earth are you flashing your drive again?

quiet seal
#

I know, let's have a spelling bee! lmao....

fair pike
#

because i cancelled it at the middle

#

of the process

feral fiber
#

well...

main olive
feral fiber
#

Had they booted their computer with the image flashed the first time, they wouldn't have lost all that time ๐Ÿ˜„

quiet seal
#

He needs to stay on windows or at least run Linux in a vm. He's gonna brick his PC....

fair pike
#

what does brick his pc mean

feral fiber
#

that's possible

fair pike
#

I want to use windows to play games and stuff

quiet seal
fair pike
#

huh

#

at this rate i dont even wanna switch to linux anymore

#

linux is scary ig

#

for my pc

quiet seal
feral fiber
quiet seal
#

Yeah, get more experience with basic computer concepts...

feral fiber
#

Making a dual boot system is not the most straightforward task for a beginner with no clue nor experience in that domain.

fair pike
#

how do i reset usb back to normal

quiet seal
#

Learn about disk partitioning

#

Watch some YouTube vids

feral fiber
#

There's Windows Disk Management utility, if it's still there.

main olive
fair pike
quiet seal
fair pike
#

i don't want to make it so my pc is not usable

#

forget this

quiet seal
main olive
#

Thats it

feral fiber
#

By the way, what I'd recommend is to install Linux on a flash drive instead of your hard drive. At least you can boot any computer with it and carry your Linux operating system with you. That's by far the least "dangerous" path.

fair pike
feral fiber
#

Everything you do with the system on the USB drive will be lost on next reboot... unless you enable permanent storage.

fair pike
#

wtf do i do

#

i wanted to get linux but i feel like im gonna fck it up

main olive
fair pike
#

and fck my pc up

quiet seal
fair pike
#

okay

odd plover
feral fiber
feral fiber
#

If you prefer safety, speed is the least of your concerns.

odd plover
#

it is a big deal since the person in question wants Linux specifically for better performance. this way they'll just kill their USB.

fair pike
#

formated it back

main olive
#

@fair pike Chill bro..
Just flash the image to your USB using Balena-etcher!

And you can create partition at a time of installation.

don't paniic

odd plover
#

also, the unsafety of a dual boot is greatly exaggerated

fair pike
#

icba anymore

feral fiber
#

I'm running a system on a USB 2 key on a 10 year-old Core i3 system and I have nothing to complain about.

#

Speed is just irrelevant.

odd plover
#

perhaps for your purposes. I do not think it makes a good general recommendation.

main olive
#

@fair pike Check your dm

feral fiber
#

All you want is have the cake and eat it.

#

Step by step is the essence of learning.

odd plover
#

there is such a thing as unnecessary caution. I simply disagree that a dual boot is something so dangerous.

feral fiber
#

Come say that to all beginners with literally zero knowledge in computer management who screwed up their system and had to reinstall it from scratch...

#

You don't care... until you shoot yourself in the foot.

#

But you're free to advise otherwise that's true.

odd plover
#

modern guided installers make it fairly hard to shoot yourself in the foot, and very easy to do the right thing. I'm not telling them to go do a manual Gentoo install or whatever.

main olive
#

I use dual booting, and it works well for me

feral fiber
#

You don't get the point. Of course dual boot works. The problem is not about working or not working. It's about setting it up when you have no clue what you're doing!

main olive
#

@fair pike Hey you there!?

main olive
opal barn
#

Am here

#

My pc a bit laggy for some reason

main olive
#

Could you join vc

#

code /help

opal barn
#

In a bit

#

Give me 5m

main olive
#

Oh

#

Take your time

opal barn
#

Which vc

main olive
#

code / help

opal barn
#

Ping me there

steep ingot
#

if you're not careful many installers can overwrite your existing os

misty spindle
#

Hi,
Pls help.

Below is docker-compose.yml file

version: '3'
services:
  spark:
    image: jupyter/pyspark-notebook
    user : root
    ports:
      - "8888:8888"  # Jupyter Notebook
      - "4040:4040"  # Spark UI
    volumes:
      - ./in_side_container:/home/jovyan
    environment:
      - JUPYTER_ENABLE_LAB = yes
      - CHOWN_HOME = yes
      - CHOWN_HOME_OPTS = '-R' 
    command: start.sh jupyter lab --NotebookApp.token=''

  spark-master:
    image: bitnami/spark:latest
    environment:
      - SPARK_MODE=master
    ports:
      - "8080:8080"
      - "7077:7077"

When i run docker-compose up, getting the error as PermissionError: [Errno 13] Permission denied: '/home/jovyan/.local'

fair pike
#

@bitter salmon

odd plover
#

you didn't delete Windows. It's right there in C:

fair pike
#

am cooked

#

theres ment to be another one

#

3 that comes with windows

odd plover
#

you said there were no files you cared about, wasn't it? when you were told to back up?

fair pike
#

yeah

#

but what did i delete

#

@bitter salmon

#

i dont have the last partition

odd plover
fair pike
#

the one ive got is for arch

misty spindle
fair pike
#

i got 2 windows 3 linux ones

#

theres ment to be 3 windows

wise forge
misty spindle
wise forge
misty spindle
wise forge
#

regardless of what user you have inside container, u could mess up thing.
It is bad forwarding your /home/jovyan/ user into inside the container

Because container will usuall yhave different user and u will acquire plenty of permissions incorrect files/folders at your user folder at host

wise forge
#

./any_path_at_host:/any_path_inside_container

#

the first one can be relative or absolute, second one only absolute

misty spindle
#
version: '3'
services:
  spark:
    image: jupyter/pyspark-notebook
    ports:
      - "8888:8888"  # Jupyter Notebook
      - "4040:4040"  # Spark UI
    volumes:
      - ./files:/root/pyspark_simple_end_to_end_project/in_side_container
    environment:
      - JUPYTER_ENABLE_LAB=yes
    command: start.sh jupyter lab --NotebookApp.token=''
#

When i execute it using docker-compose up

#

Jupyter notebook folder structure looks like below

#

i did not mentioned any where to create work, yet it got created!

#

when i hoverover the folder icon, it says /home/jovyan

#

And then in my linux: it looks like below:

#

i am really confused.

#

since 2 days, nothing is working out, i am at the same situation trying & tyring multilpe things ๐Ÿ˜ฆ

wise forge
# misty spindle

Two options

  1. You are still in an old container, u may be haven't deleted the previous one and for some reason reentered already existing ones. down command will help here
  2. This folder u see is just created from your previous attemps when u had specified ./inside_container before
#

docker compose down before running up, ensures u destroy previous containers, Exit them properly

#
#!/usr/bin/env bash

docker kill --signal=SIGKILL $(docker ps -q)
docker rm -f $(docker ps -a -q)

I advice using even this instead of down command

#

it is more reliable one in exiting all containers completely

#

i just have it as a shortcut in my os ๐Ÿ˜‹ docker-stop command for me

wise forge
# misty spindle

anyway, since files folder got created, then as i can see new docker-compose initialized with new volume correctly we can assume

wise forge
#

obviously it will be different from your host filesystem

#

plus docker app could be having any other random init options inside it that creates folders in addition

misty spindle
wise forge
#

or u could specify simpler path to find, that u could one click from the root of filesystem ๐Ÿ˜…

misty spindle
wise forge
#

noooo. u confused it ๐Ÿ™‚
the opposite, reverse positions

#

still wrong

#

Jupyter is not Linux, it is Inside container (at least according to your docker compose i saw u launch jupyter as container). So Jupyter Inside container is on the right
Your regular filesystem folder is Linux and on the left

fair pike
#

how do i get my recovery parition back

#

its gone

misty spindle
#

red box: linux

#

blue box: container

wise forge
#

But, be aware, your files will not persist from your work inside jypiter, unless u use the correct volume path ^_^

#

currently not seeing correct paths navigated/opened folders, they don't match volume specified

wise forge
# misty spindle path is wrong?

yes. u specify /home/jovyan/work/files on the right
then u wish opening exactly same path in notebook

if u will specify simpler path like /work/files for volume on the right
then it will match your current opened folder in notebook (which is /work/files according to your screenshot)

misty spindle
#

ok, let me correct the file --> docker-compose down --> docker-compose up & then check.

    volumes:
      - ./files:/work/files
wise forge
misty spindle
wise forge
#

and find out for yourself what is situation inside the container

#

through navigations via ls/cd commands, u could use touch some_file_name to create smth inside container

misty spindle
wise forge
misty spindle
#

i navigated inside the work fodler & there is no files folder

#

so, GUI & this one are in sync

wise forge
misty spindle
wise forge
misty spindle
wise forge
#

U tried navigated to Relative path work

fair pike
#

can someone please help me

wise forge
#

U need to /work

#

Absolute path from beginning of filesystem

fair pike
#

How do i get recovery parition back