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.

View 1 Replies


ADVERTISEMENT

CentOS 5 :: Scheduled Task That Executes A Shell Script?

Dec 17, 2009

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.

View 1 Replies View Related

Ubuntu :: Make A Startup Script That Executes A Simple Php Script At Boot?

Mar 24, 2011

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.

View 1 Replies View Related

General :: Shell Script That Logs Into Another Machine And Executes Some Commands?

Jan 5, 2011

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?

View 1 Replies View Related

CentOS 5 :: Create A CentOS Based LiveCD That Mounts A NFS Share And Executes One Script?

Aug 14, 2009

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

[Code]...

View 10 Replies View Related

Ubuntu :: Creating A Simple Gtk Program Through Terminal?

Jun 10, 2011

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]

View 1 Replies View Related

Software :: Creating A Simple Postscript File?

Apr 4, 2011

I would like to do something that should be fairly simple but can not find a way for it.

I want to make a page in postscript or pdf format containing four lines of text and two png images.

Would you know an easy way to concatenate my text file with the two images in a ps or pdf file?

I need a solution that works via command line only as this is for a script.

I use redhat 5 for this and would prefer not having to install any extra software.

View 12 Replies View Related

Programming :: Creating Simple Webcam Effects?

Apr 13, 2010

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?

View 2 Replies View Related

Ubuntu Networking :: Creating A Simple Workgroup Network

May 11, 2010

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.

View 3 Replies View Related

Ubuntu :: Creating Simple Program To Automatically Run Command

May 12, 2011

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?

View 8 Replies View Related

Programming :: PHP - Creating Basic Simple SSH Command To Machine Over SSL?

Jan 18, 2011

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?

View 1 Replies View Related

CentOS 5 :: "Error Creating Live CD : Mksquashfs Exited With Error (1)"?

Jul 16, 2009

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 ...)

View 2 Replies View Related

Ubuntu :: Write A Simple Shell Script And Environment Variables?

Feb 8, 2010

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"

[Code]...

View 6 Replies View Related

General :: Shell Scripting - Compare Strings From Two Different Simple .txt Files?

Jul 29, 2010

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.

View 1 Replies View Related

Software :: Execute A Shell Script From A Simple Html Web Page?

Mar 11, 2010

I wish to execute a shell script once a button on my html page is clicked.

View 7 Replies View Related

Programming :: Simple Shell Script That Produce Digit Values

Aug 9, 2010

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

View 12 Replies View Related

General :: Logged In My System As Root - Run A Simple Shell Script - Permission Denied ?

Jan 27, 2011

I logged in my system as root. but when i run a simple shell script i got an error like . Permission Denied. why m getting this error.

View 3 Replies View Related

Fedora :: Creating DSL Live-USB In 14

Feb 27, 2011

I'm wanting to make a DSL live boot to run on an ancient laptop. I can't find a live USB creator that will do this for me in Fedora.

View 2 Replies View Related

Debian :: Creating A Bash-shell Script

Dec 1, 2015

how to do in Debian

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

View 6 Replies View Related

General :: Creating A Shell Using C Which Could Implement LS Command

Sep 4, 2010

I would like to create the shell which would support the LS command in C++. And the way the command prompt can be changed.

View 7 Replies View Related

General :: Creating Tar : Shell Vs Ui, Size Differs?

Oct 14, 2010

In a shell script, I am creating a .tar using this command

Code:
tar -zcvf dst/lib/library.tar.gz dst/lib
There are two problems:

[code]...

View 1 Replies View Related

Software :: Shell Script For Creating Report?

Aug 31, 2010

`cat /var/log/secure | grep "refused connect" |awk '{print $9}'|sed 's/::ffff://g'|uniq -c | sort -nr |head -2 | awk '{print $2}' >/root/sample`
for IP in `cat /root/sample`;

[code]...

View 1 Replies View Related

Programming :: Creating Array In Shell Script

Feb 7, 2011

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

View 11 Replies View Related

Ubuntu :: Creating Custom Live Cd?

Mar 6, 2010

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.

View 2 Replies View Related

Ubuntu Multimedia :: Creating Parnoramic Pictures Using The Shell With No Gui?

Mar 23, 2010

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 ?

View 3 Replies View Related

General :: Source Code Or The Procedure For Creating Own Shell?

Nov 3, 2010

i need the source code to create my own shell in linux or provide atleast procedure for doing it

View 9 Replies View Related

Server :: Creating Samba User Using Shell Script?

Apr 8, 2011

how to create Samba user using shell script

View 6 Replies View Related

Programming :: Creating Script For Mysql Connection From Shell?

Jul 8, 2011

I'm creating script to connect to mysql and perform function. I'm into process in querying mysql from shell. Here is the content of a sample script:

Code:
#!/bin/bash
USER=scripter
PASS=test123
DB=test_scripts

View 2 Replies View Related

Debian :: Creating Live .iso Image (without Remastersys)

Jul 12, 2011

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.

View 14 Replies View Related

Debian Configuration :: Creating A Custom Live CD

Feb 24, 2016

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.

View 7 Replies View Related







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