Ivan Radovanovic's picture

Using Compiz with FreeBSD

For setting up X server follow instructions here. (Long story short, use nvidia driver, add glx and extmod extensions to xorg.conf, and add argb-glx-visuals to monitor.)

Ivan Radovanovic's picture

How to mount ISO with FreeBSD

Like this:
mdconfig /path/to/iso
mount -t cd9660 /dev/mdX /mountpoint

X being md unit reported by mdconfig command.

After done with ISO un-mount it and delete md created for it:
umount /mountpoint
mdconfig -d -u X

(Again X being md unit as reported during creation)

Ivan Radovanovic's picture

How to format json data

Using python from command line:
cat file.json | python -mjson.tool

Keep in mind this will sort keys in structures.

Ivan Radovanovic's picture

Running unit tests from console

If you created and compiled unit tests using MonoDevelop you need to copy several dlls to the same directory before you can use nunit-console with compiled dll. Those libraries can be found /usr/local/lib/monodevelop/AddIns/NUnit directory

Ivan Radovanovic's picture

Installing monodoc on FreeBSD

I don't have any idea if mono-tools is still supported package, but its build is badly broken at least on FreeBSD. Anyway, the only tool I find really useful there is monodoc, which luckily can be installed manually like this:

Ivan Radovanovic's picture

Managing user groups on FreeBSD

Group creation

pw groupadd name-of-group

To add users to group

pw groupmod name-of-group -m username1,username2,...,usernameN

NOTE: usernames in list are separated only by comma, you can't add space too.

Ivan Radovanovic's picture

How to prevent driver from attaching to hardware in FreeBSD

Add something along the lines
to the /boot/loader.conf

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

Ivan Radovanovic's picture

Where GNOME 2 stores mouse configuration

In directory ~/.gconf/desktop/gnome/peripherals/mouse

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


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

How to create proxy using ssh

You can create SOCKS proxy using ssh by running

ssh -D port [email protected]

replace port with port number you want proxy to appear on your local machine, in web browser choose SOCKS for proxy type, localhost for proxy server and same port as port in command above.


Subscribe to codenicer.com RSS