Thursday, September 29, 2005

X11 though ssh in Tiger


Today, I had ssh'd into a a server and I tried to launch a X11 program, and I got this error message:


X Error of failed request: BadAtom (invalid Atom parameter)


It looks like that Mac OS X 10.4 includes version 3.8 of OpenSSH.  This new version defaults to using untrusted cookies for X11-Forarding.  This can be worked around by using 'ssh -Y' instead of 'ssh -X'.


[via macosxhints Forums]


Technorati Tags: ,

New print server


Last night I was very frustrated.  I just realized that I wasn't able to print.  I had this working before, where I had cups installed and was able to print to two printers connected to my server.


This was working until I upgraded to cups version 1.1.23.  The packages were built for Fedora Core 4 on the 9th of August.  This is very frustration since other software doesn't have this compatibility problem when upgrading.  For example, my configuration has not broken when I update my apache http server versions.


I decided that I didn't want to do deal with the configuration issues with running cups on my server, so I decided to get a consumer print server.  I bought the Linksys PSUS4, as it also has a 4 port switch.  The only problem with this is that Mac compatible right out of the box.


Monday, September 26, 2005

fixing problems with Cisco VPN client


Sometimes when I switch networks, the Cisco VPN client doesn't initialize properly.  The only way that I had gotten this to work, was to disable and renable my network ports.


These commands were sent around a while ago, so I wanted to post them here.



sudo /System/Library/StartupItems/CiscoVPN/CiscoVPN restart


This has fixed all of the problems that I have had since.


Technorati Tags:

Workaround for problem installing Firefox extension


I have been having a problem installing some Firefox extensions.  When I attempt to install a new extension, I get the following message:


Firefox could not download the file at <url, including extension.xpi> because: Download error


I finally found this page that has a solution.  All that you need to do is download the plugin to the disk.  Then you can drag the file into a browser window.  Then Firefox will offer to install it from the disk.


Technorati Tags:

Friday, September 23, 2005

Google Video


Now this is cool.  Google Video now makes the videos available in flash, instead of the modified VLC video player.


Technorati Tags:

Thursday, September 22, 2005

problem transcoding AAC files to mp3


I am having a problem getting AAC files to work with Jinzora. By default, Jinzora attempts to transcode all AAC files into MP3 files. (Which I think is reasonable, as not many players can support AAC.



The command that it attempts to use to transcode the file is:




/usr/bin/mplayer -ao pcm:file=/dev/stdout "/data/music/Daft Punk/Discovery/Daft Punk-Discovery-10 - Voyager.m4a" | /usr/local/bin/lame -S --silent --quiet -h -m j -b 128 -f - > /tmp/test.mp3



This puts noise in the resulting mp3 file. Here is the first 100KB of the file that has the noise in it.



But if I do the two commands seperately, the resulting sound file sounds great. These commands work great:




/usr/bin/mplayer -ao pcm:file=/dev/stdout "/data/music/Daft Punk/Discovery/Daft Punk-Discovery-10 - Voyager.m4a" > /tmp/test.wav
/usr/local/bin/lame -S --silent --quiet -h -m j -b 128 -f /tmp/test.wav > /tmp/test.mp3


Here a sample of the transcode that worked perfectly


I haven't been able to find a solution for this, but I will keep looking


Technorati Tags: ,

Wednesday, September 21, 2005

syntax for exec with find


I can never remeber the syntax for exectuing a command when running find, so I am writing it here.



find . -name "._*.mp3" -exec rm -f {} \;

Printing Across VLANs: A Secure and Scalable Solution

In my previous configuration, I used a CUPS server with multiple network interfaces to enable printing from computers on restricted networks...