Programming :: Use Late_command In Preseed File?

Dec 27, 2010

The need which made me come here and share the problem with you is that the proper usage of late_command in preseed file.

I've prepare a preseed file which works fine, but the late_command should install a test script when installation finishes.

What I need is: copying the script from the cdrom into /root directory of the system which is being installed, and execute it! the code I've tried is found from those who previously tried executing script after installation. but for me that doesn't work!

View 7 Replies


ADVERTISEMENT

Programming :: Partitioning Using 'preseed.cfg' File

Nov 30, 2010

I'm gonna use a preseed file in order to install ubuntu 9.04, in which I put my own recipe for partitioning the linux system, the scheme of the partitioning must be in the following form:

I was looking for a proper configuration on the net, the result below was which I have found while surfing:

code:

The system that I'm gonna perform installation ubuntu on, is a server which has 3 slot of hard disk drive (SAS) and by default HP has configured them functioning in RAID 5. how the exact configuration could be?

View 8 Replies View Related

Ubuntu Installation :: Set The Kernel Parameters To Perform An Unattended Install Using Preseed File?

Oct 23, 2010

I would like to create an unattended install ubuntu 10.10 cd. I have followed the ubuntu [URL].. on creating the preseed file, however, I can't find any useful tutorial on how to set the kernel parameters to perform an unattended install using my preseed file.

View 1 Replies View Related

Ubuntu Installation :: Preseed-file Not Working As Expected On Lucid Desktop Install - Read

Jul 30, 2010

I have a problem to get it to work. The installer seems to read the preseed-file alright, and some of the values defined in the preseed-file are taken into account. The questions regarding locale, keyboard layout and time zone are answered using the preseed-file, but in the user account creation-step the process goes wrong. The Full name-field is obtained from the preseed-file, but the login-name is generated by the installer and not read from the preseed. Also the password-fields are empty and not filled in. Also the script that I've defined with preseed/late_command is never run.

I tried searching the forums but no-one had exactly this kind of problem, so it makes me think that this has to be some trivial error I'm doing. Could someone take a look at these configs and see if there's something wrong with them? How should I continue resolving this?

[Code]....

View 1 Replies View Related

Ubuntu :: What Is / Preseed / Ubuntu.seed File Do

Feb 4, 2010

What is /preseed/ubuntu.seed file do. I making a custom Ubuntu CD, and the example I am using has it part of the append argument in isolinux.cfg I can't find any explanation of what it is for.

View 1 Replies View Related

Ubuntu Installation :: 10.04 Preseed - Incorrect CD-ROM

Jun 4, 2010

I'm trying to preseed a 10.04 install, and it's giving me a lot of trouble. I've been using [url] as a guide, but I can't seem to make it work.

I have ripped the x64 alternate install .iso to my hard drive, inserted the preseed files (details on this later) and remastered and burned the iso. When I put the disc into my test PC, it boots up to the CD, checks for English keyboard, enters my custom install option and then fails. It brings up a red screen that says, "Incorrect CD-ROM detected. The CD-ROM drive contains a CD which cannot be used for installation. Please insert a suitable CD to continue with the installation."

The way I've understood the documentation is that there are 2 files that needed edited, and one file that needs created: edit /isolinux/text.cfg, edit /isolinux/isolinux.cfg, and create /preseed.cfg

Here is what I currently have in those files:

Code:

Code:

Code:

The preseed.cfg is 95% copied from the ubuntu documentation, I've only made the changes that are necessary. I'll admit I do not know what most of the boot parameters in the /isolinux/text.cfg file mean.

View 5 Replies View Related

Debian Installation :: Preseed Hostname Reconfiguration

Aug 25, 2014

I'm trying to create preseed configuration for debian. Currently I'm working with Debian version: 7 (wheezy), Installer build: 20130613+deb7u2+b1.

What I want to achieve is to have different network configuration than during installation.

I have two preseed files, one in intrd and the second that is fetched through http (url argument to kernel)

In the initrd file there are settings required to get dhcp network settings that will be used during installation:

