linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

palordrolap, (edited ) in Linux Mint - Screenshot annoyance

Testing on my own computer, one workaround appears to be to use unmodified PrintScreen, leaving a hand free for the mouse, and quickly right-click for the context menu after the keypress but before the Save pop-up appears.

A PITA to be sure, but it does capture the context menu.

As for cropping down a full-screen capture, I tend to use PhotoFlare for jobs like that (find it in Software Manager) assuming you haven't anything else installed that does the job.

WigglyTortoise, in Linux Mint - Screenshot annoyance

Screen record a video of the process? Then you’ll have a video guide, plus you can take screenshots of the video for a written guide.

Kushia, (edited ) in Sell Me on Linux
@Kushia@lemmy.ml avatar

I’ve worked with lawyers a bit in an IT role so I’ll put it bluntly. Don’t bother.

Why? You have to ensure complete compatibility with Microsoft Office standards in your job and you may also need to access third-party systems especially document management systems on a regular basis. These things require Windows. It’s a sad fact of life that your colleagues being able to read your documents and ensure consistent layout is more important than anything else.

Yes, you can try Libre Office and soforth. However, the moment the court staff, other lawyers or anybody else gets a jumbled mess you’re going to cause yourself more problems than it’s worth. Even you yourself need to be able to ensure compatibility when it comes to information storage and retrieval too.

Windows licences are essentially free with your devices anyway and the cost of Office is a couple of hundred bucks top. Money might be tight but losing information from your court cases could put you out of business.

Sorry Linux fanboys, but Windows is the superior option here as much as I wish it was not. It’s simply the best tool for the job.

phoenixz,

First: windows isn’t the superior option. This is basically windows being VHS, Linux being betamax. Linux is vastly superior, but it’s just that Microsoft marketing is too good at lying.

Second: Linux is very apt at running Microsoft programs, including office.

