People coming from Linux will find that they can't scroll back through the console output the same way on FreeBSD.
In FreeBSD you need to press "Scroll Lock" and use the arrow keys, PageUp and PageDown to be able to scroll backwards and forwards the console output. To go back to the prompt press "Scroll Lock" again.
Notes, tips, tutorials, how-tos, etc... All related to Unix-like OS namely FreeBSD and Linux. My way of giving a bit back to the community. ;)
Tuesday, June 30, 2009
Wednesday, May 13, 2009
Book Review: The Best of FreeBSD Basics
Having read Lucas' Absolute FreeBSD any other BSD book I read ends up being measured against it.
The Best of FreeBSD Basics (TBFB) is essentially a compilation of Dru Lavigne's articles at O'Reilly Media and this is exactly the books weakness: there is no backbone, no underlying purpose or scope. When one picks up Absolute FreeBSD BSD that person will know that network/system administration is the book's focus, when one pick Builing a Server with FreeBSD 7 service installation and configuration is the core, with BSD Unix Toolbox the reader will acquire knowledge on tons of system configuration commands.
However with TBFB its purpose isn't discernible; sometimes it's a tip, on occasion a tutorial, at times advices, all in a very disconnected way between each other. Also, sometimes during the book you'll come across stuff that is just duplicated from a previous section/chapter which is just wrong.
The book does have its shinning stops. It brinks with Dru's love for the operating system by presenting small details that you won't find in any other BSD book. In this perspective the book is an adventure through the wonderful world of FreeBSD much like a blog dealing with one's notes of his adventure in exploring a new OS (like my own blog for instances).
Noticeable is the fact that some of the articles were "updated from FreeBSD 4 and 5 to reflect the usage on FreeBSD 6 and 7" as the book's back states. And that just comes back to haunt you, namely when csup and supfile usage is discussed in a way that's just outdated for FreeBSD 7.
Now... do I recommend it? First get Absolute FreeBSD. Next if you are into system administration get BSD Unix Toolbox and get yourself Building a Server with FreeBSD 7 if you are planning on building a personal server. After you've gone through these dive ahead and get The Best of FreeBSD Basics.
As an end note, I'd really like to see a BSD book by Dru written from scratch maybe even focusing on the BSD certification initiative. Now that would be pure gold ;)
The Best of FreeBSD Basics (TBFB) is essentially a compilation of Dru Lavigne's articles at O'Reilly Media and this is exactly the books weakness: there is no backbone, no underlying purpose or scope. When one picks up Absolute FreeBSD BSD that person will know that network/system administration is the book's focus, when one pick Builing a Server with FreeBSD 7 service installation and configuration is the core, with BSD Unix Toolbox the reader will acquire knowledge on tons of system configuration commands.
However with TBFB its purpose isn't discernible; sometimes it's a tip, on occasion a tutorial, at times advices, all in a very disconnected way between each other. Also, sometimes during the book you'll come across stuff that is just duplicated from a previous section/chapter which is just wrong.
The book does have its shinning stops. It brinks with Dru's love for the operating system by presenting small details that you won't find in any other BSD book. In this perspective the book is an adventure through the wonderful world of FreeBSD much like a blog dealing with one's notes of his adventure in exploring a new OS (like my own blog for instances).
Noticeable is the fact that some of the articles were "updated from FreeBSD 4 and 5 to reflect the usage on FreeBSD 6 and 7" as the book's back states. And that just comes back to haunt you, namely when csup and supfile usage is discussed in a way that's just outdated for FreeBSD 7.
Now... do I recommend it? First get Absolute FreeBSD. Next if you are into system administration get BSD Unix Toolbox and get yourself Building a Server with FreeBSD 7 if you are planning on building a personal server. After you've gone through these dive ahead and get The Best of FreeBSD Basics.
As an end note, I'd really like to see a BSD book by Dru written from scratch maybe even focusing on the BSD certification initiative. Now that would be pure gold ;)
Monday, May 4, 2009
HowTo: Enemy Territory on FreeBSD
Update 26/03/2012:
With the introduction of Fedora 10 Linux compatibility environment, step 3 isn't required.
Update 10/05/2012:
Ever since EvenBalance stopped supporting Enemy Territory step 5 should be ignored. Please refer to HowTo: Get etkey and Punbuster files on Enemy Territory. If time permits I'll create a new post on how to install Enemy Territory for FreeBSD 9, until then ignore steps 3 and 5.
Wolfenstein: Enemy Territory is a free multiplayer FPS that takes place in the World World II pitting two teams (Allies and Axis) against each other for victory.
The game was originally going to be a retail expansion pack for Return To Castle Wolfenstein but the project was cancelled, Activision however decided to release it during 2003 for free.
In this post I'll detail the steps required to install and update Enemy Territory, the ET Pro mod, PunkBuster and XQF on FreeBSD.
1) Install and update Enemy Territory
Become the superuser:
If you don't have the Linux Compatibility Environment proceed to step 2, otherwise jump to step 3.
2) Enable the Linux Compatibility Environment
Enemy Territory needs both FreeBSD's Linux kernel module and near-minimal installation of a Linux distribution. By default, FreeBSD 7.x uses Fedora Core Linux 4.
The linux-enemyterritory port pulls in linux_base-fc4 so we just need to load the Linux kernel module at boot time. To do so run:
Wolfentein: Enemy Territory requires Linux X.Org libraries to load properly. To install them run the following command:
Next let's install Enemy Territory's best mod: ET Pro.
5) Update PunkBuster
Now start the game, create a player profile and quit. By doing so a .etwolf directory will be created in your home directory which includes a folder containing PunkBuster.
Point to http://www.evenbalance.com/index.php?page=pbsetup.php scroll down and follow the Linux download to download PunkBuster update application.
Change directory to where you've downloaded the pbsetup.run and:
On the main PunkBuster window click on Enemy Territory to select it and press "Check for Updates". Quit PunkBuster after updating it.
6) Install XQF
One can use the in game browser to search for server. However I recommend installing and using the XQF Game Server Browser as it a lot more flexible and complete:
I tend to play on www.Enemy-Territory.com by www.4netplayers.de server ;)
7) Fix sound issues
ET uses Linux's OSS sound infrastructure so you might come across issues. Here's how to enable sound on Enemy Territory under FreeBSD 7.x:
8) Setup widescreen resolution
If you have a widescreen monitor follow the instructions on my previous blog post HowTo: Widescreen resolutions on Enemy Territory.
And we're done!
See you on the battlefield I'll be the one with the tangram"FreeBSD~ name :D
With the introduction of Fedora 10 Linux compatibility environment, step 3 isn't required.
Update 10/05/2012:
Ever since EvenBalance stopped supporting Enemy Territory step 5 should be ignored. Please refer to HowTo: Get etkey and Punbuster files on Enemy Territory. If time permits I'll create a new post on how to install Enemy Territory for FreeBSD 9, until then ignore steps 3 and 5.
Wolfenstein: Enemy Territory is a free multiplayer FPS that takes place in the World World II pitting two teams (Allies and Axis) against each other for victory.
The game was originally going to be a retail expansion pack for Return To Castle Wolfenstein but the project was cancelled, Activision however decided to release it during 2003 for free.
In this post I'll detail the steps required to install and update Enemy Territory, the ET Pro mod, PunkBuster and XQF on FreeBSD.
1) Install and update Enemy Territory
Become the superuser:
% suAnd install the required port:
# cd /usr/ports/games/linux-enemyterritoryThis will pull Enemy Territory's installer from the web. If any port options pop up stick with the defaults and choose OK to continue.
# make install clean
If you don't have the Linux Compatibility Environment proceed to step 2, otherwise jump to step 3.
2) Enable the Linux Compatibility Environment
Enemy Territory needs both FreeBSD's Linux kernel module and near-minimal installation of a Linux distribution. By default, FreeBSD 7.x uses Fedora Core Linux 4.
The linux-enemyterritory port pulls in linux_base-fc4 so we just need to load the Linux kernel module at boot time. To do so run:
# echo 'linux_enable="YES"' >> /etc/rc.conf3) Install Linux X.Org libraries
Wolfentein: Enemy Territory requires Linux X.Org libraries to load properly. To install them run the following command:
# cd /usr/ports/x11/linux-xorg-libs4) Install the ET Pro mod
# make install clean
Next let's install Enemy Territory's best mod: ET Pro.
# cd /usr/ports/games/linux-enemyterritory-etproNow ET Pro will show under the Mods options in the games' main menu.
# make install clean
5) Update PunkBuster
Now start the game, create a player profile and quit. By doing so a .etwolf directory will be created in your home directory which includes a folder containing PunkBuster.
Point to http://www.evenbalance.com/index.php?page=pbsetup.php scroll down and follow the Linux download to download PunkBuster update application.
Change directory to where you've downloaded the pbsetup.run and:
# suPunkBuster will ask to fetch updates and prompt for a License Agreement. Afterwards point to "Add a Game option", choose Enemy Territory and its installation path.
# chmod +x pbsetup.run
# exit
% cp pbsetup.run ~/.etwolf/pb
% ./pbsetup.run
On the main PunkBuster window click on Enemy Territory to select it and press "Check for Updates". Quit PunkBuster after updating it.
6) Install XQF
One can use the in game browser to search for server. However I recommend installing and using the XQF Game Server Browser as it a lot more flexible and complete:
# cd /usr/ports/games/xqfXQF should identify the installed Enemy Territory so select the game and press "Update" to have XQF pull an updated server list.
# make install clean
I tend to play on www.Enemy-Territory.com by www.4netplayers.de server ;)
7) Fix sound issues
ET uses Linux's OSS sound infrastructure so you might come across issues. Here's how to enable sound on Enemy Territory under FreeBSD 7.x:
% suWith the above commands sound will be enabled immediately and also at boot time.
# sysctl hw.snd.compat_linux_mmap=1
# echo "hw.snd.compat_linux_mmap=1" >> /etc/sysctl.conf
# exit
8) Setup widescreen resolution
If you have a widescreen monitor follow the instructions on my previous blog post HowTo: Widescreen resolutions on Enemy Territory.
And we're done!
See you on the battlefield I'll be the one with the tangram"FreeBSD~ name :D
HowTo: Upgrade FreeBSD 7.1 to 7.2
Disclaimer: this post is for those that instead of using FreeBSD's excellent documentation maintain the bad habit of googling for things already covered in the project's official documentation. This is more or less a copy-paste of the FreeBSD 7.2-RELEASE Announcement instructions for upgrading 7.1 to 7.2.
These are needed steps to upgrade, through the binary upgrade method, the kernel and userland utilities to 7.2-RELEASE:
Upon rebooting the new kernel is enabled and we move into step 6. Here we end the upgrade process by updating the userland utilities.
That's it!
If you found this post useful that's actually a bad news: you aren't reading the project's official documentation! So please point to http://www.freebsd.org and educate yourself on FreeBSD ;)
These are needed steps to upgrade, through the binary upgrade method, the kernel and userland utilities to 7.2-RELEASE:
- % su
- # freebsd-update upgrade -r 7.2-RELEASE
- # freebsd-update install
- # shutdown -r now
- % su
- # freebsd-update install
- # shutdown -r now
Upon rebooting the new kernel is enabled and we move into step 6. Here we end the upgrade process by updating the userland utilities.
That's it!
If you found this post useful that's actually a bad news: you aren't reading the project's official documentation! So please point to http://www.freebsd.org and educate yourself on FreeBSD ;)
Wednesday, April 29, 2009
HowTo: Using DenyHosts to help thwart SSH attacks on FreeBSD
DenyHosts is a script intended to be run by UNIX-like system administrators to help thwart SSH server attacks (also known as dictionary based attacks and brute force attacks).
I've used it before on Gentoo Linux and liked it, so today I'll lay out the steps required to install and configure it on FreeBSD:
From step 4 to 9, rc.conf is updated so that DenyHosts is started at boot time and can act as a daemon monitoring SSH unauthorized login attempts registering them in hosts.deniedssh.
Finally, step 10 starts DenyHosts imediattely.
If you wish to learn more about DenyHosts have a look at the project's homepage at http://denyhosts.sourceforge.net.
I've used it before on Gentoo Linux and liked it, so today I'll lay out the steps required to install and configure it on FreeBSD:
- % su
- # cd /usr/ports/security/denyhosts
- # make install clean
- # echo 'denyhosts_enable="YES"' >> /etc/rc.conf
- # echo 'syslogd_flags="-s -c"' >> /etc/rc.conf
- # echo "sshd : /etc/hosts.deniedssh : deny" >> /etc/hosts.allow
- # echo "sshd : ALL : allow" >> /etc/hosts.allow
- # touch /etc/hosts.deniedssh
- Edit /usr/local/etc/denyhosts.conf and uncoment the BLOCK_SERVICE = sshd entry.
- # /usr/local/etc/rc.d/denyhosts onestart
From step 4 to 9, rc.conf is updated so that DenyHosts is started at boot time and can act as a daemon monitoring SSH unauthorized login attempts registering them in hosts.deniedssh.
Finally, step 10 starts DenyHosts imediattely.
If you wish to learn more about DenyHosts have a look at the project's homepage at http://denyhosts.sourceforge.net.
Friday, April 24, 2009
HowTo: Enemy Territory on Gentoo Linux
Wolfenstein: Enemy Territory is a free multiplayer FPS that takes place in the World World II pitting two teams (Allies and Axis) against each other for victory.
In this post I'll detail the steps required to install and update Enemy Territory, the ET Pro mod, PunkBuster and XQF on Gentoo Linux.
1) Install and update Enemy Territory
Become the superuser:
Now start the game, create a player profile and quit. By doing so a .etwolf directory will be created in your home directory which includes a folder containing PunkBuster.
Inside the game you can check the installed version by pulling the console down by pressing ~ and typing version. It should output the following:
To do so run:
3) Update PunkBuster
Point to http://www.evenbalance.com/index.php?page=pbsetup.php scroll down and follow the Linux download to download PunkBuster update application.
Change directory to where you've downloaded the pbsetup.run and:
On the main PunkBuster window click on Enemy Territory to select it and press "Check for Updates". Quit PunkBuster after updating it.
4) Install XQF
To browse and filter server I recommend installing and using the XQF Game Server Browser:
I tend to play on www.Enemy-Territory.com by www.4netplayers.de server ;)
5) Fix sound issues
ET uses Linux's OSS sound infrastructure so you might come across issues. If so please consult the Gentoo Linux Alsa Guide.
And we're done! See you on the battlefield :D
In this post I'll detail the steps required to install and update Enemy Territory, the ET Pro mod, PunkBuster and XQF on Gentoo Linux.
1) Install and update Enemy Territory
Become the superuser:
$ suAnd emerge the needed package:
# emerge enemy-territoryThe game's License Agreement will appear to which you must press the q key so that the following prompt appears:
Do you accept the terms of this license (RTCW-ETEULA)? [yes/no]Type yes.
Now start the game, create a player profile and quit. By doing so a .etwolf directory will be created in your home directory which includes a folder containing PunkBuster.
Inside the game you can check the installed version by pulling the console down by pressing ~ and typing version. It should output the following:
]\version
"version" is:"ET 2.60 linux-i386 Mar 10 2005" default:"ET 2.60 linux-i386 Mar 10 2005"2) Install the ET Pro mod
To do so run:
# emerge enemy-territory-etproNow ET Pro will show under the Mods options in the games' main menu.
3) Update PunkBuster
Point to http://www.evenbalance.com/index.php?page=pbsetup.php scroll down and follow the Linux download to download PunkBuster update application.
Change directory to where you've downloaded the pbsetup.run and:
# suPunkBuster will ask to fetch updates and prompt for a License Agreement. Afterwards point to "Add a Game option", choose Enemy Territory and its installation path (/opt/enemy-territory).
# chmod +x pbsetup.run
# exit
$ cp pbsetup.run ~/.etwolf/pb
$ ./pbsetup.run
On the main PunkBuster window click on Enemy Territory to select it and press "Check for Updates". Quit PunkBuster after updating it.
4) Install XQF
To browse and filter server I recommend installing and using the XQF Game Server Browser:
$ suXQF will identify the installed Enemy Territory so select the game and press "Update" to have XQF pull an updated server list.
# emerge xqf
I tend to play on www.Enemy-Territory.com by www.4netplayers.de server ;)
5) Fix sound issues
ET uses Linux's OSS sound infrastructure so you might come across issues. If so please consult the Gentoo Linux Alsa Guide.
And we're done! See you on the battlefield :D
Wednesday, April 22, 2009
HowTo: Enemy Territory on Debian Linux
Wolfenstein: Enemy Territory is a free multiplayer FPS that takes place in the World World II pitting two teams (Allies and Axis) against each other for victory.
In this post I'll detail the steps required to install and update Enemy Territory, the ET Pro mod, PunkBuster and XQF on Debian GNU/Linux. As a bonus I'll also describe how to workaround sound problems with Enemy Territory on Debian 5.
These steps can be pretty much be reproduced in any Linux distribution. It should be noted that the steps were performed on Debian Lenny but should translate to newer releases.
1) Install and update Enemy Territory
Let's start by fetching the games' installer, make the downloaded file executable and run it to install the game:
Now download its update:
Inside the game you can check the installed version by pulling the console down by pressing ~ and typing version. It should output the following:
Next let's install Enemy Territory's best mod: ET Pro.
In this post I'll detail the steps required to install and update Enemy Territory, the ET Pro mod, PunkBuster and XQF on Debian GNU/Linux. As a bonus I'll also describe how to workaround sound problems with Enemy Territory on Debian 5.
These steps can be pretty much be reproduced in any Linux distribution. It should be noted that the steps were performed on Debian Lenny but should translate to newer releases.
1) Install and update Enemy Territory
Let's start by fetching the games' installer, make the downloaded file executable and run it to install the game:
$ wget -c http://ftp.freenet.de/pub/4players/hosted/et/official/et-linux-2.60.x86.run
$ su
# chmod +x et-linux-2.60.x86.run
#./et-linux-2.60.x86.run
Press OK in the popup.
Agree with the License Agreement by pressing ENTER at the License Agreement prompt and choosing YES on "Do you agree with the license?" popup that follows.
Choose NO at the "Would you like to read the CHANGES file?" popup. You can allways read the CHANGES file latter on if you want.
Choose the installation path. And press in the Symlink path popup press ENTER.
Install both Enemy Territory and Punkbuster by pressing the TAB key to move to the OK option.
The License Agreement for Punkbuster shows up. Press ENTER twice.
Choose to install the startup menu entries.
After this the game installs. Don't choose to start the game imediatlely as we haven't finished installing everything.
$ wget -c http://darkstar.ist.utl.pt/games/et-2.60b.zipUnzip the file:
$ unzip et-2.60b.zipChange directory of the unziped directory and copy the update files to games' directory:
$ cd Enemy\ Territory\ 2.60b/linuxLogout from the root account:
$ su
# cp * /usr/local/games/enemy-territory/
# exitNow start the game, create a player profile and quit. By doing so a .etwolf directory will be created in your home directory which includes a folder containing PunkBuster.
Inside the game you can check the installed version by pulling the console down by pressing ~ and typing version. It should output the following:
]\version2) Install the ET Pro mod
"version" is:"ET 2.60b linux-i386 May 8 2006" default:"ET 2.60b linux-i386 May 8 2006"
Next let's install Enemy Territory's best mod: ET Pro.
$ wget -c http://bani.anime.net/etpro/etpro-3_2_6.zipNow ET Pro will show under the Mods options in the games' main menu.
$ unzip etpro-3_2_6.zip
$ et
$ cp -R etpro ~/.etwolf
Note: If have other users using ET I suggest copying etpro to /usr/local/games/enemy-territory instead thus making the mod available to every user.
3) Update PunkBuster
Point to http://www.evenbalance.com/index.php?page=pbsetup.php scroll down and follow the Linux download to download PunkBuster update application.
Change directory to where you've downloaded the pbsetup.run and:
3) Update PunkBuster
Point to http://www.evenbalance.com/index.php?page=pbsetup.php scroll down and follow the Linux download to download PunkBuster update application.
Change directory to where you've downloaded the pbsetup.run and:
# suPunkBuster will ask to fetch updates and prompt for a License Agreement. Afterwards point to "Add a Game option" and choose Enemy Territory. Punkbuster will point the installation path to your username's .etwolf directory.
# chmod +x pbsetup.run
# exit
$ cp pbsetup.run ~/.etwolf/pb
$ ./pbsetup.run
Note: If you want all your users to have Punkbuster updated run the above steps as root and point to the game's install directory which should be /usr/local/games/enemy-territory.
On the main PunkBuster window click on Enemy Territory to select it and press "Check for Updates". Quit PunkBuster after updating it.
4) Install XQF
To browse and filter server I recommend installing and using the XQF Game Server Browser:
I tend to play on www.Enemy-Territory.com by www.4netplayers.de server ;)
5) Fix sound issues
ET uses Linux's OSS sound infrastructure. If you don't have sound here's how to enable the needed kernel module at boot time:
On the main PunkBuster window click on Enemy Territory to select it and press "Check for Updates". Quit PunkBuster after updating it.
4) Install XQF
To browse and filter server I recommend installing and using the XQF Game Server Browser:
$ suXQF will identify the installed Enemy Territory so select the game and press "Update" to have XQF pull an updated server list.
# aptitude install xqf
I tend to play on www.Enemy-Territory.com by www.4netplayers.de server ;)
5) Fix sound issues
ET uses Linux's OSS sound infrastructure. If you don't have sound here's how to enable the needed kernel module at boot time:
$ suAnd we're done! See you on the battlefield :D
# echo "snd_pcm_oss" >> /etc/modules
# modprobe snd_pcm_oss
Bonus section: etpro launch script
If you play etpro if can repeat the following steps to launch etpro directly (I'm assuming your shell is Bash):
$ echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc$ mkdir ~/bin$ touch ~/bin/et-pro$ chmod +x ~/bin/et-pro$ vim ~/bin/et-pro
Add the following lines:
#!/bin/shcd "/usr/local/games/enemy-territory/"export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.exec ./et.x86 "$@" +set fs_game etpro
Now you can launch etpro simply by:
$ et-pro
Subscribe to:
Posts (Atom)