LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-29-2003, 09:02 PM   #1
Vipes
LQ Newbie
 
Registered: May 2003
Location: Okinawa, Japan
Distribution: Arch Linux
Posts: 29

Rep: Reputation: 15
Terminal


Ok, so far so good. I've got my dual boot running, Enlightenment installed with a theme, and I even have that gkrellm program running with the sensors and what not. I've been forcing myself to use terminal now and I'm getting pretty used to it. Even shortcuts like TAB. Anyway, I've looked around and I haven't found a few answers to some questions I have so here goes.

Since I'm using terminal, I'm using it to load programs too. However, the terminal window seems to be taken over by that program. I cannot get a new command prompt and closing the terminal window kills the program. So I end up having 3 windows or so running my stuff. Anyway around that?

Next, the name the terminal uses. It says my hostname is a long string of numbers and dashes but I've checked under the network pref for gnome and it lists me as localhost.localdomain or something close. What gives?
 
Old 05-29-2003, 10:00 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
For the first issue you can simply add an & after any command to make it run in the background. For instance, if you want to run kate you would do:

kate&

When you say the name the terminal uses do you mean the title of the terminal or the prompt itself?
 
Old 05-29-2003, 10:01 PM   #3
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
I like to use the KDE Konsole. It allows running multiple terminals from the same window. So does the multi-Gnome terminal, but I prefer Konsole.
By using "&" you can background programs (am I using the right term?), you will also need to know how to stop them. Check some docs.
There is also the "screen" program.
Good Luck.
 
Old 05-29-2003, 10:03 PM   #4
Vipes
LQ Newbie
 
Registered: May 2003
Location: Okinawa, Japan
Distribution: Arch Linux
Posts: 29

Original Poster
Rep: Reputation: 15
The prompt itself. For instance, it might say...

vipes@e0-20-d2-00-05-42...etc.

On the GUI logon it has welcome to e0-20...as well.
 
Old 05-29-2003, 10:15 PM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
hmmmm...I wonder if that is your MAC address. Not sure but I think that value is your hostname.

Check out the file /etc/hosts . Does it have that string of letters and numbers?
 
Old 05-29-2003, 11:24 PM   #6
Vipes
LQ Newbie
 
Registered: May 2003
Location: Okinawa, Japan
Distribution: Arch Linux
Posts: 29

Original Poster
Rep: Reputation: 15
No, it says...

order hosts,bind
 
Old 05-29-2003, 11:39 PM   #7
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Well this is what mine looks like:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost

Yours just has:

order hosts,bind

??????????????
 
Old 05-30-2003, 07:09 AM   #8
Vipes
LQ Newbie
 
Registered: May 2003
Location: Okinawa, Japan
Distribution: Arch Linux
Posts: 29

Original Poster
Rep: Reputation: 15
Oops, sorry. That was hosts.conf. My actual hosts file reads the same as you.
 
Old 05-30-2003, 11:57 AM   #9
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Well I'm not sure where it is getting those letters and numbers from but you can customize the prompt by changing the value of the PS1 variable. For instance:

Try typing the following:

PS1="What is thy bidding: "

It will change your prompt until you close the terminal. If you want a permanent change then you can add that line to your .bashrc file or if you want it for everybody then you can add that to /etc/bashrc .

PS1 also supports a number of switches as well. You can find a list of them here.
 
Old 05-30-2003, 01:10 PM   #10
0x4B
Member
 
Registered: May 2003
Location: Nashville TN, USA
Distribution: Debian (I'm unstable)
Posts: 117

Rep: Reputation: 15
/etc/hosts is typically for looking up the IP address of a system based on hostname (used before DNS and still useful for mnemonic names)
the file containing your host name is typicall /etc/hostname
the hostname command will also report you're hostname
 
Old 05-30-2003, 01:16 PM   #11
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
lol....whoops Thats what I meant. Yeah I'm loosing my marbles.
 
Old 05-30-2003, 08:05 PM   #12
Vipes
LQ Newbie
 
Registered: May 2003
Location: Okinawa, Japan
Distribution: Arch Linux
Posts: 29

Original Poster
Rep: Reputation: 15
Ahhh that's why I have that long string. There is no hostname file. I'm going to make one. What type of file must it be, conf? And, what has to be placed in it?
 
Old 05-30-2003, 09:21 PM   #13
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
An easier way is to run the:

neat

command and configure your host from there.
 
Old 05-30-2003, 09:53 PM   #14
Vipes
LQ Newbie
 
Registered: May 2003
Location: Okinawa, Japan
Distribution: Arch Linux
Posts: 29

Original Poster
Rep: Reputation: 15
That command shows localhost blah blah as my hostname. I'm pretty sure it isn't using that because I do not have the hostname file.
 
Old 05-30-2003, 10:27 PM   #15
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Okay then. Try out the:

hostname

command.
 
  


Reply



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
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
Redirect terminal output to file AND terminal shan Linux - General 3 09-29-2006 08:36 AM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM
Alternative terminal to konsole & gnome-terminal Adony Linux - Software 3 10-08-2004 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:22 AM.

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