Red Hat :: How To Copy File Off DVD Created With Kickstart
May 23, 2011
I can't figure out how to copy a file off a custom RHEL 5 DVD that I created with kickstart after the installation completes and the %post runs. I don't want to run as "%post --no-chroot" because I have a script of system changes that needs to run in chroot. I just want to copy one RPM file into the /tmp so my script can install it. Can I have two %posts, one with chroot and one without? I can't seem to find any RHEL 5.5+ guides for kickstart that can explain to me how to make it work.
View 5 Replies
ADVERTISEMENT
Feb 23, 2010
I want to design a kickstart file that creates an unattended installation (I've passed that part). After it installs, I want it to automatically read the device's MAC address and change the hostname to match the MAC address with the separators removed. (For example if the MAC address is 01-02-03-04-05-06, the prompt after login should read "root@010203040506")
I know this is entered in the "%post" section of the kickstart file, and I know I'm supposed to use the "cut" and "sed" commands, but I have no idea what I'm doing or how to do it. script so I can copy/paste it into my kickstart file?
View 5 Replies
View Related
Aug 13, 2010
I have a kickstart script that attempts to create user "joeblow" with an encrypted password. The user is created okay, but the password does not seem to "take". After installation is complete, and the system is rebooted, this is the relevant portion of /etc/passwd:
Code:
This is the relevant portion of /etc/shadow:
Code:
Where there are two exclamation points, I would expect the encrypted password (as is the case for the root user, which is also created in the kickstart file).
The relevant line in my kickstart file looks like this:
Code:
That password string, which is 34 characters, is the word "password", encrypted with this command:
Code:
Also in my kickstart file is this line:
Code:
After the install is complete, I reboot and attempt to log in as "joeblow", but no dice. If I log in as root, and manually put the above encrypted password into /etc/shadow for jowblow, I can then log in as joeblow.
View 2 Replies
View Related
Jan 5, 2011
I am looking for a thorough document that explains:
1) Creating a local repo
2) Using kickstart to access that repo
3) Performing a network install using kickstart
Some background: I have several racks of servers that I need to install Fedora on. These servers CANNOT be placed on the internet; hence the need for the creation of a local repo on some other machine (which will be connected to the servers via a local network). I am not sure how to create a local repo, so that one of my questions.
I'd also like to automate as much of the install as possible and kickstart is the only thing I know of for that. I am no guru with kickstart, but I have used it before to successfully install Fedora Core 6 -- I am hoping there are no great changes with the current releases of Fedora (12-14)?
A local repo of Fedora Core 6 was created by someone (some time ago) on a workstation (running FC6). This is what I've used in the past to install FC6 on previous servers (via a kickstart CD). However, I dont have the documentation on how the repo was created or how the kickstart CD was created I've gleaned some ideas ok kickstart from the pieces I've read on web, but none of it has been specific to the latest releases of Fedora.
View 3 Replies
View Related
Aug 1, 2011
I'm a little bit confused with partitioning the filesystem in Linux. the difference between creating the file system with fdisk and mkfs (when formatting the disk). I can't clearly tell my problem, so please look at this picture:
View 2 Replies
View Related
Feb 1, 2010
CentOS 5.3 32bit
I'm having trouble trying to copy files from an nfs mounted remote machine during the the post install with kickstart.
My post install:
%post
mkdir /mnt/foo
mkdir /mnt/foo/downloads
mount 206.xx.xx.xxx:/downloads /mnt/foo/downloads
ln -s /mnt/foo/downloads /downloads
sed -i '$ afoo:/downloads /mnt/foo/downloads nfs exec,dev,suid,rw,bg,soft,rsize=8192,wsize=8192 1 1' /etc/fstab
%end
%post --nochroot
cp -r /downloads/thirdparty/importantFolder /mnt/sysimage/opt
%end
View 11 Replies
View Related
Mar 24, 2010
I am using redhat linux4 and qt4.6. I have created an application in qt, which i want to link to frame buffer using C programme and display it onto the xserver or/and on the hawkboard.
View 1 Replies
View Related
Apr 22, 2010
Is there a simple command to copy files that have been created within the past 2 hours?I've been looking through the man pages for unisonrsyncfindcpand I can't find anything I'm looking for.All I need is a simple command.Code:Copy folder a to b if created < 2 hours.
View 4 Replies
View Related
Mar 17, 2011
I just maked an ext4 partition by the help of gparted. Ubuntu is my only OS no dual boot. Using Ubuntu Maverick. The problem is partition must be open as root to do any work else it wont even allow me to open file,create folder,cut copy paste or anything.
View 9 Replies
View Related
Mar 18, 2010
I have been using a boot disk with a kickstart file that calls rpm files that are on RHEL4.8. The rpm files tk-devel,tcl-devel,nss-devel and nspr-devel respond back during the install of RHEL5.e with a pop-up saying they do not exist,but when I look on the RHEL5.4 DVD they do exist in the Workstation directory.
View 1 Replies
View Related
Mar 1, 2011
How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they should "and" the mode flags, while what I am looking for is something that will "or" them (add +w mode).
More details: I have to import a repository from GIT to Perforce. I want that all Perforce depot files are Read-Only (that is how Perforce was designed), while all other files that were derived/copied from depot files are writable. Currently if a Makefile tries to copy a Read-Only file then the derived file will also be Read-only. This leads to build-errors when cp tries to overwrite Read-Only file second time. Of course the --force is a workaround here but then the derived file is also Read-Only. Also I do not want to mess with "chmod" after each "cp" command - I will do that only as the last resort.
View 1 Replies
View Related
Apr 29, 2010
I am currently trying to add a new user on a linux box in the %post section of the kickstart file. The user however doesn't get created after I reboot the box after install. Am I missing anything ?Just for info. I am installing RHEL5.4 on a 64 bit box, I know this should not matter, but what the heck!!
View 4 Replies
View Related
May 6, 2010
I created an Ubuntu 10.4 iso with the kickstart cfg on it, trying to boot it with the ks=/cdrom/pathtoconfig (tried even ks=cdrom:/path) parameter in VirtualBox but it refuses to load the file and just launches the generic install.
View 1 Replies
View Related
Apr 6, 2009
I'm trying to do a red hat Advanced server 4 update 7 install using a kick start file on the network. The server with the kickstart file and dvd contents is on the same subnet as the server receiving the install. We have done it before in the past just fine using:linux nofb text ks=http://serverip/path at the boot/install screen. After that the ip address info is entered manually and the kickstart does its thing. When doing this with update 7, the install acts like a regular install. When i check the http access logs on the other server, it shows no access from the server receiving the install.I have tried adding an ip address to the install command. Such as:
View 2 Replies
View Related
Nov 8, 2010
I m facing a problem from few days i try to sort it out but i fail to overcome from this problem .
i configure a pxe boot server and mount the RHEL iso to /bootins/tree directory
Then after i created a /kick/client.cfg kickstart file. and share both the directory /bootins/tree and /kick with nfs
below is the entry of my /etc/exports directory
/bootins/tree 192.168.10.0/24(rw,sync)
/kick 192.168.10.0/24(rw,sync)
my client machine can successfully boot from the server but after booting an error msg is come, the msg is unable to load a kickstart file , i dont know why this happens coz i can successfully mount both the above share from another linux machine but dont know why at booting time this msg is appears firewall is off
View 1 Replies
View Related
Jun 27, 2010
i am trying to boot linux pc from network booting.. so using pxe,tftp,dhcp(1).i configured my /etc/dhcpd.conf file as...
ddns-update-style none;
ignore client-updates;
allow booting;
[code]....
View 5 Replies
View Related
Jan 6, 2010
I have downloaded the following kickstart file for installing minimal < 300 MB space centOS 5.2. I have created a Virtual Machine for Linux and attempting to install CentOS.here is my kickstart file:
Code:
# Kickstart file
#
[code]....
View 3 Replies
View Related
Mar 22, 2011
I have created a customized RHEL 5.4 DVD and placed a Kickstart file in it.It is running fine except the post installation steps.I need to copy some files from DVD to the newly built server. For this I have modified my Kickstart file as below, but no luck.
View 3 Replies
View Related
Dec 1, 2009
Here is a way to prepare a USB flash drive to save your kickstart file to it, and then read the kickstart file from the USB drive during a new Fedora installation.A USB flash drive is recognised by the Linux kernel as just another hard drive.This is how I set up my USB flash drive to use it to store my kickstart file on.You will need a working Linux system to set up the USB drive.
View 2 Replies
View Related
Mar 18, 2010
I'm unable to create a linux boot cd with a kickstart file. I have a working kickstart file and a working boot image (tested by booting using the network for the kickstart file), but I can't seem to put them both on the DVD.
Here are the steps I took
1. mount the *.iso file to /mnt/isosetups
2. Recursively copy all the files from /mnt/isosetups to /mnt/bootcd
3. removing /mnt/bootcd/isolinux/boot.cat
4. running the mkisofx command (used -c to recreate boot.cat)
5. put the new image on a windows box and burned to a dvd using roxio
The result was that I could enter the red hat boot menu but the server couldn't find the boot image on the cd. I could go into more detail about what commands I entered, my environment, what I tested, etc.
View 1 Replies
View Related
Feb 1, 2010
I'm using RHEL 5.4 and trying to use the system-config-kickstart to generate a ks.cfg file with all the settings already appeneded. After running the "system-config-kickstart --generate ks.cfg" command, the file gets created but it's missing the firewall configuration, partition information and so on.
How can these settings also be generated with the system-config-kickstart?
View 1 Replies
View Related
Mar 16, 2011
I have created a customized RHEL 5.4 DVD and placed a Kickstart file in it.It is running fine except I have to manually choose "Local CDROM" in the installation process. (see attached pic)Any idea how to skip this.
View 3 Replies
View Related
Jan 4, 2009
I have recently been given the task of setting up some thirty odd netbooks with F10 and i was wondering if there is a way to generate a kickstart file from the first netbook (my one lol ) that i have setup to our needs so as to use it to create the same install on the rest of the netbooks. i had thought that i could use the anaconda-ks.cfg file in root's home dir but it is not at all representative of the custom package list i chose during the install.
View 8 Replies
View Related
Aug 4, 2010
I am in a VMware environment, and using RHEL 5.4. I am trying to setup a PXE Kickstart installation. For this I have configured DHCP and TFTP, made a kickstart file and shared it in the network through HTTP. My problem is that somehow kickstart file (ks.cfg) is not picked by the machine in which I am installing the OS. Although, the contents of my kickstart file can be viewed over HTTP. Please see KS_Error.jpg.
[Code]....
However, I believe DHCP and TFTP is working fine as I am getting the correct IP 192.168.1.115 which I have set in /etc/dhcpd.conf. Also, my label 1 which I have set in /tftpboot/linux-install/pxelinux.cfg/default is working fine as I able to locate initrd and vmlinuz. Please see attached Image_1.jpg how to troubleshoot this. I need to paste any of my configuration files?.
View 14 Replies
View Related
Aug 4, 2009
I want to know the creation time of a directory or a file. How can I know this?
View 1 Replies
View Related
Feb 10, 2010
is there a way i can use mv or another command to move a file to a directory that has not been created yet.Id like to be able to create the directory and move theile in one command. Can this be done? if so how
View 8 Replies
View Related
Jun 3, 2010
when I create a new text file in my pendrive, it become executable automatically. The text file name append with asterisk(*). However when I create a text file in Desktop, the created text file is normal and is not executable.
Another thing is when I copy a PDF file to my pendrive, it become executable file with asterisk (*) append after the PDF name. I've try copy whatever to pendrive but all end up with executable file.
View 6 Replies
View Related
Dec 20, 2010
I wrote a very simple script to compile a Tex document and open the resulting PDF output file. The problem I have is that every now and then there are multiple PDF files in the same directory. For example if I have a file called test.tex I run my script and it compiles the test.tex and creates a file called test.pdf If there are only one tex and pdf file in this folder there is no problem. If there is also a 1.pdf in this folder the test.tex will compile and 1.pdf will open.
My question is: is there a way to open the exact pdf file that was created by the .tex file?
My script file is this:
#!/bin/sh
pdflatex *.tex
gnome-open *.pdf
View 5 Replies
View Related
Mar 25, 2011
create one tar.gz file that contains my /home, /etc, /root directory.
a) The process ended with a 88GB file size (which is ok) but with the following message.Code: tar: Exiting with failure status due to previous errors.I have searched a little but I could not find what went wrong.
b) What are the limitations of tar and gz for backups. Of course I fully understand that they can not be used for differential backups (if it is called like that)
c) Let's say that my backup will be a file of 100GB and I want to see the contents of the .tar.gz. In kde there is a program called ark. Can ark handle so big files? Does it use my hard disk (eg. /tmp) to uncompress the file so to show me its contents? It might be the case that might be the compressed file is much bigger than the left space on the hard disk?
d) How can I do an integrity check when my tar.gz file is created?
View 11 Replies
View Related
Feb 19, 2010
I have created a file with a pre-defined size as follows:
Code:
#define FILEPATH "testfile"
#define FILESIZE 16
[code]...
View 5 Replies
View Related