Solved

start Xwindows automatically

Posted on 2004-10-06
4
13,993 Views
Last Modified: 2013-11-22
Hi There,

I'm new to FreeBSD and I want to start GNOME automatically before login. Can I do that? In Redhat , it's the same as changing the run level in inittab, can I do that in FreeBSD?
0
Comment
Question by:kwseow
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 5

Accepted Solution

by:
van_dy earned 250 total points
ID: 12246818
to start X-windows automatically u might need to edit the /etc/ttys file. see if it contains a line like:

ttyv8   "/usr/X11R6/bin/xdm -nodaemon"  xterm   off secure

if its 'off' as in above, replace 'off' with 'on'. then u can edit the .xsession file in ur home directory to start the window manager u want. my .xsession looks like

xsetroot -solid black &
xset m 4 &
fvwm2

u can replace the fvwm2 line with the relevant binary for starting gnome or kde on ur system.
hope this helps.
0
 
LVL 62

Expert Comment

by:gheist
ID: 12252256
To run gnome you need to use /usr/local/bin/gdm instead of xdm in /etc/ttys - just change that line to have command /usr/local/bin/gdm.
Then you configure auto-login in gnome if you intend to use it.
0
 

Expert Comment

by:reject0
ID: 12506381
or if you want to keep your text login in case something bad happens (which I personally recommend) AND if you use tcsh as your shell you can edit the .login file and put in it startx

Then in the .xinitrc file (should be in your home directory if not create it) be sure you have gnome-session (i think is the command).

And once you login using your username and pass it will X will start and gnome will load
0
 
LVL 1

Expert Comment

by:tuaris
ID: 13474331
As root copy or rename the following file:

/usr/X11R6/etc/rc.d/gdm.sh.sample

-to-

/usr/X11R6/etc/rc.d/gdm.sh

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question