#unix
1 messages ยท Page 14 of 1
they would have to rebuild all their tooling
or just build a DE for Linux and call it a day
this is actually what I mean
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.
Done
basically port their corporate tooling
Windows Subsystem for Linux ๐
I use it but it still sucks
indeed. better to use Pure Linux. and leaving Windows for dual boot in case it ever needed
Nah windows fucks up booting if you don't disable fast boot so it stays in a VM
i keep my Windows on a separate SSD of a 256gb size ๐ and during its installation i made sure to turn off physical drive with Linux just to be sure
I gave up on WIndows. It's just sitting on my old SSD that came with my computer
same
Windows doesn't deserve an ssd
Well, I don't have any more HDD's lying around
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
A CD is wild
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!
A bootable USB must be magic to you
imagine you back there seeing this
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"
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
It really doesnโt, itโs great
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
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.
If i measure by the ability to be linux or do linux things, itโs pretty great too ;)
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 ๐
wsl --install it should be these days 
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?
I wanted to install a UI deskop in WSL and forwarded it to a remote Linux desktop. That way I will access to private networking resources of Windows from my Linux laptop. I don't recall all the details of what I tried to accomplish this be honest.
oh, that's a little complicated, lol.
might have been better to just use a local desktop + SOCKS proxy
you mean to setup a SOCKS proxy on WSL and access it from the local desktop?
Yup
I would need to see if I can access to WSL via LAN. Thanks for the suggestion ๐
Good luck!
If my only option was the windows laptop we get, I would only do whiteboard work ๐ฅธ
my wife would accidentally kill me
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!..
wtf.......
eight seconds???
I'd assume I have malware if a chat client took 8 seconds to launch
Well ...
corporate virus checker maybe
Maybe they expect you to launch it once when you log in, and leave it running
I feel like with windows boot times (and the existence of fastboot) implies ms doesn't expect users to care about restarting often
I mean ffs most users still think there's a risk in shutting your pc down with the button
The checkers and oberserver software are the malware ๐
lmaoooo
Hi, im looking for help compiling python 3.12 on Rh7 / CentOS7 does anyone had expereince with that? Please ping me
@main olive hello brother
@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
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
Why do you need qubes?
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
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 ๐
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?
I reseated the gpu aand it seems to be working fine now
Holy shit right as I said that
It stopped
Depends what you mean by daemon. It might mean that it's not a launchd-controlled daemon, but "daemon" usually refers to any (permanent-ish) process that's not connected to any terminal.
Hi everyone, I created a new repo to install many applications on Ubuntu with Ansible, because when you have a new Ubuntu PC, you need to install all your applications - this is link: https://github.com/marquitobb/ansible_ubuntu/tree/develop (I'm open to feedback)
Can I stop making virtual environment everytime I have to run jupyter, python3 and other commands in the new Ubuntu 24.04 ?
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.
Do you have any guide or website link on how to use it
Not besides their docs, no
I don't need qubes, but that is ideal security. Curious about alternative qubes-like treatment for containerizing browser and extensions
I heard you like containers, so I put a Snap in your Flatpak in your Appimage.
nooooo :c
Install snackfak.app
Yeah did it in previous week, thanks got it working
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.
https://www.reddit.com/r/learnpython/comments/zn3fk7/any_crossplatform_alternatives_to_xinput/
Try checking answers to query "reddit xinput-python alternatives"
perhaps u will find what u seek
Sheesh can't believe I missed that. Thanks!
does anyone know tkinter??
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?
you can make a system level remap in /usr/share/x11/xkb I think
I'll search it up
My Linux doesnt boot. Cant access bios either. Even motherboard led doesnt light up. Linux sucks.
I very much doubt Linux did that. Itโs not going to destroy your mother board or stop you accessing bios. Bios boots before OS, regardless what OSโs are installed.
Ik. But it was Powered By Linux. Now it isnt. ๐
Hey if your motherboard led doesn't light up, check if you are powering it and also check if your bios battery is ok ^^
I think the psu is goner
Goes into warranty. Piece of shit power if it broke this soon
You could check if it is running using a multitester
Check the voltage
But don't fry yourself on the
12 volt DC
Haha
Have you tried turning it off and on again - IT Crowd
Hey! Does anyone know if path.getctime is faster then open(file)?
And whether path.getctime is less taxing then opening a file?
it should be. But the only way to find out for sure is to test/benchmark :)
that is always the answer to questions like "is X faster than Y"
"It depends on the environment and other factors"
It always depends on how you want to use it
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.
:o
I was like... Okkay. This is possible also.
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..
what I recommend instead is to use full paths, maybe using a variable that you prepend
dir=~/.local/share/magazine
and then
cat "$dir/a" for example
but that's more of a personal preference
I don't think this should be bad, but I write fish shell, it might be solving some annoyances for me without me knowing they exist in bash
Yeah, by default bash just replaces unknown variables with the empty string, so with rm -r "$dir/* you're one typo away from disaster.
(This actually happened to Steam)
I do this all the time
interesting!
great approach too, but i agree with @spark mulch it's error-prone (i often do such mistakes ๐ )
spooky! ๐
it's nice to know i'm not alone!
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
wait really? that's actually quite surprising
never noticed that
nevermind, i've just checked it and that's not true ๐ฃ
bash and python work same
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
oh thank god
yeah 100% it's not intuitive
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)
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
Mostly looking up if it was proposed before, and then post on python-ideas.
huh; what is "python-ideas"?
Thanks for the suggestion -- https://discuss.python.org/t/improve-filenotfounderror-by-adding-a-note-that-includes-the-current-directory/69785 fwiw
I spend a lot of time on the Python discord, answering questions from newbies, and a common question is โMy program is getting FileNotFoundError but I can see the file is RIGHT THERE!โ Whatโs going on is: their script is trying to open a file that is in the same directory as the script theyโre using a relative file name like open("my-file.txt...
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?
Might want to set up shellcheck
I think it might be good to use || exit or similar here.
And a if [[ -z "${var}" ]]; then ... for checking empty stdout, probably.
this test will always return false, wouldn't it?
since the SCRIPT_DIR is calculated using the script's path
perhaps a check for $var being / would be helpful instead
Mm. dirname is expected to always print something if successful, even with --help.
So, might be vacous here.
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
I don't know, but you should think about why you want to install anything for python2. It's very old and unsupported.
software im trying to install is written in python2
again, I'd think about using that software at all; who knows what vulnerabilities it has
wdym "nothing worked"? how did it "not work"?
Itโs a gnu project called solfage. I donโt know any free alternative
pip2 not being defined, me not able (=? not knowing how) to install it, etc.
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
Iโm not sure, but I have it installed. Thank you for the suggestion; Iโll try doing that once Iโm home ๐
Ah. Well, I predict, that unless you port that package into the 21st century, you're stuck.
interestingly enough:
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
and some files in it suggest it supports python 3.4
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.gzfrom 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
./configurein 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 casepip install PyGObject) - run as
python ./solfege.py.
That's enough to make it launch. I seem to be missing some programs liketimidityfor it to actually play sounds, which I don't want to install.
I run pylsp and ruff
I would recommend basedpyright + ruff
yep, two lsps at once
Got any comparison on pylsp and basedpyright?
not exactly; I just found pylsp lackluster while basedpyright does more about ensuring types
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
https://docs.basedpyright.com/latest/benefits-over-pyright/new-diagnostic-rules/ (though obviously biased). They don't release as insanely frequent as pyright does, but they seem to be active
though that's not directly related to pylsp
this sounds more like configuration for your type checker than about configuring the lsp. Ideally you should have that configured in your pyproject.toml and checked by pre-commit/CI, and not depend on lsp or IDE settings.
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
I uSe ArCh bTw
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
Just be aware it requires hours if not days of compiling software
LFS is not a distribution to be clear
I'm aware
id honestly suggest a bare gentoo if you really want to make a distro
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
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
nobody here but us zombie processes
Real
im installing linux mint with balena and keep getting the error "unable to spawn child processes"
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).
perhaps the folder its in, or one of the parent folders, isn't readable and executable
try "strace"
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
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, ^
The reason I want to have separate files to isolate each task (instead of getting one huge entangled makefile). Dependencies is like the first features of Makefiles, no? How would it help here?
What other task system would you recommend? I was slightly thinking of justfiles, but I would like to avoid new dependencies.
is each task really that big for one file to become unmaintainable?
since you know about how Makefiles work, you should know how importing other Makefiles can be a hassle
IMO, that'd be less readable and having the tasks in the same Makefile
I have not dealt with calling Makefiles from other Makefiles, if that has caveats, I would rather avoid it per your suggestion.
Some task is very messy, it could perhaps be cleaned up, but i would rather just tuck it away in a script.
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 ๐
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
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 ๐
It's nice to get targets and therefore automatic completion in command line
This is your justfile?
that is my justfile
It's just a file. ๐ง
What difference does [script('bash')] do?
Sorry, I'm just being a clown ๐คก
as are most nerds ๐คฃ
that lets you write a multi-line script, in the language of your choice. The default is a single-line bash script
you can use python or anything else if you want
Ah, so as soon as I want more than one line I need a script tag ๐
yep
it's a pretty nice system. It's actively maintained and improved, docs are pretty good, fairly portable
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.
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
I think there is a use case now.
Might be suitable for a team learning session.
How come? Are the just recipes more flexible or more easy to get correct than shell functions?
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.
Thanks for sharing your experience ๐
also, of course, new toys are kewl
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
?
I didn't quite understand what you said, but it seems your downloads are too slow. Are you running "apt"?
Do you have ultra slow internet? ๐ค what's its speed
SIR ON windows download speed is upto 400 mbps
but problem is with WSL 2 only
tired of reading threads on internet , watching youtube finally ended up here
yes sudo apt for installing programms and speed is super slow but on windows the download speeds are upto 400mbps
what's your country? ๐ค do you use vpn or smth
is it your home internet or some kind of university internet with weird configuration
india , and not using vpn
Windows slow internet.... it something tells me hmm
there are two choices for the problem
- wsl2 is not having proper drivers installed for network
- it is smth windows specific my memory flashes smth abou tit
https://discord.gg/devops-sre-infrastructure-419745677585940482
try asking the question there is Linux or Windows channels (or both, link in one of channes msg to anothe rone). they should remember better than me
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
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
In the mean time try also disablign Windows Defender in particular its Real time protection. and then run test, that could help too
WSL2 has advantages and disadvantages of both worlds ๐
Weird issues on the edge between two OSes.
Not yet fully linux, not yet left windows. Some limbo in between
I wonder if BatMan's /etc/apt/sources.list points to servers that are "far away"
how to change them
sir
not sure. First you'd want to see if that's really the problem.
Can you paste that file here?
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.
hmm
I bet on Windows Defender real time protection
Or not fully compatible network drivers
probably the first one
i turned it off
could be; I don't know how to fix either of those
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
do ls -l /etc/apt/sources.list.d/ubuntu.sources; paste the output
Give a try to disable ipv6 also
Some people had this as source of problem https://github.com/microsoft/WSL/issues/8171
Or actually try all recipes from this Github issue ๐ it has multiple ones
Thank you sir i should try everything if nothing works i will just install another distro
I doubt that will help
ubuntu is more windows than linux
Is there anyone with a Mac that has gnupg/GPG installed via homebrew? I am looking for someone to test my terminal app that simplifies the process of encrypting and decrypting.
Project Website:
https://ezgpg.tyguy47.net/
GitHub Repo if you want to build it from source code:
https://github.com/Tyguy047/EzGPG
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
Try using pwmconfig and fancontrol
Why canโt you dereference twice in one instruction in NASM?
!pban 1301386861004062741 spam
:incoming_envelope: :ok_hand: applied ban to @river rampart permanently.
ohai, fancy meeing you here :)
๐ cozy community. Plus Stockholm syndrome due python being main work language for last 4 years
Haha, yeah :)
Is python holding you as a hostage?
Blinking furiously to hint being held hostage ๐
Sort of yes for now
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
how do i handle interruputs with gpio rise/fall?
please delete all but one of the copies of this message
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.
it's just getting an interrupt on a gpio pin file, just as a signal. it doesn't need to act that fast and it also needs to do stuff like debounce
i think it's fine, i've been running that code for several days now for testing and it does what it needs
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.
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)```
it literally just does that
Hello, interested about your opinions / habits for your dev environment. Wich OS / tools do you use and why ?
Do you advice Gentoo ? What make you choose this distribution ? Pros, maybe cons ?
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
Let me guess -- do you use Arch? ๐ค
Anyone have any good sources for learning about setting up custom operating systems based off linux?
Such as raspbian
Make one
i mean the point of gentoo is kinda sorta to make your own distro
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)
lol i sent a 10 line snippet
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
sir this is a python server
the code, again (colored this time)
it just runs "select" to block for abit
nothing to it
And so?
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
Oh, ok, then. My bad. Please use Python for anything you want. Sorry for the noise.
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
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.
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?
please substantiate this
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
@fair pike please try https://mxlinux.org it's a Debian derivitive
Manjaro is based from arch linux...
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
on debian based systems....
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...
whats wrong with Ubuntu
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
wdym
try mx linux and debian and you will see. with VenToy you can put multiple distros on a single usb stick
@fair pike https://www.ventoy.net/en/index.html
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.
oh okay
use ventoy and go 'distro hopping'! happy trails!
i can go into bios and change startup
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
Fedora whats good about that
read their page... Fedora is bleeding edge kinda....
I wanted to try linux so im less distracted during studying or learning as i barley know anything
ive read it but dont know what it means by bleeding edge
bleeding edge refers to having the latest versions of the software
not necessarily stable....
you'll see. they aren't bad
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
can you help me
set it up
after ventoy installs to the usb stick there will be a usb folder in windows that you can put the linux ISO's in
we don't need the BIOS atm. gotta setup the usb stick first
top one
https://www.ventoy.net/en/doc_start.html look over this
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.
done
MAKE SURE YOU SELECT THE USB STICK!
yup, that looks like the usb stick
hahaha
now you should see a folder on the usb in the file manager. download and put the isos inside it
is ventroy even safe
yes
for the os?
yeah
will it use my ssd storage?
MX-Linux project
your SSD won't be used
okay
we aren't installing, just test-driving
i wanna try ubuntu
you can install if you choose to
wdym
i would wait on installation though. there's things to consider beforehand
I thought am installing the OS whilst keeping windows
not yet
explain it please
well there's secureboot, UEFI and such....
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?
we can get into that later. don't you wanna take it for a spin first? a test-drive is a no commital action...
no. installing is implying it will be put onto the hdd and ran/booted from. in this case we are booting/running from the USB stick
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
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:\
this stuffs long af
from within MX Linux....
???
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
setting that up is another can-o-worms
but yes it can be done
let me find the relevant documentation on that.....
I can give it around 20 gb for storage
i dont store alot
i just want it for customization
read over this https://www.ventoy.net/en/doc_disk_layout_gpt.html
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.
see the purple? that could be your partition to save stuff to....
if i install
can i delete it all
and get ALL of my storage back including usb
i wanna install it
real thing
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
hmm
i can't get unshare to behave
unshare(CLONE_NEWNS | CLONE_NEWUSER) doesn't let me make mounts
nvm
Ain't installling it
Linux is probs more laggy
And this stuff is long
Uninstalling the os is long aswell
Wtw are you talking about?
Did you plug the USB into a usb3 port?
linux
i got 3.0 usb
you can also delete the ssd by mistake
hm
How much storage does it require
@fair pike hey how you doing
good wbu
could you explain me what do you need help with?
i got questions before installing
Depends on type of booting
wdym
What do you want?
Do you want to use linux only or linux with windows?
That's called dual booting
How much do you have?
How hard will it be to install and comepletly delete it
1tb
And what type of storage it is?
will i be later to uninstall it
Prior to booting
What to uninstall?
Linux?
yea
Yes
On scale of 1 to 10 around 7
damn
Yes it will be
linux looks better
depends on the distro you go with. something like Ubuntu is just point-and-click.
But I do
Will i be able to make it look good
I just want a clean aethetic look thats smooth
Unless you're willing to read and learn a lot proactively, Arch is not for you.
i got 16gb ram rtx 3050 amd ryzen 5500
I don't mind
Let him decide, either way he is going for dual booting not clean linux
Will i have the same performance
I'm providing information and advice to help them decide. Nothing beyond what the Arch devs themselves say.
Performance will be same
Lets try it out
But its safer to dual boot just incase
So do you have usb?
is it type 3?
Good
So you have any idea how to download iso and flash it?
Or completely new to linux?
Download rufus select iso let it format
then boot into bios
and launch into the usb
Pop!_OS btw
whats that
@fair pike here's the difference
?
Arch has to be configured
yeah ive seen it
it's a user-friendly distro developed on top of Ubuntu by System 76, a company that sells Linux hardware.
oh
If things went wrong during configuration, then its all messed up
ubuntu is ready made for beginner
No
@fair pike you have backed up the files you care about though, right?
Got nothing to save
All i got is some games chrome and apps
vsc python node etc
A bro why ?
No clue
have some guts and try linux
I wanted linux because i think its smoother and looks better
Yes it is
Less distractions when studying ig
Yes
less apps
wdym
but easy to setup and install
so its arch but its easy to setup
And its pre configured
has everything of arch but setup is easy
so don't have to configure one
yes
lets try it out
You can change those things later on
if i dont like it i can uninstall anyways
if you want to
lets go
yeah
Heres the things
?
Kde , gnome ,..
These are environment (GUI in simple terms)
So its all about preference
oh
Search kde and gnome , etc and look at Ui
aight
which ones the most customizable
So its not just look but experience
I want it smoot af
For arch I would consider kde
Gnome is good but I personally like kde
can i do something like this with kde
Yes you can
lets go with kde
But gnome is different and kde is different
This video is about gnome
I suppose you want gnome?
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.
Yeah me too but again its all about preference
Either of them can be customized
i got kde ones too
Nope
Do you know how to do so?
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).
I dont download alot of files or save them its mostly apps
i would just do like 50gb
more than enough
Hmm
Yeah he can
During installation setup
When you reach partition :
Choose : Create or Resize Partitions (Manual Partitioning)
oh damn
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.
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
that's what dual boot does.
good
You gotta walk me through it
wdym?
Setting it up
Do you use laptop or desktop?
Even with 16GB of RAM, itโs recommended to have some swap space for system stability (e.g., hibernation, handling unexpected memory spikes, or crash prevention). If you're not using hibernation, a smaller swap size is sufficient.
Without Hibernation: Set 2-4 GB of swap.
With Hibernation: Swap size should match or exceed your RAM size (16GB in your case).
huh
Now its upto you
But by defualt linux wants to use all of resource as possible
rarely happens but state will be maintained in most cases
this is all i want
i wish i can only use keyboard and not mosue
that hyperland Ig
Watch tutorials
after seeing how linux looks windows sucks
You will have idea what you can with it
No its not
can i install 2 themes at once and switch between them
nearly done
ive installed iso
should i use rufus
have you downloaded iso?
yeah
They're literally files that begin wit a dot (e.g. .filename) and correspond to hidden files on a Linux filesystem. See https://thelinuxcode.com/dotfiles-a-beginners-guide/ for deeper information.
@fair pike I would recommend you to use balena etcher in this case
okay
I see no problem there.
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.
Creator has not made it compatible with typical file copying process , i guess balena etcher will work
What happened to Ventoy? You're just 'lost in the sauce' :-p
idk
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.
It's going to look exactly the same.
oh
.
It's information not an error.
Have you ejected your usb?
But wihtout usb
?
Where you are flashing ?
to the usb
How?
Okay
And that's normal, all these tools are made to create bootable USB flash drives!
Somehow balena recognize the usb that is plugged in but you have ejected it from windows thats confusing
its done
See? Exactly the same results with Rufs as with Etcher. That's normal.
yea
Really?
Your sure like to troll us
What do you think Etcher is going to give as a result?
no clue
That thing is a tool to make a USB drive bootable, that is boot your computer with it
yeah i know
You won't get Linux installed on your computer by magic
ik
then why on Earth are you flashing your drive again?
I know, let's have a spelling bee! lmao....
well...
He ended process by mistake and at first rufus process was halted
Had they booted their computer with the image flashed the first time, they wouldn't have lost all that time ๐
He needs to stay on windows or at least run Linux in a vm. He's gonna brick his PC....
what does brick his pc mean
that's possible
I want to use windows to play games and stuff
Won't boot period...
huh
at this rate i dont even wanna switch to linux anymore
linux is scary ig
for my pc
Hahahahahaha
Then IMHO you must start to deeper learn about disk administration and management as it's going to be easy to shoot yourself in the foot otherwise.
Yeah, get more experience with basic computer concepts...
Making a dual boot system is not the most straightforward task for a beginner with no clue nor experience in that domain.
how do i reset usb back to normal
There's Windows Disk Management utility, if it's still there.
No its not
You format it
Walk before running
Right click on usb choose format
Thats it
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.
A vm instance is even safer
He is using flash drive
To flash an ISO image indeed. That's not what I meant.
Everything you do with the system on the USB drive will be lost on next reboot... unless you enable permanent storage.
he will create partition for dual booting during setup
and fck my pc up
Just stop what you're doing...
okay
eh, installing and running a Linux distro off a USB drive tends to not be that good. USBs are slower than SSDs, and they have far more limited read-write cycles.
That is precisely what I recommend against.
Big deal...
If you prefer safety, speed is the least of your concerns.
it is a big deal since the person in question wants Linux specifically for better performance. this way they'll just kill their USB.
formated it back
@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
also, the unsafety of a dual boot is greatly exaggerated
icba anymore
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.
perhaps for your purposes. I do not think it makes a good general recommendation.
@fair pike Check your dm
Walk before you run. Learn about your system. Performance tweak comes last.
All you want is have the cake and eat it.
Step by step is the essence of learning.
there is such a thing as unnecessary caution. I simply disagree that a dual boot is something so dangerous.
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.
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.
I use dual booting, and it works well for me
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!
@fair pike Hey you there!?
I do agree but he has some idea about it, its not that he is unaware about linux and booting
Which vc
code / help
Ping me there
gentoo has a real good manual tho
if you're not careful many installers can overwrite your existing os
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'
you didn't delete Windows. It's right there in C:
you said there were no files you cared about, wasn't it? when you were told to back up?
the one ive got is for arch
@bitter salmon / @odd plover,
if you have any idea related to this, could you pls check once.
volumes:
- ./in_side_container:/home/jovyan
you confused things potentially. The first is at host, second is inside container
oh. let me try this,
volumes:
- /home/jovyan:./in_side_container
not really good thing to do because your user home is protected by permission rights usually
i tried the new thing.
Error response from daemon: invalid volume specification: '/home/jovyan:in_side_container:rw': invalid mount config for type "bind": invalid mount path: 'in_side_container' mount path must be absolute
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
oh yes, inside container path should be always absolute path
./any_path_at_host:/any_path_inside_container
the first one can be relative or absolute, second one only absolute
This is my file.
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 ๐ฆ
Two options
- You are still in an old container, u may be haven't deleted the previous one and for some reason reentered already existing ones.
downcommand will help here - 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
anyway, since files folder got created, then as i can see new docker-compose initialized with new volume correctly we can assume
Shrugs. When u open jupyter containerized, u see things INSIDE container
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
The fodler structure we see here is inside the container?
so u can find there /root/pyspark_simple_end_to_end_project/in_side_container according to your last docker-compose configuration
or u could specify simpler path to find, that u could one click from the root of filesystem ๐
i created a paint to understand it correctly. it looks correct now?
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
Yup. You have it right now
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
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)
ok, let me correct the file --> docker-compose down --> docker-compose up & then check.
volumes:
- ./files:/work/files
After making the changes as mentioned:
first thing i observed is: even though i mentioned the path inside container as /work/files --> there is no files folder created.
peculiar. may be GUI interface is showing some disinformed path or smth.
just naviate docker exec -it container_id_or_name bash (or sh instead of bash)
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
also, i just tried created files folder myself through GUI & created some contents inside this folder.
They are not getting relfected inside my linux files
u could confirm current volumes attached to container by reading information inside
docker inspect container_id_or_name
i navigated inside the work fodler & there is no files folder
so, GUI & this one are in sync
pwd command tells you current path
yeah. there is no files
I don't see u navigating to /work
U tried navigated to Relative path work
can someone please help me
How do i get recovery parition back