You are not logged in.

#1 2013-05-13 09:27:43

Helmsen
Member
Registered: 2013-01-19
Posts: 15

start xserver only if needed

Hi,

actully im using ubuntu. But i dont really like desktop environments. So i want to change to archlinux (I have already used it, but not so long).
I would like to start my linux as a console and only when i need xserver (for example for firefox or thunderbird) it shall start.
You got an idea how i could realize that? Or maybe there is a windowsmanager which can do similar things?

Helmsen

Offline

#2 2013-05-13 09:29:49

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: start xserver only if needed


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-05-13 11:36:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,553
Website

Re: start xserver only if needed

?? You say you have already used archlinux - I doubt it.

X does not start in archlinux until/unless you tell it to (with startx, xinit, or by enabling some service).  X isn't even *installed* until you install it.  I think the above link is the wrong one, instead you should just follow the beginners guide and install archlinux, not some derivative distro that has X installed and running by default.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2013-05-13 12:31:21

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: start xserver only if needed

You seem to think a window manager can run without X, so lets clear that up straight away - it can't.

My guess is that what you really want is a minimal X environment, mostly running terminals, with the occasional GUI app (firefox/thunderbird/etc) every now and then. If you want to jump in at the deep end, try one of the many tiling window managers, or if you want to wade in gradually, start with openbox or similar.

Offline

#5 2013-05-13 15:03:10

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,548

Re: start xserver only if needed

Trilby wrote:

?? You say you have already used archlinux - I doubt it.

X does not start in archlinux until/unless you tell it to (with startx, xinit, or by enabling some service).  X isn't even *installed* until you install it.  I think the above link is the wrong one, instead you should just follow the beginners guide and install archlinux, not some derivative distro that has X installed and running by default.

He's using ubuntooslow and wants to change over to ArchLinux.


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#6 2013-05-16 19:48:41

Helmsen
Member
Registered: 2013-01-19
Posts: 15

Re: start xserver only if needed

Hi Guys,

i installed arch and i got it also to work for me, but not really well.
I know that i need x server to use a desktop environment. And the reason why I surrendered was that xserver didnt start automaticually and i had problems to fix that smile
So i decided to use the easy way: ubuntu. Sorry for bad explaining.
My dream was like writing an alias like "start [program]", which starts x server and the program. But i see its not a good idea, because xserver starts and
the desktop evironment too and thats what i dont want (the environment, this background and the tool bar on a side etc.).
So a good windowmanager would be the best idea.
One which is only managing a programm like a new fullsize window, orderered as tabs or something like this. And if all programs are closed, only a fullsize console
should be visible. No desktop surface with files or stuff. No wallpaper. No sidebar. Only pure functionality smile
You can understand what i mean? smile
Next days I will check that link and google "openbox". Somebody knows a windowmanager which could also be a solution?
Thanks so far.

Offline

#7 2013-05-16 19:52:21

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: start xserver only if needed

Ratpoison, but it does not have tabs AFAIK. i3 has.


If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres

Offline

#8 2013-05-16 20:50:26

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,727

Re: start xserver only if needed

You might want to look at tilda.  It is a terminal program that sits in front of the desktop and can be full screen.  It allows you to set a hot key to hide it, or bring it back with one key stroke.  Put that on a blank Openbox desktop and you should be in heaven. smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#9 2013-05-16 21:14:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,553
Website

Re: start xserver only if needed

You don't need to run a window manager at all.  You can simply start x with a fullscreen terminal, then launch any other program you want to run from that terminal (with appropriate fullscreen flags).

You couldn't "alt-tab" between windows, but it sounds like you wouldn't want to.

If you want a real minimal environment, check out tinyWM.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2013-05-22 20:18:46

Helmsen
Member
Registered: 2013-01-19
Posts: 15

Re: start xserver only if needed

Hi,

thanks for your solutions. I prever i3. So I installed i3 and xserver and added to the .xinitrc (or similar, not sure at the moment) "exec i3".
But when I start with startx it appears a black screen and the i3 statusbar. I cant type anything and sometimes i cant even restart the system with ctrl+alt+del. Dont know what could be wrong. Before i tried the default environment of xserver (xorg-twm) and it has worked fine.
Somebody has experience with i3?

Offline

#11 2013-05-22 20:44:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,553
Website

Re: start xserver only if needed

Helmsen wrote:

a black screen and the i3 statusbar. I cant type anything ...

It sounds like it's working.  What would you expect to be able to type?  Did you open a terminal window?  I don't remember the default binding for this in i3, its been a while since I used it, but mod+enter or mod+t are common.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#12 2013-05-22 22:50:52

anexsia
Member
From: Manassas, VA
Registered: 2012-03-19
Posts: 5

Re: start xserver only if needed

Helmsen wrote:

Hi,

actully im using ubuntu. But i dont really like desktop environments. So i want to change to archlinux (I have already used it, but not so long).
I would like to start my linux as a console and only when i need xserver (for example for firefox or thunderbird) it shall start.
You got an idea how i could realize that? Or maybe there is a windowsmanager which can do similar things?

Helmsen

Well, you could just boot up to the command line and use "startx" to open a minimalistic WM whenever you want to use firefox or whatever.

Offline

#13 2013-05-22 23:09:31

opt1mus
Member
From: UK
Registered: 2011-12-31
Posts: 212
Website

Re: start xserver only if needed

Helmsen wrote:

I cant type anything and sometimes i cant even restart the system with ctrl+alt+del. Dont know what could be wrong.

It's been a while since I used i3-wm, if it's still the same as a few months back, you'll need to install a terminal emulator of your preference (urxvt, xterm et al), and alter the appropriate line in i3-wm's config file - which is written in plain text, so nice and straight forward.

Have a good read of this; http://i3wm.org/docs/userguide.html#configuring

Offline

Board footer

Powered by FluxBB