Showing posts with label Fedora. Show all posts
Showing posts with label Fedora. Show all posts

Wednesday, June 24, 2009

A Yum on Steroid

If you are a Debian user, you would know what a joy is to use apt-get or aptitude specially when those are teamed up with bash-completion scripts.

In contrast, Yum on Fedora has a poor performance and is sometimes annoying. On Fedora 11, bash completion for Yum is virtually impractical to use as it's unbearably slow. It sometimes take up to two minutes for the prompt to return to life.

I don't know much about Yum and my lack of knowledge could be at least partly responsible for the poor performance of this particular setup.

Fortunately, Yum has quite a few plugins which I found some significantly improving its speed. In particular, I have installed rpm-warm-cache, updatesd and refresh-updatesd. It'll surprises you just to see how much faster Yum gets with these plugins and one wonders why these aren't installed by default.

A shot of plugins to keep it going for now:
yum install yum-updatesd yum-plugin-rpm-warm-cache yum-plugin-refresh-updatesd

Saturday, June 20, 2009

Truecrypt on Fedora 11

Since Truecrypt doesn't officially provide RPM packages for Fedora, you are left with a choice of either compiling your own from the source or using openSUSE RPM (I read somewhere that it would work though I haven't tried it myself).

Well, I chose to compile version 6.1a of Truecrypt on Fedora 10 which worked pretty well. I used these instructions from Penguin Enclave but perhaps for a bug in Truecrypt code, compiling it on Fedora 11 failed.

Fortunately, the version 6.2 has resolved the issue and now it can be easily compiled. Please refer to Penguin Enclave's original post for instructions with the only modification being patching of Common/SecurityToken.cpp:
diff -urN truecrypt-6.2-source.orig/Common/SecurityToken.cpp truecrypt-6.2-source/Common/SecurityToken.cpp
--- truecrypt-6.2-source.orig/Common/SecurityToken.cpp    2009-05-10 17:38:36.000000000 +1000
+++ truecrypt-6.2-source/Common/SecurityToken.cpp    2009-06-20 18:05:33.873119148 +1000 
@@ -657,8 +657,8 @@ 
TC_TOKEN_ERR (CKR_CRYPTOKI_ALREADY_INITIALIZED) 
TC_TOKEN_ERR (CKR_MUTEX_BAD) 
TC_TOKEN_ERR (CKR_MUTEX_NOT_LOCKED) 
-            TC_TOKEN_ERR (CKR_NEW_PIN_MODE) 
-            TC_TOKEN_ERR (CKR_NEXT_OTP) 
+//            TC_TOKEN_ERR (CKR_NEW_PIN_MODE) 
+//            TC_TOKEN_ERR (CKR_NEXT_OTP) 
TC_TOKEN_ERR (CKR_FUNCTION_REJECTED) 

#undef        TC_TOKEN_ERR 

Links:
Truecrypt 6.1 Install Guide for Fedora 10
Bug 496423 related to compilation of Truecrypt on Fedora 11
Truecrypt official website

Thursday, June 11, 2009

Audio over HDMI

After a bit of discussion on fedora-test-list, reading this bug report and trying out a few parameters from here, I finally got audio over HDMI from my M1330.

I have added following to /etc/modprobe.d/alsa.conf:
options snd_hda_intel model=dell-3stack
I needed pavucontrol to actually select HDMI output profile.

The front audio jacks still don't work but I guess I'll get back to them after mid-year exams.

Wednesday, June 10, 2009

The unfriendly television!

If you happen to have a Samsung Series 6 LCD TV, you probably have already found out that not all the features work out of the box for a Linux user. Fortunately, the fix is easy after a bit of googling.

I was able to get its DLNA working with MediaTomb after adding following lines1 to its configuration file (thanks to crappylogin for sharing the code):
<custom-http-headers ><add header="transferMode.dlna.org: Streaming" /> 
<add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0; 
DLNA.ORG_FLAGS=01700000000000000000000000000000" /> 
</custom-http-headers> 
and this to mappings tag:
<map from="avi" to="video/mpeg" /> 
Also, X on Fedora 11 doesn't seem to get EDID unless HDMI cable is attached while the system boots. Again, workaround is simply adding correct Modelines using xrandr. Here are Modelines for Samsung LA32B650:
"1920x1080"  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync 
"1360x768"   85.50  1360 1424 1536 1792  768 771 777 795 +hsync +vsync 
Despite this little annoyance, the TV is a joy to use. It can play contents from a DLNA server as well as USB flash or HDD and has a comprehensive codec support.

I haven't spent much time on it yet but if you are interested, you can download source code of its firmware here.

Links:
http://forums.tversity.com/viewtopic.php?f=2 & amp;t=10992 & amp;st=0 & amp;sk=t & amp;sd=a & amp;start=45