The Linux Thread - The Autist's OS of Choice

  • 🐕 I am attempting to get the site runnning as fast as possible. If you are experiencing slow page load times, please report it.
I never really thought lines of code were a particular useful metric. At first glance it feels logical to count the lines and then make conclusions but if you really think about it, it really kinda doesn't and isn't really telling you that much about what you have in front of you. There are more useful metrics. I could write you an incredibly simple but useful 300 line sh script, or a five-liner that does something very complex but meaningless that makes a 16-core machine scream. What did the amount of lines really tell you?

I can kinda see it how it pertains to shell scripts because sh although Turing complete and therefore theoretically usable to write *anything* just doesn't really lend itself to complex programs. (Turing completeness funnily not being a very useful metric here either, for obvious reasons)

I think understandably, maintainability and usability are a better metric and there it often makes sense to switch away from posix sh. I think it's place is best for juggling strings between different software tools and parts of linux devices and filesystem and making basic boolean logic decisions, maybe very light arithmetic and string manipulation where it makes sense. The glue I talked about, gluing programs together. sh syntax is very suited for that task, although I was also partial to tcl and rexx which probably nobody knows anymore. In my experience things get chaotic when you don't draw that clear line between glue- and complex program logic and do both in the same script. That is never necessary and if you find yourself doing it it might make sense to check if you can't approach the problem from a different angle and compartmentalize it into several smaller problems.

For everything else I'd rather use a different language. Nowadays i like to use lua if I just quickly want to write a small program. It's lightweight, malleable and very fast, both in writing and in execution, especially with luajit. I also like Golang. I never really cared much for python and believe that whitespace indentation is the mark of the beast.
 
Read my mind. I was going to install WINE this weekend to get Microsoft Office installed because libre office spell check and dictionary/grammar libraries are a trash fire.

Thanks for the heads up lol
I was able to install Microsoft Office 2010 Professional Plus on WINE and successfully activate it with a local KMS server emulator. If you still want to install it I can write a step-by-step instruction on how to do that, because some of the things you'll need to do are a lot less obvious than you'd expect.
 
I was able to install Microsoft Office 2010 Professional Plus on WINE and successfully activate it with a local KMS server emulator. If you still want to install it I can write a step-by-step instruction on how to do that, because some of the things you'll need to do are a lot less obvious than you'd expect.
I’m interested in having a such an instruction. Would be helpful to have posted here so everyone can benefit.
 
  • Feels
Reactions: Klokateer636
I’m interested in having a such an instruction. Would be helpful to have posted here so everyone can benefit.
Alright then.
For demonstration I'll be using Debian 11 and Wine 7.0-stable (with Winetricks installed).

Step 1: Preparation

First of all, you'll need an image of Microsoft Office 2010. Doesn't matter if it's Standard or Professional Plus, what matters is that it should be a 32-bit version. This one runs flawlessly. Also check that it is a Volume License (VL) image, because this is the one that requires validation from a KMS server.

You'll also need to install cpulimit. We'll need it later during the install - if you don't have it, the installer is very likely to crash at around 50% mark.

Also you'll need a KMS Server Emulator.
Unfortunately vlmcsd's devs don't want to provide pre-compiled packages, so you'll need to compile it from the source. It is simple to do, but here's how to do that, just in case:

1. Install git, gcc and make:
Code:
sudo apt install git gcc make
2. Download and compile vlmcsd:
Code:
git clone https://github.com/Wind4/vlmcsd
cd vlmcsd
make
Now, cd into ./bin directory and start the server with ./vlmcsd
Try it out by running "./vlmcs", the output should look like this:
Connecting to 127.0.0.1:1688 ... successful
Sending activation request (KMS V6) 1 of 1 -> 06401-00206-554-296057-03-1103-9600.0000-2932018 (3A1C049600B60076)
Congrats, you did it.

Now, you'll need to make it autostart with your system. You can do this in many different ways (like with your session manager), but here's how to do it with systemd:
Code:
cp vlmcsd /usr/bin
cp vlmcs /usr/bin
touch /etc/systemd/system/kms-script.service
chmod 664 /etc/systemd/system/kms-script.service
nano /etc/systemd/system/kms-script.service
Add the following to the service file:
Code:
[Unit]
Description=Microsoft KMS Server
After=network.target
After=network-online.target
Wants=network-online.target
 
