Archive for the ‘Documentation’ Category

Fedora Hard Drive install from ISO image.

If you want install Fedora 10 from the DVD ISO image download to a hard drive, you need to extract the images/install.img into the same directory.

Assume the Fedora-10-i386-DVD.iso file has been downloaded to /download.
cd /download
mount -t iso9600 -o loop Fedora-10-i386-DVD.iso /mnt
mkdir images
cp /mnt/images/install.img images
cp /mnt/isolinux/initrd.img /boot
cp /mnt/isolinux/vmlinuz /boot
vi /etc/grub.conf

title Fedora 10 Upgrade
root (hd0,0)
kernel /vmlinuz ro
initrd /initrd.img

Make sure you note device name for the partition of the /download directory.
Boot up the “Fedora 10 Upgrade”.
Choose Hard drive install.
Choose the correct partition device noted above, and the directory where the iso has been downloaded.

Fedora 10/Ubuntu Intrepid Trackpad configuration

Create the following file /etc/hal/fdi/policy/appletouch.fdi. This is the best place to make configuration in this version of linux. /etc/X11/xorg.conf is no longer the best place.

Put the following in the file:

f10trackpad

Problem unpacking archived Sun software in RHEL5/CentOS5.

Can get the following kind of error when trying unpack archive java software downloaded from the Sun website (http://java.sun.com/products/archive/):

# ./j2re-1_3_1_03-linux-i386-rpm.bin

Do you agree to the above license terms? [yes or no]
yes
Unpacking…
Checksumming…
1
The download file appears to be corrupted. Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.
Please do not attempt to install this archive file.

The solution is to set the following environment variable:

export _POSIX2_VERSION=199209

Linux kernel configuration options using sysctl.

This information is available in /usr/share/doc/kernel-doc-2.6.27.7/Documentation/networking/ip-sysctl.txt when the kernel-doc package installed in RHEL5, CentOS 5, or Fedora. This particular file is from the 2.6.27.7-53 kernel.

Sysctl options

How to access MacOSX boot partions.

To force a MacBook Pro to boot a CD, hold down the C key while rebooting.
To view all the boot options available on a MacBook Pro, hold down the “option” key while rebooting.

Dual boot MacOSX and Fedora 10.

This was on a MacBook Pro (Powerbook G4 – Early 2008 model) running Leopard.

I went through the bootcamp procedure, and chose to install Windows.
I carved out 50GB of the 200GB drive.
Installed Fedora 10 on that partition.
I installed the boot loader on the partition, NOT the MBR.
I found that it would always boot up Fedora at that point.
I thought that I had messed up the boot record at that point, so I tried to boot of the CD.
That was when I discovered the “Hold down C at boot to force boot off CD.”
I did a repair on my MacOSX partition. All checked out fine, as I had expected.
Then, I discovered the “Hold down the “option” key at boot to view all your boot options.
There they were “MacOSX” and “Windows”.

I am currently using this to boot the different operating systems.

Look at several files in different subdirectories.

I found this to be a good way to look at many files with the same name in different subdirectories in linux.

find . -name filename.txt -exec less {} \;

To manage a VMware virtual server from the command line.

This works in VMware server 1.0.x for linux.

Check status (up or down):
vmware-cmd /pathtoyourvmxfile/vmxfile.vmx getstate

Start virtual server:
vmware-cmd /pathtoyourvmxfile/vmxfile.vmx start

Shutdown virtual server:
vmware-cmd /pathtoyourvmxfile/vmxfile.vmx stop

Windows – modify users profile – ntuser.dat.

You need to make sure the user is logged out before doing this.

1) Run regedit
2) Go to HKEY_USERS
3) Load Hive # navigate to the ntuser.dat you want to load.
4) Make changes.
5) Unload Hive

Windows NT 4.0/2000/2003 Server file system performance tweak

I made this modification on an HP DL-360 with dual 1.3 GHz processors, 2GB of memory, and RAID 1 drive (two drives mirrored). It made a huge improvement accessing a directory with a lot of files. According to Microsoft (, ), the setting is increased in Windows 2003. I set in my NT 4.0 server to 16,644.

The SizReqBuf value is stored in the registry under the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
Value Name: SizReqBuf
Data Type : REG_DWORD
Data : 512 – 65535 (bytes in decimal, or 200 – FFFF hexadecimal)
Default : 4356 Specifies the size of request buffers that the server uses.

Source: http://support.microsoft.com/kb/320829

Return top

INFORMATION