CentOS 5 :: Creating A Simple Live CD That Executes A Shell Script?
Mar 9, 2010
I would like to a build a CD image (of CentOS 5, x86_64 that loads into memory and boots to the OS without installing anything to hard drives. Then I would like the system to execute a shell script automatically. The shell script will have commands that will control execution.
The goal of this exercise is basically to pre-configure a system (RAID config, BIOS update, etc) automatically using the shell script before installing the OS. I would like the ability to change the shell script as needed and probably repackage the ISO image. I would prefer not to deal with building a source tree to accomplish this. this is something one could do using mkisofs.
I centos version 5 installed on server 2, and I want to make a scheduled task that executes a shell script.This script should copy some files and directories from one server to another. I do not use DRBD and Heartbeat.
trying to make a startup script that executes a simple php script at boot. The stipulation is that it must be run after fstab is processed because it requires access to a volume that fstab mounts. As it is, it doesn't seem to be running properly at startup, and I suspect that it is simply running before the volume is mounted. The script does not need root access. If I run it once I login, it works fine.
Also, is there a way to determine the output of a startup script?I am have configured a bash script called module.sh that cd's to the scripts directory (in the external volume) and then executes the script. I didn't forget the ampersand after the php invocation. I used update-rc.d module.sh defaults to configure it.
I am trying to write a script that connects to a server and executes some commands on there. Something like this:
#!/bin/sh telnet remote_machine cd /home/some_directory cat a_file_in_current_directory
Unfortunately after login/password I guess the script doesn't jump past the telnet command, until I exit. What do I need to do to make the script start executing commands in the remote shell?
I'm trying to create a CentOS based liveCD that mounts a NFS share and executes one script there. The NFS never mounts altough while logged I can mount it with the very same command that I use in the KS.
In the %post I have :
%post --log=/tmp/post.log --erroronfail mkdir /mnt/nfs mount -o nolock 10.23.1.1:/csc/RemoteHome /mnt/nfs
I added the --log in order to debug, but nothing is written in /tmp/post.log. I tried redirection on the mount command with >> /tmp/debug.log but this is not written. Maybe during the post sequence /tmp is RO ? Anyway, I tried with ifup lo, service portmap start in the %post, but doesnt change (I even have a service : command not found in the live cd creator output).
Here is the remainder of the KS : lang en_US.UTF-8 keyboard us timezone US/Eastern
I am wanting to try creating a simple program through Terminal. Anything will do. A window or button, etc. I haven't found anything simple enough online yet, but I'm sure they're out there. I just want to expand my knowledge of gtk type stuff. Sorry if this is not the correct category to ask this. I was going to put this on the Community Cafe forum, but chose General Help instead. I am running Ubuntu Lucid. **Edit note: I did try the procedure described at the url (below), but I got all kinds of errors in terminal. [URL]
I want to create simple webcam effects filters. I am only interested in doing relatively simple image processing like blurring or averaging the color. I would like to create the filters in either C or Python.
So before I dive into using Gstreamer or V4L I wanted to ask the forum if they have had any experience with webcam development?
I am using an Ubuntu 64 bit desktop. I need to create a network (the way you create a workgroup in windoz). I have two other machines running Ubuntu also and all connected to a 3-Com switch through ethernet. I would prefer not to use DHCP, and just have a simple network where I can share resources like drives and printers.
I need a program that automaticly runs this command in the terminal when I use it: sudo modprobe nvidia_g210m_acpi Sure, I know that it's not that hard to just write it in terminal and so on, but I really want a program for it. I'm using ubuntu 11.04 if U need to know that?
I was thinking to install a very basic SSH gate, secured over SSL, like this [URL] using PHP. However I would like to have it very basic and simple to install. (not database SQL, nor complicated things, ...) so that I get a prompt page with login and password to access the SSH-internet, and then can SSH the linux box over SSL and regular port 80 like they do. passwd would be in a txt file or whatever. You use index.htm and no one can scroll the tree of the directory. Would have someone already embedded php code for that?
ivecd-tools mksquaush error on centos5.2I want to make a custom livecd. But I can't."Error creating Live CD : mksquashfs exited with error (1)"What shuld I do?hat log shuld I check?I did like this...centos5.2/i386Access livecd project site.Install livecd repo's syslinux and livecd-tools.download centos-livecd-minimal.ks project site.I have centos5.3 machine on vmware server install above 5.2 physical machine.But the 5.3 machine said same messages(mksquashfs exited ...)
I'm trying to write a simple shell script, its purpose is not important. The script needs to make use of the system $HOSTNAME environment variable. I had a look at this page which provides the following example.
Code: #!/bin/sh echo "You are user $UID on $HOSTNAME" echo "Your home directory is: $HOME" echo "$HOSTNAME is running $OSTYPE"
what command is to be used to call strings from other files to the script and then comparing strings from two different files in the script to check if strings are matched then return the result to another script.
I just started learning shell programming and I'm trying to create a shell script that produce something like this: Input: 1 234 5 678 9 Output: < <<< 5 >>> > Input:abc d 1234 5 5 67890 e f ghij Output:abc d <<<< 5 5 >>>< e f ghij Characters with values less than 5 will display '<' digit values greater than 5 display '>'. The digit '5' will be left unchanged.
Below is my unfinished code: #!/bin/sh read userInput for f in "$userInput" do f1="$(echo ${f} | sed "s/[^0-9]//g")" if test $f1 -lt 4 then f3='<' elif test $f1 -gt 6 then f3='>' fi f2="$(echo ${f} | tr "$f1" "$f3")" echo $f2 done
1. am required to create a bash-shell script called terminator that terminates all processes of a name given to the shell script as an argument. Make sure the terminator shell script will not take any crucial file system services as arguments.
2. Show how you would configure an Ethernet card by reapplying your existing IP and network mask
3. Install a workable nfs file sharing system between your system and a remote system, using optimum values for resize and wsize.To demonstrate send a 512Mb block of random data between client and server using the dd command.Write down the relevant steps and procedures
1. How do I create an array with 5 entries 2. Output one of the entries in the array randomly 3. Subtract the entry output from the array 4. Repeat steps 2 and 3 until there are no more entries in the array
I am in the tasks section of the following tutorial [URL] I did the list package thing to see what packages there are. However now I cannot leave the list in order to run the purge command. How can I get back to the previous section so I can remove packages from the custom live cd. I want to make sure I am editing the live cd and not the current install. I am going to make two images. One cd that will still have a gui but I plan to build as a recovery tool. The other one is a dvd and will be for installing everything I want on any machine. I am doing the tutorial with Karmic. Also I have cursors, themes and icons I installed from gnome look. I then went to customize and created my own personal mix I like. I would like to make this a standalone theme and come as the default theme on the live cd and dvd. I have no clue what I am doing, however wish to learn to build my own custom live cd. Also I would like to know how to ad repositories to the live cd and how to add programs pre installed that are not usually included.
I know that it's possible to create panoramic photos very easily with hugin. But I would like to create a script for nautilus where I select my picture and then create a panoramic without any questions.I guess it's possible but I can't find on google, each time I find something about hugin.Is it possible to call from the command line and hide the interface during the process ?
i feel like this is a stupid question as i have seen many different ways to make a debian live cd, but the only way i understand is remastersys.i am trying to make a snapshot of my own debian unstable (sid) to be capable of re-distribution. remastersys will ONLY work on ubuntu, lenny, and squeeze.if anyone knows of any relatively simple tools i could use or could write an easy how too that would be very much appreciated. i am attempting to stray away from ubuntu and ubuntu based distros and use debian instead, although i cant find any distribution based on debian that i really like (maybe linux mint debian edition based on debian testing), but i really want the software right out of unstable (sid) and i would like to be able to make a distribute-able snapshot for myself and others that may be interested. (xfce + compiz + others, hopefully plymouth, out of the box). i have made some very good headway on this, but i dont know how to make a live cd out of an installed system without remastersys.
I'd like to create my own custom Debian live CD — the idea being to have my own rescue CD with my favorite Debian tools installed. I read about bootcd and was going to give that a try, after creating the ideal system in a qemu virtual machine.
How much exactly can you install on a system so that bootcd can still fit it on a CD? I'm presuming there is some kind of compression involved. When I tried to create my VM, I coudln't get Jessie + LXDE to install onto a 2GB virtual drive (net install) so naturally I'm wondering what I'm going to be able to put on a 700MB CD.