You are here

Ivan Radovanovic's blog

Ivan Radovanovic's picture

How to see all certificates that web server sends

It can be done using openssl:
openssl s_client -connect SERVER:PORT -showcerts

Ivan Radovanovic's picture

Command to take screenshot

You can use scrot -z '/tmp/Screenshot from %F %H-%M-%S.png' (you might need to install scrot first).

Ivan Radovanovic's picture

Using Android phone for network access on FreeBSD

Simply load urndis module
# kldload urndis

Connect mobile phone using USB cable with FreeBSD machine. On phone choose "USB tethering" for USB. On FreeBSD machine there should appear new network device ue0 or something similarly named. You can use for example dhclient ue0 to pull IP address for that device and then you can configure routing to use that device as default route.

Ivan Radovanovic's picture

Postgres configuraton

Useful query to get information about parameters:

select name, context, pending_restart, setting from pg_settings

Ivan Radovanovic's picture

Simple script to toggle touchpag on/off

Here is simple script to toggle touchpad on laptop on or off

First you have to discover which device id is actually touchpad - you can do that using xinput list. There touchpad will be shown as one more mouse. Then you can update script below with touchpad's ID on your system (replace <ID> with actual number). You can bind this little script to some key to be able to easily toggle touchpad on or off.

Ivan Radovanovic's picture

Compiling mono 6 on FreeBSD 12

Steps:

Ivan Radovanovic's picture

How to display only glyphs actually present in font

Simply use FontMatrix tool

Ivan Radovanovic's picture

Disabling bitmap fonts in X

To disable bitmap fonts in X create symbolic link to ../conf.avail/70-no-bitmaps.conf in /usr/local/etc/fonts/conf.d
# cd /usr/local/etc/fonts/conf.d
# ln -s ../conf.avail/70-no-bitmaps.conf

Ivan Radovanovic's picture

Installing FreeBSD with ZFS on UEFI enabled machine

Some instructions can be found at FreeBSD wiki and FreeBSD forums

Ivan Radovanovic's picture

Reseting dconf database

In case it gets corrupted some applications might be unable to start at all - to clean it simply delete directory ~/.config/dconf

Pages

Subscribe to RSS - Ivan Radovanovic's blog