LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 08-01-2003, 11:06 PM   #1
juby
Member
 
Registered: Dec 2002
Location: Bangalore, India
Distribution: Ubuntu 5.*
Posts: 241

Rep: Reputation: 30
Start x server by default


HI i m new to freebsd.. seems quite same as linux ( first impression )
My qns are

can we start the x server by default

Is there a command that we can use to choose our gui like switchdesk in linux

thats it for now
 
Old 08-01-2003, 11:36 PM   #2
brice2nice
Member
 
Registered: Jul 2003
Location: france
Distribution: GNU/Linux GNU/debian GNU/sarge
Posts: 48

Rep: Reputation: 15
cd ports/xdm && make depends && make install && make clean
 
Old 08-02-2003, 02:18 AM   #3
Marble
Member
 
Registered: Feb 2003
Distribution: FreeBSD 5.2
Posts: 113

Rep: Reputation: 15
in the ttys (/etc/ttys) file for terminal 8 change the default xdm start to the location of your kdm (kde) or gdm (gnome) wrapper (I heard kdm is better if using 5.1) then change off to on.

If you have a startup script in the .xsession file you will have a gui start up. Go the the FreeBSD manual and check out chapter 5, there is another file you have to edit to set it up so it recognizes you have different gui managers.

www.freebsd.org
 
Old 08-10-2003, 11:47 PM   #4
juby
Member
 
Registered: Dec 2002
Location: Bangalore, India
Distribution: Ubuntu 5.*
Posts: 241

Original Poster
Rep: Reputation: 30
I tried that tty8 stuff. but i conked it up trying to use ksm .. now i can neither get inot kde nor the shell ! how do i go back and edit the tty8 ------ line
is there any option that can be passed to the kernel like linux to change the runlevel ?
 
Old 08-11-2003, 12:30 AM   #5
Marble
Member
 
Registered: Feb 2003
Distribution: FreeBSD 5.2
Posts: 113

Rep: Reputation: 15
Login in as root and ee /etc/ttys

Then edit that line so that it says "off".

Start over.

Do this: (as root.)
# XFree86 -configure

# XFree86 -xf86config XF86Config.new

If you are running 5.1, then copy XF86Config.new to
cp XF86Config.new /usr/X11R6/lib/X11/XF86Config

Now you should be able to start x.
# startx

alt-cntrl-del to get out of x.

If you have KDE installed then your kdm wrapper should be here:
/usr/local/bin/kdm

So your /etc/ttys file should have this path instead of the xdm path. Also change off to on.

Now ee ~/.xinitrc

add this line:
exec startkde

or better make this file:
~./xsession

and add the same line.

Now you need to edit a few more files, which is easiest to explain on this page:
http://www.freebsd.org/doc/en_US.ISO...ok/x11-wm.html

Scroll down to where you have to edit the Xsession file in the xdm directory.

If by chance you dont have KDE installed, then you can go to the ports:
/usr/ports/x11/KDE3

make install clean

to install KDE before doing the above. You can go here:
/var/db/pkg to see a list of what ports are installed on your machine. You should see kde-3.1.2 if you are current. I am using 5.1 so if you are using 4.8 there is a chance that the paths are different for some of the above files and binaries. Hope this helps.

You should:
# chmod +x ~/.xsession
so that your .xsession is executable.

Last edited by Marble; 08-11-2003 at 12:32 AM.
 
Old 08-11-2003, 01:12 PM   #6
juby
Member
 
Registered: Dec 2002
Location: Bangalore, India
Distribution: Ubuntu 5.*
Posts: 241

Original Poster
Rep: Reputation: 30
i am not able to login as anyone. i get the kdm screen and when i try to login it just restarts the x server to get back the login screen.
I want to get into shell prompt and edit the file...
Can i access linux partitons from BSD or viceversa ? if so how ?
i dont want to recompile my linux kernel..
 
Old 08-11-2003, 01:41 PM   #7
Marble
Member
 
Registered: Feb 2003
Distribution: FreeBSD 5.2
Posts: 113

Rep: Reputation: 15
Dont you see a list of options to boot into, prior to loading x? You can boot into "single user mode" (which is option 4, I think.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
start print server and printer by default caulfiek SUSE / openSUSE 2 10-23-2005 02:09 PM
I want KDE to start by default. marsguy SUSE / openSUSE 7 10-17-2005 04:21 PM
change default os to start Ammad Solaris / OpenSolaris 1 12-31-2004 12:39 PM
how to start kde as default pkuer Linux - Software 4 07-24-2004 09:29 PM
New Virtual Servers Default to Default Server Page? DigiDave Linux - Software 4 10-18-2003 03:23 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

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