#unix
1 messages ยท Page 15 of 1
what's the issue which partition is missing?
There are three off-topic channels:
The channel names change every night at midnight UTC and are often fun meta references to jokes or conversations that happened on the server.
See our off-topic etiquette page for more guidance on how the channels should be used.
its to do with linux
i got linux installed and dont know what to do
Linux doesn't use the same partitioning schema as windows does
i think they are dual booting from a separate partition
these 3 are linux
Have you installed windows and Linux on the same disk?
its partitioned
same disk tyes
even if it's partitioned, windows doesn't like sharing very much
do you know how to use diskpart?
used it before
and thats where i messed up
it should list the volumes there properly, the disk management tool doesn't always list everything
you deleted diskpart?
open diskpart and check the partition, and recreate the parition
wdym mean?
can i not go to linux arch and write some code to get it back?
what exactly do you want back? if you deleted a parition and it has been overwrriten, without recovery software it will be hard to get the data back
did you have data you needed in those paritions?
lol nothinbg will happen, they are recovery paritions, just used for saving recovery images i believe
just recreate them and you'll be fine
show me the current state of your disk with a screenshot
in disk 0?
we're not dealing with disk 1 i assume
Yes
what is basic data partition? where did that come from?
i'm guessing you made that accidentally
If your windows recovery partition is gone, e.g. because you removed it to install Linux, then it's gone for good. There's nothing you can do to recover it as it's part of the initial Windows installation.
Now, as has been said, this is not a Windows administration server. You should either sort that out in PM or ask for help on a Windows dedicated forum.
contacted support
will factory reset fix this?
no
How
Again, this is not the place to ask. And factory reset will wipe out your entire disk.
๐คฆ don't it will remove all your files
When you install an operating system in parallel with another one without having the basic understanding of how computers and operating systems work, these problems are bound to happen. It's not the operating system's fault, it's the lack of proper knowledge that leads to such disasters.
ik
Now that I think of it, the recovery partition may be needed to perform a factory reset. Just don't quote me on that. However, if it doesn't work, then you'll know why.
at this point they should just copy whatever they can and need to an external drive, then format the drive and reinstall windows
i suggest not trying to install linux using dual boot without learning how to do basics of disk partitioning perhaps in a virtual machine
If the current operating system still works properly and just the recovery partition is lost, reinstalling it from scratch and lose absolutely everything, including all documents and personal data is a tad... how'd you call overkill?
(pun unintended)
windows recovery media tool
ive used it before
it deletes all partition except C
and reinstalls
Yeah, before you screwed up your recovery partition, I guess
@opal barn
if i i remember correctly recovery partitions can be recreated in windows, but i suspect it isn't worth the effort if they don't care about their data
https://superuser.com/questions/1667319/how-to-restore-the-recovery-partition-in-windows-10
Rule number zero with computer systems: do backups!
yups
hi
@fair pike from reading what you have posted I'm guessing you borked the bootloader(GRUB) installation when you installed linux....
@fair pike does the GRUB boot menu show up when you try to boot from your HDD ?
u need basic linux education to navigate in terminals
https://cmdchallenge.com/
https://sadservers.com/
those ones could help
One-line shell challenges, to help improve your skill on the commandline.
Linux Troubleshooting Interview DevOps SRE
@misty spindle filesystem navigation from the terminal isn't that difficult....
cd ~/ always goes to your home directory and cd / goes to the root of the filesystem. try man cd for more info on the cd (change directory) command
@opal barn hey
also to be aware about ls, ls -la (with ability to see permissions and hidden files)
pwd gets current position
nano filename, to edit smth with notepad ( requires installation if not present)
u could open CLI with midnight commander for more comfortable easier navigation (requires installation if not present)
mkdir foldername to creat efolder
cat smth , to print textfile into terminal (cat is always available, in comparison to nano/mc that can be not)
cat smth | grep "yoursubstring", to find lines containg specified stuff
cat smth | grep -C 10 "smth", finding lines and printing 10 lines around them
ergh, the challenges i linked above will help navigating about it
echo "smth. $ENV_VAR" is basic printing command
at the same CLI level u can set ENv vars for specific commands
export ENV_VAR=smth to set for session, unset them and etc
you've properly confused him now hahaha
@wise forge you see how @CodeE just dissapeared......
i'm pretty sure he didn't get GRUB installed properly
I had everything installed properly
Grub aswell
But I will definitely install arch again
I found downloading it fun for some weird reason
@odd plover Hey I'm new to manjaro..
I'm using kde.
Could you help me with kde and manjaro?
like you & @quiet seal mentioned.
i used cd to navigate into work folder. may i know what's wrong with that
maybe, what's the problem?
I can probably help with KDE issues, may not with Manjaro issues
Problem :- Not sure how and where to begin?
// I have little to no knowledge about kde and manjaro.
// I'm not new to linux
// Could you suggest me reliable source to learn?
nothing? what do you mean....
I'm not sure what there is to learn or "begin". Just install and use them.
I mean I have done so
also, i browsed many articles & youtube videos to find out the problem.
every where the mapping is done from starting as home, like below. only we skipped home/jovyan part!
https://github.com/ibqn/pyspark-jupyter/blob/master/docker-compose.yaml
I'm confused how do I use shortcuts here?
How do use default feature?
I'm not used to arch based distro but so far my experience is quite amazing
@odd plover
System Settings > Shortcuts
There's meant to be 2 recovery no?
I don't know what you mean by "default feature"
do you see the GRUB boot menu when starting your computer? can you boot into windows? can you boot into the linux you installed?
How? What do you want to do?
I want to learn manjaro and kde to use them
Any resource you have that can help me out?
Like manual or documentation?
I don't think there's any learning necessary for KDE. It's a regular desktop system. Use it to launch your apps.
For me it is
Why? What specific problems are you facing that you need to learn something to overcome?
show me a screenshot of your current hdd partitions! if you can boot into the linux use gparted....window's diskpart is absolute trash....
I used to using shortcuts and I'm not sure what are those thing called in manjaro.
And I'm not used to kde, so it fast but I'm slow
Yes
I have fsctory reset the pc
If System Settings > Shortcuts was not it, then I have no idea what you're talking about when you say "shortcuts".
ok so boot into the linux. open gparted. select your HDD and screenshot it and show me!
you're moving too fast. that's the problem!
do nothing yet!
I've already done it
hahahahahahhahaha
And anyways it got rid of the games so I can study better
Is this good
Is it back to normal
Disk 0
yes! everything is as it was
Okay!!
i mean it's self evident what it is.....
Yesterday tried installing hyprland
It was just a black screen
Someone in this chat helped me
@quiet seal @wise forge
ok, i changed the file like below. Now everything is getting created properly. but when i create file, it says:
version: '3'
services:
spark:
image: jupyter/pyspark-notebook
ports:
- "8888:8888" # Jupyter Notebook
- "4040:4040" # Spark UI
volumes:
- ./files/data:/home/jovyan/work/files/data
- ./files:/home/jovyan/work/files
environment:
- JUPYTER_ENABLE_LAB=yes
command: start.sh jupyter lab --NotebookApp.token=''
launch that as root or use sudo
yes inzane, i launched container as root user only
if you put work into the $HOME directory you shouldn't get that error
no you haven't. the command ran was docker-compose up
fix the permissions on the directory it's writing to. add a group or something....
this is not mean the same?
are you logged in as root?
yes
why
sorry. did not get you
i should not login?
not as root ! create a user. what linux distro is this?
Why do you guys use Linux?
amazon linux
because we're interdimensional deities?
What does that mean
AWS?
can you create a user?
could you pls tell me the reason why so
i made this comment under the assumption you were logged in as a user.... you're logged in as root
it's because I drink well water. most folks drink tap water that is contaminated
when i logged in as root, then itself i am getting permission denined.
so, if i create another user, obviously no one can be supeiror as root. how come that will get rid of permission error
also I don't have experience with AWS so I don't know how their shit is setup. find the folder you can work in. did you create /work?
or was it already there
except running docker compose up on below file, i did not do any thing explicitly, inzane
version: '3'
services:
spark:
image: jupyter/pyspark-notebook
ports:
- "8888:8888" # Jupyter Notebook
- "4040:4040" # Spark UI
volumes:
- ./files/data:/home/jovyan/work/files/data
- ./files:/home/jovyan/work/files
environment:
- JUPYTER_ENABLE_LAB=yes
command: start.sh jupyter lab --NotebookApp.token=''
ok so the volumes are working from the user jovyan!?
Bored with windows
but it was attempting to write to /work/...?
dotfiles: https://github.com/nabakdev/dotfiles
i haven't updated it yet, but that's the same as the setup I used in the video
#hyprland #linux #windowmanager #code #coder #waybar #wlogout #wayland #arch #archlinux
These linux machines look real nice
i am creating notebook inside the files folder
@misty spindle i'm not familiar with docker either so i probably won't be much help
use a diffent directory! use something in ~/
use a folder in $HOME . on the left change the path
it's ok inzane. you are trying your best to help me. Thank you.
go into a directory under $HOME
no! you're at the root of the filesystem. see the /
type echo $HOME in a terminal and create a folder there
does AWS let you create folders @ / ?
yes
idk then
pls see the volume line.
version: '3'
services:
spark:
image: jupyter/pyspark-notebook
ports:
- "8888:8888" # Jupyter Notebook
- "4040:4040" # Spark UI
volumes:
- ./files:/home/folder_for_notebook_files
environment:
- JUPYTER_ENABLE_LAB=yes
command: start.sh jupyter lab --NotebookApp.token=''
Now, it's going to create a folder folder_for_notebook_files in home like you said.
let me excute & see
ok
does this work?
let me tell you what happened.
At first try, i executed below.
version: '3'
services:
spark:
image: jupyter/pyspark-notebook
ports:
- "8888:8888" # Jupyter Notebook
- "4040:4040" # Spark UI
volumes:
- ./files:/home/folder_for_notebook_files
environment:
- JUPYTER_ENABLE_LAB=yes
command: start.sh jupyter lab --NotebookApp.token=''
Then, folder_for_notebook_files did not got created.
Then, i tried below
version: '3'
services:
spark:
image: jupyter/pyspark-notebook
ports:
- "8888:8888" # Jupyter Notebook
- "4040:4040" # Spark UI
volumes:
- ./files:/home/jovyan/folder_for_notebook_files
environment:
- JUPYTER_ENABLE_LAB=yes
command: start.sh jupyter lab --NotebookApp.token=''
Now, the folder folder_for_notebook_files got created & structure looks like below
i am not sure why is this happening.
but, anyway, now let me create notebook inside this folder we created
๐ฆ
show me output of ls /
i'm not familiar with jupyter either but we can figure this out
aws gotted timeout, pls give me 2 mins
thank you
ok
This is inside the container
also, i navigated into /home, nothing is there!
i don't understand why these don't match directory paths....
ok wait!
when you try to create the notebook...
change to /opt/bitnami/spark/work ? inside the jupyter GUI
no inzane, at max we can go to /home
go to terminal and create a symlink from /home/jovyan/work to /opt/bitnami/spark/work?
ok
done
try to create the jupyter notebook now
maybe this will work if you still get a permission denied error?
?
this is not the problem. that much i can say. the reason is if port 8888 is not allowed, we could not even see this jupiter notebook server GUI in first place.
i think symlink should be like this?
ln -s /home/jovyan/folder_for_notebook_files /opt/bitnami/spark/work
our intention is to create the files in folder_for_notebook_files folder. so, that should be part of symlink, if i am not wrong.
Linux is amazing and fast
So far experience with kde is quite good
just look at the security group configuration....can't hurt
is there an inbound rule for jupyter port 8888
@misty spindle contact AWS Support and ask them directly!
inside the container, chmod, sudo not working?
i don't know.....that's weird
contact aws support and tell them you can't create a Jupyter notebook. you're getting a permission denied error....
ok, will try contacting them.
anyway, thank you once again for staying with me in difficult time.
What a like about manjaro is that its best for my pc
np lol
how do you know it's best for your pc?
As I have used several other distro
And so far this one requires less configuration or no configuration
but have you tried free-dos?
to work with hardware of my pc
No
I have tried ubuntu redhat
kali linux
And parrot os
@spring copper and why haven't you tried MX Linux !?
No need
Thats it
I used ubuntu to learn ubuntu server
I used redhat to learn linux administration in it
I used parrot os to to test script in vm
Kali for ethical hacking
And manjaro for my personal use (now)
But for now I just wanna stick to manjaro
And if I liked it, I will move on to Arch Linux
the AUR is nice
when you goes this route just skip Arch and check out ArchCraft
Ah I see
it's very nice (ArchCraft)
hybird it is
and the AUR is nice too
I suppose it is
Yeah so far its smooth and simple to use
Arch User Repository
yeah the aur has sooooo many pkgs
What exactly its intended to do?
is it just a package for arch based distro?
yeah
Like?
just for arch
https://aur.archlinux.org it has everything
manjaro is more stable than arch
It work flawless
is what programmed
How?
yay package
their pkg repos aren't as bleeding-edge
Okay
Sounds good to me
I mean its better that I use manjaro and than use vm to learn arch
Else I would be screwed up!

