How to auto-start xfce4?

I am new to this topic FreeBSD and Unix world.
I have a little problem.
I want to start when you start FreeBSD only Xfce.
I could do with Gnome, but I want Xfce.

My question is located somewhere on:
What I put in the file rc.conf to start Xfce only just begun the system (without logearme or anything)?

With Gnome it achieves including the line:

gnome_enable = "YES" in the file / etc / rc.conf and works to perfection. So I know I have to put Xfce because no information found.

Thanks!
 
gnome_enable should start gdm.
Isn't there an option to start xfce in the bar at the bottom of the gdm screen?
 
ale said:
Isn't there an option to start xfce in the bar at the bottom of the gdm screen?

There is. I use GDM to start GNOME or XFCE.
 
Why use GDM if you don't use GNOME? If you're not one of those who (wrongly) consider XDM as ugly/horrible, you could enable it in /etc/ttys (ttyv8) by switching the off to on, and creating a .xsession file in your home directory that loads xfce (don't forget to % chmod +x it). Changes will take effect immediately if you tell init to reload configurations (# kill -HUP 1).
Alternatively, other DMs should work too.
 
sorry, I do not understand

sorry, sorry I have 2 days with FreeBSD and the handbook have not found it.
Wanted to know why I had to make to begin alone.
As I read xfce fails to start only ... Why?
if equiboco me: could you tell me step by step qe I edit and place please?
I know I'm annoying but I want to learn and one thing that most interests me is to start only fxce
 
In order to start a desktop (xfce in your case) you need a login manager/display manager to start the x server and take credentials (username + passwd) from the user and to choose the desktop to log in to.

As you do not want gnome but only xfce you can use the xdm (x display manager) to handle this. How to do this is described in the link posted above.

shortly:
enable xdm in in /etc/ttys by changing "off" to "on" in the line starting with ttyd8.
now tell xdm that it should starte xfce by editing the users ~/.xsession.

It should just contain a line with something like
Code:
exec /usr/local/bin/startxfce4
Make the file executable with the command
Code:
chmod +x ~/.xsession

After a boot you should now be presented with xdm and logging in should start xfce.

Hope this helps / works

PS: everything is in the handbook
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11-wm.html#X11-WM-XFCE
 
However, if you want a display manager to log your user in automatically, without having type in a username and password, you will need to use either gdm or kdm. Both, however, can log you into xfce4 by default.

Adam
 
Thanks for all

First: Thanks for all.
did not think it would help as well to a novice like me.
Second: I'm very stubborn and there, the way I explain I do not understand.
Cargosa not want to be so, but a direct response would help me a lot because I felt lost.

Currently I have installed FreeBSD (wired with the "Minimum") So .. as light as possible.
2) Start the computer
3) log on as "root"
4) i write:
pkg_add-r gnome2
5) finish the install.
6) cd .. (go to the root of directory)
7) cd etc
8) vi rc.conf
9) Add gnome_enable = "YES" and save (ESC predicament and then, then q: w)
then later when reboot automatically when you start the pc, and load all GNOME2 is ready to login.

now ... I want the same for Xfce4.
The steps as would they be?

Currently I have installed FreeBSD (wired with the "Minimum") So .. as light as possible.
2) Start the computer
3) log on as "root"
4) i write:
pkg_add-r xfce4
5) finish the install.
6) cd .. (go to the root of directory)
7) cd etc
8) vi rc.conf
9) Can I add here? I have to go to another place?

I ask you again to forgive me but is that just start with this and I find it more difficult because all documentation is in English (language than just driving) and when I try to use the translators always translate poorly.

Sorry for being so annoying, but it interests me much.
 
In your first post you said:
rokpa92 said:
I could do with Gnome, but I want Xfce.
If you want Xfce and will NOT use GNOME, then why did you install it? You DON'T need it to use Xfce or start it automatically. You can do that by following the steps included in ours posts or in the handbook.
http://forums.freebsd.org/showpost.php?p=39872&postcount=4
http://forums.freebsd.org/showpost.php?p=39885&postcount=6
http://forums.freebsd.org/showpost.php?p=39886&postcount=7


rokpa92 said:
all documentation is in English
It's available in many languages. Is yours included here? If so, you can find the handbook by following this path: /your_locale/books/handbook/.
 
You can start xfce using startx from a console or a display manager like gdm, xdm...
As I've said in the 2nd post of this thread, with gnome_enable you also start gdm. At the bottom of the gdm login you can select the session and there you should select xfce.
If you don't want to use gdm, you can configure xdm as described in the handbook but for this you don't have to edit /etc/rc.conf.
 
rokpa92 said:
2) Start the computer
3) log on as "root"
4) i write:
pkg_add-r xfce4
5) finish the install.
6) cd .. (go to the root of directory)
7) cd etc

8) vi ttys
the line:
Code:
ttyv8   "/usr/local/bin/xdm -nodaemon"  xterm   [B]off[/B] secure
should be changed to
Code:
ttyv8   "/usr/local/bin/xdm -nodaemon"  xterm   [B]on[/B] secure
9) install xdm: pkg_add -r xdm
10) become your regular user again: exit
11) put startxfce in .xsession and make it executable:
Code:
echo "#!/bin/sh" > ~/.xsession
echo "/usr/local/bin/startxfce4" >> ~/.xsession
chmod +x ~/.xsession
12) reboot
13) ???
14) profit!
 
config files are empy

I have a little problem in this steps:

tkjacobsen said:
8) vi ttys
the line:
Code:
ttyv8   "/usr/local/bin/xdm -nodaemon"  xterm   [B]off[/B] secure
should be changed to
Code:
ttyv8   "/usr/local/bin/xdm -nodaemon"  xterm   [B]on[/B] secure

I dont have anything to change. Is empy.

Then I did was to skip this step I installing
pkg_add-r xdm
and then:
vi ttys
but still the same. Empty.
I wanted to try after the Comano
vi. xsession to do what you told me
Code:
echo "#!/bin/sh" > ~/.xsession
echo "/usr/local/bin/startxfce4" >> ~/.xsession
chmod +x ~/.xsession
and also is empty.
i be install in "minimal" but now i Format and install mode "user + X" but i have the same problem.
 
where is .xsession

DutchDaemon It's /etc/ttys ....

Yes! It´s work! A lot of thanks!

Nut other question:

11) put startxfce in .xsession and make it executable:
Code:
echo "#!/bin/sh" > ~/.xsession
echo "/usr/local/bin/startxfce4" >> ~/.xsession
chmod +x ~/.xsession

sorry... .xsession have a "special" directory/folder? Where is please?
 
It's in your home directory (represented by ~).
(please don't PM me with questions that belong on the forums, thank you)
 
Thanks

YEAHHH!!!!
Thanks all for yours help!
I can run now!! Thanks again! I am a very happy girl this night!
 
Back
Top