Solved

start Xwindows automatically

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

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now