November 14, 2008
I know many hate ATI+Linux, but I’m not a gamer and usually run linux by command line only. I have a ATI 9600 Pro AGP video card that I’ve been using in one of my MythTV frontend’s for years. In order to play high definition resolutions (720p 1080i) I need to use ATI’s proprietary linux driver, fglrx. And it works well for that, as well as my nVidia card in my other frontends. I end up rebuilding my frontends maybe every 9-12 months, just for fun. That’s where nVidia outperforms ATI. The ATI driver can be much more difficult to get running properly, partly because they change it so drastically, at least it’s different every time I rebuild a frontend.
The latest problem is the driver and assocated configuration tool, aticonfig. fglrx now basically ignores any options in xorg.conf except for the options available by the aticonfig tool. For example, it reads EDID information from your display and will only output a mode that your display allows. Sounds great, right? Sure, assuming fglrx is reading EDID properly, or if at all. If it can’t read EDID, the max resolution is 1024×768. You can’t tell it to ignore EDID and specify a modeline instead. This happened to me. I tried every possible combination of settings in xorg.conf, reinstalled the driver, from RPM and the installer from ATI’s website. But EDID came up as invalid according to /var/log/Xorg.0.log.
Finally figured out there is a file that the driver uses that can become incorrect or corrupt. I deleted this file:
# rm /etc/ati/amdpcsdb
and everything started working great. X came up at 1080p and MythTV works great, although openGL menu transitions are a little slow with my card, so I turned that off. Apparently its possible to modify settings in that file, which overrides anything in xorg.conf.
Filed under: Hardware, Linux, MythTV |
Comments (1)
November 6, 2008
To authenticate all users in an OU:
AuthType Basic
AuthName "Domain Credentials Required"
AuthzLDAPMethod ldap
AuthzLDAPServer your.domain.com
AuthzLDAPBindDN "cn=linux LDAP,ou=System Accounts,ou=Resources,dc=domain,dc=com"
AuthzLDAPBindPassword "linux LDAP password"
AuthzLDAPUserKey sAMAccountName
AuthzLDAPUserBase "ou=Users,ou=Accounts,dc=domain,dc=com"
AuthzLDAPUserScope subtree
require valid-user
AuthzLDAPLogLevel info
To authenticate all users in a group:
AuthType Basic
AuthName "Domain Credentials Required"
AuthzLDAPMethod ldap
AuthzLDAPServer your.domain.com
AuthzLDAPBindDN "cn=linux LDAP,ou=System Accounts,ou=Resources,dc=domain,dc=com"
AuthzLDAPBindPassword "linux LDAP password"
AuthzLDAPUserKey sAMAccountName
AuthzLDAPUserBase "ou=Users,ou=Accounts,dc=domain,dc=com"
AuthzLDAPUserScope subtree
AuthzLDAPGroupKey cn
AuthzLDAPGroupBase "ou=Security Groups,ou=Accounts,dc=domain,dc=com"
AuthzLDAPGroupScope subtree
AuthzLDAPSetGroupAuth ldapdn
AuthzLDAPMemberKey member
require group "Apache Users"
require valid-user
AuthzLDAPLogLevel info
Filed under: Linux, Microsoft, Windows |
Comments (0)
October 29, 2008
I had the need to generate nicely formatted e-mails from a website (IIS, ASP), which meant using images. Often times linked images are blocked from view by default in mail clients. Embedded images in HTML e-mail are more difficult to block within the client, but may be blocked at the SPAM/Filtering gateway level, especially if there are more than one embedded images, or if there is no other content except images. If you want more reliable delivery, use linked images. As a courtesy, it is common to provide a link at the top of the e-mail that says something like “If you can’t see the images in this e-mail, click here” which will load the same content from your web server in a browser. It can become tedious to manage, though. If you want better presentation, but risk less than 100% delivery, use embedded images.
Here’s a simple example of how to embed an image using CDO from ASP vbscript.
<%
Dim CDO, RBP
Set CDO = Server.CreateObject("CDO.Message")
CDO.MimeFormatted = True
CDO.To = "test@test.com"
CDO.From = """Test User"" test@test.com"
CDO.Subject = "E-mail with embedded image"
CDO.HTMLBody = "<html>Check this out: <img src=""cid:test.gif""></html>"
Set RBP = CDO.AddRelatedBodyPart(Server.MapPath("/images/test.gif"), "test.gif", 1)
RBP.Fields.Item("urn:schemas:mailheader:Content-ID") = "<test.gif>"
RBP.Fields.Update
CDO.Send
%>
And the same example with a link. Make sure the image exists at the correct url.
<%
Dim CDO
Set CDO = Server.CreateObject("CDO.Message")
CDO.MimeFormatted = True
CDO.To = "test@test.com"
CDO.From = """Test User"" test@test.com"
CDO.Subject = "E-mail with embedded image"
CDO.HTMLBody = "<html>Check this out: <img src=""http://www.yourwebsite.com/images/test.gif""></html>"
CDO.Send
%>
Filed under: Microsoft |
Comments (0)