GDM/Gnome Auto Login
by dervish on Apr.25, 2011, under Linux
In order to setup your Linux box to automatically login using a particular user, you will need to follow the steps below.
Edit /etc/gdm/custom.conf using terminal and add the following to the [daemon]:
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=username
NOTE: Change “username” to the username you want to use to auto login to the linux box.
Increase AIX Volume Size
by dervish on Apr.18, 2011, under AIX
Increase AIX Volume Size
sudo -s
lsvg -l raid5
lsvg raid5
# add 100M
chfs -a size=+100M /app/baan/baanext/Demand_Planning
df -k /app/baan/baanext/Demand_Planning
FEDORA-2011-2890
by dervish on Mar.21, 2011, under Jokes, Linux
QLogic has new firmware updates out for their ql2400 and ql2500 devices, version 5.03.16!
They still won’t tell me (or anyone) what this update does, much less share the code. So, without further ado, here is my top ten list of things I think are hidden in the 5.03.16 firmware update:
- Jimmy Hoffa
- Copies of the ET Atari 2600 video game.
- Snakes. Lots and lots of snakes.
- High Fructose Corn Syrup
- Stuxnet
- Duke Nukem Forever
- Styrofoam Packing Peanuts
- Vermeer’s “The Concert”
- Charlie Sheen
- The Holy Grail
Feel free to email all complaints and bugs to support@qlogic.com. While you’re at it, feel free to ask them why they are afraid to show the code for their device firmware to anyone.
For more information about this update please visit this website:
• https://admin.fedoraproject.org/updates/F14/FEDORA-2011-2890.The order is reversed in the Software Update details:
10. Jimmy Hoffa 9. Copies of the ET Atari 2600 video game. 8. Snakes. Lots and lots of snakes. 7. High Fructose Corn Syrup 6. Stuxnet 5. Duke Nukem Forever 4. Styrofoam Packing Peanuts 3. Vermeer’s “The Concert” 2. Charlie Sheen 1. The Holy Grail
Ubuntu/Apache2/AWSTATS Browser/OS Data Missing
by dervish on Feb.22, 2011, under Linux
Edit awstats.*.conf in /etc/awstats and verify LogFormat equals 1, and not 4.
# Examples for Apache combined logs (following two examples are equivalent):
# LogFormat = 1
# LogFormat = “%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot”
#
# Example for IIS:
# LogFormat = 2
#
LogFormat=1
To regenerate information, rm *domain* from /var/lib/awstats. AWSTATS will then recreate all data in the access logs the next time the web forms are created.
20110214: yt2.sh
by dervish on Feb.14, 2011, under Linux, Scripts
#!/bin/bash
# randomize website youtube videos created by Jamey Hopkins
# site then uses PHP to display the selected video on the site
# 20100427 jah - youtuberand.sh -> yt2.sh
# conversion to 0 byte file use
# cut out email
# 20100527 jah - create a .selected file for reference
# 20110214 jah - use /bin/bash since ubuntu uses dash for sh which is not compat. w/ FILE=($FILES)
#
# NOTE: use vid.1.yt2, vid.same.yt, etc, to specify the same video more than once (increase odds)
# move *.yt to *.yt.off (or some other extension) to disable selection
#
echo
cd /root/Scripts/yt2.cm
# match specific or all random
# use -- to handle files that start with -
[ "$1" != "" ] && FILES=`ls -- *$1*.yt 2>/dev/null` || FILES=`ls -- *.yt 2>/dev/null`
echo "Matching Files:"
echo "$FILES"
# perform random magic
FILE=($FILES)
NFILES=${#FILE[*]} #count
VID=`echo ${FILE[$((RANDOM%NFILES))]}`
echo
echo "Picked -> $VID"
# send random youtube string to file
echo "$VID" | cut -f1 -d. > /var/www/ciphermethod.com/random.youtube
rm -- *selected >/dev/null 2>&1
cp -- $VID $VID.selected
echo