BSD Howtos
I thought it might be useful to start a thread on how to do some things on different versions of BSD. Please feel free to post your own howtos.
Here is a short explanation on how to install XFCE on OpenBSD 5.4. After you have installed OpenBSD 5.4 login as your regular user and then get a root prompt. This is the ftp server I use. Set your package pathway. Code:
# export PKG_PATH=ftp://ftp3.usa.openbsd.org/pub/OpenBSD/5.4/packages/i386/ Code:
# pkg_add -v xfce-4.10.tgz Code:
# pkg_add -v xfce-extras-4.10p0.tgz Code:
echo "exec startxfce4" > .xinitrc Code:
startx |
why do you need a reboot?
|
Quote:
The series of commands above will yield a fully functional XFCE. I am certain of that. |
Xfce4 is still fairly lightweight compared to Gnome3 and KDE4. However most BSDs and other UNICES still use KDE4 as their heaviest weight desktop with MATE, Gnome2, Xfce4, and several others as their lighter weight desktops. I personally use Xfce4 as it's verily the most flexible.
|
Quote:
|
To install openbox on NetBSD:
Code:
pkg_add -v openbox Code:
exec openbox-session Code:
startx Other tasks: Copy openbox files into your .config/ (use this files to customize your openbox) Code:
cp -R /usr/pkg/share/examples/openbox/ ${HOME}/.config/ Code:
pkg_add -v dbus Code:
cp /usr/pkg/share/examples/rc.d/dbus /etc/rc.d Code:
echo famd=YES >> /etc/rc.conf Code:
/etc/rc.d/famd start To customize your openbox, there are many resources online (just one as example) |
Two notes on your OpenBSD section.
I'd advise picking a mirror close to you. HTTP or FTP will work fine. There's plenty of mirrors to choose from: http://www.openbsd.org/ftp.html The other thing is that pkg_add in OpenBSD doesn't need the specific version number of the package you want (contrary to FreeBSD). xfce and xfce-extras are sufficent. Be aware though that it will prompt you for an ambiguous dependency, but the first choice is usually fine. |
Quote:
Quote:
|
OpenBSD
Check if the PKG_PATH is set Code:
echo $PKG_PATH Quote:
Code:
pkg_info -Q <package name> Code:
pkg_delete /var/db/pkg/<package name> |
A good thread idea but lacking content. I guess not to many BSD users here in LQ :/
A good BSD youtube channel http://www.youtube.com/user/bsdtutorial Lots of good tutorials on the BSDs |
Quote:
|
I'm trying FreeBSD 10, and it seems like I'm finding completely different steps to achieve the same result as thing mentioned above.
For instance, to install XFCE4, as "pkg_add: Command not found." Code:
pkg install xfce4-wm-4.10.1 Code:
echo 'dbus_enable="YES"' >> /etc/rc.conf Code:
/usr/local/etc/rc.d/dbus start |
Quote:
# pkg install xfce |
Battery monitoring in OpenBSD:
Get a list of sensors: user@openbsd:~$ sysctl hw.sensors ... hw.sensors.acpibat0.watthour0=4.35 Wh (last full capacity) hw.sensors.acpibat0.watthour1=0.43 Wh (warning capacity) hw.sensors.acpibat0.watthour2=0.00 Wh (low capacity) hw.sensors.acpibat0.watthour3=3.24 Wh (remaining capacity), OK hw.sensors.acpibat0.raw0=1 (battery discharging), OK hw.sensors.acpibat0.raw1=1957 (rate) ... Configure /etc/sensorsd.conf similar to: # alert if remaining capacity < warning capacity hw.sensors.acpibat0.watthour3:low=0.43Wh:command=/usr/X11R6/bin/xmessage "battery is low" Start/restart sensorsd via sudo /usr/sbin/sensorsd or sudo pkill -HUP sensorsd Set sensorsd_flags="" in /etc/rc.conf.local to stick around on boot. If remaining capacity goes below the warning capacity, a xmessage pop-up will interrupt you. |
To suspend on laptop when lid is closed in OpenBSD, uncomment:
machdep.lidsuspend=1 in /etc/sysctl.conf |
All times are GMT -5. The time now is 11:58 PM. |