Solved

start Xwindows automatically

Posted on 2004-10-06
4
13,996 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

691 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