LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-20-2016, 07:37 AM   #1
Steve Greig
LQ Newbie
 
Registered: Oct 2016
Posts: 27

Rep: Reputation: Disabled
How can I use the computer without the desktop (eg KDE)?


I have recently installed Slackware 14.2 and am trying to get more familiar with bash and generally how the system works. I have realized that the programs I use like dolphin and firefox etc can be started from the command line and I would (for a while) like to use the computer without the desktop as a way of learning more about Linux.

When I turn the computer on I have to log in either as root or a different user and then I type startx which starts KDE. Is there a way of stopping startx from starting KDE or closing KDE down after it has started so that I can control the computer from the command line?
 
Old 10-20-2016, 07:49 AM   #2
Livestradamus
Member
 
Registered: Feb 2006
Location: Planet Earth (currently)
Distribution: Slackware & OpenBSD
Posts: 122

Rep: Reputation: 53
If you're wanting to launch programs from command line, you will have to run X with at least a window manager (wm) as it draw the programs windows for you and allow to be controlled with mouse.
I use both KDE and herbstluftwm, as well as i3 wm in the past. i3 and herbstluftwm helped me greatly become more adept with my command line fu.
Fluxbox, already installed would also be a good option as it doesn't hold your hand for everything
 
1 members found this post helpful.
Old 10-20-2016, 07:54 AM   #3
arsivci0
Member
 
Registered: Nov 2013
Location: Antalya
Distribution: Slackware64 current
Posts: 119

Rep: Reputation: 23
Try Ctrl-Alt-F2 (or F3, F4, F5...) and this will drop you to console. You can now log in and use command line. If you want to go back to KDE (or any DE you are using), press Alt-F8.
 
