LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2005, 09:10 PM   #1
JackSmith
Member
 
Registered: Feb 2005
Location: US
Distribution: Slackware
Posts: 30

Rep: Reputation: 15
making a minimalist window manager start up with a particular user logs on


I'm setting up one user on my linux box to be for gaming. My brothers who don't know linux are going to be gaming using the machine.
I'm running Slackware 10.1, and I have the machine boot to console.
so I was wondering how I could set it up so that when a particular user logs on, xwindows starts with a minimalist window manager (twm maybe?), and so that Point2Play is automatically executed.
also, how do you give mount privilages to an account?
 
Old 05-21-2005, 12:45 PM   #2
Ynot Irucrem
Member
 
Registered: Apr 2005
Location: Perth, Western Australia
Distribution: Debian
Posts: 233

Rep: Reputation: 30
I'm still kind of noobish, and I think I may have pulled some or all the following out of my uh.. buttocks (that sounds so stupid, are there REALLY 13 year olds on this forum?). also I have never used slackware (although i am planning to use arch which is apparently a cross between gentoo and slackware). one more thing that will banish whatever credibility this post has - this is all untested, even on my distro. anyway:

assuming the default shell is bash, you could add "startx" to the end of your new user's ~/.bashrc file.
then, in their ~/.xinitrc, add whatever it says in the man page for twm - probably something like "exec twm" or "exec twm-start".
you could probably run point2play in one of these files too, just make sure if you put it in the ~/.xinitrc file, it is before the line with "exec", and it doesn't have "exec" in front of it.

I have no idea about mount privilages, but you could just add the "user" parameter to the entries for the devices you want them to be able to access, so that all users can mount that device, but only the person who mounts it can umount it.
 
Old 05-22-2005, 10:53 AM   #3
Croaker
Member
 
Registered: Sep 2004
Location: Oklahoma City, OK
Distribution: Slackware 12.1
Posts: 41

Rep: Reputation: 15
It should work something like this:
Code:
bash# adduser
Fill in appropriate information
Then copy the xinit file to the newuser home directory
Code:
bash# cp /etc/X11/xinit/xinit.twm /home/newuser/.xinitrc
Then
Code:
bash# cd /home/newuser/
Then open .xinitrc with your favorite text editor. I use mc so I'll use that as my example
Code:
bash# mcedit .xinitrc
I don't have twm so I'll use blackbox as the example.
Just substiture twm for blackbox
At the bottom you will see this:
Code:
# Start the window manager:
exec /usr/local/bin/blackbox
And add a line like this here
I'm using firefox for my example. Use the full path name for the program you want to start and make sure you put the ampersand in so the program will return control to twm.
Code:
# Start the window manager:
exec /usr/bin/firefox &
exec /usr/local/bin/blackbox
Save it. Then log in as the newuser to make sure everything works.
That will start the program you want when they type 'startx'.

To give mount privilages to a user just do (as root):
Code:
chgrp users /mnt/cdrom
And that should take care of everything.
 
  


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
Window manager doesn't start ka7znm Fedora 1 10-03-2004 08:54 AM
Window manager (fluxbox) won't start when logging in pbaumgar Slackware 6 05-06-2004 01:50 AM
How do I get the window manager to start straight away? neocookie Slackware - Installation 4 04-27-2004 02:48 AM
Debian: WMaker won't start from x-window-manager Haite Linux - Distributions 2 03-16-2003 11:36 PM
start X without a window manager BTseapig Programming 1 03-14-2002 04:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:22 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