LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-17-2011, 06:42 AM   #1
abc_19
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
Cool Looking for a bash script which will prompt to enter host & username at initial boot.


I am working on different versions of Ubuntu & I looking for a script that will prompt the user to enter the host name & user name that he wanted for that system at initial boot up.

Thanks,
abc_19
 
Old 02-17-2011, 07:28 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Could you be a bit more specific about your wishes?

- You say you use different Ubuntu versions: Are they on the same machine and accessible by grub/lilo or are they on different physical machines or are they VM clients?

- When does this script you are asking for become active? Once you start a machine you will be presented by lilo/grub and after you made your choice a login screen screen appears (user name can be given here) for the specific distro you choose.

- Are you talking about remote access by ssh or another tool?

We need more details to give you an answer.

Last edited by druuna; 02-17-2011 at 08:16 AM. Reason: Spelling
 
Old 02-17-2011, 10:52 AM   #3
abc_19
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your reply Druuna,

Here is my senario,
I'm installing different version of Ubuntu (Jaunty, Karmic, Lucid, Maveric etc) on different physical machine using clone zilla. But by default the same user name & host name is assigned to all the machine which are installed using that image of clone zilla. So after the image is installed I want to run a script at the start which will popup asking to enter the username & host name & then reboot the system so that all the changes can be saved. This will give the user the host name & user name that he wanted.

Thanks,
abc_19
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enter the boot prompt for Red Hat 5.3 kick start. jackeylhm Linux - Newbie 5 04-10-2010 12:21 PM
how to configure linux to boot automatic without enter username&password? hocheetiong Linux - Newbie 2 11-19-2007 04:46 AM
BASH: cannot enter special-named dir from script Roger Krowiak Programming 3 08-24-2006 06:19 AM
bash script that uses username/password paul_mat Linux - Software 2 10-25-2005 10:44 PM
Testing for enter in bash script bwysocki Programming 8 06-16-2005 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration