LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-01-2012, 01:40 PM   #1
haziz
Member
 
Registered: Jan 2012
Location: /dev/null
Distribution: Slackware, Fedora, Debian, Arch, Ubuntu
Posts: 101

Rep: Reputation: 4
Change Startx Default on Slackware?


I installed Slackware as a VM within Virtual Box. The host OS is Windows 7, if it matters. I have successfully installed guest additions and XFCE starts and runs cleanly with or without the guest additions. KDE however (which was set as the default for startx) starts well giving me the appropriate desktop at the appropriate resolution but crashes halfway during the splashscreen animation. I am not sure it is worth wrestling with it.

How do I change the default for startx to xfce? I realize that I can always start it at the command line with startxfce4, but I may like to change the inittab run level to 5 which would trigger KDE with it's crashes.

Thanks.
 
Old 01-01-2012, 01:42 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
xwmconfig works for startx

for runlevel 4 (not 5) then kdm would run and give you the choice of which DE to start

Last edited by dive; 01-01-2012 at 01:43 PM.
 
Old 01-01-2012, 01:52 PM   #3
haziz
Member
 
Registered: Jan 2012
Location: /dev/null
Distribution: Slackware, Fedora, Debian, Arch, Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by dive View Post
xwmconfig works for startx

for runlevel 4 (not 5) then kdm would run and give you the choice of which DE to start
Can you elaborate on using xwmconfig? How do I go about changing the startx default?

I am pretty sure that inittab uses level 5 for X11 unless Slackware has opted to be very atypical. In Unix and Linux (except for the distros that have opted to drop /etc/innitab altogether) if I am not mistaken the run levels go:

0 Halt
1 Single user mode
2 Multiuser no NFS
3 Multiuser
4 Usually unused
5 X11
6 Reboot

Does Slackware have a special use for inittab level 4?

Thanks.

Last edited by haziz; 01-01-2012 at 01:56 PM.
 
Old 01-01-2012, 01:56 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Member response

Hi,
Quote:
excerpt from 'man xwmconfig';
NAME
xwmconfig - choose a default window manager for X.

SYNOPSIS
xwmconfig

DESCRIPTION
xwmconfig provides a menu of the window managers available on the machine so that you may choose
one of them to use when X is started with "startx".

When run by root, it sets the symbolic link /etc/X11/xinit/xinitrc, which selected the default
system-wide window manager to use for X, and also creates a /root/.xinitrc file with the same
window manager selected (perhaps suitable to move into /etc/skel/).

When run by a non-root user, xwmconfig writes out a $HOME/.xinitrc file, allowing the user to
choose their own default window manager (possibly overriding the one chosen as a system default).

AUTHOR
Patrick J. Volkerding <volkerdi@slackware.com>
Run 'xwmconfig' from the console and make your selection.
 
Old 01-01-2012, 02:01 PM   #5
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
As Dive has stated, Slackware uses runlevel 4 for display manager:

http://en.wikipedia.org/wiki/Runlevel#Slackware_Linux

As a user, run xwmconfig from a terminal, and select your default wm.

If you run xwmconfig as root, the default changes for the entire system.

edit: apologies for redundancy...onebuck beat me to it.

cheers,
 
Old 01-01-2012, 02:17 PM   #6
haziz
Member
 
Registered: Jan 2012
Location: /dev/null
Distribution: Slackware, Fedora, Debian, Arch, Ubuntu
Posts: 101

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by mrclisdue View Post
As Dive has stated, Slackware uses runlevel 4 for display manager:

http://en.wikipedia.org/wiki/Runlevel#Slackware_Linux

As a user, run xwmconfig from a terminal, and select your default wm.

If you run xwmconfig as root, the default changes for the entire system.

edit: apologies for redundancy...onebuck beat me to it.

cheers,
Thanks. Very interesting. I looked at the quoted Wikipedia article. I thought that most Unix and Linux ran the innittab levels similarly. My desire to load Slackware has already paid off with greater knowlege. I am also running Debian, Fedora, BSD and Solaris (have not explored Solaris much) as VMs on the same machine. And have Linux Mint and Ubuntu running natively on other machines. I guess I have gone a bit extreme with my explorations but the VM setup within Virtual Box has made it fairly painless to explore more widely.
 
