Starting Linux with...
 

[Closed] Starting Linux without the GUI

27 Posts
13 Users
0 Reactions
84 Views
Posts: 90742
Free Member
Topic starter
 

.. but with the Xserver running, so I can X into it.

The internet is full of people who want no X at all, by starting with runlevel 3. That doesn't seem like what I want?

 
Posted : 31/03/2017 6:02 pm
Posts: 11402
Free Member
 

try....

><<O(£(£(£$ (£(*£(££>£)))) &^££%% 6553397^%^^ execute*$&$$& &£&T$$$

 
Posted : 31/03/2017 6:04 pm
Posts: 76786
Free Member
 

The way I got around this was to install the server edition (so no GUI) and then manually add X post-install. It boots to bash, but you can fire startx or something similar to launch X.

There's almost certainly a more elegant way of doing it than reinstalling (I'd be looking at command-line parameters in the grub menu as a starting point, but that's just a guess).

 
Posted : 31/03/2017 6:05 pm
Posts: 90742
Free Member
Topic starter
 

Ah wait. Server is on my local machine isn't it?

D'oh 😳

 
Posted : 31/03/2017 6:06 pm
Posts: 0
Free Member
 

rm -rf

 
Posted : 31/03/2017 6:08 pm
Posts: 90742
Free Member
Topic starter
 

I've decided that I don't like switching between VM and host, cos my email and browsing etc is on the host and the work stuff on the VM, so I've installed Xming and I have my linux apps on my Windows desktop.

Not the first time I've done it but I'm still having a little exciting geek moment 🙂

I might create batch files that start my X apps automatically, then I can put them in the start menu as if they were Windows apps! :mrgreen:

 
Posted : 31/03/2017 6:12 pm
Posts: 13594
Free Member
 

Linux has a GUI? 😉

Sort of ruins the whole point of it...

 
Posted : 31/03/2017 6:21 pm
Posts: 76786
Free Member
 

Random aside - the latest version(s?) of Windows Server default to having no GUI on the install (what used to be called Server Core). One to watch out for when installing.

A nice touch for me is that the GUI is just another Windows component. So you can install with the GUI, get it all set up in Easy Mode and then uninstall it before you put it into production. Yeah, I know in the Linux world this is nothing new, but for a Windows Server admin that's pretty sweet.

 
Posted : 31/03/2017 6:27 pm
Posts: 76786
Free Member
 

(It's also a fantastic way of stopping lesser admins from screwing about with it...)

 
Posted : 31/03/2017 6:29 pm
Posts: 90742
Free Member
Topic starter
 

Why is the font smaller when I use xming? I get that it's a different font rendered by a different server, but it's a lot smaller.

 
Posted : 31/03/2017 6:32 pm
Posts: 76786
Free Member
 

You need to use xmaxg instead. (-:

 
Posted : 31/03/2017 6:34 pm
Posts: 90742
Free Member
Topic starter
 

Googling that returns not much of interest...?

 
Posted : 31/03/2017 6:42 pm
Posts: 8449
Full Member
 

systemctl set-default multi-user.target

 
Posted : 31/03/2017 6:50 pm
Posts: 3263
Free Member
 

Oh oh sir sir I did this the other week by installing (1) gnome and then (2) xrdp for my Remote Desktop from windows pleasure

(But I know ****all about Linux, I mean vi? Wtf is that about)

 
Posted : 31/03/2017 7:46 pm
Posts: 0
Full Member
 

Why is the font smaller when I use xming? I get that it's a different font rendered by a different server, but it's a lot smaller.
You running a font server?

 
Posted : 31/03/2017 9:49 pm
Posts: 1862
Free Member
 

Really depends on what distro and init system, but assuming you're running something modern with systemd then the systemctl line above is exactly what you want. sysvinit, you might need to add the -novtswitch to the X init so it doesn't change terminal when it starts.

 
Posted : 31/03/2017 10:14 pm
Posts: 90742
Free Member
Topic starter
 

Font server?

The display doesn't work as well under xming. More display artefacts.

 
Posted : 31/03/2017 11:00 pm
Posts: 0
Full Member
 

Sorry posted a reply, but it seems to have disappeared.

Font server?

The display doesn't work as well under xming. More display artefacts.


Apologies, but in the olden days to allow correct rendering on the server side, you'd use a font server to make client fonts available on the server. I think some X extensions have made that unnecessary but perhaps those extensions aren't supported by xming (Xrender, for example). HAven't done this kind of thing apart from in an enterprise environment with standard pre-configured tools for quite some time, so all the above may be useless 🙂

 
Posted : 31/03/2017 11:13 pm
Posts: 0
Free Member
 

I've done this. Now, what did I do? Install the base system, then add stuff like (for RedHat, CentOS, Fedora, Scientific Linux)
yum groupinstall "X Window System"

The inventors of yum deserve to inherit the earth.

 
Posted : 31/03/2017 11:13 pm
Posts: 0
Free Member
 

X is somewhat inefficient over a network. Just install linux with GUI, install an RDP server and access remotely with Remote Desktop. Or at a push a compressed VNC like TightVNC.

Even with X though, install as normal, and you can access via X clients remotely (need to open firewalls somewhere most likely).

 
Posted : 31/03/2017 11:26 pm
Posts: 90742
Free Member
Topic starter
 

Just install linux with GUI, install an RDP server and access remotely with Remote Desktop

The reason for this is so that I can have windows from the Linux VM on my Windows desktop mixed in with all the windows apps. I don't think rdp supports this well does it? And in any case it's not over a network so it's quite responsive. Just some minor screen drawing niggles that's all.

 
Posted : 01/04/2017 8:14 am
Posts: 0
Free Member
 

Just need an X client on Windows then. Or technically still called an X server. Runs local but your linux apps can be sent to the Win X server. Have to set DISPLAY in Linux to point to the right place.

Depending what you want to do, rather than the linux VM, if you have 64bit Windows 10, you can install the linux subsystem, aka Ubuntu bash. Runs native user mode ubuntu binaries. You still need an X server in Windows though.

Used to use Hummingbird Exceed at one company I worked long ago. Was neat in that it integrated the X windows with Windows quite well. Commercial though.

 
Posted : 01/04/2017 8:28 am
Posts: 621
Free Member
 

Just ssh into the server from windows using MobaXterm. Has a built in X Server. Linux apps appear like native apps.

http://mobaxterm.mobatek.net/

[img] [/img]

It also does multi-server execing, useful for running a task across a number of machines at the same time 8)
[img] [/img]

 
Posted : 01/04/2017 8:32 am
Posts: 0
Free Member
 

As for no GUI Windows... Windows 10 IoT. Can configure headless or it can display a UWP app as the UI. Other than that there's no desktop. Is a web UI to configure.

And it runs on a Raspberry Pi 🙂

 
Posted : 01/04/2017 8:41 am
Posts: 76786
Free Member
 

Just install linux with GUI, install an RDP server and access remotely with Remote Desktop. Or at a push a compressed VNC like TightVNC.

A word of caution here: I recently tried to do this with a Raspberry Pi. Long story short, the latest version of Raspbian comes with a flavour of VNC already installed which is incompatible with the RDP layer (I can't remember exact package details, I'd have to check at work). You need to rip out the existing VNC then reinstall the relevant packages in the correct order. In the end I thought "bugger that" and installed the appropriate VNC client on my Windows box, which Just Works.

Might not apply to you, I don't know how common it is across other distros, but worth being aware of just in case.

 
Posted : 01/04/2017 11:18 am
Posts: 8449
Full Member
 

systemctl set-default multi-user.target

A word of caution here: I thought I'd try that on my parents Arch Linux system. Not sure why, especially when I thought it would be more appropriate to do something along the lines of:
[code]systemctl disable display-manager.service[/code]
I saw the set-default command above created a symlink in /etc/systemd/system/ (can't recall exactly where) which I removed but there must have been more to it than that as their system now boots into maintenance mode 😳
Should have looked at the docs really.

 
Posted : 02/04/2017 10:43 am
Posts: 8
Free Member
 

@sirromj

The systemd default command creates a symlink in /etc/systemd.d/system which points to a directory in there which defines your default mode.

Either check what's in there (ls /etc/systemd.d/system) and link it yourself (ln -s /etc/systemd.d/system/graphical.target /etc/systemd.d/system/default.target). Or use systemd: systemctl set-default graphical.target.

Link to docs: [url= https://wiki.archlinux.org/index.php/systemd ]https://wiki.archlinux.org/index.php/systemd[/url]

 
Posted : 02/04/2017 1:49 pm
Posts: 0
Free Member
 

At this stage I'd be diving into Linux forums and then I'm in a world of arrogant hell and advice is generally that I should work it out for myself, usually using man pages (hideous to read), and if there's something that can't be resolved I may have to recompile the kernel or download the source and fix it myself. 😉

 
Posted : 02/04/2017 5:19 pm