[Service]
Type=oneshot
ExecStart=/usr/bin/vlmcsd -l /var/log/vlmcsd.log
RemainAfterExit=yes
LimitNOFILE=65536
 
[Install]
WantedBy=multi-user.target
Now, start the service and add it to autoload:
Code:
systemctl daemon-reload
systemctl start kms-script.service
systemctl enable kms-script.service
You can check it with "systemctl status kms-script.service", the output should look like this:
● kms-script.service - Microsoft KMS Server
Loaded: loaded (/etc/systemd/system/kms-script.service; enabled; vendor preset: enabled)
Active: active (exited) since Fri 2022-04-08 12:22:34 MSK; 11h ago
Main PID: 1804 (code=exited, status=0/SUCCESS)
Tasks: 1 (limit: 19043)
Memory: 288.0K
CGroup: /system.slice/kms-script.service
└─1819 /usr/bin/vlmcsd -l /var/log/vlmcsd.log
Great, now it will autostart! Also, "-l /var/log/vlmcsd.log" isn't strictly necessary, but it's nice to have around for troubleshooting purposes.

Now, install samba, winbind and cabextract:
Code:
sudo apt install samba winbind cabextract

Now we're finally ready to start installing all the Windows-related junk. Let's do this in a new WINE prefix, just in case:
Code:
WINEARCH="win32" WINEPREFIX="/home/username/.office32" winetricks riched20 gdiplus msxml6 mspatcha riched30 dotnet20 mfc100 wsh57 vcrun6

After installing all that, open up winecfg:
Code:
WINEPREFIX="/home/username/.office32" winecfg
Go to "Libraries" tab and create a new override for a library "riched32" - set it to "native". Also set the Windows version to "Windows XP".

And with this, we're finally ready to start installing Office 2010.

Step 2: Installation

Unpack the installation image with an archive manager of your choosing, open terminal in directory where you unpacked it and open setup.exe:
Code:
WINEPREFIX="/home/username/.office32" wine setup.exe

Now, the installer should open up. However, instead of proceeding with the install as usual, open a new tab in the terminal, and execute the following command:
Code:
cpulimit -l 10 -p $(pgrep -i setup.exe)
This should fix the 50% mark crash.
Proceed with the installation as you would do on Windows.

Step 3: Activation

We're just about done here. All that remains to do is to add the necessary Registry values that point to our KMS server emulator.
Open up WINE registry:
Code:
WINEPREFIX="/home/username/.office32" wine regedit.exe
Navigate to the key HKEY_LOCAL_MACHINE\Software\Microsoft\OfficeSoftwareProtectionPlatform.
Add the following string values under the key:
Code:
KeyManagementServiceName 0.0.0.0
KeyManagementServicePort 1688

The end result should look like this:
1649454616036.png

After this, open any Office application, select File -> Help, and then click "Change product key". The installer should open again. However, before proceeding any further, you will have to use cpulimit once again, or else the installer will likely crash mid-activation. Same exact command:
Code:
cpulimit -l 10 -p $(pgrep -i setup.exe)
You'll need to enter a GVLK key for your version of Office 2010. Enter it (look it up, they are publicly available), press Continue and then press Install.

If all was done correctly, your copy of Office 2010 should now be activated. Close and open Office application again and go to File -> Help to check.

KMS server emulator should also automatically re-activate Office every 180 days (any KMS-licensed product has to be reactivated at least every 180 days). You can try changing your system time in BIOS to test that. If it says it's not activated - wait a few seconds, close the application and reopen it again.
 
Last edited:

More news from elementary os:​


Cassidy James Blaede has left the project and is now working for the Endless Foundation, makers of a Chrome OS knockoff or some shit. Cassidy explains in a blog post that the elementary project was running into financial trouble due to reduced revenue, probably because of coronavirus killing disposable incomes. Cassidy had meetings with the CFO of elementary and Danielle in which the possibility of one of them working full time at another company but still providing input and direction to the elementary project was discussed.

Cassidy found a position like this that fit really well. Dan immediately demanded that Cassidy resign from elementary. Cassidy, not wanting to fuck up an already thoroughly-gefucked friendship (cf. previous elementary dramapoast), accepted. Please note that it was Cassidy who founded elementary, LLC in 2011 and ran the company solo for 7 years, not Dan. Both Dan and Cassidy had full time jobs when elementary was founded, and it was Dan who was hired first by elementary, then Cassidy. elementary, LLC was restructured into elementary, Inc. in 2018, with Dan and Cassidy as equal co-owners.

