You are here

Blogs

Ivan Radovanovic's picture

How to perform freebsd-update from STABLE

Sometimes freebsd-update doesn't want to update from -STABLE system. Error received would be

Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from update1.freebsd.org... failed.
Fetching public key from update2.freebsd.org... failed.
Fetching public key from dualstack.aws.update.freebsd.org... failed.
No mirrors remaining, giving up.

Ivan Radovanovic's picture

How to slow down mouse wheel in Firefox

This works in v91 - set mousewheel.system_scroll_override.enabled to false in about:config

Ivan Radovanovic's picture

How to recover lost email accounts in Thunderbird

This is how to handle situation when Thunderbird wants to do set up from scratch after it crashed. First locate profile folder - you can do that in Thunderbird by using Help -> More troubleshooting information. Once you locate this folder looks for prefs.js and possibly prefs-1.js, prefs-2.js etc.

Ivan Radovanovic's picture

Record screen capture with audio in FreeBSD with ffmpeg

This command can be used:
ffmpeg -video_size 1920x1080 -framerate 25 -f x11grab -i :0.0+0,0 -f oss -i /dev/dsp5.0 -filter:a "asetpts=N/SR/TB" output.mp4
Command above assumes that microphone is at /dev/dsp5.0 (you can check that with cat /dev/sndstat), and you can adjust microphone volume with mixer -f /dev/mixer5 mic 100.

Ivan Radovanovic's picture

How to show hardware information in FreeBSD

Use dmidecode (It is in /usr/ports/sysutils/dmidecode).

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.

Pages

Subscribe to RSS - blogs