CentOS 5 :: Kickstart File Post - Copy / Paste Scripting
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
ADVERTISEMENT
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
Oct 19, 2009
I am trying to copy an updated splash.xpm.gz at the end of a system build but everything in the post section is total ignored.
#--- Post-installation script
%post
#!/bin/sh
#...Mount the installation CD
[code]....
View 8 Replies
View Related
Sep 13, 2011
I put a script into the post installation of kickstart and the log showed that the yum that is started in the script had to wait for yum to finish. I understand I can (and will) put this package in the packages section, but isn't it bad that yum is still finishing up when the post installation is initialized? Has anyone else noticed this?
View 2 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
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
View Related
Apr 19, 2011
I have a .txt-file with ~50.000 lines of numbers, generated by a mathematics program. From this file, I need line ~ 1.100 to line ~16.000 (these lines are always the same btw, this may make the solution easier, dunno) to be copy/pasted to another file, where the lines ~500 to ~15.000 (also, every time the same) should be overwritten by the aforementioned lines...I haven't found or come up with anything that works yet, mostly I find solutions to copy everything from one file to another but I can't find something to specifically overwrite a part of a file with part of another.
View 4 Replies
View Related
Sep 19, 2009
favor and let me know how can I copy some text in one file and paste it to another file ,when both of the files are being opened by vi text editor ?
View 7 Replies
View Related
May 29, 2011
Has anyone seen a seamless way to create a symbolic link via a GUI based file manager? I have been using PCManfm because I find it fast, but I can copy the file but paste a symbolic link instead of the actual file.
View 9 Replies
View Related
Feb 18, 2011
I am trying to automate installs of Red Hat 5.5 x86. I have a FAT32 partition on my disk at /dev/sda1 that I want to mount to /cdrv folder of the installed OS and I use this line in the %post section for this:"mount -t vfat -o iocharset=utf8,umask=000 /dev/sda1 /cdrv"
For some reason, this does not mount the partition.onfirm using "fdisk -l>>/post.log" that /dev/sda1 is FAT32 and is the Boot partition. I can create any folders or files using the %post section but just this mounting doesnt seem to work.
View 1 Replies
View Related
Jul 9, 2010
just installed ubuntu couple of days back on my netbook. I am still a beginner, enjoying my adventure exploring ubuntu. I have another desktop which runs on XP. I am able to access XP shared folders through my netbook(linux). However, i wanted to copy files from XP infact folders using TERMINAL in my netbook, not copy and paste using my mouse. Are there any commands for it?
View 1 Replies
View Related
Feb 23, 2010
As the title says, I'm building a kickstart for a RedHat installation.I'm trying to incorporate the firegl driver rpm installation and its halfway working, not completly. What I've tried so far is to place the rpm in the --nochroot and in the normal chroot enviornment and neither one works. In the --nochroot, install it with rpm --root /mnt/sysimage/ and in the normal post i just do an rpm -ivh. In either case the fglrx folder is built within /lib/modules, however everything thats supposed to be installed never makes it to the newly installed root. I'm thinking that its actually getting installed to the installation / as opposed to the new /.
View 3 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
May 18, 2011
shell scripting in Fedora14I want a script"Find in curent folder for files, and it copy first file he find with name gived by user, if name already exist then echo error message and finish"command usage " bash scriptname copyASname"
smthing like Code: #!/bin/bash
for files in /home/user/*
do
[code]....
View 1 Replies
View Related
Jun 28, 2010
Anyone know why, my copy & paste in the terminal doesn't work....it's there, just not highlighted, I need to install Sun Java and can copy the command lines from the forum I just can't paste them into the terminal. Also is there a way to check that my Ubuntu download to my USB stick is error free?
View 3 Replies
View Related
May 7, 2010
I can't copy and paste into Cygwin... is there a good alternative to Cygwin that will let me do this?
View 7 Replies
View Related
Jan 19, 2011
The usual vim yank and paste works only in the same window (but does work across files and close/save commands). Is it possible to make it work across terminals (yank from window in one terminal and paste in another) and if so, how?
View 1 Replies
View Related
Jan 11, 2010
I can't Copy, paste, select all, or find with my keyboard... pretty much all the commands that involve the Control key don't work. in firefox... the edit> copy, paste , etc commands are actually grayed out too.
View 7 Replies
View Related
Jul 14, 2010
I'm running Lucid, and whenever I run a program in gnome-terminal that captures the mouse (dvtm, elinks, mc) I cannot highlight any text, which prevents me from copying any text from the terminal.
View 2 Replies
View Related
Aug 15, 2010
I can't copy & paste text from an Evolution email message without first pasting the text into an editor like gedit or a word processor and recopying it a second time... Then it works fine... I thought the problem may have been a Delphi forum specific problem, but it also does the same thing on this board...
I running 10.04 with the default Evolution mail program.
BTW on Delphi I can turn off the wysiwyg editor and paste as "source" and it works just fine without the paste and recopy step...
View 7 Replies
View Related
Oct 21, 2010
I am experiencing an issue where the first time I copy and paste it works fine. But after that it just pastes garble. I've installed glipper and if I clear the clipboard after every copy/paste its fine.
At first I upgraded from 10.04 and this came up so I thought I would just do a clean install of 10.10. It was still happening.
View 1 Replies
View Related
Dec 13, 2010
I'm trying to copy paste about 5k lines from a vi text file onto a website but obviously manually selecting the text from my screen and pasting it one page at a time is time consuming so I was wondering if there was an easier way to do this?
View 2 Replies
View Related
Feb 10, 2011
Why can't I copy from a web browser and paste into a shell?
Sometimes it works, other is does not.
I also used the right click menus to make 100% sure that COPY and then Paste were valid
View 12 Replies
View Related
May 29, 2010
I am trying to Copy and Paste a link on Fedora 8 (I am using Window Vista) and I can't find a way to do this.. I have tried "Right and Left" click at the same time... I have tried "Shift-Ctrl-C and Shift-Ctrl-V.. plus all the others with no results..
I am working from root on a Console...
View 8 Replies
View Related
Nov 12, 2010
I'm using SSH (with -X specified) from a Ubuntu box to a RHEL4 box and running GVim. It opens as expected in my local X, but the copy and paste via select doesn't work. I cannot select text in GVim and paste in a local window, nor can I select text from a local window and paste in GVim. This works, however, when I SSH (with -X specified) to a different RHEL4 box. Is there something I need to install on the remote machine? I am running Parcellite 0.9.2 on the local box, but closing it doesn't make the problem go away, and it is not interfering with the other box.
View 1 Replies
View Related
Sep 13, 2011
I'm using a work computer so i don't have a root access. I've tried "+y, "*y, set clipboard=unnamed. It looks like my vim doesn't support +clipboard (version 7.0).I'm using Linux Centos 5 so fakeclips doesn't actually help (i think)It's a pain to type stuff manually from firefox to vim or other apps and vice versa.
View 3 Replies
View Related
Mar 7, 2010
In Ubuntu, why does copy and past not work for most applications. I can't tell you how many times I have copied some text and went to a new application and Past is greyed out. For example, in Firefox I can highlight some text like "Belmont Diner", then right click and choose "Copy". Then go up to the Google search bar and right click and Paste is not an option. I have tried doing this using Crtl C to copy and Ctrl V to paste. It does not work...most of the time. Every once in a while it will but most of the time it does not. I can repeat the action to make sure I really copied the data and still no luck. Sometimes it works but many times it does not.
View 4 Replies
View Related
Mar 28, 2010
How to enable copy/paste to www directory or how to copy files to www directory?
View 7 Replies
View Related
Apr 23, 2010
I've tried rdesktop and grdesktop.. But i can't do copy and paste operation within windows XP machine.
View 4 Replies
View Related
Jul 7, 2010
I'm using Ubuntu 10.04 64bit on a Toshiba Satellite L500 series laptop.
Every time I press ctrl c or v the touchpad freezes for a few seconds and the cursor won't move.
View 2 Replies
View Related