1 members found this post helpful.
Old 01-06-2012, 12:38 AM   #7
calpepez
LQ Newbie
 
Registered: Jan 2012
Location: CA, USA
Distribution: Currently deciding between Kubunto, Gentoo, Slackware, Fedora with KDE, Mint with KDE, & OPEN SUSE
Posts: 1

Rep: Reputation: Disabled
Smile Exploring distros

Quote:
Originally Posted by haziz View Post
Thanks. Very interesting. I looked at the quoted Wikipedia article. I thought that most Unix and Linux ran the innittab levels similarly. My desire to load Slackware has already paid off with greater knowlege. I am also running Debian, Fedora, BSD and Solaris (have not explored Solaris much) as VMs on the same machine. And have Linux Mint and Ubuntu running natively on other machines. I guess I have gone a bit extreme with my explorations but the VM setup within Virtual Box has made it fairly painless to explore more widely.
I appreciate what you've said. I, too, am exploring different distros. I'd like to understand how they work, and possibly why so many have been devised. I've been told that slackware is particularly good for exploring software development. I've been looking to get something with a Gui, & KDE which has the only calendering/planning/logging software that seems reasonable. There are other choices, but I want something that retains what I've done as a record, as well as allowing me to express plans in whatever detail I need to do it. To me, it seems that once you've put information in, it should be retrievable for any purpose.

The KDE Kontact module fulfills that purpose quite well.

I also want to be able to develop software for the LINUX platform. Like you, I'm exploring different distros using Oracle's Virtual Box. My variety of distros pretty much matches yours.

I just haven't yet determined how to make some GUI work with some of these distros so that I can get going.
 
Old 01-06-2012, 01:37 AM   #8
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 haziz View Post
Can you elaborate on using xwmconfig? How do I go about changing the startx default?

I am pretty sure that inittab uses level 5 for X11 unless Slackware has opted to be very atypical. In Unix and Linux (except for the distros that have opted to drop /etc/innitab altogether) if I am not mistaken the run levels go:

0 Halt
1 Single user mode
2 Multiuser no NFS
3 Multiuser
4 Usually unused
5 X11
6 Reboot

Does Slackware have a special use for inittab level 4?
You might be surprised if you were to look at the contents of /etc/inittab...
Code:
#
# inittab       This file describes how the INIT process should set up
#               the system in a certain run-level.
#
# Version:      @(#)inittab             2.04    17/05/93        MvS
#                                       2.10    02/10/95        PV
#                                       3.00    02/06/1999      PV
#                                       4.00    04/10/2002      PV
#                                      13.37    2011-03-25      PJV
#
# Author:       Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified by:  Patrick J. Volkerding, <volkerdi@slackware.com>
#

# These are the default runlevels in Slackware:
#   0 = halt
#   1 = single user mode
#   2 = unused (but configured the same as runlevel 3)
#   3 = multiuser mode (default Slackware runlevel)
#   4 = X11 with KDM/GDM/XDM (session managers)
#   5 = unused (but configured the same as runlevel 3)
#   6 = reboot
 
1 members found this post helpful.
Old 05-08-2012, 08:01 PM   #9
stephenpi
LQ Newbie
 
Registered: May 2012
Location: Santa Barbara
Distribution: Slackware
Posts: 8
Blog Entries: 20

Rep: Reputation: Disabled
If you ever want to get KDE working, you could try this. Create a file
Quote:
/usr/share/X11/xorg.conf.d/composite.conf
(or .../whatever.conf), containing just the text:
Quote:
Section "Extensions"
Option "Composite" "Disable"
EndSection
Worked for me! Though switching to XFCE is fine too.
 
  


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
how to change window managers with startx in slackware name_in_use450 Linux - General 11 09-06-2017 05:42 AM
change grub boot order, all instructions say change default, but I don't see default mhg Linux - Newbie 5 11-09-2008 10:01 AM
Could not open default cursor font 'cursor' at startx with slackware 10.2 bgryderclock Slackware 3 01-02-2006 10:36 PM
Change default language Slackware 10.2 RockmanExe Slackware 8 11-11-2005 01:50 PM
Slackware 10.2: How do I change default font for shell? PastorFrederick Linux - Newbie 6 10-17-2005 10:10 PM

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

All times are GMT -5. The time now is 05:33 PM.

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