Code: Select alld-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain

Then in the preseed file that is downloaded from network i have this:

Code: Select alld-i netcfg/choose_interface select auto
d-i netcfg/disable_autoconfig boolean true

d-i netcfg/get_ipaddress string 192.168.56.199
d-i netcfg/get_netmask string 255.255.255.0

[Code] ....

IP address settings work as expected, at the end of the installation netcfg runs again and when installed system boots it has static address set (.199). However hostname stays the same, it is not reconfigured.

I have tried many different combinations like removing get_hostname and get_domain options form initrd preseed and appending 'priority=critical' to kernel boot arguments but no matter what I do it always fails.

Is there any way to do this? I know that hostname can be set by hostname= krenel boot arg or by using dhcp option but I'd like to avoid this.

View 0 Replies View Related

Debian Installation :: Cannot Preseed Language / Country / Locate

Dec 14, 2014

I'm booting a usb stick with a custom initrd.gz, which contains a preseed.cfg at /. This preseed.cfg has the following initial lines:

d-i debian-installer/language string en
d-i debian-installer/country string BR
d-i debian-installer/locale string en_US.UTF-8

But the installer keeps asking for language/country/locale.

View 0 Replies View Related

Debian Installation :: Preseed : Keyboard Config Not Taken Into Account?

Jul 7, 2011

I'm trying to automate Squeeze 6 installation with preseed.cfg, but the keyboard configuration (fr) is not taken into account.Given the debconf logs, it seems that the language is set before preseed.cfg is read. So I added "console-keymaps-at/keymap=fr locale=fr_FR" to the syslinux.cfg kernel line.That skips the installer keyboard selection page. But in debconf logs I can seed "Setting debconf/language to en".What am I doing wrong ?Here are the related options I set in preseed.cfg. I can't find an exhaustive debconf options list, and their exact meaning ; does anyone know of one ?d-i debian-installer/locale string fr

# The values can also be preseeded individually for greater flexibility.
d-i debian-installer/language string fr
d-i debian-installer/country string FR

[code]....

View 1 Replies View Related

Ubuntu Installation :: Preseed No Network Interfaces Detected

Feb 17, 2010

I am trying to preseed the UBUNTU 9.04 x86 installer and everything else is okay except that for some systems, it says "No Network Interfaces found" with options as "Continue" and "Go Back". My network interface detection is set to "auto" in my preseed file. I want to remove this popup. Can someone please help with the correct line in preseed.cfg?

View 1 Replies View Related

Ubuntu Installation :: Ubiquity Asking For Cd With Packages On Custom - Preseed?

Aug 18, 2010

I just made a custom ubuntu, following these instructions [url], and it works great, but during the install ubiquity tries to check the cd for extra packages... and prompts an error... but it doesn't have any packages nor it is needed to have... i just want that ubiquity skips this instruction.... I'm guessing the correct pressed instruction will solve this, but I can't find any mention to this...

View 1 Replies View Related

Ubuntu :: Preseed Installation Asks Ready To Install?

Sep 21, 2010

I've generated a preseed for my Ubuntu Lucid installation, its loading ubiquity automatically (from kernel parm automatic-ubiquity) and it fills in all the values from the preseed file its given. However it displays the Ubiquity page "Ready to Install" (I am using the kubuntu ubiquity package) and I have to click the button install for it to start. How can I get it to skip this and just start installing?

View 1 Replies View Related

Software :: Ubiquity Asking For Cd With Packages On Custom Ubuntu - Preseed?

Aug 12, 2010

During the install ubiquity tries to check the cd for extra packages... and prompts an error... but it doesn't have any packages nor it is needed to have... i just want that ubiquity skips this instruction.... I'm guessing the correct pressed instruction will solve this, but I can't find any mention to this...

View 1 Replies View Related

Debian Installation :: Preseed Install Of 8.2 Amd 64 Fails To Wait For DHCP

Oct 9, 2015

