View Full Version : [Solved] How to auto-start xfce4?
rokpa92
September 5th, 2009, 05:29
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!
ale
September 5th, 2009, 09:22
gnome_enable should start gdm.
Isn't there an option to start xfce in the bar at the bottom of the gdm screen?
SirDice
September 5th, 2009, 10:27
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.
Beastie
September 5th, 2009, 11:43
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.
rokpa92
September 5th, 2009, 14:31
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
ale
September 5th, 2009, 15:06
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-xdm.html
tkjacobsen
September 5th, 2009, 15:16
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
exec /usr/local/bin/startxfce4
Make the file executable with the command
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
adamk
September 5th, 2009, 16:26
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
rokpa92
September 5th, 2009, 19:27
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.
Beastie
September 5th, 2009, 19:56
In your first post you 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
all documentation is in English
It's available in many languages. Is yours included here (http://www.freebsd.org/doc/)? If so, you can find the handbook by following this path: /your_locale/books/handbook/.
ale
September 5th, 2009, 20:00
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.
tkjacobsen
September 5th, 2009, 23:51
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:
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
should be changed to
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm on secure
9) install xdm: pkg_add -r xdm
10) become your regular user again: exit
11) put startxfce in .xsession and make it executable:
echo "#!/bin/sh" > ~/.xsession
echo "/usr/local/bin/startxfce4" >> ~/.xsession
chmod +x ~/.xsession
12) reboot
13) ???
14) profit!
Beastie
September 6th, 2009, 00:18
12) reboot
kill -HUP 1
rokpa92
September 6th, 2009, 01:48
I have a little problem in this steps:
8) vi ttys
the line:
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure
should be changed to
ttyv8 "/usr/local/bin/xdm -nodaemon" xterm on 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
[b]vi. xsession[b] to do what you told me
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.
DutchDaemon
September 6th, 2009, 02:31
It's /etc/ttys ....
rokpa92
September 6th, 2009, 03:03
It's /etc/ttys ....
Thanks! i don´t know
i am trying now with that you say.
rokpa92
September 6th, 2009, 03:39
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:
echo "#!/bin/sh" > ~/.xsession
echo "/usr/local/bin/startxfce4" >> ~/.xsession
chmod +x ~/.xsession
sorry... .xsession have a "special" directory/folder? Where is please?
DutchDaemon
September 6th, 2009, 04:17
It's in your home directory (represented by ~).
(please don't PM me with questions that belong on the forums, thank you)
rokpa92
September 6th, 2009, 04:57
YEAHHH!!!!
Thanks all for yours help!
I can run now!! Thanks again! I am a very happy girl this night!
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.