You are here

Ivan Radovanovic's blog

Ivan Radovanovic's picture

Formatting USB drive with FAT32 using FreeBSD

Assuming your usb drive is /dev/da0

Using fdisk:

  • Zero disk beginning with
    dd if=/dev/zero of=/dev/da0 bs=2m count=1
  • Change first partition type to 12 (FAT32)
    fdisk -i /dev/da0
  • Initialize fat32 file system
    newfs_msdos -F32 /dev/da0s1

Using gpart:

Ivan Radovanovic's picture

Tunneling using ssh

To create tunnel using ssh execute following command:
ssh server -L local_port:remote_ip:remote_port -N
effect of this command is to create tunnel between localhost:local_port and remote_ip:remote_port going through server.

Ivan Radovanovic's picture

Debug gstreamer plugins

To discover which plugin is used for specific file run command similar to this:
gst-launch -v filesrc location=filename_here ! decodebin ! autoaudiosink
that should give you (among other things) output lines similar to these:
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src: caps = application/x-id3
/GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstID3Demux:id3demux0.GstPad:sink: caps = application/x-id3
Pipeline is PREROLLING ...

Ivan Radovanovic's picture

Interesting builtin features in Windows

Nice article listing some of them:

Ivan Radovanovic's picture

Pic that always make me laugh

Ivan Radovanovic's picture

How to discover which user is sending email in zimbra

Check /var/log/zimbra.log, username connected is logged as sasl_username

Ivan Radovanovic's picture

How to make formula result permanent in excel

Make cell's content formula (ie "=blah blah blah"); when you get value you need copy it to clipboard, then choose paste special instead of normal paste and uncheck pasting formulas.

Ivan Radovanovic's picture

If Netbeans fails to start

Try this:
env LD_PRELOAD=/usr/local/lib/ netbeans-7.3

(or whatever version you are using if not 7-3)

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 unmount it and delete md created for it:
umount /mountpoint
mdconfig -d -u X

(Again X being md unit as reported during creation)


Subscribe to RSS - Ivan Radovanovic's blog