2

Use boot parameter systemd.unit=multi-user.target to boot in text mode. Then check the log files /var/log/Xorg.0.log and /var/log/gdm.log for error messages generated by your previous attempt to boot in GUI mode. Continue troubleshooting based on what you'll find in those logs.


1

Screen's stuff command does not run commands, it emulates typing. It sounds like you have a shell running in the screen session, which is reading what it believes to be typing and running it when it receives a newline. So you can cut the command into small bits; you could send it one character at a time if you want. The shell inside the screen won't run it ...


1

Tmux is a good option available to run your long-running processes in the background. I have to keep running the long-running processes on a google cloud platform's VM instance/server (with OS: Ubuntu 16.0). Where I have to start SSH terminal and from the terminal, I have to keep the terminal connected to run the process. Now up to this, all is good. But ...


Only top voted, non community-wiki answers of a minimum length are eligible