The Linux Thread - The Autist's OS of Choice

Set up my old Gentoo install like a troglodyte (maximal USE flag philosophy... I knew I was going to break something this way, sure enough...) and managed to screw something in the build system up. So, install #2. Got a half-built checkpoint saved now.

Coming to realize how well-suited Gentoo is in particular for suckless stuff. In the suckless world, you add features with patches. Portage provides patching ability. You can choose to patch the config in particular from the patches featureset ( https://wiki.gentoo.org/wiki//etc/portage/patches ) or through the savedconfig USE flag. This is without forking the package into your own overlay!
 
Did you verify that cprofile is installed? If you use pip then try pip list | grep -i cprofile and see if it's there and if not install it using pip. If you don't use pip normally to install python modules then you'll need to figure out how to check using that.
I don't think I have pip installed on this machine, but I can double check.

I presume you've reinstalled all the python packages? "I forget what I did" is doing a lot of lifting here. It's as easy as pressing 'L' on the Python category in Aptitude. Shouldn't make anything worse, may make things better.
Yeah, I wish I had tried to fix this sooner. I may have actually had to copy some Python binaries from one machine over to this one. Honestly was surprising/enlightening to see how many normal system utilities depend on having Python. I think apt was partly borked such that I couldn't initially do a simple package reinstall.

Debian splits Python into a bunch of separate packages, notably python3-minimal which is a stripped down version of the interpreter. You could just check what Python stuff you have installed system-wide with the "python3-*" mask.
Good idea. I'll try this when I have access to the machine tomorrow.
 
Yeah, I wish I had tried to fix this sooner. I may have actually had to copy some Python binaries from one machine over to this one. Honestly was surprising/enlightening to see how many normal system utilities depend on having Python. I think apt was partly borked such that I couldn't initially do a simple package reinstall.
I had a bit of a poke looking at the various modules , and at least on Devuan testing, which I assume still follows the Debian python packaging, it looks like the actual modules get installed via the libpythonx.yz- packages, specifically libpythonx.yz-stdlib.

Now that you've got apt working, if you do:
sudo apt-get --reinstall install python3.12-minimal libpython3.12-minimal libpython3.12-stdlib

(Replacing 3.12 with whatever the appropriate version is)
that should hopefully resolve things.

The exception would be if the problem isn't caused by missing system libraries, but by accidentally randomly installing replacement bits of python code into your user's local Python directory or one of the system-wide locations where it could take precedence over what Debian packages, which is all too easy to do and why when working with Python it is always best to work in a venv or virtualenv or 'we broke all your Python2 programs with Python3 but didn't consider proper package management' or whatever the fuck they're calling them these days.
 
Excuse you sweaty, I'm a professional engineer who needs AutoCAD, and I'm also a music producer so I need Pro Tools, and I run my own design agency so I have to have all of Adobe CC, and I'm a lawyer so the courts require me to run antiquated versions of MS Word to submit my briefs to their system. GOD!!
I just used CAD for 3D printing. A 3D printer is like $200 or less for a good starter one.
 
If there's a better place for this, please forgive me. Can't seem to troubleshoot my way out this problem.

Accidentally wiped out my system Python install on a Debian machine a long time ago (I forget exactly what I did, but I remember it was painful to get things working again). Everything pretty much works fine now except one video editing application which gets stuck with this error:

Traceback (most recent call last): File "/usr/bin/pitivi", line 18, in <module> import cProfile ModuleNotFoundError: No module named 'cProfile'

From what I can tell, cProfile is part of the base installation. Not sure if there's some dependency that didn't get fixed or if this is a pathing issue.
The usual search for this is the Debian package search page
"Search the contents of packages"

guess the module has a file named "cPython.py" and select "packages that contain files whose names contain the keyword"

and get:
/usr/lib/python3.11/cProfile.pylibpython3.11-stdlib
Now, this was for Bookworm so you'll need to search for your version to see the appropriate package name.
 
Last edited:
  • Informative
Reactions: dvorak and Aidan
My friend, I believe he was being facetious. But, what do you 3D print? I would love to do something like that, but I don't know what I'd make.
A shell to house a bluray drive ripped out of a laptop and it's adapter
an electric toothbrush holder
a toothpaste tube roller
a safety razor blade dispenser and sharps bin
various 3d puzzles
a Amazon Alexa stand
a soap dish to fit in a weird spot
a wind up car
a part to fix an electric kitchen chopper

some of those I designed myself others i downloaded from thingverse. but they are all random things where trying to buy a premade part is harder and more expensive then designing and printing your own.
 
Do you have the STL files?
I think this is pretty close to the model I used for the toothpaste roller, the design i used didn't have a ratchet so it worked best when the toothpaste was at least 25% used. attached are the stl files for the safety blade dispenser, which has a spring and a lid and can hold 50 blades
1735494873611.png


Since Linux servers can have more then one IP address, is it possible for me to assign my WAN IP address to my server? would that mean that devices on the local network would talk to it directly when accessing sites hosted at my home ip address, or would that break a bunch of things or do nothing?
 

Attachments

Since Linux servers can have more then one IP address, is it possible for me to assign my WAN IP address to my server? would that mean that devices on the local network would talk to it directly when accessing sites hosted at my home ip address, or would that break a bunch of things or do nothing?
If you're getting to that point, you'd need to have your internal DNS assign those domains to your services for requests from inside your network.
 
If you're getting to that point, you'd need to have your internal DNS assign those domains to your services for requests from inside your network.
most browsers are set to do dns-over-https and you have to disable that for internal use. the devices that don't use doh only are stationary and can be set to the ip address of the server. setting up doh is rather complicated and will break things. in the end, internal dns is like 90% useless and 10% unnecessary levels of work to make things work. I might be better off figuring out how to enable IPv6 for my home network
 
Last edited:
  • Autistic
Reactions: Heliantheae
Technically not 'Linux'. But my main file server has been having some issues and is a bit old. So I decided to clean it, re-seat the 10G card that's been problematic, replace the SAS controller and give it an NVMe card for $HOME.

So, I open it up, clean it, swap the parts and the new controller isn't recognized and 10G card still doesn't work. Swap things around and now the NVMe card doesn't work. Apparently the actual problem is 2 PCIe slots have died.

I go to price a new MB+RAM+Root storage+CPU and hit $1000. Decide on a $50 motherboard replacement from eBay instead, we'll see if that gets it happy enough for another year or two.

On the plus side I ripped the door frame off the closet and put the server on a shelf to more easily slide it in and out without screws. 19" rack in a 19" closet is a bit tight.
 

Since Linux servers can have more then one IP address, is it possible for me to assign my WAN IP address to my server? would that mean that devices on the local network would talk to it directly when accessing sites hosted at my home ip address, or would that break a bunch of things or do nothing?
Yes, if you replace your router with your server. But then you have to get it to provide a wireless network, and you also have the problem of your Internet going down if your server does.
Far better to use port forwarding, a DMZ, or IPv6.
 
Since Linux servers can have more then one IP address, is it possible for me to assign my WAN IP address to my server? would that mean that devices on the local network would talk to it directly when accessing sites hosted at my home ip address, or would that break a bunch of things or do nothing?
Why? If I remember correctly, you're exposing containers on your internal server online. Not, perhaps, ideal- if there is no actual need for outsiders to access these, set up TailScale or ZeroTier for when you need to get at them outside your home network.

So just forward the ports they're running on from your router to your internal server, and point either subdomains of a domain name you own, or a variety of DDNS addresses, to the address for your router. I doubt you'll see performance penalties from traffic being forwarded through your router to the server for most things.
 
  • Lunacy
Reactions: Betonhaus
Has this ever been true? I have tried Linux on a bunch of slow computers and it is always less responsive than Windows. Gaming is exceptionally awful because native Linux games never work right and Wine rapes your CPU
When people say this they mean something like a netbook, A laptop you use mostly for web browsing, watching some videos, word processing and what not.
If you are retarded enough to by a gaymen laptop in the first place you are a lost cause, otherwise you can just you know, pull out the GPU and throw in an new one and hey presto, you're a gay man again.
All that said now, Wine is fucking exceptional for older games and if like me you mostly just want to emulate and play retro games now and then nothing beats it.
 
I gave Wayland another chance now that it seems it works on NVIDIA cards and I'm very satisfied with the performance. The jittery feeling i had on X11 is not present, games run fine as well. KDE also no longer feels slow as well.
 
I'm now convinced that gaming is viable on Linux now that I've sunken 20 or so hours spreading democracy in Helldivers 2 and another 10 on Fallout NV. I'm just not fond of some bugs like the eternal minimizing window that hits most games or that I need to disable the 2nd screen to play HD2 or else the mouse drifts out of the game. It still needs work but so far it's perfectly usable.
 
I'm now convinced that gaming is viable on Linux now that I've sunken 20 or so hours spreading democracy in Helldivers 2 and another 10 on Fallout NV. I'm just not fond of some bugs like the eternal minimizing window that hits most games or that I need to disable the 2nd screen to play HD2 or else the mouse drifts out of the game. It still needs work but so far it's perfectly usable.
It's crazy just how much progress has been made in only 6 years.
 
Back