You are here

freebsd

Ivan Radovanovic's picture

Installing multiple instances of Phabricator on the same server

Just non-obvious steps listed (with things to replace in uppercase), follow their installation instructions for general setup

Ivan Radovanovic's picture

How to set default sound output device in FreeBSD

It can be done using sysctl hw.snd.default_unit. Before that it is good idea to check contents of /dev/sndstat file.

Ivan Radovanovic's picture

Configuring default resolution for FreeBSD 11 with UEFI

If you have to set native resolution on system console (if for example you have to run scfb driver for X), first check resolutions supported by UEFI - escape to loader prompt when booting OS and type:
mode
That should list all textual modes recognized by loader (alternatively you can also try gop list or uga list, but saving gop mode setting using following method won't work (I don't know about uga since my computer doesn't support it)). After this you can set mode you want to use using
mode NUMBER

Ivan Radovanovic's picture

If NVIDIA is not finding screens for X

Things to check:
That you have BusID in your Device section - syntax example BusID "PCI:1:0:0" (you can discover it for example using nvidia-xconfig --query-gpu-info or pciconf -lv). If you have problem with finding modes for monitor you can add Option "ModeDebug" "True" to your Device section in xorg.conf.

Ivan Radovanovic's picture

How to delete message from sendmail queue

First find it with

$ mailq
/var/spool/mqueue (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
w0MEs0vA055142 5289 Mon Jan 22 14:54
(Deferred: Operation timed out with some server.)

Total requests: 1

Then delete it using qtool.pl (in sendmail's contrib dir):
./qtool.pl -C /etc/mail/sendmail.cf -d /var/spool/mqueue/w0MEs0vA055142

Ivan Radovanovic's picture

Clean package cache

Run pkg clean. Quite logical, but I keep forgetting command.

Ivan Radovanovic's picture

Importing SSL certificates into Mono store

Run cert-sync --user /etc/ssl/cert.pem. Omit --user to synchronize for entire system (note that this installs them in /usr/share/.mono rather than /usr/local/share/.mono).

Without this you might be experiencing errors like "Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED" or similar

Ivan Radovanovic's picture

When application is not listed in preferred applications in MATE

Reason for this is application .desktop file missing MimeType specification. For example for me mplayer and thunderbird are not listed as choices for video and mail respectively. To fix this edit application's .desktop file (in /usr/local/share/applications directory, or in ~/.local/share/applications) and run update-desktop-database afterwards (with -v to show its warnings).

Ivan Radovanovic's picture

Get list of manually installed packages

To get list of manually installed packages (ie, those not installed as dependencies) use this command:
pkg query -e '%a = 0' %o | sort

Ivan Radovanovic's picture

Unzip files with unicode names

In case normal unzip can't handle them properly (I was unable to make it do it properly) use 7 zip instead (package p7zip) - command to use is
7z x path_to_zip

Pages

Subscribe to RSS - freebsd