I've run into a situation where when performing a pxe/preseed install the system boots up into the install without issue, getting a dhcp address, then the installer begins to configure the network and it gets to where it request a dhcp address and it instantly fails the install stating that we are either not using dhcp or it's slow.

I've added d-i netcfg/dhcp_timeout string 600 to the preseed file but it doesn't seem to be honoured here since it doesn't wait 600 seconds before failing. I have 2 other identical systems that install using the same preseed file but the installer completes as expected. This system has no issues installing centos just debian fails. I did try, once the install failed, to switch to the console and run udhcpc and the server received the address reserved for it.

Is there a method to force debian installer to wait a bit longer for the dhcp server besides what I've already done?

View 0 Replies View Related

Ubuntu Servers :: Unable To Select Server Kernel With Preseed?

Jan 6, 2010

I'm currently trying to use preseed to build an ubuntu server box over the network. I'm using the netboot.tar.gz from the karmic main mirror. By default it installs the standard kernel (linux-2.6.31-16-generic), and I want to use the server kernel (the metapackage linux-server which should install linux-image-2.6.31-16-server). I'm using a minimal build:

Code:
tasksel tasksel/first multiselect minimal As far as I can see all the other preseed settings are close to defaults. I've tried setting both of the following lines (separately and together) with no effect:
Code:
d-i base-installer/kernel/image string linux-server
d-i base-installer/kernel/override-image string linux-server
Once the machine is built, if I run:

[Code]...

View 3 Replies View Related

Ubuntu Installation :: Likewise Open Install With Preseed Not Working?

Jan 6, 2011

I'm having trouble installing likewise open through preseed.I'v used the example from https://help.ubuntu.com/10.04/instal...le-preseed.txt as the source of my preseed file.It works just fine installing openssh, smbfs and libpam-mount. Se the code below. But if I try adding likewise to the code below installation stops when the likewise package is starting to install.Quote:

# Individual additional packages to install
d-i pkgsel/include string openssh-server build-essential smbfs libpam-mount
# Whether to upgrade packages after debootstrap.

[code]....

View 1 Replies View Related

Debian Installation :: Get Preseed Working On A Bunch Of Machines With Multiple NICs?

Mar 15, 2011

I am trying to get preseed working on a bunch of machines with multiple NICs but it doesn't pick the right interface and/or gets "no link" on all interfaces. My PXE kernel line looks like so (I have auto=true priority=critical and interface=auto)

label squeeze
kernel debian-installer/squeeze/i386/linux
append vga=788 initrd=debian-installer/squeeze/i386/initrd.gz auto=true priority=critical ramdisk_size=10800 root=/dev/rd/0 rw url=example.com/d-i/squeeze/preseed.cfg interface=auto netcfg/dhcp_timeout=60

[Code]...

View 13 Replies View Related

Debian Configuration :: Make Boot Partition Within LVM In Debian Usin Preseed?

Mar 16, 2011

I know that boot partition is possible to create within debian distribution that has grub 2.0, as I have done before with ubuntu. I have been trying many different options with my preseed file but it keeps taking the boot partition out of LVM and creating and extended partition too and then creates the LVM primary partition.

### Partitioning.
# you can specify a disk to partition. The device name can be given in either
# devfs or traditional non-devfs format. For example, to use the first disk

[code]....

View 1 Replies View Related

Debian :: How To Make Boot Partition Within LVM In Debian Using Preseed

Mar 16, 2011

I know that boot partition is possible to create within debian distribution that has grub 2.0, as I have done before with ubuntu. I have been trying many different options with my preseed file but it keeps taking the boot partition out of LVM and creating and extended partition too and then creates the LVM primary partition. My preseed file is below:

code:

View 1 Replies View Related

Debian :: Make Boot Partition Within Debian Using Preseed ?

Mar 16, 2011

I know that boot partition is possible to create within debian distribution that has grub 2.0, as I have done before with ubuntu. I have been trying many different options with my preseed file but it keeps taking the boot partition out of LVM and creating and extended partition too and then creates the LVM primary partition. My preseed file is below:

code:

View 1 Replies View Related

