LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-28-2003, 07:40 PM   #1
rootbryan
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Rep: Reputation: 0
Window manager


What do i have to do to make the window manager to load automatically at boot time?
 
Old 08-28-2003, 07:45 PM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Do you want automatic login? That's a very bad thing. Wherever you do dont just not set a password though.

Do you normally log in via command line or graphical screen?
 
Old 08-28-2003, 08:01 PM   #3
rootbryan
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
yes, i want automatic login and i log in via command line.
about the other subject, i 'm sorry i don 't know anything.
 
Old 08-28-2003, 08:10 PM   #4
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
You cant have it automatically login, and if you could, NEVER do that. Its a horrible security risk.

If for some reason SSH or telnet was on that machine, I could get into your machine and delete all your files without even trying.



If you want a GUI to start automatically, edit your /etc/inittab (as root), like:

id:3:initdefault:

to

id:5:initdefault:
 
Old 08-28-2003, 08:21 PM   #5
rootbryan
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
thanks i 'll do it
salu2
 
Old 08-29-2003, 06:35 AM   #6
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 31
or you could set your .bashrc file so when you log in via the command line, it'll run X
 
Old 09-18-2003, 10:41 PM   #7
rootbryan
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
I canīt found the .bashrc, and
How do i do that?
 
Old 09-19-2003, 10:42 AM   #8
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
It is a hidden file - hence the dot at the beginning. If you haven't got it already then make it! Just fire up your editor of choice, create the file and save it as /home/bryan/.bashrc
 
Old 09-23-2003, 06:43 PM   #9
rootbryan
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
How do i create the file? What do i have to write in it?
 
Old 09-23-2003, 07:10 PM   #10
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
create it in any text editor you want.
 
Old 09-23-2003, 07:24 PM   #11
rootbryan
LQ Newbie
 
Registered: Aug 2003
Posts: 20

Original Poster
Rep: Reputation: 0
what do i have to write in this file?
 
Old 09-24-2003, 07:30 AM   #12
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
<edit>Complete rewrite of the post. Was about .xinitrc/.xsession files, but should be about .bashrc files.</edit>

The .bashrc file should contain things like any aliases you may want to use, any environment variables you want to set, etc. For example, you could have something as simple as:
Code:
#! /bin/bash
alias ls='ls --color=always'
alias ll='ls -l'
That would be a very simplistic one. There may be an 'example/default' bashrc file in /etc - usually without the preceding dot. Have a look and if so, you may be fine simply copying that to your home directory.

Last edited by Thymox; 09-24-2003 at 01:02 PM.
 
Old 09-24-2003, 10:42 AM   #13
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
Lightbulb got a hint/question

isn't .bashrc supposed to be ran _every_time_ you open a non-login shell?

In that case that's not quite what rootbryan wants....? or is it?

just a thought!

do the /etc/inittab thingy that contrsutra said.
set the wm from .xinit.rc, .xsession or some other file (man X, man xinit can help you
 
Old 09-24-2003, 12:59 PM   #14
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
D'oh! Sorry - I was actually thinking about a completely different thread at the time of writing.

Just going to edit it...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What's the best X-Window System window manager in your opinion? t3gah Linux - Software 9 12-16-2006 10:10 PM
Window Manager phsythax Linux - Newbie 14 11-04-2005 02:25 PM
window manager shakeeb Linux - General 1 10-24-2003 12:22 PM
What Window Manager You Using? hexx Linux - General 3 08-19-2003 04:17 PM
Window Manager Bigun Linux - General 7 06-14-2003 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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