Linux

When creating your own custom yum repository, it is a good idea to create your own gpg signature and sign all the rpms in that repository. That way, should someone manage to place an rpm in there, none of your systems will install that rpm.

Create GPG Key

[thomas@host ~]$ gpg --gen-key
gpg (GnuPG) 1.4.5; Copyright (C) 2006 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file…



We are working on a short piece of code, called count.c. I first copy count.c to a backup, count.c.orig and begin correcting count.c

patched code


#include
#define LENGTH 100
#define HEIGHT 50

int main (int argc, char* argv[]) {
int i;
int j;
int k;
k=1;
for (i=0; i
original code


#include
#define LENGTH 100
#define HEIGHT 50

int main (int argc, char* argv[]) {
int i;
int j;
int k;
for (i=0; i…



This appears to be working fine now. I have installed srss_4.0 on our RHEL5 server. I had to install a few extra packages to get things to install:
  • dhcp
  • openldap-server
  • openmotif22
  • tftp-server
I had to make some symlinks:
  • /usr/lib/liblber.so.199 -> /usr/lib/liblber.so
  • /usr/lib/libldap.so.199 -> /usr/lib/libldap.so
  • /usr/lib/libgdbm.so.3 -> /usr/lib/libgdbm.so.2
  • /usr/X11R6/bin/X /usr/bin/X
  • /usr/X11R6/bin/mkfontdir /usr/bin/mkfontdir
  • /usr/X11R6/bin/mkfontscale /…



When using Internet explorer from our RHEL5 system, the font for the menu's is very small. To increase the size we put the following in our win.ini (for each affected bottle). [Desktop] MenuFontSize=14 (or MenuFontSize=18) Using 14 makes the menus far more readable, but 18 makes them a good deal more readable. One problem we still have is that the address bar in IE is still quite small. This is mentioned here



Our mailserver is a RHEL5 machine with the stock sendmail install. The stock install uses smrsh, theexamples for rt-mailgate will not work with smrsh because smrsh strips quotes ('). The fix is to use double quotes (") rt: '|rt-mailgate --queue default action correspond --url https://rt.example.com' becomes: rt: "|rt-mailgate --queue default action correspond --url https://rt.example.com"



Creating a yum repository is fairly easy, the only command you need is createrepo and some rpms. This is a quick guide to making a repo, I have a more complete example in my howto make an install server.

Make a directory to contain your rpms, it's nice to name the directory the same as the repo name. Even better, segregate the rpms by architecture, i386, i686, noarch, SRPMS, etc. Copy the rpms into the appropriate directories and run create repo on that directory.…



I have a DVD from which I wish to extract an audio clip. I used the raw VOB files and mplayer. The clip I wanted is 37 seconds long and starts 18 minutes and 53 seconds into the first VOB file.
mplayer -ss 18:53 -endpos 37 -vc null -vo null -aid 128 -ao pcm:file=vts.wav VTS_01_1.VOB The important thing to note is that the end position (-endpos) is relative to the start position (-ss). This gives me a WAV file that I could use right away, but I wanted an MP3 for my iPOD.
lame vts.wav vts.mp3 Now I have an mp3 of the audio clip…



Madwifi 0.9.4.5 seems to work with this machine, but only after setting mode 2 with iwpriv. Module loads cleanly otherwise, but fails to associate with the network. We see several networks with NetworkManager, but cannot obtain an ip address from any of them. To fix, modify modules.conf to set mode 2 after loading the module.
install ath_pci /sbin/modprobe --ignore-install ath_pci; /sbin/iwpriv ath0 mode 2
After this, we can associate. This also seems persistant across sleeps. RPMS for 2.6.18-8.1.1.el5 RPM…



The Adobe PDF plugin accepts arguments in a url, anything after a # is passed to the plugin. There was a vulnerability because of this. To jump to a specific page, put #page= after your link. http://www.math.ias.edu/~avi/PUBLICATIONS/MYPAPERS/DSW06/dsw06.pdf#page=6 To zoom in to a specific zoom, you can also put #zoom= after your link.…



Another department bought some T60's with Atheros Wireless. We had some issues getting madwifi working, but using the older 0.9.2.1 tree seems to have solved the problem. With the svn versions we were getting this error:
wifi%d: unable to attach hardware: 'Hardware didn't respond as expected' (HAL status 3)
Using 0.9.2.1 seems to have solved this issue. We downgraded the kernel from 2.6.19 to 2.6.18 also, 2.6.19 had some other issues, I don't have the laptop here, so I can't test with 2.6.19 to get it working properly. Here are the rpms.…