But why?
because their pkg versions are slighty behind the latest that arch uses
exactly
and less buggy
yup
Damn !
3) Manjaro
you're using manjaro and asking me this?
because i like it!
so am I
they have a nice DE setup
there's even a KDE version
was kinda buggy when I had an NVIDIA card tho
haven't tried it since switching to AMD
I use kde verison and it works like charm for me
And I have dedicated GPU (Nvidia)
which one? I had a gtx 960 at the time
Mobile version of 3050 rtx
cool
thanks lol
you don't heed good advice, lol. happy trails!
Is this testdisk?
Does python works in openbsd?
:incoming_envelope: :ok_hand: applied timeout to @wet oxide until <t:1735425845:f> (10 minutes) (reason: duplicates spam - sent 4 duplicate messages).
The <@&831776746206265384> have been alerted for review.
yep definitely it does
What now
What
That's bootable usb
Okay listien
Shrink the volume and un allocate some space
Once done
Proceed to boot using your bootable via BIOS
So what now
50gb is software / Google and all that basic things and 200 gb for games and testing
Good
Now
Now boot using usb and make sure to choose unallocated partition!
During installation setup
So open bios
Done
and then
Hold shift key and click restart
then troubleshoot
then ufifirware settiings
then restart
thats it
@winged ridge
Click f8
f11
Emm nothing happens
f11 should work
Okay
Great! Now that you're in the MSI BIOS, here's how to navigate and perform common tasks like changing the boot order or enabling certain features.
---
### **How to Change Boot Order:**
1. **Go to the "Boot" Tab:**
- Use the arrow keys (or your mouse if it's a UEFI BIOS with a graphical interface) to navigate to the **Boot** section.
2. **Change the Boot Priority:**
- You'll see a list of bootable devices (e.g., SSD, HDD, USB drive, etc.).
- Drag and drop (with the mouse) or use the keys to rearrange the order.
- To boot from a USB drive or DVD, move it to the top of the list.
3. **Save Changes:**
- Press **F10** (or select "Save and Exit") to save your changes and reboot the system.
---
### **Enable Boot Menu Shortcut:**
If you want to access the **boot menu** (F11) on future startups:
1. Go to the **Advanced** or **Settings** tab (depending on your BIOS layout).
2. Check if the **Boot Menu** is enabled (this is usually on by default).
---
### **Disable Fast Boot (Optional):**
If you're having trouble accessing BIOS or boot options in the future:
1. Navigate to the **Advanced > Boot Configuration** section.
2. Find the **Fast Boot** option and disable it.
3. Save changes and restart.
---
### **Boot from USB:**
1. Insert your USB drive into the computer.
2. Ensure the USB is selected as the first boot device in the **Boot Priority** section.
3. Save changes and restart.
Let me know what you're trying to do, and I can guide you step by step!
As per GPT @winged ridge
Once booted into ubuntu let me know
Okay
But what now
Where
Which one is you usb?
How i know
You have 4 usb
Okay
wait
option 5 for sure
The key
USB key is your usb stick
What now
???
What now
Esc
You know how to restart?
And it said changes
great
hit enter
great
just wait
Dis
Why is my mouse a x
Not my language
and you can change language afterwards
next
Wired wifi right
depends on you?
do you use wired or wireless?
extended selection
Whats that
The apps thing
f it
Is there no anydesk
No what appears on your screen?
first option
F dis
my bad
And now
There should be 250gb option
Okay then go back and choose 1st option
Noo
Why?
I mean go back to previous window
Okay
Its free space in 2 tb ssd
You choose wrong distro as manjaro would take less than minute
What
Could you select free space?
Next button disabled
So what now
Have you tried 1st option to isnstall alongside windows?
And if yes,at that time did you created unallocated partition?
What
Okay so its your first time?
Error
wdym?
Not understanding more
Okay
So what i do rn
Is this your first time installin ubuntu?
Yup
Yes
and then click next
and it will detect free space and occupy it
which is 250GB of unallocated storage
And now create acount
Show me the SS
244gb*
So have you done this?
What now
Fill the details
you can't set password none
choose password which you will remeber
as it is required in linux
if you set it to none (by typing it would consider it as password)
So what if i put in nothing
and you have to use this password over and over again in future
You can't
For what is dis used
Set password its important for linux
Make sure that you won't forget it
Use the one which you will remember
I want to know where i use for do i use for starting pc only and installing
No
Its used quite often when you use terminal
and many more thing
in linux authentication is important
But i mean that i people outside need that for someting to hack or
Or is it local use
Like only dowing to dowing stuff on the pc
@winged ridge Don't use your buttery smooth brian now just set the password
Do it need to be strong
Not neccessary
So no1 wil use
Just set password
Use what you like
Just not it incase you may forget
And I do thing you won't forget it as linux will make sure
I dont wane get hacked so do i need set strong or where dis for
I mean you have to use it over and over again
You won't get hacked
And the boxes do i put them off
When i start pc do i need to put password in
require to login should be set yes
To enter ubuntu yes
Can we have this discussion afterwards?
On which slide you are?
??
What happened between 2 slide?
okay click install
F
let it do its magic
F
What happened ?
Report it
It dont ask that
@winged ridge Do you use arm based cpu and nvidia?
@winged ridge What did you got ?
Why are you using ubuntu?
That
Use manjaro
Cant u just install all idk anymore now
Okay
Windows lagged a lotttt
20 fps in Minecraft
And random crashes
And fortnite lag to
@winged ridge hey
Random fps drops
Prive vc pls so i put cam on
fortnite cant run on linux
unless you use geforce now
Nupe
You can use Wine to use Fornite on Linux, but you cannot use it natively!
Because Fornite doesn't have official native support for Linux, one has to use to wine or else to use on Linux. But fortnite is compatible with linux OS via wine or other tools that enable official app to run
They made this decision because of Easy Anti-Cheat and less users base on Linux.
You can use tool like bazzite that enable gaming in Linux but it won't enable non native game to run on it
You have to use some form of mediator like wine or else
And even then there is no guarantee that it will work with this mediator , as it has no official download for linux
quick google gave, that their anti-cheapt practically prevents playing it on linux. Idk if true, but i assume so
Do you guys have any clue on how to get 1080p feed at 30 fps from rtsp feeds? im using mediamtx on my server and later viewing it from mpv
Hey guys!
Can anyone help me with this problem in Bash Scripting? here is the link to the questions on StackOverflow:
https://stackoverflow.com/questions/79324027/extract-the-data-from-the-body-of-a-post-request-from-the-browser-to-a-bash-serv/79327222#79327222
I only glanced at it, but: you should be able to recognize when the headers end, and the body starts, by looking for two newline characters in a row.
EAC runs on wine?
im actually surprised
So EAC runs on wine, but Fortnite might not work
Fortnite works until you actually want to play the game
EAC wasn't enabled for Linux on Fortnite
It does, but not kernel level
huh, kinda defeats the purpose of EAC ig
yeah
I think it's because the way the anti cheat cannot give kernel level anti cheat
Some please correct me if I'm wrong
Also ping me so I get notification
Hi, why packaged python using pyinstaller when trying to run webdriver.Firefox() crashes (Ubuntu 22)? I don't even have error anyone tried before?
try:
driver = webdriver.Firefox()
except Exception as e:
getLogger().Error(f"authRequest : Firefox not found : Error: ", type(e).__name__, " - ", e)
pass
I asked also on web dev as it's between these topic and i'm not sure where to place it
How do you know it crashes? Is there an error that gets logged?
Ummmm UnIX BUT I tHOuGhT THiS WaS a PyTHon SERvEr???
I have a problem, I'm trying to use the case, but I always get this error, how do I fix these two?
no way to help unless you
- post the entire output, not just the last few lines
- post it as text, not a screenshot
how to use silverbullet in linux mint?
i've downloaded the file from github but can't run
help
What file did you download? The Github page links to two installation options, which one did you choose?
x86
Docker or Deno?
Show the complete output
well nvm im using openbullet now
Don't spam messages across channels just to get your message count up.
how should i work with python api?
'Python.h' file not found clang(pp_file_not_found)
theres no cmake files 
vscode::clangd (i guess?) not see python include file, at least this...
||(im need copy python function to cpp project)
(never doing this before, 0 acknowledge about python-defined macros and structs)||
What OS are you on? To get the header files you tend to need a python3-dev or python3-devel package or something like that.
includes default, python config says: -I/usr/include/python3.10 -I/usr/include/python3.10
btw how to work with python api when there no cmake or something... i just not know
@spark mulch
clang not resolve references for me, function itself (logic) seems wrong, i probably just found it wrong, or miss something in macros and python-api funcs
actually out of bounds access on l2
/* get lines: */
double *iline = NI_GET_LINE(iline_buffer, kk);
double *oline = NI_GET_LINE(oline_buffer, kk);
/* do the uniform filter: */
double tmp = 0.0;
double *l1 = iline;
double *l2 = iline + filter_size;
for (ll = 0; ll < filter_size; ++ll) {
tmp += iline[ll];
}
oline[0] = tmp / filter_size;
for (ll = 1; ll < length; ++ll) {
tmp += *l2++ - *l1++;
oline[ll] = tmp / filter_size;
}
rly there 2 way:
- im too dumb
- i miss something
i not believe in first resolution, so i guess im really need to learn pyapi 
hey quick question you guys may be able to help with.... i'm using linux find to iterate over a bunch of mts files and convert them to mp4 but after 1 iteration of the loop ffmpeg just doesn't do any more work. for example, if i have 5 files --- it only does the first file and then stops.
#!/bin/sh
basedir="/var/services/homes/user"
ffmpeg="$basedir/ffmpeg-git-20240629-amd64-static/ffmpeg"
exiftool="/usr/share/applications/ExifTool/exiftool"
dir=$1
find $dir -iname "*.mts" | grep -v eaDir | grep -v recycle | while read oldfile
do
ls -lash $oldfile
newfile="$(echo "$oldfile" | cut -d '.' -f1-2).mp4"
$ffmpeg -i $oldfile $newfile
ls -lash $newfile
done
find $dir -iname "*.mts" | grep -v eaDir | grep -v recycle
./Photos/00081.MTS
./Photos/00082.MTS
./Photos/m.MTS
./convert_mts_to_mp4.sh
<works on 00081.mts>
<finishes>
and i know the while loop works because if i just "echo" the ffmpeg command it looks good
convert_mts_to_mp4.sh
/var/services/homes/user/ffmpeg-git-20240629-amd64-static/ffmpeg -i ./Photos/00081.MTS ./Photos/00081.mp4
/var/services/homes/user/ffmpeg-git-20240629-amd64-static/ffmpeg -i ./Photos/00082.MTS ./Photos/00082.mp4
/var/services/homes/user/ffmpeg-git-20240629-amd64-static/ffmpeg -i ./Photos/m.MTS ./Photos/m.mp4
this is the sort of thing I write in python ๐
yeah i rewrote it in python now exiftool wants to give me problems lol
shell script was SUPPOSED to work, quick and easy lol
Cant pip install whilet in virtual enviroment
- probably ask in #1035199133436354600 , not here
- when you do, post a complete transcript, as text, of your session, starting from when you created the virtualenv, through the end of the error
Install it from source: If you have the source code for "whilet," navigate to the project directory within your virtual environment and run pip install .
possibly use pip uninstall and then use pip install on whatever is making this problem
Hello Everyone
i'm a few days late and have not solved it using python
it sounded like you had already solved with python
but this solution might be handy for future reference
the problem is that ffmpeg consumes all the data in its stdin when it runs and hence starves read from getting any more input after the first iteration
this is solved by giving that badly behaving and greedy command (ffmpeg) /dev/null as its stdin by using < on the line with that command
#!/usr/bin/env bash
FFMPEG="/var/services/homes/user/ffmpeg-git-20240629-amd64-static/ffmpeg"
DIR=$1
find "$DIR" -iname '*.mts' -print0 2>/dev/null | grep -zavE 'eaDir|recycle' | while read -rd '' OLDFILE
do
ls -lh -- "$OLDFILE"
NEWFILE="${OLDFILE%.*}.mp4"
"$FFMPEG" -i "$OLDFILE" -- "$NEWFILE" </dev/null
ls -lh -- "$NEWFILE"
done
```also remember to put every variable that you use that could possible include space, semicolon or other spacial characters inside double quotes
and use null/zero byte termination when listing and processing filenames
we can also use `--` (double dash) to protect against inputs that start with one or two dashes so that they aren't processed as options (where to put it depends on the commands options processing implementation)
hey thanks for the clarification why it didn't work.
python worked because it spawns separate processes for each call, so would something silly work in shell like 'bash <ffmpeg command>"
oh wow, that's cursed. i did not notice at all that this script would share with ffmpeg the same stdin that's being read
Exclusive new Python library punix 
It's a common problem with things which consume stdin. I've got a few scripts which do things this way:
exec 3<&0 0</dev/null
while read whatever <&3
do
...
done
exec 0<&3 3<&-
This way stdin is /dev/null for everything in the while loop. Particularly useful for scripts which read their stdin and then issue things like ssh remotehost command. ssh itself has a -n option, but this file descriptor shuffle serves for everything which consumes its stdin.
Is there something similar to systemd services but with more docker-like features, e.g. the concept of "health" and restarting on unhealthy?
I basically want the nice things of docker containers, but without having to pack my tiny program into a multi-gigabyte container.
maybe pack it into a smaller container? ๐ค
I don't think that's possible generally; like, if my program needs a few massive dependencies that I already have installed, turning it into a docker container would require me to include these dependencies in the container.
ah
I will guess systemd has something to do what you want, but I will also guess you'll need to do six months of intensive study to figure out how ๐
I exaggerate but you know.
Systemd is what I already use, yeah. It's capable of all I want, I think, but it strongly feels it's not... the intended way. e.g. Docker has all sorts of GUI managers that let you see at a glance what your containers are doing, not so much for systemd
ah, GUI
I bet a GUI for systemd is technically straightforward, but culturally difficult ๐คฃ
"Real sysadmins don't use GUIs!!!"
Well, there's one: https://github.com/GuillaumeGomez/systemd-manager
I had to contribute to that project to get it to work ๐
welcome to Real Life and Thank You For Your Service
looks like there's some cursed ways to get docker-like healthchecks: https://github.com/jhass/systemd_http_health_check
Just use Alpin image at this point (5 megabytes basis)
Or distroless images
With multistage building
And if u wish even smaller, then go for image from scratch
https://medium.com/@pavelfokin/how-to-build-a-minimal-golang-docker-image-b4a1e51b03c8
Problem can appear though... How the heck to perform this for non compilable languages ๐
Interpreter of python will be always adding plentiful amount of size (unless u do hackery of grabbing it by volume from OS)
anyone here has experience with pyusb on linux?
I'm trying to get a slightly older program (last commit was 2 years ago, so I'm assuming py3.10) that was only written with windows in mind to run on Linux, but I keep getting Resource busy errors when I try to connect to the device. In the logs it looks like it's trying to claim the device every time it tries to read/write to it, but I can't find anything pointing to that in the code, only device.read() and device.write() calls.
If someone wants to help out and take a look, I believe these are the most relevant files for this:
https://github.com/brittanyb/playground/blob/master/src/usb_controller.py
https://github.com/brittanyb/playground/blob/master/src/reflex_controller.py
log output: https://hastebin.skyra.pw/uyupiquwuz.prolog
I have no experience with pyusb, but I found this; did you try that?
Hello
hmmm... i recall a different driver for this hardware would just straight up crash if it didn't have a udev rule for something, and that rule is still on my computer
and from the logs it looks like the first reading operation works fine, it just tries to re-claim the device for the write operation for some reason
i can only assume it instantiates a new Device object every time for some reason and because of that it wants to reconnect with every read/write call
hello
Need a suggestion to try new OS
Currently I am using endeavorOs with i3wm
Need something minimal, and easily manageable
try Mint Xfce. it's lightweight, familiar, and comfortable
Cinnamon is a bit heavier but more comfy
how frugal does it have to be? https://l3net.wordpress.com/2013/03/17/a-memory-comparison-of-light-linux-desktops/
Who Want Ransomware python
Nobody. Don't post this kind of stuff again here, and re-read the rules.
Using cached ttkthemes-3.2.2.tar.gz (891 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
ร python setup.py egg_info did not run successfully.
โ exit code: 1
โฐโ> [9 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/xv/pj43vq7n053_9x9t7dgvcb9m0000gn/T/pip-install-2_1djwgf/ttkthemes_3f0805f548b1430c956751cf2706e9e7/setup.py", line 7, in <module>
from tkinter import TkVersion
File "/opt/homebrew/Cellar/python@3.11/3.11.11/Frameworks/Python.framework/Versions/3.11/lib/python3.11/tkinter/__init__.py", line 38, in <module>
import _tkinter # If this fails your Python may not be configured for Tk
^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '_tkinter'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
ร Encountered error while generating package metadata.
โฐโ> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for detail```
need some help guys
im new and struggling
Which distribution are you using? Many of them don't ship tkinter by default
i fixed this issue, now this is what im getting
File "/Users/user/auto-scheduler-env/Scheduler.py", line 5, in <module>
from ttkthemes import ThemedTk
File "/Users/user/auto-scheduler-env/lib/python3.13/site-packages/ttkthemes/__init__.py", line 6, in <module>
from ttkthemes.themed_tk import ThemedTk
ModuleNotFoundError: No module named 'ttkthemes.themed_tk'```
It says above in your output of "installing" (probably using pip since note: This is an issue with the package mentioned above, not pip. at the end) ttkthemes that import _tkinter # If this fails your Python may not be configured for Tk so is your Python environment is well-configured for Tk? How did you manage to install ttkthemes? Its important to address that and solve it so you don't see the error No module named 'ttkthemes.themed_tk'.
Check any source on the internet for probe configuring your Python with Tk in MacOS
Is Linux the closest we will ever get to Unix or is Linux a 1 to 1 copy of the original Unix
I think the BSDs have their history better rooted in Unix
Odd question. What is this "Unix" to which you are comparing Linux?
Based on your GitHub you wouldnโt understand
well there ya go.
Itโs ancient history anyway
Worth looking into though to know how a lot of tech was developed from the past
Hello, is it safe to just delete a folder "~./local/share/virtualenv"? There are folders "unzip" and "wheel" inside with further folder structure and some files. I was testing pip and virtual environments and that folder got created but I dont know how and why. I tried to clean up cache using pip but it didn't help. I deleted pip and some other unnecessary python components as I planned to switch to Miniconda to manage vritual environments, but this filder remains.
honestly I'd delete it even if it later turned out to be a mistake :-). Then at least you'd know why it's there (namely: to support whatever it is that broke after you deleted it ๐คฃ)
Does it tell anything if in the folder virtualenv/wheel/house/ there is a file "pip-23.2.1-py3-none-any.whl"?
๐คท
i don't know a Linux Distro that can break from venv deletion at such path, highly likely safe
Not system Python looking like
only system Python deletion can break distros. System python tends to posses address like /bin/python , /usr/bin/python3
naa@naa-MS-7C89:~/.local/share$ ls
applications gwenview knewstuff3 nano Steam
ark icons konsole okular teamviewer15
baloo jupyter kotlin plasma_icons torbrowser
desktop-directories k9s krunnerstaterc plasma_notes Trash
dolphin kactivitymanagerd kscreen plasma-systemmonitor user-places.xbel
elisa kate ktorrent PollyMC user-places.xbel.bak
FasterThanLight kcookiejar kwalletd qBittorrent user-places.xbel.tbcache
flatpak kded5 kxmlgui5 RecentDocuments virtualenv
gegl-0.4 keyrings lutris recently-used.xbel vlc
gem khelpcenter mc sddm vulkan
gsettings-data-convert klipper mime signal-cli
naa@naa-MS-7C89:~/.local/share$ cd virtualenv/
naa@naa-MS-7C89:~/.local/share/virtualenv$ ls
py_info wheel
naa@naa-MS-7C89:~/.local/share/virtualenv$
Interesting. i have such virtualenv at this path too ๐ค
i would be better avoiding touching this folder.
looking like system level one almost ๐
it is still user specific one, but clearly OS level one i think
The folder looks like... User cache basically i think... highly likely safe to delete
I have a man page (from ipython) and some Python binaries installed by "uv"
ok, thanks guys, I will leave it for now and check ocassionaly to see if anything changes in content and structure
I'm 95% sure it's a cache used by virtualenv.
It's not managed by pip or python so that's why it's left dangling.
Me too
It's late, but this was my problem. Thank you!
afternoon, fellers and felines
I want the python daemon to execute a function (fetch weather status) on Xorg start (which is also the moment the daemon starts, it's bound to graphical-session.target) and when I wake up my laptop (prolly systemd-logind-related). What kinda interfaces should I connect to?
ight, I think I reimplemented what systemd timers do (at least i took 3 seconds from there):
while True:
before = time.time()
time.sleep(1) # or async, doesn't matter
after = time.time()
if after - before > 3:
print("Delay longer than 3s detected")
hey uhm.. I am trying to dual boot with ubuntu but I dont get to see any option other than windows boot manager
and no i dont have a usb stick
Is ubuntu already installed or do you want to install it?
this is me SSH'd into my linux machine via WSL
system python should not be touched
because it is a sure way to break system
python3 -m ensurepip
python3 -m venv .venv # create venv env where u need
source .venv/bin/activate and activate it
and install pip packages there
best place to create .venv env, in the root of your project repository
i abuse venv as global for os too ๐ there is easy trick to do that without breaking your OS
cd ~
python3 -m venv venv
create venv in user folder
then
nano ~/.bashrc
and add
export PATH="$HOME/venv/bin:$PATH"
in this case Venv python will be your Shell console main python
overshadowing system python (because its bin files will "earlier" in PATH than others)
I fixed it. thank you
which python3
which pip
can be used to verify correct usage of which python is used
i want to install it
And I dont get an option to boot from my HDD in the boot prioirity
Also dont have an option to enable CSM
I always used a usb, idk if u can do it with an internal hard drive or not, usb is recommended
I dont have a usb... thats the biggest problem
sd card boot?
u do need a usb stick
i booted of an sd card
might not work depending on the bios
What model of mobo do you have
Some support network booting
thix bro
hi
i need some help
i has some problem with my wsl network adapter and firewall
it is disabled and are not enabling
scp /volume1/homes/christopheradmin/imageConvert/x.png christopher\christophernet@IPV4Address:/C:/8
This doesn't work when trying to copy a file from Linux to Windows ?
I'd use forward slashes everywhere
what OS are you running that on?
oh the backslash is part of the username ... ๐ค
I doubt I can help really
I'd add -v and see if there are any errors
you probably need to "escape" that \ from your shell, too
scp /volume1/homes/christopheradmin/imageConvert/x.png christopher\\christophernet@IPV4Address:/C:/8 e.g.
?
-v is hanging
I'll wait another minute
hrm
stuck at connecting
the post with 150+ upvotes
try doing it from git bash (gets installed with git)
it should be highly likely better working
u will need to input paths in git bash like u have linux too
I was always the character going into the bed in my family ๐
I'm using gitbash
oh... u are trying to copy from Linux to Windows..., while being at Linux?
nevermind then.
yes
Windows is not automatable solution for such stuff... but some people found solutions how to interact with it partially remotely for stuff like that... and implemented ecosystem around it in ansible
I can recommend giving a check to ansible modules for interacting with windows
https://docs.ansible.com/ansible/latest/collections/ansible/windows/win_copy_module.html#ansible-collections-ansible-windows-win-copy-module
https://docs.ansible.com/ansible/latest/collections/ansible/windows/index.html
๐ค
- name: Copy a single file
ansible.windows.win_copy:
src: /srv/myfiles/foo.conf
dest: C:\Temp\renamed-foo.conf
In theory all you need just installing ansible, writing ansible-playbook.yaml like this
and running launching command
it is abstraction on top, but can be convinient since a single ecosystem/tool for all actions like that from Linux to Windows
https://docs.ansible.com/ansible/latest/network/getting_started/first_playbook.html
ansible all -i vyos.example.net, -c ansible.netcommon.network_cli -u my_vyos_user -k -m vyos.vyos.vyos_facts -e ansible_network_os=vyos.vyos.vyos
Ansible playbooks are run in this fashion
hmmm... this module looks like only for copying From Linux to Windows, but not seeing copying from Windows to Linux
Found. copying from Windows to Linux is done with module windows slurp
- name: Retrieve remote ini file on a Windows host
ansible.windows.slurp:
src: C:\Program Files\Program\program.ini
register: program_conf
So actions are like...
- install ansible
ansible-galaxy collection install ansible.windowsinstall windows modules- write playbook like above what to slurp
- run ansible playbook activation
Any FreeBSD peeps in here
Don't currently use it but I've tried it once or twice
I dont get an option to boot from opensuse whiel dual booting
can s1 pls help?
i only get this
I can't read that blur, but if you can you can do a web search
If everything is set up right with your boot loader then it may be a question of BIOS settings.
My BIOS settings are all right
I used to dual boot with ubuntu earlier and it worked perfectly
I think its a problem with grub
So you'll need to share details from your grub config if that's the case
where do i find the "grub config" file
hi gays 
Hi!
Heya
hi any questions
Why does god not exist? What is meaning? Do MacBooks dream?
what do you means, i can't get one words
Hello everyone
skibidi
Any of you guys have a neofetch alternative
flashfetch, it also shows more info
or pfetch if you want simple and clean info
How do I get out of this window?
Like a shortcut
@outer reef
@restive tinsel
@clever steppe
Please
idk
@main olive
try ESC :q! followed by Enter
Also, don't tag people unless they've clearly told you that they don't mind
Hands
That's the text editor called vim.
If you try ctrl-c it should give you similar instructions as offby1 did
ctrl+c
+/-, it's the same really ... ๐ฅธ
FreesBSD 14.2 running on Xfce 4.2
what is a semaphore
In computer science, a semaphore is a variable or abstract data type used to control access to a common resource by multiple threads and avoid critical section problems in a concurrent system such as a multitasking operating system. Semaphores are a type of synchronization primitive. A trivial semaphore is a plain variable that is changed (for e...
Semaphores (The GNU C Library)
Not sure this is the correct channel, but I wouldn't now which is, so I apologize beforehand if it's not.
The below code:
import subprocess
command = "coverage run -m unittest && coverage report --fail-under=80"
code = subprocess.run(command, shell=True, check=False, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT).returncode
print(code)
Is yielding 5.
According to POSIX standards, 0 is success, and 1 is errors. What the hell is 5? lol
any non-zero exit code is a failure
what an exit code of 5 means specifically depends on the coverage tool
Strange, I can't find any way either coverage run or coverage report could return anything other than 0, 1, or 2. Maybe ask in #coverage-py?
Found a similar issue: https://github.com/nedbat/coveragepy/issues/812
It seems this is coming from the program coverage calls; meaning unittest. If it's the same as pytest (which seems likely) then it means no tests were collected.
Following https://coverage.readthedocs.io/en/coverage-4.4.2/cmd.html#warnings I found that you can disable the no-data-collected warning message by using the following .coveragerc [run] disable_war...
Lib/unittest/main.py line 11
_NO_TESTS_EXITCODE = 5```
i guess you found that too, huh, lev?
Yup that's it, thanks! ๐
I'm trying to convert my laptop from windows 11 into Ubuntu, but keep getting this error:
System Just now
Failed to mount "548 MB Volume"
Error mounting/dev/loop1 at/media/ubuntu/disk: /dev/loop1 already mounted or mount point busy
Also can't reboot windows since I deleted everything I could from the windows SSD and it can't repair it...
Couldn't find a Linux channel
Fixed it by switching to arch linux

if u have such error i would be questioning during installation of Ubuntu how well u wiped the drive ^_^
Windows/Laptops tend to have extra disk sector in the beginning for their stuff
during linux installation, it is not uncommon to delete all disk sectors and remark it from zero (using defaults or smth)
Yea I most definitely deleted some important windows file in my live session before mounting to the disk
I am interested in making friends in the communities of the programming languages โโI like. I wonder if there is anyone looking for friends here?
vtm tiling windows manager ๐
I'm learning/ making a operating system but I'm scared of nuking my pc. Is there anything that can just full kill my pc and make it never work agen?
If so is there a way to fix it?
I like meeting new ppl. Send me a fr
"nuking your pc" , just run your development or even deploy in a kvm or a virtual machine!
Ya ik
is it possible to have the code running fine in the VM and then it complety F my pc when i put it on it
What does that mean "and then it my pc when I put it on it"