this post was submitted on 24 Jun 2024
1031 points (99.2% liked)

Technology

59605 readers
3438 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


founded 1 year ago
MODERATORS
 
  • Microsoft removes guide on converting Microsoft accounts to Local, pushing for Microsoft sign-ins.
  • Instructions once available, now missing - likely due to company's preference for Microsoft accounts.
  • People may resist switching to Microsoft accounts for privacy reasons, despite company's stance.
you are viewing a single comment's thread
view the rest of the comments
[–] nexussapphire@lemm.ee 209 points 5 months ago (58 children)

Anyone who wants to switch to Linux we welcome you with open arms. Ask as many questions as you need. There are no stupid questions just bad answers. (You probably know the type)

If you can't switch, that's ok. Alot of us know what it's like, especially us gamers, Nvidia card owners, and recovering adobe-holics. Life is tougher but a whole lot more rewarding. I moved from windows/Macos and I wouldn't give it up for anything.

[–] littlecolt@lemm.ee 18 points 5 months ago* (last edited 5 months ago) (7 children)

I need a PC that runs with no monitor and gets interfaced with through remote desktop only. I just installed Linux on that machine. It currently must have a keyboard and monitor because if it gets rebooted, it comes to the login screen. The login screen cannot be brought up via remote desktop (RDP through Remmina). I also have so far been unable to find a way to force it to automatically sign in "passwordless" like it used to do with Windows.

This box runs Plex as well as whatever game server I want to run for friends and I at the moment. (Currently Minecraft, which is having trouble since th switchover with server lag, but that is far less important than being able to reboot the screenless server box and have it work with no further input )

[–] sugar_in_your_tea@sh.itjust.works 25 points 5 months ago (1 children)

Configuring automatic login shouldn't be difficult. Here are instructions on Ubuntu (should work on any GNOME system), and here's how to do it with pretty much any KDE system. This is a feature of desktop managers (like gdm or sddm), not desktop environments (like GNOME or KDE), so if neither works for you, you're probably using a different one. If that's the case, reply with your distro and as much info as you can provide.

That said, what exactly is the problem you're trying to solve? It's usually a lot easier to login remotely using SSH instead of remote desktop, and then use console commands to do whatever you need. To login with SSH:

ssh <user>@<IP address>

So if your username is tux and your IP is 1.2.3.4:

ssh tux@1.2.3.4

And then if you want to reboot:

sudo reboot

And if you want to shutdown:

sudo shutdown -h now

I use an app on my phone to login, so I can get it done while sitting on the toilet in like 10s (I use it to unlock my computer so my kids can use it). If you're accessing from your computer and just need to run a single command, provide it after the command in quotes (note, sudo commands won't prompt for a password and will just fail).

[–] bitwolf@lemmy.one 9 points 5 months ago (1 children)

Adding to this if you rub Plex from Docker, and you tell systemd to start docker on machine start you can also have the Plex container start automatically.

Then you dont even have to worry about logging in.

Or if you don't use Docker, you can run it through systemd. That's what I do with minidlna to stream movies to my TV.

[–] Limonene@lemmy.world 12 points 5 months ago (1 children)

I have three ideas: First, you could switch the desktop environment to one of the ones that has a GUI settings tool to set passwordless automatic sign in. I think Gnome 3 on Ubuntu, and Mate Desktop on Linux Mint have that feature. There are probably others.

Second, you could switch your display manager to "nodm". The display manager is the thing that runs the X server or Wayland, and it starts the greeter (the greeter is the program that shows the login screen). nodm is a special display manager that doesn't use a greeter or ask for a password. It immediately starts the session using the username and desktop environment specified in its configuration file.

I use nodm for my HTPC and it works very well. The only downside is that you have to edit its configuration file, /etc/default/nodm , using a text editor. I'm not aware of any GUI configuration tool for it. However, it's pretty easy to configure.

Third, you could abandon all display managers, and start the session manually, either from a shell script, or over SSH. This is a little more complex. You will probably want to get comfortable with SSH before trying this (SSH is the command-line analog of remote desktop).

[–] littlecolt@lemm.ee 6 points 5 months ago

Fantastic information. Thank you for all of it.

[–] nexussapphire@lemm.ee 9 points 5 months ago

I think the first thing is actually recommend is enabling a daemon that launches Plex at boot without login. sudo systemctl enable plexmediaserver For something like a Minecraft server I'd recommend reading up on the setup process. (It's a fair bit to summarize)

If the application doesn't come with a systemd service I'd recommend making a cron. They're scary looking but actually pretty easy to use, I use it for automating maintenance on my server.

It may feel counter intuitive but Linux servers don't really need a desktop to manage them so most the tools don't really come with graphical apps. If you want an interface to check on things I'd recommend installing and using cockpit web based graphical interface.

If you want to do it proper on a systemd system make a systemd.service it's not as easy to learn but you get extra tools to manage it.

I've heard there's a lot of work that has been done in kde and gnome to get rdp (remote desktop protocol) with remote login.

I hope this helps! If not, almost everything can be done through the terminal and ssh(secure shell) makes that process really easy. I installed and setup my Linux laptop and my server that way.

If you just want to transfer files there is sshfs(secure shell file system) and the ability to go to your file browser and type in an sftp(secure file transfer protocol) address. In kde dolphin for example you select network and type in the bar sftp://(IP address or hostname)@(user):(working directory). Make sure you have sshfs installed on both machines and sshd enabled on at least the system you want to access.

[–] dutchkimble@lemy.lol 6 points 5 months ago (1 children)
[–] littlecolt@lemm.ee 3 points 5 months ago

I'm just not sure how comfortable I am with no gui yet.

[–] tgxn@lemmy.tgxn.net 2 points 5 months ago (1 children)

Yeah I also haven't found a good alternative for a windows management host for RDP. I use my last remaining windows box as an "admin host" and the Linux alternative to this would be vnc or xrdp, both of which have their issues (no dynamic resize, clipboard issues, session restore issues)... I've also tried x2go recently which is closer but still not as slick/simple as a windows RDP session.

[–] UncommonBagOfLoot@lemmy.world 1 points 5 months ago (1 children)

I haven't tried it myself but Ubuntu desktop 24 has remote desktop built in. You could try it out on a VM?

[–] tgxn@lemmy.tgxn.net 1 points 5 months ago

Yeah I might have to try Ubuntu. I heard there are some improvements to KDE in 6.1 allowing RDP by default too.

[–] MehBlah@lemmy.world 2 points 5 months ago

I have a pi5 at work (upgraded this year) that I use to administer my work network from home. I use ubutnu mate with xrdp for the desktop. Works great, even the sound works. No monitor and even if you hooked one up it would just show a login prompt.

[–] amorangi@lemmy.nz 1 points 5 months ago (1 children)

Get a virtual hdmi dummy plug. A very cheap and easy fix. Because the machine now thinks a screen is attached it will create a desktop environment you can remote in to.

[–] littlecolt@lemm.ee 1 points 5 months ago

That is not the issue. Thank you for the suggestion, though.

load more comments (50 replies)