Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-06-2004, 12:37 AM
|
#1
|
|
LQ Newbie
Registered: Mar 2004
Location: Atlanta, Georgia
Distribution: Slackware-current
Posts: 26
Rep:
|
adding pekwm to .xinitrc
I installed Pekwm today but when I ran xwmconfig it is not in the list of window managers. The install directions that came with Pekwm say you may need to add Pekwm to the .xinitrc file. I don't know anything about editing the .xinitrc file. I did notice that there were several files in the /etc/X11/initrc directory with names like xinitrc.fluxbox but there is not one for Pekwm. The only xinitrc file listed in this directory is a link to xinitrc.kde. How do I get Pekwm added to this directory or have it show up in the xwmconfig?
|
|
|
|
05-06-2004, 01:51 AM
|
#2
|
|
Member
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482
Rep:
|
Re: adding pekwm to .xinitrc
Quote:
Originally posted by olscratch
I installed Pekwm today but when I ran xwmconfig it is not in the list of window managers. The install directions that came with Pekwm say you may need to add Pekwm to the .xinitrc file. I don't know anything about editing the .xinitrc file. I did notice that there were several files in the /etc/X11/initrc directory with names like xinitrc.fluxbox but there is not one for Pekwm. The only xinitrc file listed in this directory is a link to xinitrc.kde. How do I get Pekwm added to this directory or have it show up in the xwmconfig?
|
the ~xinitrc editing is pretty straight forward. at the bottom you can specify what window manager to load at login.
|
|
|
|
05-06-2004, 02:04 AM
|
#3
|
|
Senior Member
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132
Rep:
|
It sound sto me like you're just having trouble finding the .xinitrc file. Just type (as root or any user) Do you see an .xinitrc file now? If not, you don't have one. Youll have to make one. One way is (from your home directory, which you are already in if you followed the above commands) that'll start up the vi editor for a new file named .xinitrc. If you don't like vi, use pico or gedit, or kate, or whatever.
That should do what you are looking for. Otherwise, I believe you can also create a file named /etc/X11/xinitrc/xinitrc.pekwm. Then use the file /etc/X11/xinitrc/xinitrc.fluxbox as aguide for what you should put in the file. Either way should work out for you.
|
|
|
|
06-05-2004, 09:21 PM
|
#4
|
|
Member
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309
Rep:
|
I've looked all over trying to find the answer to this question and haven't found it. How do I start pekwm? If I type 'pekwm' at a command line I get error messages about the display. The documentation doesn't give any useful information.
Thanks.
Kent
|
|
|
|
06-05-2004, 09:58 PM
|
#5
|
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
Create the file if it doesn't exist ~/.xinitrc and put in it
That is if you boot to a console screen and startx. If you boot to a graphical display manager it depends on which one you are running.
|
|
|
|
06-06-2004, 12:56 AM
|
#6
|
|
LQ Newbie
Registered: Mar 2004
Location: Atlanta, Georgia
Distribution: Slackware-current
Posts: 26
Original Poster
Rep:
|
Basically I think I may have cheated a little. In the directory /etc/X11/xinit there are several files, each one named after a window manager, like xinitrc.pekwm. On my pc they were all pretty much the same, except at the bottem of the file it will say something like exec pekwm. Or what ever window manager they point to that it should be name after. What I did was copy one of these xinitrc files and name it xinitrc.pekwm. Then at the botton of the file I put exec pekwm instead of what ever window manager it pointed to. When I want to change window managers I log out of the one I am using and in the console I type xwmconfig. This brings up an ncurses( I think that is what it is called) menu of the different xinitrc.windowmanager files you have in the directory /etc/X11/xinit. Simply use the arrow buttons to select the one you want to use and click enter. Below are examples of what I am talking about.
======The Directory :
root@slackware:/etc/X11/xinit# ls
README.Xmodmap xinitrc.e xinitrc.fvwm2 xinitrc.kde xinitrc.wmaker
xinitrc xinitrc.twm xinitrc.fvwm95 xinitrc.pekwm xinitrc.xfce
xinitrc.afterstep xinitrc.fluxbox xinitrc.gnome
======Now the file will look something like this:
#!/bin/sh
# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi
# Start the window manager:
exec pekwm
I hope I have written this so that it makes sense to you and I hope it helps.
|
|
|
|
06-06-2004, 06:26 PM
|
#7
|
|
Member
Registered: Nov 2003
Distribution: Ubuntu
Posts: 309
Rep:
|
But when I enter either 'exec pekwm' or 'pekwm' at the command line I get the error message:
Can not open display!
Your DISPLAY variable currently is set to:
Is there another configuration file I need so it works properly?
Kent
|
|
|
|
06-08-2004, 10:21 AM
|
#8
|
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
Type 'startx'. Pek doesn't start X; X starts pek. So 'startx' will initialize X and invoke pek. Otherwise, you're trying to chuck pek into the console and it can't handle that.
The last line of .xinitrc should say 'exec pekwm' - no need to type it again.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:13 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|