Category: Uncategorized
-
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/directoryThese associations are kept in /usr/local/share/applications/mimeinfo.cache, ~/.local/share/applications/mimeinfo.cache, maybe also some other mime* file in those directories
-
Discovering include paths for clang++
It can be done using command clang++ -v -xc++ –
-
Enabling/disabling menu icons in GNOME
It can be enabled with gconftool-2 –type bool –set /desktop/gnome/interface/menus_have_icons trueand disabled (quite surprisingly) with: gconftool-2 –type bool –set /desktop/gnome/interface/menus_have_icons false
-
Creating certificate request with OpenSSL
It can be done like thisopenssl req -new -newkey rsa:2048 -nodes -keyout certificate.key -out certificate.csr Printing Certificate Signing Request To print request use:openssl req -in certificate.csr -text
-
Formatting USB drive with FAT32 using FreeBSD
Assuming your usb drive is /dev/da0 Using fdisk: Using gpart: However if you want GNOME to automount usb drive you shouldn’t follow instructions above 🙂 Instead do this:
-
Tunneling using ssh
To create tunnel using ssh execute following command:ssh server -L local_port:remote_ip:remote_port -Neffect of this command is to create tunnel between localhost:local_port and remote_ip:remote_port going through server.