Archive for linux

Gentoo: Subversion not permanently accepting SSL certs

Today I had a rather frustrating issue, as svn would not allow me to permanently accept an SSL Cert under Gentoo, rather just offering me the option to reject or accept temporarily.

Error validating server certificate for \'xxxxxxxx\':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
 - The certificate has an unknown error.
Certificate information:
 - Hostname: xxxxxxxx
 - Valid: from xxxxxxxx until xxxxxxxx
 - Issuer: xxxxxxxx
 - Fingerprint: xxxxxxxx
(R)eject or accept (t)emporarily?

After some Googling, I found Bug 295617: subversion won’t save bad certificates permanently with Neon 0.29. By this point Neon 0.28 had left the portage tree, so downgrading was not an easy option. However, a comment on Bug 238529 hinted at a workaround: build Neon without GnuTLS.

To fix this issue, the easy fix is:

echo \'net-libs/neon -gnutls\' >> /etc/portage/package.use
emerge -DN subversion

Neon should rebuild and all will be well!

Error validating server certificate for \'xxxxxxxx\':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
 - The certificate has an unknown error.
Certificate information:
 - Hostname: xxxxxxxx
 - Valid: from xxxxxxxx until xxxxxxxx
 - Issuer: xxxxxxxx
 - Fingerprint: xxxxxxxx
(R)eject, accept (t)emporarily or accept (p)ermanently?

Comments (1)

virtualbox-bin in Gentoo

Some non-Linux-dork posts are in the pipe, but today I had issues getting VirtualBox up and running on Gentoo. Here’s some proper install instructions to work around Bug 283617. I’ll get to fixing the ebuild later this weekend.

emerge virtualbox-bin
chmod 4750 /opt/VirtualBox/VBoxNetAdpCtl
chmod 4510 /opt/VirtualBox/VBoxSDL /opt/VirtualBox/VBoxHeadless /opt/VirtualBox/VirtualBox
gpasswd -a youruser vboxusers

After a logout/login, VirtualBox should appear in your Applications menu, and can be run from the command line with VirtualBox.

Leave a Comment

Installing a Brother Printer on Gentoo

I’ve been migrating over to Gentoo from Ubuntu (more on this later) and today had the lovely experience of installing a printer. Since at least 2 other computers will be needing these instructions, here we are:

Install CUPS

  1. emerge cups
  2. /etc/init.d/cupsd start
  3. rc-update add cupsd default

Install Driver

  1. Download the LPD and PPD RPM drivers from Brother’s Linux driver site.
  2. emerge rpm tcsh
  3. rpm  -ihv  --nodeps  (lpr-drivername)
  4. rpm  -ihv  --nodeps  (cupswrapper)
  5. Verify the drivers installed correctly: rpm  -qa  |  grep  -e (lpr-drivername)  -e  (cupswrapper-drivername) (if this is your only rpm package, just use rpm -qa)
  6. Create a symlink to the filter: ln -s /usr/lib/cups/filter/brlpdwrapper[printer name] /usr/libexec/cups/filter/brlpdwrapper[printer name]

Add printer

  1. In a browser, go to the CUPS server at http://localhost:631/
  2. Click Add Printer and enter a name. Location and description are optional, but user-friendly.
  3. On the next page select: Device: AppSocket/HP JetDirect
  4. On the next page enter: Device URI: socket://192.168.1.11 (substitute with the IP address of your printer)
  5. The final page has a list of printer manufacturers. Skip that and click Choose File. Select the proper PPD file at /usr/share/cups/model/(printermodel).ppd. Click next.
  6. Print a test page and enjoy!

As an aside, I did stumble upon the Brother PPD source code, however there were no make files for my printer, nor were there any LPD drivers. It is unfortunate to have rpm or dpkg as a dependency for my printer drivers, but so be it – they’re lightweight packages on their own.

Comments (2)

Dealing with ATi’s Linux Drivers

ATi has gotten much better Linux support, but there is still much to be desired. Kernel upgrades pushed through the update manager tend to destroy the ATI kernel module. I’ve found the quickest, most painless way is to simply uninstall and then reinstall the drivers:

sudo /usr/share/ati/fglrx-uninstall.sh

Download the latest drivers from the ATI site: 32-bit and 64-bit <http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx>.

Open a terminal in the directory with the downloaded file (note: your exact file name may be different):

sudo chmod +x ati-driver-installer-10-2-x86.x86_64.run
sudo ./ati-driver-installer-10-2-x86.x86_64.run

Install the drivers, restart the computer and type the following into a terminal:

sudo aticonfig -f --initial

Then restart X (Ctrl+Alt+Backspace) or restart the computer and all will be well!

Update: If you experience black or grey screen artifacts in Firefox/Thunderbird using Catalyst 10.6 or higher, it may be due to the new 2D rendering system. To force use of the old XAA system run the following command after the initial aticonfig setup:

sudo aticonfig --set-pcs-str=DDX,ForceXAA,TRUE

Restart X, and all should be well!

Leave a Comment