Programming :: Socket Programming While Displaying Received Message In File

May 11, 2011

i have problem in socket programming, while displaying received message in file,i got a problem... i cant able to write it in the file.... this is the code....

Code:
/* tcpserver.c */
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
[Code]....

now my problem is run time error i can able to create file but i cant able to write file....log.txt contain nothing.... as here i have give sample code... dont say not initialising function and all.... i have initialised , please only see func1() - my problem is only not able to write msg which i got received from the client..

View 2 Replies View Related

Programming :: OpenCV Programming - Highgui.h: No Such File Or Directory?

Jul 1, 2010

I installed OpenCV and am trying the example programs. When I try to compile like in the tutorial it is not finding highgui.h.I have 64 bit Mint if that helps at all

View 3 Replies View Related

Programming :: Define All Variables In Tcl Programming In A File For Instance Var.cfg?

Apr 27, 2010

I can define all variables in tcl programming in a file for instance var.cfgand source the same file in my tcl script such assource var.cfgIs this possible in perl too?

View 3 Replies View Related

Programming :: Bash File Comparing - Report How Many Matching Words My Main File ?

Jun 9, 2009

I have been messing with diff and grep for 2 days now without result

I am trying to match a file consisting of words to many separate other wordfiles in a specific directory. one by one.

What i want the script to do is to report how many matching words my main file has with every file in the directory, each in turn

setup:

Each of em are plain text files with 1 word per line

Output should be something like:

SCRIPT REPORT:

View 8 Replies View Related

Programming :: Script To Copy Paste Text From One File To Another (overwriting Part Of The File)?

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

Programming :: Splitting A File Based On The Values Read From An Input File?

Jul 27, 2010

I am splitting a file based on the values read from an input file. The below one is the script.

1)How do I add the header which is present in the original file to the new split files created?(For eg. pharmacyf conatins header as table column names. The new files created (ODS.POS.$pharmacyid.$tablename.$CURRENT_DATE.dat) are without the header).

2) Also the script is creating 0 byte files for the pharmacyids which are not available in the intial file? Can this be avoided?

for pharmacyf in *
do
tablename=`echo $pharmacyf |cut -f4 -d'.' `
while read pharmacyid
do
grep -w $pharmacyid $pharmacyf >> $OUT/ODS.POS.$pharmacyid.$tablename.$CURRENT_DATE.dat
done< inputfile
done

View 2 Replies View Related

Programming :: File Access Alert \ Only Gives The Processes Accessing The File At That Particular Moment?

Jul 11, 2011

I am trying to check what all processes are accessing a particular file (a UDP socket in my case) on a filesystem.I am using 'fuser' for that.But, it seems, it only gives the processes accessing the file at that particular moment.Is there any way to continuously run 'fuser' (or some other command) which will give all processes accessing the file during its run?OR is it possible to generate a filesystem alert when a particular process accesses the file?

View 1 Replies View Related

Programming :: Libmpi_f90.so.0: Cannot Open Shared Object File: No Such File Or Directory

Aug 6, 2010

I am running after compiling a program and I find that I get the following. How best can I avoid this as i cannot run the program. I have tried removing the offending package, although I cannot find it. I have also tried re-installing. I have also tried changing FC and F90 flags to avoid the MPI version.

error while loading shared libraries: libmpi_f90.so.0: cannot open shared object file: No such file or directory

View 1 Replies View Related

Programming :: Parsing Xml File Using Shell Script And Generate Report In A PDF File?

Jul 9, 2009

parsing xml file using shell script and generate report in a PDF file

Xml file input:

<report>
<student name="x" father name="x1" class="first" Address="xyz">
<property name="sports" value="yes"/>
<property name="drawing" value="no"/>

[code]....

View 12 Replies View Related

Programming :: How Some Websites Hide Exact Location Of File On Their File System

Mar 12, 2010

in case you have been wondering how some websites hide the exact location of a file on their filesystem, just thought i'd share it with the commnity at large in case someone else is looking for something like this.i take no responsibility for how it is used.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved