You are here

freebsd

Ivan Radovanovic's picture

How to prevent driver from attaching to hardware in FreeBSD

Add something along the lines
hint.hdac.0.disabled=1
to the /boot/loader.conf

hdac being hw you want to prevent from attaching to, 0 being its unit.

Ivan Radovanovic's picture

How to make Compiz play nice with Nvidia

After you update your OS and you forgot about this little quirk

edit /usr/local/bin/compiz-manager and change line saying
INDIRECT="no"

to
INDIRECT="yes"

UPDATE (2014-11-15):
Apparently this also depends on nvidia driver, so I am trying to keep the list of those I know work correctly, and those I know don't work correctly.

Working: 331.67, 331.113
Not working: 340.46, 343.22 (works most of the time, but sometimes get crazy), 346.22 similar to 343.22

Ivan Radovanovic's picture

Keeping FreeBSD ports secure and up to date

  1. Install /usr/ports/ports-mgmt/portaudit in order to receive vulnerability reports with daily security reports
  2. Install /usr/ports/ports-mgmt/portupgrade in order to be able to update ports in easier way
  3. When you need to upgrade ports
    • portsnap fetch
    • portsnap update (or portsnap extract if using portsnap for the first time)
Ivan Radovanovic's picture

IPsec based VPN using FreeBSD

Since I wasn't really able to find information how to set this up on one place here is short recipe.

Prerequisites:

Ivan Radovanovic's picture

How to create pdfs from man pages


man -t page_name | ps2pdf - page_name.pdf

Sometimes this pdf actually looses some formatting (I don't have any idea why), so it might make more sense to create plain ps file

man -t page_name > page_name.ps

Note: You might want to change page size in /usr/share/groff_font/devps/DESC (by default it is set to letter there)

Ivan Radovanovic's picture

How to make tsclient use freerdp instead of rdesktop in freebsd

First of all why anyone would do that? Because rdesktop doesn't support newer encryption schemes supported by remote desktop while freerdp does.

Ivan Radovanovic's picture

How to prevent annoying crackers from brute force login attacks

Add following to your /etc/pf.conf

# if re0 is your card
$ext_if="re0"
# this goes in the top
table <bad_guys> persist
...
block in quick on $ext_if from <bad_guys> to any

Add following to your /etc/syslog.conf

auth.info;authpriv.info |/root/auth_checker.pl

(assuming that auth_checker.pl is in /root directory)

Ivan Radovanovic's picture

RabbitMQ start with FreeBSD

1. Install erlang from ports
2. grab latest binary tar.gz package from their website download session (file name should be something like rabbitmq-server-generic-unix-X.Y.Z.tar.gz) - unpack it somewhere
3. start server from the directory where you unpack it sbin/rabbitmq-server
4. when you need to stop it run sbin/rabbitmqctl stop

Ivan Radovanovic's picture

Running ASP.Net with Lighttpd on FreeBSD

As a first step for running asp.net applications using lighttpd webserver on FreeBSD you need to download source for xsp from mono project site. Here follow instructions for patching and compiling this source in order to run (hopefully) better on FreeBSD. These instructions apply to xsp-2.10.2

You need to patch following files
1. src/Mono.WebServer.FastCgi/Record.cs (patch Record.cs < Record.cs.diff)
2. src/Mono.WebServer.FastCgi/UnmanagedSocket.cs
3. src/Mono.WebServer.FastCgi/main.cs

Ivan Radovanovic's picture

Compiling Mono 2.10.9 on FreeBSD 8

Mono sources as downloaded from original website unfortunately can't be compiled out of the box on FreeBSD 8 amd64. In order to make them compile it is necessary to modify several files:

1. mcs/class/System/System.IO/KeventWatcher.cs (patch KeventWatcher.cs < KeventWatcher.cs.diff)
2. mono/metadata/appdomain.c
3. mono/utils/mono-sigcontext.h

After this mono should compile without problems

P.S.
There is port directory attached (mono2.10.9.tar.bz2)

Pages

Subscribe to RSS - freebsd