Tl;dr bizarre troon drama drives away a founder of a really well-designed linux distribution; troon owner has not elaborated as to why this happened or needed to happen.

Blog link: Archive, Original as of 2022-04-09

The postscript from Cassidy's blog is below, with some commentary :^)

1. Though I’m no longer involved with elementary, I still largely agree with its current direction, and wish everyone involved the best. Everyone who has contributed to elementary in any way over the years should be proud of what has been accomplished so far, and should be excited about the future. Additionally, I hope and expect that the relationships between elementary and GNOME, Flatpak, the FreeDesktop community, and other open source projects can remain strong and productive.
cool and good, GNOME, Flatpack, & al. have a lot to contribute
2. Because some people on the Internet suck, transphobia has inevitably reared its ugly face in the public discourse of this topic. I want to make it exceedingly clear that will not be tolerated by me—and should not be tolerated by anyone in the elementary community, open source community, or society at large. This includes misgendering and deadnaming.
uwu no, fuck off; I'll say what I like
3. I’m extremely saddened by how this whole fiasco transpired, and honestly I still don’t understand the motivations behind certain actions. I hope over time relationships can heal and I can better understand the motivations—even if I won’t ever agree with how it was handled.
my nigga, the head of the project trooned out. Drama was inevitable, and it was fucking ridiculous for Dan(i) to demand your resignation.
 
Last edited:
So what will happen with Elementary, get the Antergos treatment and get replaced with a fork, or not at all likely?
I think it’s too early to tell. Cassidy seemed to be a driving force for code and making stuff work, while Dan(i) has an excellent eye for design that makes things work well. They seemed to really complement each other, and I dunno if there’ll be a good replacement for Cassidy. Perhaps there was something that went on behind the scenes that we don’t know about, but I’ll refrain from idly speculating.
 
After seeing that article a few weeks back about Microsoft trialing ads in windows 11's file explorer I decided I should probably start messing around with Linux.

I installed Mint and have been pleasantly surprised how painless it's been so far. Even things I thought would be a pain to get working like my printer and steering wheel pretty much just worked out of the box. I last time I used Linux was a decade ago and remember having a bunch of issues with even simple things.
 
After seeing that article a few weeks back about Microsoft trialing ads in windows 11's file explorer I decided I should probably start messing around with Linux.

I installed Mint and have been pleasantly surprised how painless it's been so far. Even things I thought would be a pain to get working like my printer and steering wheel pretty much just worked out of the box. I last time I used Linux was a decade ago and remember having a bunch of issues with even simple things.
Welcome aboard, fren!
 
I took the plunge and actually installed Arch. Within 4 hours it broke on me. I guess I’ll go back to manjaro
As in, you started the basic bootstrap base method, finished it and installed all the programs you needed, and then it randomly broke 4 hours into using the computer? What's the story here? Sounds interesting.
 
Hasn't manjaro had a history of it also breaking a fair bit for users? Despite being the arch distro thats supposed to be "stable"
Albeit anecdotal, I haven’t had an issue with Manjaro breaking on me.

I have given Arch another chance, and I’m really getting into customizing everything using i3. If I can get i3 fully configured and get VR working I will fully replace Windows.
 
Last edited:
As in, you started the basic bootstrap base method, finished it and installed all the programs you needed, and then it randomly broke 4 hours into using the computer? What's the story here? Sounds interesting.
I had my configs edited incorrectly, I knew they would be sensitive but I underestimated just how sensitive the files are.
 
  • Informative
Reactions: Frail Snail
After seeing that article a few weeks back about Microsoft trialing ads in windows 11's file explorer I decided I should probably start messing around with Linux.

I installed Mint and have been pleasantly surprised how painless it's been so far. Even things I thought would be a pain to get working like my printer and steering wheel pretty much just worked out of the box. I last time I used Linux was a decade ago and remember having a bunch of issues with even simple things.
Hmm, intriguing. I tried PopOS but it wasn't for me. I might pop one of my old M.2 SSDs in and try Mint out.
 
Hasn't manjaro had a history of it also breaking a fair bit for users? Despite being the arch distro thats supposed to be "stable"

The official builds not so much but the community builds that use different de's can be a real crap shoot. I tried Manjaro cinnamon and it broke within about 10 minutes. Some of the other ones are considered buggy as well but I wasn't brave enough to try any others.
 
Back