Diary of Fedora 14 Install and Migration from Fedora 8

Diary of Fedora 14 Install and Migration from Fedora 8

Diary of Fedora 14 Install and migration from Fedora 8 21 January 2011 RWR Helpful Internet resources: (F14RN): Fedora 14 release notes: http://docs.fedoraproject.org/en-US/Fedora/14/html/Release_Notes/ (F14IG): Fedora 14 Installation guide: http://docs.fedoraproject.org/en-US/Fedora/14/html/Installation_Guide/index.html (SWI): Server-World Info web pages (very good for configuring a server): http://www.server-world.info/en/note?os=Fedora_14&p=install (MJMsIG): Mauriat Miranda's Personal Installation Guide: http://www.mjmwired.net/resources/mjm-fedora-f14.html (UFFAQ): The Unofficial Fedora FAQ: http://www.fedorafaq.org/ Various Fedora Community Web Sites/Forums with links here: http://fedoraproject.org/wiki/CommunityWebsites My Post-install notes (My upgrade from FC4 to FC6): http://host.domain.net/FC6_Post-install.pdf My Post-install notes for migration from FC6 to F8: http://host.domain.net/postinstallF8am.pdf Note: The Computer Hardware Specifications of the “new” host: Dell Dimension 4600 Series (Purchased May 2004) X86 Intel Pentium 4 Processor 2.8GHz 1.5GB SDRAM Memory (upgraded) 0.333GHz Intel 82865G Graphics Controller Integrated Audio Dell Wireless Keyboard and Mouse Two Hard Drives: Primary Master: IDE1: 500GB Western Digital Co. WD5000AAKB-00H8A0 (Fresh Fedora 14 install) Primary Slave: IDE2: 320GB Western Digital Co. WD3200AAJB-00WGA0 (Win XP Prof. SP3) Note: Both drives are installed with the jumper set in the Cable Select (CS) position with The WD 500GB drive is in the 1st IDE position and WD 320 GB Drive in the 2nd IDE position. This sets the Master/Slave relationship as described above. (Originally, the 320 GB Win XP Drive was in Master position and the Fresh Fedora 14 install was done from the Install DVD on the 500GB drive in the slave position. The Fedora Drive has three partitions: A small Boot Partition with grub, a 3GB- Swap partition, and a large LVM containing the Fedora 14 System. I wanted to set up a dual boot system with Fedora 14 as the default and Win XP as an option. But the auto setup provided by the Fedora 14 Install DVD did not work. The Bios always started the boot with the master drive and so the default was XP. I could not change this in the Bios. So I switched the drive positions to what is indicated above… Now, the grub boot menu came up … but the win XP option did not work. After a google search I found the way to get WinXP to boot from the Slave Drive. See: http://www.linuxquestions.org/linux/answers/Applications_GUI_Multimedia/Booting_Windows_on_second_HD_with_Grub Following the suggestion found in this URL, I copied the following four lines into the grub.conf file: title Windows XP map (hd0) (hd1) map (hd1) (hd0) chainloader (hd1,0)+1 This works! ) So I have a dual boot system: Fedora 14 and Windows XP, with Fedora 14 as the default. The Fedora 14 System was given the Name: chaoshome2 Placed on the local network at fixed IP address: 192.168.20.102 The old Fedora 8 System has the name ‘chaoshome’ and has fixed IP address: 192.168.20.101 Users were added to the Fedora 14 system such that they have identical user-ID numbers and Group-ID numbers in each system. Now, I should be able to use nfs (or samba) to mount file systems from Fedora 8 (chaoshome) onto mount positions on the Fedora 14 (chaoshome2) system and copy files preserving properties. Fedora 14 Post-Install Actions 1. Set up "sudo": Follow ref. MJMsIG (listed at top). ]$ su password: ]# echo 'username ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers ------------------------------------------------------- 2. Set up "yum": I selected many programs for both desktop and server systems for install from the Fedora 14 Install DVD. I also chose a set of repositories for use by yum. I followed MJMsIG; adding the yum fastmirror plugin. $ sudo yum install yum-plugin-fastestmirror --------------------------------------- 3. Third party repositories I followed MJMsIG, I set up the RPMFusion repositories: $ sudo rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release- stable.noarch.rpm $ sudo rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release- stable.noarch.rpm Note: these commands are all on one command line. --------------------------------------- 4. Updated newly installed F14 system. By this time a pop-up window told me there were severa; updates available. I followed the prompts and the yum Software Updater updated the system. This only took a few minutes. So we know the automatic update system is working. --------------------------------------------- 5. Repartitioned Windows XP drive Hard Disk Drive /dev/sdb is a 300GiB (320 GB) hard drive that currently contains a single windows (XP Professional) boot partition (was Betty-1 PC) (used space is about 87 GiB out of 298 GiB). I want to shrink the windows partition and make the remaining space a second partition that can be mounted and used as backup space for the new Fedora system. 5.1. Installed Gparted on Fedora 14 system. 5.2. Unmounted /dev/sdb1 (mounted in fstab at /betty-1) and looked at /dev/sdb with Gparted. 5.3. Prepared /dev/sdb1 partition for shrinking by booting up XP and running the windows De-fragmentation program to clean and organize the used portion. Running Defrag twice got the entire used space moved to the front of the partition according the info reported by Defrag. Checked to make sure the windows partition still boots up cleanly....[OK]. 5.4. Used Gparted to shrink the partition to about 177GiB leaving about 180 GiB unallocated. I was careful to not change the "Free space preceding" the partition ( which was 0 MiB) so as to protect the windows Master Boot Record. I left the "align to" set to MiB. Clicked on the check mark and "Apply" to start the operation. The process was completed successfully in less than 3 min. Rebooted into win XP ... it automatically ran chkdisk and then booted up fine. Did a reboot into windows XP and it came up cleanly. 5.5. Used Gparted to create a new partition in the remaining unallocated space (180.90 GiB). I chose the defaults except for "File system", which I set to "ntfs" (so the partition would be visible to windows XP) and label: bkup. Clicked the check mark and "Apply" to start the operation. The operation was completed successfully in 6 sec. Now /dev/sdb has two primary partitions: /dev/sdb1 ntfs BETTY-1 117.19 GiB size 86.69 GiB used boot /dev/sdb2 ntfs bkup 180.90 GiB size 0 GiB used I booted into Windows XP and it sees the new partition as F: I booted into Fedora 14 and changed /etc/fstab to mount the new partition at /bkups. --------------------------------------------- 6. Set up samba for file sharing with Windows computers The samba system was installed from the F14 Install DVD. I essentially followed MJMsIG. The settings for SELinux and Firewall were important. All samba server items were marked as trusted. I used the Administration GUI (System > Administration > Samba) to set up a share directory and the samba user username with password to match the windows user username and password. After some minor tweaks, it works. I can see the chaoshome2 system’s shared directory and user username’s home directory from all windows PCs when logged in as username, but, as in the past, I was not able to see all the Windows PCs and their shared directories from the Fedora 14 System. I found a solution to this latter problem here: http://www.vanwykipedia.com/doku.php?id=technical:netbios Must edit the /etc/nsswitch.conf file and add ‘win’ to the hosts: line as described in the URL above. After making the change I rebooted the system to make sure that all network services were updated. Now Fedora 14 sees all PCs (but still cannot browse my windows vista system). But I can get access to all Windows files by several methods, including mounting. See below examples of testing and mounting files from Windows PCs in Fedora 14. Use command “smbtree” to get a listing of all Windows PCs and other Samba file systems available on the network: $ smbtree Enter username's password: ********** CHAOSNET \\ROLLINS2 Home Dell XPS 420 \\ROLLINS2\Manuals \\ROLLINS2\IPC$ Remote IPC \\ROLLINS2\H \\CHAOSHOME2 Samba Server Version 3.5.6-71.fc14 \\CHAOSHOME2\username Home Directories \\CHAOSHOME2\IPC$ IPC Service (Samba Server Version 3.5.6-71.fc14) \\CHAOSHOME2\public public_Share on Chaoshome2 \\CHAOSHOME Samba Server 3.0.33-0.fc8 \\CHAOSHOME\username Home Directoris \\CHAOSHOME\IPC$ IPC Service (Samba Server 3.0.33-0.fc8) \\CHAOSHOME\public Public Stuff $ Mounting a windows file system (note: the mount point must already exist) $ sudo mount -t cifs -o username=username, //ROLLINS2/H /mnt/windows Password: ********** $ The above mounted file system is only writeable by root. Also, one can place the credentials in a file with two lines: username=username password=********** Place the above two lines in a secure location readable only by root; say “/root/username”. Then can pass the credentials and give a user write permissions within the mount command: $ sudo mount -t cifs -o credentials=/root/usernamescred,file_mode=0775,dir_mode=0775,uid=username,gid=username //ROLLINS2/H /mnt/windows All on one line, of course. Note: the “-o” options are separated by “,” and some of these options only apply to cifs file systems. Now the user ‘username’ has permission to write on the mounted file system. $ $ ls -dl /mnt/windows drwxrwxr-x. 1 username username 4096 Feb 7 22:14 /mnt/windows $ --------------------------------------- 7. Setup NFS to work through a firewall. The URL for the Fedora Documentation of the Network File System (NFS): http://docs.fedoraproject.org/en-US/Fedora/14/html/Storage_Administration_Guide/ch-nfs.html NFS was installed from the Install DVD.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    31 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us