PDA

View Full Version : [Solved] [XFCE] Problem with normal users


strangegeorge
May 18th, 2011, 20:03
Hello everyone,
I recently installed FreeBSD 8.2. I installed xorg and configured. My problem is when I do:
exec startxfec4
I get an error message. But if I am logged in as root, it works fine. What do I have to do to fix it?

Thank you very much!

teckk
May 18th, 2011, 20:12
Put that into
/usr/home/<usernam>/.xinitrc

and what ever else you want,

Then starx x with
xinit

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x11.html

strangegeorge
May 18th, 2011, 20:16
Yes, I've done this. But my problem is that I can run Xfce as root but not as a regular user.

teckk
May 18th, 2011, 20:31
What is the error that you are getting as user?

Are you specifying the whole path?

/usr/local/bin/startxfce4

strangegeorge
May 19th, 2011, 07:23
I've done some changes but I still can't acces Xfce. I get this:
Could not look up internet address for dhcppc1.home.
This will prevent Xfce from operating correctly.
It may be possible to correct the problem by adding
dhcppc1.home to the file /etc/hosts on your system.

And when I press 'Continue Anyway' it logs me out.

SirDice
May 19th, 2011, 07:45
Make sure name resolving (DNS) works properly.

strangegeorge
May 19th, 2011, 08:24
What do you mean?

Beastie
May 19th, 2011, 11:46
Please, use the search (http://forums.freebsd.org/search.php) feature of the forum.

This question has been asked many times:
http://forums.freebsd.org/showpost.php?p=56988&postcount=3
http://forums.freebsd.org/showpost.php?p=71804&postcount=2
http://forums.freebsd.org/showpost.php?p=45318&postcount=20
etc.

Vovas
June 2nd, 2011, 08:11
You should do it like this:
# ee /etc/hosts
And add this line
192.168.1.1 dhcppc1 dhcppc1.home # Your FreeBSD system
And I think you need to use a static ip address.

More information here (http://wiki.xfce.org/faq):
When I start Xfce a dialog pops up saying "Could not look up internet address for..."

Xfce simply wants your hostname to be in /etc/hosts. Example input: 127.0.0.1 localhost

wblock@
June 2nd, 2011, 16:10
You should do it like this:
# ee /etc/hosts
And add this line
192.168.1.1 dhcppc1 dhcppc1.home # Your FreeBSD system
And I think you need to use a static ip address.

It varies depending on how the system is getting an IP address in the first place. If the system has a static address, setting that in /etc/hosts is fine.

If DHCP is used, the DHCP and DNS servers should be set up to so host names resolve into IP addresses, but cheap routers sometimes don't do that (looking at you, D-Link). Putting a static address into /etc/hosts when using DHCP can cause problems. Adding the hostname to the 127.0.0.1 line is an option. With a hostname of "zoot", for example:

127.0.0.1 localhost zoot zoot.my.domain

strangegeorge
June 3rd, 2011, 11:55
Thanks, I edited /etc/hosts and everything works fine now.