You are here

Ivan Radovanovic's blog

Ivan Radovanovic's picture

If skype 4.2 doesn't work with FreeBSD

and if there are lot of messages similar to
kernel: linux: pid 64067 (skype): linux_sys_futex: op FUTEX_WAIT_REQUEUE_PI not implemented

remove port /usr/ports/audio/linux-c6-pulseaudio-libs and make sure /usr/ports/audio/linux-c6-alsa-plugins-oss is installed (last one might require tweaking /compat/linux/etc/alsa/pcm/pcm-oss.conf)

Ivan Radovanovic's picture

Manually trusting certificate in Chromium

To manually trust single certificate do
certutil -A -d sql:$HOME/.pki/nssdb -t P -n description -i cert_file

To add new trusted CA do
certutil -A -d sql:$HOME/.pki/nssdb -t CT -n description -i cert_file

Ivan Radovanovic's picture

How to type unicode character in GNOME (using its code)

Do CTRL + SHIFT + u then type its code and press enter when done.

Ivan Radovanovic's picture

Changing file associations from command line

It can be done from command line using xdg-mime - might be useful if weird programs are started
xdg-mime default nautilus.desktop inode/directory

These associations are kept in /usr/local/share/applications/mimeinfo.cache, ~/.local/share/applications/mimeinfo.cache, maybe also some other mime* file in those directories

Ivan Radovanovic's picture

Discovering include paths for clang++

It can be done using command
clang++ -v -xc++ -

Ivan Radovanovic's picture

Enabling/disabling menu icons in GNOME

It can be enabled with

gconftool-2 --type bool --set /desktop/gnome/interface/menus_have_icons true

and disabled (quite surprisingly) with:

gconftool-2 --type bool --set /desktop/gnome/interface/menus_have_icons false

Ivan Radovanovic's picture

Creating certificate request with OpenSSL

It can be done like this

openssl req -new -newkey rsa:2048 -nodes -keyout certificate.key -out certificate.csr

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 ...


Subscribe to RSS - Ivan Radovanovic's blog