1.Is xorg installation necessary to install any other DE?
Yes, it's the main graphics environment. You install desktop environments or window managers on top of xorg. Eg, they all depend and use xorg's API.
2.How to connect to internet?
Switch back your router into routing mode, make sure it connected itself to the internet and that his DHCP is working. Test with some other operating system (eg Windows if you have them).
You need to configure your network adapter to use DHCP autoconfiguration. The command;
should return all network adapters, both configured and unconfigured. It looks like this. This is the output from my workstation;
Code:
$ ifconfig -a
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
ether 00:1c:c0:94:b4:4e
inet 192.168.150.10 netmask 0xffffff00 broadcast 192.168.150.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:90:27:3f:d3:b1
ch 1 dma -1
fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
lladdr 0.90.27.0.2.3f.d3.b1.a.2.ff.fe.0.0.0.0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
$
So i have primary network card on the top (em0), firewire interfaces (fwe0 and fwip0) and loopback device (lo0). Keep in mind that freeBSD doesn't name network adapters like Linux (eth0, eth1, eth2), it names them by their driver, where in my example the "em" driver is used for Intel PRO/1000 interfaces. If you aren't sure what driver your card uses, you can always grep through the boot messages, for instance;
Code:
$ dmesg | grep em0
em0: <Intel(R) PRO/1000 Network Connection 6.9.14> port 0x4400-0x441f mem 0x93200000-0x9321ffff,0x93224000-0x93224fff irq 20 at device 25.0 on pci0
em0: Using MSI interrupt
em0: [FILTER]
em0: Ethernet address: 00:1c:c0:94:b4:4e
em0: link state changed to UP
This basically confirmes that em0 is the Intel PRO/1000 card. If i had two of those, i'd have em0 and em1. If i had one Intel PRO/1000 and one Intel PRO/100, i'd have em0 and fxp0, because PRO/100 is controlled by "fxp" driver.
Another way to check what interface you want is to check the first line of it's ifconfig output;
Code:
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
You see the "UP" flag there, therefore the interface has a physical connection to other side (cable connected).
For the sake of example, you've detected your wanted network card as "xl0". Issuing a simple command
should run the DHCP autoconfiguration of the interface. You'll see DHCP progress on your console, dhclient should add the router as primary gateway and DNS server. Command
will show routing table where you can confirm gateway entry;
Code:
$ route get default
route to: default
destination: default
mask: default
gateway: IP ADDRESS OR HOSTNAME OF YOUR ROUTER SHOULD BE HERE
interface: em0
flags: <UP,GATEWAY,DONE,STATIC>
recvpipe sendpipe ssthresh rtt,msec mtu weight expire
0 0 0 0 1500 1 0
You can also confirm DNS entries by doing "cat /etc/resolv.conf". There should be a line "nameserver IP" where IP could be either IP of the router or DNS server of your ISP, depending whether your router has DNS relay or just sends in your ISP's DNS servers via DHCP to your machine.
After that, you should be able to ping some internet site.
If you want to make DHCP configuration of your interface permanent, put the line;
in /etc/rc.conf.
I see internet connection is my primary problem because whatever port(which i added from CD while installing FreeBSD) I try to install with changing directory to that port and typing make install clean it gives me message that there are some mising files (like 3ddesktop with xorg installing) and then starts connecting to some web pages but no succes.
Ports tree is just a repository of programs you can compile, install and maintain via automatic process and automatic dependency resolving. The source packages for those programs are located on the internet, so you need to have the connection or you can download files via some other computer, and transfer them via some medium to /usr/ports/distfiles.
You should first install xorg by running "make install clean" in /usr/ports/x11/xorg , it's metaport provides simple twm window manager, which should be enough to test graphics / keyboard / mouse. When building the port - don't tweak the options when prompted, just proceed. The vanilla compiling options should be enough for you.
Xorg should build itself with HAL support, that's for autodetection of hardware basically. There's one twitch here - you need to run HAL daemon yourself; put the line hald_enable="YES" into /etc/rc.conf, to autoload it on boot, and execute "/usr/local/etc/rc.d/hald start". Then execute "startx" to initiate Xorg.
When you have working internet connection and fully operational xorg, you can install and try any DE/WM from the ports tree.
Pozdrav
