Freebsd note dump
Jan. 25th, 2015 05:58 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Open ports
nginx / appcafe
nginx is running https server on port 8885. Accessing it produces a 502 Bad Gateway error. There is nothing in /usr/local/etc/nginx to tell it to run on port 8885.
This may be related to PC-BSD appcafe. From /usr/local/etc:
./rc.d/appcafe: if [ "$port" != "8885" ] ; then ./rc.d/appcafe: sed -i ' ' "s|:8885|:$port|" $required_files_temp ./appcafe.conf:; AppCafe will run on port 8885 by default ./appcafe.conf:port = 8885 ./appcafe.conf.dist:; AppCafe will run on port 8885 by default ./appcafe.conf.dist:port = 8885
It is listening on all interfaces and not just localhost. I suppose that's what the firewall is for.
appcafe.conf says remote=false which is supposed to bar remote connections.
testing appcafe_enable=NO in rc.conf... [Edit Feb 1] The port is now closed after a reboot. The nginx configuration is in /usr/local/share/appcafe/nginx.conf and /usr/local/etc/rc.d/appcafe launches nginx.
avahi
avahi-daemon is running servers on ports 5353 and 64104. Port 5353 is specifically allowed in firewall:/etc/pf.conf:pass in quick on re0 proto udp from any to (re0) port 5353 keep state /etc/pf.conf:pass in quick on re0 proto udp from any to 224.0.0.251/32 port 5353 keep state /etc/pf.conf:pass in quick on re0 proto tcp from any to (re0) port 5353 keep state
Neither 5353 or 64104 are in any other /etc or /usr/local/etc file.
I had prepared a series of grumpy complaints about how ahavi is not documented anywhere and I can't find the source code online or the binary on my system, and then I noticed I was misspelling avahi. It even has a wikipedia page:
Avahi implements the Apple Zeroconf specification, mDNS, DNS-SD and RFC 3927/IPv4LL. And it hates women.
You have been blocked indefinitely for thoughtcrime. To appeal this block, go to Encyclopedia Dramatica and doxx the blocking admin.
[Edit Feb 1] 5353 is mdns. 64104 is a random high port; after a reboot, avahi was listening on 51644.
Package mismanagement
gcc
The gcc package does not install gcc. Correction: it installs gcc48. I have to make the symlink myself.
tex?
Some package wanted me to install texlive-texmf which is over 500MB. WTF is it? Thanks, Samuel L. Jackson, any other answers? "Tex Live macro packages and fonts." So it's a gigantic fonts package used by tex. I hope that the fonts can be used by other programs.
The package used to be 1.5GB before they slimmed it down.
MIDI
The FreeBSD MIDI/audio How-To is down and not in archive.
mplayern't
wine seems unable to play midis? They work in mplayer... no, no they don't.
Installed Jack, no change.
vlcan't
vlc says to install fluidsynth.sudo pkg install fluidsynth fluidsynth-dssi qsynth whysynth spiralsynthmodular
vlc still says to install fluidsynth.
timidity
Running timidity on a midi file produces an error:
Strange, I feel like allocating 28394 bytes. This must be a bug.
According to the source code, this is only supposed to happen if it tries to allocate over a meg. It's doing something that should be logically impossible.
The problems with Timidity were fixed by installing timidity++. Apparently "timidity" is deprecated. Sounds are a bit off from how they sounded in Windows, but not as far off and tinny as the open-source midiplayers on Windows take them away from how they're supposed to sound.
ALSA compatibility
The package repository contains Rosegarden, a program for creating midi files, so evidently somebody has been able to get midi sound to work on FreeBSD.
running rosegarden produces the errors:
JackDriver::initialiseAudio - JACK server not running Attempt to start JACK server was made per user config ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory AlsaDriver::initialiseMidi - couldn't open sequencer - No such file or directory - perhaps you need to modprobe snd-seq-midi.
The problem seems to be in the Linux compatibility layer. The same problem seems to be behind Wine's inability to play midis.
Wine and Cheez
Wine supposedly comes with DirectX but does not support it by default. You have to edit the user.reg configuration file and manually turn on each library.
In addition to Wine not playing midis, there is a game where it does not play a sound effect. At each attempt it gives the error:
err:ole:COMPOBJ_DllList_Add couldn't load in-process dll L"C:\\windows\\system32\\quartz.dll" err:ole:CoGetClassObject no class object {e436ebb3-524f-11ce-9f53-0020af0ba770} could be created for context 0x1
Quartz is in that list of overrides. The sound effect is an mp3.
[Edit Feb 1] Earlier, Wine reported: "No sound device detected" and failed to play sounds when winecfg had a sound device configured and the sound test worked. I forget how I fixed this; it might have been by installing alsa compatibility layer. Currently only ogg sounds seem to work; mp3s and midis are not played.
KDE
KDE save dialogue
When saving a file in Kate (KDE's Notepad), the sidebar menu will have "Home" highlighted when the file is being saved somewhere completely different.
KDE desktop
The KDE desktop often layers items on top of each other. There seems to be no way to auto-arrange them like Windows 95 has.
Systray icons
The systray battery icon is not animated. It shows the same icon at high power, low power, plugged in, not plugged in, etc.
File associations
Firefuxed
I saved an image off the web and opened it through Firefox's Downloads menu. Firefox opened the image in Wine Internet Explorer, which failed to load the image. KDE's Dolphin file manager loads the image in Gimp.Doing it right?
[Edit Feb 1: subsection added] I want to open flash files in flashplayer by default. The entire freedesktop file handling "spec" specifies very little. A tutorial says to look in the $XDG_DATA_DIRS/mime/packages directory. I have no $XDG_DATA_DIRS, but the mime stuff is in /usr/local/share/mime.
It says an editor can be defined by adding a "<desktop:can-edit-with>" tag. Nothing about what to use to simply open the file for reading. By all appearances, "desktop:can-edit-with" is the only documented action. None of the files under /usr/local/share/mime have a "desktop:" action defined. None of them contain the string "can-edit" either. There are xml definition files for different mime types, such as /usr/local/share/mime/application/xml+html.xml for XHTML files.
This may be a helpful resource: http://mzimmerm.blogspot.com/2011/04/freedesktop-linux-mimetypes-file.html
It says the application actions are stored in /usr/local/share/applications. None of these files have a "desktop:" action defined. None of them have "can-edit-with".
Here's another helpful resource: http://edoceo.com/howto/xfce-custom-uri-handler
/usr/local/share/applications/ contains application definitions, including a list of mime types associated with each individual application. Since there is a separate file for each application, this is not what I would want a program to search through to find the application for a given mime type.There should be a file that connects a mime types directly to programs for opening and editing. mimeinfo.cache may be what I want, but there is an old bug report that says to look at defaults.list or mimeapps.list first. These files are not on my system.
I am still looking into this...
Etc
drill may be a replacement for nslookup, but it does not use the hosts file.
The cups control panel icon loads a www interface. DO NOT WANT.
I had no sound in flashplayer. This was fixed by installing openssl. HOW?
ls -la /usr/local/bin took 13 seconds. The HD was very noisy. It must have needed to read from different parts of the drive. 2,808 items. Wow.
du / shows about 35,000 files not counting my own files. This is not much different than it used to be. I remember 40,000 files on the system.
[Edit Feb 1] make buildworld took 13 and a half hours. I had to run it in chunks.