LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-01-2006, 12:57 AM   #1
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
no hostname at prompt


I just installed Slackware 10.2.
the CLI prompt is root@[none], even though "hostname" returns the machine name (Ath)
coincidentally, networking is not working.
 
Old 06-01-2006, 01:26 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Rep: Reputation: 282Reputation: 282Reputation: 282
What hardware (wireless network card or 'normal')?
Is network card detected? (dmesg |grep eth)
Is network card configured?
 
Old 06-01-2006, 02:55 AM   #3
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
You should get darkstar for a default name. Did you run netconfig and leave your hostnames blank? If dmesg | grep eth detected your network card run netconfig to configure it.
 
Old 06-01-2006, 03:39 AM   #4
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Quote:
You should get darkstar for a default name.
LOL!

I used to have darkstar as my host name and I was killing myself trying to figure out how Slackware remembered it after a clean install. I'm glad to know that everything I though I knew about Linux didn't go flying out the window.

As far as your host problems go, make sure you have the correct network card enabled in your kernel then run 'netconfig' as suggested. You might also want to make sure there is an entry in your /etc/hosts file that defines the host name.

regards,
...drkstr
 
Old 06-01-2006, 08:47 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Bingo!!--The network card was not detected. Curious that this would not be evident when running netconfig.
Now to go learn how to configure a kernel....OR: Is it possible that one of the kernels on the CD set will work? (I have 10.2--4 CD set)
 
Old 06-01-2006, 09:05 AM   #6
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Rep: Reputation: 282Reputation: 282Reputation: 282
How do you mean Your system is working and that's a kernel from the CD.

So I'm more than likely missing your point.
 
Old 06-01-2006, 09:05 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,957
Blog Entries: 46

Rep: Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187Reputation: 3187
Quote:
Originally Posted by pixellany
I just installed Slackware 10.2.
the CLI prompt is root@[none], even though "hostname" returns the machine name (Ath)
coincidentally, networking is not working.
Hi,

What is the output of;

Code:
#cat /etc/HOSTNAME
#dmesg |grep eth
 
Old 06-01-2006, 09:18 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Wim Sturkenboom
How do you mean Your system is working and that's a kernel from the CD.

So I'm more than likely missing your point.
The CD has several stock kernels to choose from. Is it possible that one of these will find my ethernet card---rather than the suggested fix of configuring/compiling a kernel?

So far, other distros have not had this issue---Ubuntu, Arch, Mepis, FC4, etc.
 
Old 06-01-2006, 10:15 AM   #9
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
drkstr,
Code:
# Set the hostname.
if [ -r /etc/HOSTNAME ]; then
  /bin/hostname $(cat /etc/HOSTNAME | cut -f1 -d .)
else
  # fall back on this old default:
  echo "darkstar.example.net" > /etc/HOSTNAME
  /bin/hostname darkstar
fi
In your /etc/rc.M file...
 
Old 06-01-2006, 07:45 PM   #10
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
As you can imagine, I was quite perplexed when it popped up on my terminal after formatting my hard drive and doing a clean install.

Funny that the host name I used is also the default one in Slackware ...I guess I was meant to be a slackware user.

regards,
...drkstr
 
Old 06-02-2006, 02:48 AM   #11
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by pixellany
The CD has several stock kernels to choose from. Is it possible that one of these will find my ethernet card---rather than the suggested fix of configuring/compiling a kernel?

So far, other distros have not had this issue---Ubuntu, Arch, Mepis, FC4, etc.
Not sure. Although I haven't used 10.2 yet, most kernels are the same; to my knowledge difference is in support for i.e. scsi etc. I might be wrong, but I doubt if another kernel will help (unless you switch to another version (2.6 instead of 2.4 or vv)).

We still don't know which network card you're using. Did I miss it?
Check the internet for possible drivers. I had to do that once for an new Intel card on RH6.2.

Last edited by Wim Sturkenboom; 06-02-2006 at 02:49 AM.
 
Old 06-02-2006, 10:05 AM   #12
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
I think it would be easier to just add the support to your existing kernel by adding it as a modules You could then just build the new module with
Code:
make modules && make modules_install
Probably a lot easier then trying to find a whole new kernel that already is configured to use your card.

Quote:
So far, other distros have not had this issue---Ubuntu, Arch, Mepis, FC4, etc.
They probably have all hardware support built as modules so they will load when needed. Slackware tends to be a little leaner then other distros with the expectation that you will configure your system to suit your needs.

regards,
...drkstr
 
Old 06-02-2006, 12:16 PM   #13
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by drkstr
I think it would be easier to just add the support to your existing kernel by adding it as a modules You could then just build the new module with
Code:
make modules && make modules_install
Probably a lot easier then trying to find a whole new kernel that already is configured to use your card.

They probably have all hardware support built as modules so they will load when needed. Slackware tends to be a little leaner then other distros with the expectation that you will configure your system to suit your needs.

regards,
...drkstr
That is dead on, on both statements. Adding a module is plain easy that way, and it is true that Slackware just gives a plain, lean kernel (Not real lean...It supports alot of hardware I never need. That is the main reason why on a fresh install, the first thing I do is recompile the kernel.)

Other distros give you the "We'll take care of everthing" way of life,
and Slackware gives you the" You take care of it, but we'll provide the tools".

IMHO, the Slackware way is more satisfiying.
 
  


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
Hostname was changed on the command prompt pretty.tulip Linux - Newbie 1 04-03-2006 12:21 AM
How to change prompt hostname "localhost"? Arodef Fedora 3 08-02-2004 07:45 AM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 06:01 PM
Prompt Atroxic Linux - Newbie 5 01-09-2002 05:43 AM
Prompt name toxic53 Linux - General 1 09-26-2001 12:49 PM

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

All times are GMT -5. The time now is 07:07 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