Solved

start Xwindows automatically

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Linux performance issues with 100% swap usage, etc 15 93
Convert OverPunch 25 64
LINUX ZIP - UNCOMPRESS WINDOWS PATH 3 97
Adding a continue option in a script 9 39
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…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

776 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