Third: fuck Microsoft office, use online office in a browser. Microsoft office 365 if you’re dumb (because my god, it’s cringy bad, or google docs if you want it easy (eats most Ms crap with little to no trouble) or if you want to go truely open source, setup nextcloud with only office.

Side comment: if governments or courts FOCRE you to pay money to a specific company to use services that can quite easily be done by open source alternatives then I say that smells like corruption and or incompetence.

Zangoose, (edited )
@Zangoose@lemmy.world avatar

About your side comment - It isn’t necessarily that they’re being forced to use Office. It’s more that office is the standard that everyone else is using, and therefore the standard everyone expects to work with. If anything breaks or displays incorrectly, it becomes your fault for not using the standard.

To be clear, I hate Microsoft and their monopoly, and the blaming I just described as well. It definitely happens though. Same reason most of Gen Z uses iPhones: if you have an Android phone any problem with phones/chatting suddenly becomes your fault, even if the underlying reason is actually because of Apple.

phoenixz,

But that’s the point: it’s NOT a standard and government or justice departments should require open standards so that EVERYONE can participate because everyone MUST participate. Now the government at least allows the defacto forced sponsoring of a single damn near monopoly. Want to use the government? Sorry, gotta pay your Microsoft taxes first. That is not okay, not acceptable. There are loads of open standards that can be and should be used and enforced

desconectado, (edited )

Like or not, it’s a de facto standard. Good luck trying to convince your colleagues to change their workflow.

I love Linux, but I would never recommend using Microsoft Office on Linux especially if you work in a collaborative environment. Saying that Linux can run Microsoft office without any issue is a blatant lie. I run virtual machines basically so I can run Microsoft Office, but I don’t think everyone wants to go though that much hassle.

Kushia, (edited )
@Kushia@lemmy.ml avatar

You are right in everything except that it’s absolutely not the superior option in OPs situation. A lawyer has to guarantee that a document is identical and recallable in its exact form even years from now and the only way to absolutely ensure this is using Office itself.

Furthermore, most law firms use and have to access other parties document management systems and the thick clients for these with all the features only run on Windows. Screwing around with WINE to get these maybe working isn’t worth the hassle for a time-poor lawyer with cases to work on.

Computers are just another tool in the box when it comes to your business and you should use the best version of it to get the job done. It’s simply only Windows in OPs case here that’s the viable option. It might be corruption or vendor lock in or whatever but there’s no point trying to fight it in this scenario.

Eikichi, in How is your experience with Fedora as a server?
@Eikichi@lemmy.ml avatar

Selinux policy’s. Its weakness, also its strenght.

toastal, in How do y'all deal with programs not supported on Linux?

Try WINE. Raise issue with devs. Or just decide not to use it.

knobbysideup, in Linux Mint - Screenshot annoyance

Try using a timer

user224,
@user224@lemmy.sdf.org avatar

Why did this not come to my head. My idea was to use video capture card, connect that to another computer or phone, set screens to mirror and then take snapshot of the video.

Work harder, not smarter.

absGeekNZ,
@absGeekNZ@lemmy.nz avatar

Timer doesn’t work with an area, but works well for the whole screen

mvirts,

Ya use gimp, the old standby for impossible screenshots

russjr08,
@russjr08@outpost.zeuslink.net avatar

This is what I do, I can’t speak for Mint’s screenshot tool, but Spectacle for KDE will indeed freeze the whole screen after a set timer - allowing you to open context menus and whatnot. Then on the “frozen” image you can highlight only a specific section of the screen to screenshot, make annotations, etc.

Spectacle is one of the things I miss the most every time I try out GNOME again for a bit.

cmnybo,

With the MATE screenshot tool, you can set a timer and set it to either capture the active window or the whole desktop. It will capture context menus when using the timer.

ryn, in How do y'all deal with programs not supported on Linux?
@ryn@lemmy.ml avatar

write my own

some_guy, in New Fedora Slimbook 14" joins the Fedora Slimbook 16" - Fedora Magazine

Clicked out of interest, then remembered that I want nothing to do with the Red Hat trains.

captain_aggravated, in How do y'all deal with programs not supported on Linux?
@captain_aggravated@sh.itjust.works avatar

Can you give us specific examples of the programs you use, and what you use them for?

Evotech,

Certified Linux answer

captain_aggravated,
@captain_aggravated@sh.itjust.works avatar

I mean, it took me awhile to learn the names of all the software I currently use. And in some fields, it’s still “Yeah there’s not a good substitute.”

erasebegin, in How do y'all deal with programs not supported on Linux?

wipe the linux partitions and get back to a life of convenience and productivity. until another 6 months have passed and I think “maybe this time…”

phoenixz,

I recently reinstalled Linux. 5 minutes download, 5 minutes USB write, 15 minutes install including setting up an encrypted drive, everything works out of the box. Installling the graphics driver for my RX 7800 was “hard” because it was two steps instead of one, and that added an additional 5-10 minutes. Now I’m having convenience and productivity beyond all coworkers who constantly battle with windows problems, but hey, windows is windows, it always has some issues, it’s fine.

Over this past weekend I installed Windows 11. 1.5 times the size. Took about 7 minutes to download, 20 minutes to write to usb, fine.

Then the nightmare started.

First try: boot windows installer, go to install, about 3 minutes later I get an error about windows installer needing drivers. Wut? Search the internet, turns out that windows installer won’t work if Linux partitions are available on the system. WTF, can’t just ignore them? Nope, I gotta screw out the m.2 drive. Fine.

Second try: boot windows installer, go to install, about 3 minutes later I get an error about windows installer needing drivers. Wut? Search again, find that windows installer can have driver issues if it sees a mix of m.2 drives and other devices. Fuck me. Open up the other side of the computer, disconnect the other drives. fine.

Third try: boot windows installer, go to install, about 3 minutes later I get an error about windows installer needing drivers. Wut? Search yet again and it turns out that windows can have issues if it’s using a mix of usb 2/3 port and device. Try a various different USB ports, keep running installer until find one that is accepted. Fine!

Thirteenth try: boot windows installer, go to install, about 3 minutes later I get a new error, turns out that you can’t use Linux ISO writers for windows installers, apparently Microsoft fucked around with why because we gotta make shit hard for non ms users, right? “Luckily” I had a virtual box install, rewrite the usb there.

Fourteenth try and hours later: boot windows installer, go to install, about 3 minutes later I get a new error. My AMD Rhyzen 5 64GB 3000MHz system with an AMD RX 7800 XT and 1TB m.2 dedicated to windows doesn’t match the specs for windows 1, it can’t run windows 11. That’s what it actually said. WHAT THE ACTUAL FUCK! Search again, about an hour later I figre out that Microsoft finally started implementing the evil TPM system and it was disabled in the BIOS. Go to bios, enable it, now I can run the installer.

The install the requires 4 reboots just for the operating system, took about another hour to do so, it asked me loads of times if Microsoft could please please please sell me more shit that I don’t want, it required me to connect it to Microsoft services even though I don’t want that and finally I had a desktop. Installing graphics drivers took about another hour and a reboot.

Then I didn’t wanted to use Microsoft’s shit browser, at the least I prefer google to spy on me rather than Microsoft. Go download gogle Chrome, immediately get bombarded with “please no please use our shitty browser, you get the Microsoft experience ™!!!”

Welcome to the fucking Microsoft experience! It took me over 6 fucking hours to complete. I could have installed Linux arch in LESS time, a version known to be finicky and HARD.

Why does anyone pay money for windows? It’s insane. Their shit doesn’t work because Microsoft never cared a single shit about good software. They care about money and so their marketing department is doing the heavy lifting. Just lie to people, tell them that their shit is all superior and the “best experience”

I run into trouble with Linux sometimes, but NEVER this level of shitty incompetence and sabotage.

cows_are_underrated,

I could have installed Linux arch in LESS time, a version known to be finicky and HARD.

I recently had to install arch 3 times since. First time I fucked up, second try the system fucked up and third time worked. With me trying to fix the system this took me 2-3 hours. Most of them trying to fix the second install. The third time I used the installation script(which didn’t worked in the beginning) which made the install easy as hell taking about 10 minutes configuring the install and about 5 minutes installing everything. Later I just had to install gnome which were about 10 minutes total.

phoenixz,

And yet Microsoft in 2023 still is stuck with “this computer cannot run windows 11” when all that was wrong was that TPM was disabled in the bios. Just say you need TPM and that I need to enable it, why is it impossible for Microsoft to ever give a clear and concise error message?

statist43,

Everytime I install windows again for some reason, its always a fucked up hourlong shit. And after installing then comes the disableing of unnesessary bullshit it comea with.

Linux just works, I use Ubuntu because Im just a normal user, and I don’t know why people even use windows.

phoenixz,

Same, I don’t have a clue why people actually use and PAY for that shit. It’s like buying a new car. You get into he agency, get in, want to start and drive away but right out of the gate the battery is empty. Okay, let’s charge it? But yeeaaahhh, the great 12v standard that works everywhere doesn’t work for windowagon, you need a 15.9v because that way microshit can sabotage those people that just want to get from a to b without having to deal with their bullshit.

TheGrandNagus, in Firefox (finally) enables Wayland by default on their builds

To be clear, many of us will have already been using Firefox in Wayland mode by default, if our distro enabled it.

E.g. Fedora Workstation has had Firefox in Wayland mode since Fedora 31

joojmachine, (edited )

And it’s thanks to the work of those people that it has finally made it upstream, specially Fedora’s Martin Stránský (who has been doing tons of work on Firefox, including making Fedora the first distro to ship Firefox with VA-API enabled by default).

GlenTheFrog,
@GlenTheFrog@lemmy.ml avatar

Silly question but does that include Fedora spins like the KDE spin? I think the last time I checked Firefox it still said it was running through XWayland (although that was a while ago)

heartsofwar, (edited ) in I created a shitty Python script to manage multiple SSH connections because I couldnt find a decent one

Given how the python script is written; I doubt this was meant for linux… because its completely unnecessary on Linux: man SSH config

More power to you though!

Illecors,

☝️

Oha, (edited )

I doubt this was meant for linux…

It is. You cant get ssh to print out a nice list afaik.

heartsofwar,

I showed you how… read on how to setup an SSH config… its completely possible

aard,
@aard@kyu.de avatar

You have a list of systems you’ve connected to in known_hosts, though. And the config file is easy enough to parse - throwing away the stuff you don’t care about - to expand on that list.

Oha,

I could add a import from known_hosts option or something like that

aard,
@aard@kyu.de avatar

I assume you mean “lookup”, as import doesn’t really make much sense.

I’m currently using this with wofi, though I’ll eventually rewrite it as anyrun plugin, which provides a bit more control:


<span style="color:#323232;">#!/usr/bin/env python3
</span><span style="color:#323232;">from argparse import ArgumentParser
</span><span style="color:#323232;">import subprocess
</span><span style="color:#323232;">import json
</span><span style="color:#323232;">import os
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">ssh_config_file = "~/.ssh/config"
</span><span style="color:#323232;">ssh_known_hosts_file = "~/.ssh/known_hosts"
</span><span style="color:#323232;"> 
</span><span style="color:#323232;"># Returns a list of all hosts
</span><span style="color:#323232;">def get_hosts():
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    hosts = []
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    with open(os.path.expanduser(ssh_config_file)) as f:
</span><span style="color:#323232;">        content = f.readlines()
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    for line in content:
</span><span style="color:#323232;">        line = line.lstrip()
</span><span style="color:#323232;">        # Ignore wildcards
</span><span style="color:#323232;">        if line.startswith('Host ') and not '*' in line:
</span><span style="color:#323232;">            for host in line.split()[1:]:
</span><span style="color:#323232;">                hosts.append(host)
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    # Removes duplicate entries
</span><span style="color:#323232;">    hosts = sorted(set(hosts))
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    return hosts
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">def get_known_hosts():
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    hosts = []
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    with open(os.path.expanduser(ssh_known_hosts_file)) as f:
</span><span style="color:#323232;">        content = f.readlines()
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    for line in content:
</span><span style="color:#323232;">        line = line.lstrip()
</span><span style="color:#323232;">        host_entry = line.partition(" ")[0]
</span><span style="color:#323232;">        hosts.append(host_entry.partition(",")[0])
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    # Removes duplicate entries
</span><span style="color:#323232;">    hosts = sorted(set(hosts))
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    return hosts
</span><span style="color:#323232;"> 
</span><span style="color:#323232;"># Returns a newline seperated UFT-8 encoded string of all ssh hosts
</span><span style="color:#323232;">def parse_hosts(hosts):
</span><span style="color:#323232;">    return "n".join(hosts).encode("UTF-8")
</span><span style="color:#323232;"> 
</span><span style="color:#323232;"># Executes wofi with the given input string
</span><span style="color:#323232;">def show_wofi(command, hosts):
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    process = subprocess.Popen(command,shell=True,stdin=subprocess.PIPE,stdout=subprocess.PIPE)
</span><span style="color:#323232;">    ret = process.communicate(input=hosts)
</span><span style="color:#323232;">    host, rest = ret
</span><span style="color:#323232;">    return host
</span><span style="color:#323232;"> 
</span><span style="color:#323232;"># Switches the focus to the given id
</span><span style="color:#323232;">def ssh_to_host(host, terminal, ssh_command):
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    if "]:" in host:
</span><span style="color:#323232;">        host, port = host[1:].split("]:")
</span><span style="color:#323232;">        command = "{terminal} '{ssh_command} {host} -p {port}'".format(terminal=terminal, ssh_command=ssh_command, host=host, port=port)
</span><span style="color:#323232;">    else:
</span><span style="color:#323232;">        command = "{terminal} '{ssh_command} {host}'".format(terminal=terminal, ssh_command=ssh_command, host=host)
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    process = subprocess.Popen(command,shell=True)
</span><span style="color:#323232;"> 
</span><span style="color:#323232;"># Entry point
</span><span style="color:#323232;">if __name__ == "__main__":
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    parser = ArgumentParser(description="Wofi based ssh launcher")
</span><span style="color:#323232;">    parser.add_argument("terminal", help='Terminal command to use')
</span><span style="color:#323232;">    parser.add_argument("--ssh-command", dest='ssh_command', default='ssh', help='ssh command to use (default=ssh)')
</span><span style="color:#323232;">    parser.add_argument("--mode", dest='mode', default='known_hosts', help='where to read from (default=known_hosts)')
</span><span style="color:#323232;">    parser.add_argument("--command", default='wofi -p "SSH hosts: " -d -i --hide-scroll', help='launcher command to use')
</span><span style="color:#323232;">    args = parser.parse_args()
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    if (args.mode == "config"):
</span><span style="color:#323232;">        hosts = get_hosts()
</span><span style="color:#323232;">    elif (args.mode == "known_hosts"):
</span><span style="color:#323232;">        hosts = get_known_hosts()
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    parsed_hosts = parse_hosts(hosts)
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    selected = show_wofi(args.command, parsed_hosts)
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    selected_host = selected.decode('utf-8').rstrip()
</span><span style="color:#323232;"> 
</span><span style="color:#323232;">    if selected_host != "":
</span><span style="color:#323232;">        ssh_to_host(selected_host, args.terminal, args.ssh_command)
</span>
zacher_glachl, (edited )

I can (and do) just read the ~/ssh/.config file if needed, it’s quite legible. In most cases however zsh autocompletion does all the heavy lifting for me (ssh ser(tab) -> ssh servername).

Still a cool idea for a script, and if it works well for you more power to you, just saying there’s more ergonomic and universally applicable solutions. (Only mentioning this since you said “I couldn’t find a decent solution to this problem”).

forwardvoid,

Great attempt on making a tool, I think your usecase might not be as appealing to others. If I need to list the hosts I have config for I would use: grep Host ~/.ssh/config If your list of servers is too long to remember, you might want to look at Ansible for configuration. But whatever works for you :)

ShortN0te,

Just on the side, Openssh and ssh config works just as well on Windows.

AlijahTheMediocre, in these are the same gnome devs who complain about getting harassed

Who says clowns don’t use Linux and aren’t using Arch?

wviana, in How do y'all deal with programs not supported on Linux?

It would be nice if you say in the post which apps are those that hold you. People would be able to suggest solutions.

Certainly_No_Brit, in Wayland is a cancer to the Linux desktop.

I slowly start to believe that sh.itjust.works needs to be defederated. I’ve been seeing too many idiots on that instance lately.

logifad501,

Hahhahaha here we observe a red hat shill in the wild advocating for censorship. I have no words to say.

Certainly_No_Brit,

Do you mean “red hat” for RHEL or USA republicans?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #