Wednesday, April 23, 2014

FreeBSD network setup





1)ifconfig
ifconfig em0 192.168.0.77 netMask 255.255.255.0
dhclient em0 to find gateway
add a gateway
route add default 192.168.0.25
vi /etc/resolv.conf
to configure  DNS
virtual box menu:
 http://dlc.sun.com.edgesuite.net/virtualbox/3.2.6_BETA1/UserManual.pdf
check which shell
echo $0
To add a user:
oot@myzone:~# useradd -m -d /bleonard -s /usr/bin/bash bleonard
80 blocks

root@myzone:~# passwd bleonard
New Password: 
Re-enter new Password: 
passwd: password successfully changed for bleonard

install firefox
pkg install firefox
no display specified

setup graph interface for freebsd
pkg install xorg

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

another way
pkg install gdm
vi /etc/rc.conf
gdm_enable="YES"

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

6.7.1.2. Installing GNOME

The software can be easily installed from a package or the Ports Collection:
To install the GNOME package, type:
# pkg install gnome2
 

For proper operation, GNOME requires the /proc filesystem to be mounted. Add
proc           /proc       procfs  rw  0   0
to /etc/fstab to mount procfs(5) automatically during startup.
Once GNOME is installed, the X server must be told to start GNOME instead of a default window manager.
The easiest way to start GNOME is with GDM, the GNOME Display Manager. GDM is installed as part of the GNOME desktop, although it is disabled by default. It can be enabled by adding this line to /etc/rc.conf:
gdm_enable="YES"
Once you have rebooted, GDM will start automatically.
It is often desirable to start all GNOME services together with GDM. To achieve this, add the following line to /etc/rc.conf:
gnome_enable="YES"
GNOME may also be started from the command-line by properly configuring a file named .xinitrc. If a custom .xinitrc is already in place, simply replace the line that starts the current window manager with one that starts /usr/local/bin/gnome-session instead. If nothing special has been done to the configuration file, then it is enough simply to type:
% echo "/usr/local/bin/gnome-session" > ~/.xinitrc
Next, type startx, and the GNOME desktop environment will be started.

No comments:

Post a Comment