Fedora
Making bash ignore duplicates
EPKPhoto — 26 July 2007 - 7:49pm
This is a quick one, to make Fedora systems act like the Debian and Ubuntu's default of not putting duplicate commands in ~/.bash_history, add the following line to /etc/profile:
HISTCONTROL=ignoredups
package-cleanup
EPKPhoto — 12 July 2007 - 9:59pm
I recently found a useful tool for cleaning up unneeded RPMs and finding problems in the RPM database of installed packages. Just install yum-utils and then you can use the package-cleanup command with its various options.
OpenVPN setup...finally!
EPKPhoto — 10 July 2007 - 9:41pm
With openvpn already installed via yum:
su -
cp -a /usr/share/openvpn/easy-rsa /etc/openvpn/
cd /etc/openvpn/easy-rsa/2.0
vim vars
Edit the following:
export KEY_COUNTRY="US"
export KEY_PROVINCE="VA"
export KEY_CITY="Chesapeake"
export KEY_ORG="KerbyServer"
export KEY_EMAIL="admin@kerbyserver.net"
Save the file, and more commands:
./vars
source vars
./clean-all
./build-ca
./build-key-server server
Go with all the default entries.
./build-key kerbspb
Again, go with the defaults.
./build-dh
Bash-completion in Fedora
EPKPhoto — 8 July 2007 - 11:10pm
As much as I love Fedora, occasionally I find myself wishing it would do a certain thing like Debian or Ubuntu. A while ago, I posted a way to sort the ps command like Debian in Fedora. This time, I found out how to transplant another of Debian's defaults to Fedora.