3 members found this post helpful.
Old 10-20-2016, 08:32 AM   #4
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Rep: Reputation: 129Reputation: 129
If you don't want X at all, provided you have enabled the framebuffer mode, there are a certain
number of console-based alternatives to a web browser, a pdf reader, image viewer:
links (installed by default in slackware) for browsing the web
fim for viewing pictures
(I had installed/used it in the past, current url is http://www.nongnu.org/fbi-improved/)
I've also used in the past a couple of pdf readers but I can't recall their names right now
(perhaps fbpdf, green ...)
There are also tools to take screenshots (and save as png): fbshot
You can watch videos with mplayer
You can also listen to audio files
...
 
1 members found this post helpful.
Old 10-20-2016, 08:40 AM   #5
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
As Livestradamus said, if you want to run graphical applications like Dolphin and Firefox, you will still need to use a window manager. You can't launch them from a console session, because X needs to be running. The window manager's job is what it sounds like -- it displays windows and lets the user interact with them (moving, closing, minimizing, changing focus, etc.). KDE has its own window manager built in, called kwin. Slackware also comes with a number of other window managers that you can use instead of the a full desktop environments KDE and Xfce. To get a list and change which one is used by default, use the xwmconfig command. The most basic one is twm, so you can try that if you really want something barebones. A lot of people like fluxbox, and there are also some other good ones on SBo, like Openbox and awesome (my personal favorite).

Last edited by montagdude; 10-20-2016 at 08:45 AM.
 
2 members found this post helpful.
Old 10-20-2016, 09:30 AM   #6
Philip Lacroix
Member
 
Registered: Jun 2012
Distribution: Slackware
Posts: 441

Rep: Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574Reputation: 574
Quote:
Originally Posted by Steve Greig
When I turn the computer on I have to log in either as root or a different user and then I type startx which starts KDE. Is there a way of stopping startx from starting KDE or closing KDE down after it has started so that I can control the computer from the command line?
The command line interface and the graphical interface are not mutually exclusive. Of course if you already launched startx, but you don't want to use the X system at all for a while, you can switch from there to a console, as previously suggested. However, please note that before launching startx you are already there, so you could simply avoid launching startx until you actually need the X system.

In order to have the best from both worlds, you can access the command line interface at any time from any window manager / desptop environment, KDE included, by launching a terminal emulator, like xterm, konsole or xfce4-terminal (all included in Slackware). In this way, you can work with the command line while being in a graphical environment. Then you can run any graphical program you need directly from the command line, instead of using graphical launchers. From this point of view, it doesn't matter if you are running KDE or a more lightweight window manager, like Window Maker or Fluxbox.
 
3 members found this post helpful.
Old 10-20-2016, 10:24 AM   #7
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
If you want to get a feel for X11 at its rawest, put this in your $HOME/.xinitrc file:

Code:
#!/bin/sh
#  A VERY minimal X environment using MWM

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

[ -f "$sysresources" ]   &&  /usr/bin/xrdb -merge "$sysresources"
[ -f "$sysmodmap" ]      &&  /usr/bin/xmodmap "$sysmodmap"
[ -f "$userresources" ]  &&  /usr/bin/xrdb -merge "$userresources"
[ -f "$usermodmap" ]     &&  /usr/bin/xmodmap "$usermodmap"

xsetroot -solid steelblue
/usr/bin/xterm &

exec /usr/bin/mwm
You may find that a little too raw though. However, that's what X11 used to be like long before "Desktops" became a thing.

Last edited by GazL; 10-20-2016 at 10:51 AM.
 
3 members found this post helpful.
Old 10-20-2016, 12:44 PM   #8
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
I just run XFCE (as shipped) and open a terminal (emulator) from within, on occasions i run programs from that terminal so they s\can "spew their guts" to me for troubleshooting.

Lately i don't even bother install KDE (sorry BOB :-J).

Just open KDE's Konsole and shoot away?
 
2 members found this post helpful.
Old 10-20-2016, 12:59 PM   #9
ttk
Senior Member
 
Registered: May 2012
Location: Sebastopol, CA
Distribution: Slackware64
Posts: 1,038
Blog Entries: 27

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
I never got into the whole "desktop" thing, and use fvwm as my window manager, invoking applications from the command line (in xterm or mrxvt) rather than through the GUI.

I've found it handy to keep a sticky terminal window across the bottom few inches of my display, so it's there in every view and I can start applications from it.

Also, instead of startx (which also starts dbus, which I never want) I've been using this script to start X11:

Code:
#!/bin/sh
/usr/bin/xinit &
/usr/bin/sleep 2
/usr/bin/fvwm -f /etc/X11/fvwm2/system.fvwm2rc &
/usr/bin/sleep 1
/usr/bin/xset s off
/usr/bin/xset -dpms
/usr/bin/setterm -blank 0
/usr/bin/xv -root -maxpect /home/ttk/texts/critters.cat.azathoth.2015-07-28a.jpg -quit
/usr/bin/xterm
The xv command just sets my background wallpaper (a picture of my cat Azathoth lounging in the garden).

You also might want to set an alias or make a script for starting xterm the way you want it to be. I call mine "xt" for brevity:

Code:
#!/bin/sh
/usr/bin/xterm -display :0 -geometry 155x63 -sb -sl 1024 &
 
5 members found this post helpful.
Old 10-20-2016, 04:35 PM   #10
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by Steve Greig View Post
Is there a way of stopping startx from starting KDE or closing KDE down after it has started so that I can control the computer from the command line?
If you open up a terminal prompt and run the command xwmconfig you will be able to change to a lighter graphical interface. I suggest that you try XFCE as it has nice features without as much system overhead.
 
1 members found this post helpful.
Old 10-20-2016, 04:47 PM   #11
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Everybody is telling you need a Window Manager to run X applications. Not true. You can run X apps directly on X. You will get full screen of course and no windows. For instance, put exec firefox into your ~/.xinitrc and that's what you get, Firefox running on X, no WM.
 
3 members found this post helpful.
Old 10-20-2016, 04:55 PM   #12
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
I'm surprised that no has mentioned this, but just don't startx. Use a text browser (Slackware includes links and lynx; I recommend w3m because it allows tabs and can display pictures), a command line email client (Slackware includes Mutt and Pine, and a command line text editor (Slackware includes vim and nano and probably a few others), and a command line file manager (Slackware includes mc). You can run audio and video files using mplayer (also included).

I use Fluxbox for my window manager and recommend that, if you are tired of desktop environments and their bells and whistles, you give it a look.

Last edited by frankbell; 10-20-2016 at 09:24 PM. Reason: misplet wrod
 
3 members found this post helpful.
Old 10-20-2016, 08:21 PM   #13
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Emerson View Post
Everybody is telling you need a Window Manager to run X applications. Not true. You can run X apps directly on X. You will get full screen of course and no windows. For instance, put exec firefox into your ~/.xinitrc and that's what you get, Firefox running on X, no WM.
I think it's true in the plural.
 
2 members found this post helpful.
Old 10-21-2016, 06:03 AM   #14
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Quote:
Originally Posted by Richard Cranium View Post
I think it's true in the plural.
You could probably get away with using multiple single window apps concurently such as an xterm and mplayer but as soon as you get a multi-window app things are going to go pear-shaped without a WM (unless that app was written with this in mind and manages its own focus/window layout). You can use an X app without a WM, but it really needs to be written with that possibility in mind, and I suspect most aren't.

Running without an WM is an interesting exercise if you ever teach yourself to code with xlib. But even if you forgo all the window decorations, launchers and other fancy-stuff, you really want a WM that at the least does alt-tabbing and manages focus to be practical.
 
3 members found this post helpful.
Old 10-21-2016, 06:36 AM   #15
Steve Greig
LQ Newbie
 
Registered: Oct 2016
Posts: 27

Original Poster
Rep: Reputation: Disabled
Thanks for so many thoughts on this. I have had an interesting time exploring some of the suggestions. I have ended up changing to xfce and resolved to spend a bit more time using the terminal emulator to do mundane tasks so that when I come to do configuration etc. I am not new to both the configuration procedure and the environment I am working in.
 
4 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: KDE Announces the Release of KDE Applications 16.04 for KDE Plasma 5 Desktop LXer Syndicated Linux News 0 04-20-2016 06:12 PM
[SOLVED] MLED - Microlinux Enterprise Desktop - a full-blown production desktop (KDE or Xfce) kikinovak Slackware 250 01-18-2016 04:04 PM
Remotely access Kubuntu (Ubuntu Server with KDE Desktop) with windows Remote Desktop brunellehomenet Linux - Newbie 3 10-21-2012 09:20 AM
[SOLVED] Sudden and Unusual slowness, esp. Firefox, on my Centos5.7 desktop using KDE desktop aletta Linux - Newbie 3 02-02-2012 10:15 PM
Removing all portable computer related software in a desktop computer. stf92 Slackware 8 06-23-2010 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration