Sunday, February 28, 2010

FreeBSD (II)

Installing X11 on FreeBSD
# cd /usr/ports/x11/xorg
# make install clean
# nano /etc/rc.conf
add this to rc.conf for keyboard and mouse auto-detection:
hald_enable="YES"
dbus_enable="YES"
Nice thing with installing things in FreeBSD. For example, using a package manager in Red Hat and Debian based distributions doesn’t allow you to install multiple packages from different consoles, that’s mainly because it has to track every changes to the internal database of packages installed, so if you’re installing a package in a console windows, and you try to install another package in another console window, you’ll get an error telling you the package database is locked. Well, in my newly installed FreeBSD I’m installing X.org in a console window, and nano editor in another one. Pretty cool shit!!
To test if X is starting, you run “startx” in CLI, and you should see some green window crap.
Installing Gnome is way too easy:
# pkg_add –r gnome2
Additionally, if you want gnome to be started automatically, you add this to /etc/rc.conf:
# gdm_enable=”YES”
# gnome_enable=”YES”
Upgrading installed ports. You can easily do that by using one of the commands:
# portmanager –u
# portmaster –a
# portupgrade –a
Cleaning disk space after using ports can be done like this:
# portsclean –C # to clean up ports collection
# portsclean –DD # to clean up dist files

No comments:

Post a Comment