LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware for the first time. Several issues. Would you help me? Newbie here. (https://www.linuxquestions.org/questions/slackware-14/slackware-for-the-first-time-several-issues-would-you-help-me-newbie-here-213867/)

eyeliner 08-05-2004 01:39 PM

Slackware for the first time. Several issues. Would you help me? Newbie here.
 
:newbie:

Just installed Slackware 10 today, after using Mandrake for some time now.

Here are my questions:

1)

My sound card (Cirrus Logic Crystal CS4281) after entering X comes up with
an error (Arts being used):

| Sound server informational message:
| Error while initializing the sound driver:
|
| device /dev/dsp can't be opened (No such device)
|
| The sound server will continue, using the null output device

Well, no sound here.

2)

No network! I've been banging my head over and over and i can't find the
solution!

I have a PCMCIA D-Link DFE-670TXD fast ethernet card wich is recognised
at boot, it beeps twice, loud beeps, so it's fine right?
The problem is: What now?

I have a computer with WinXP hooked up to a cable modem and i want to
use it as a gateway. In Windows environment it goes fine, so in Slackware it should as well. However, i have no idea what to do.

3)

Is it possible to shut down the computer in X? I only have the logout
option, having to go to a terminal to shutdown the computer.
And why doesn't he power down by himself? Mandrake did...

Sorry if it is too lame to pose these questions. Any help would be apreciated.

Thanks.

Quickdraw 08-05-2004 02:02 PM

hi eyeliner,
when you first started X did you configure alsa for the sound ??
if not try running alsaconfig from the terminal and then restart X, as for the network not working....what is the output from the lsmod command, maybe the module is't loaded, or are you getting an ip address ?

320mb 08-05-2004 02:06 PM

sound
http://www.linuxquestions.org/questi...+Crystal+CS481

http://www.linuxquestions.org/questi...+Crystal+CS481

network.......

http://www.linuxquestions.org/questi...der=descending

gbonvehi 08-05-2004 02:15 PM

About network, try running the command ifconfig to show if your card is being detected, if it shows eth0 then run: netconfig and setup your machine ip or dhcp and your gateway.

YBA^[x] 08-05-2004 03:44 PM

Hey.

For the power off problem.

Uncomment this line (remove the "#"):

#/sbin/modprobe apm

in the #### APM support ### section of /etc/rc.d/rc.modules. This worked for me. I don't know about the log out/shutdown part.

Regards.

superbondbond 08-05-2004 04:22 PM

for the network card, since you're using a PCMCIA card, I would recommend letting those scripts handle it rather than the standard networking scripts (/etc/rc.d/rc.inet1). The one you should look at is /etc/pcmcia/network.opts and it looks something like this:
Code:

# Network adapter configuration
#
# The address format is "scheme,socket,instance,hwaddr".
#
# Note: the "network address" here is NOT the same as the IP address.
# See the Networking HOWTO.  In short, the network address is the IP
# address masked by the netmask.
#
case "$ADDRESS" in
*,*,*,*)
    INFO="Sample private network setup"
    # Transceiver selection, for some cards -- see 'man ifport'
    IF_PORT=""
    # Use BOOTP (via /sbin/bootpc, or /sbin/pump)? [y/n]
    BOOTP="n"
    # Use DHCP (via /sbin/dhcpcd, /sbin/dhclient, or /sbin/pump)? [y/n]
    DHCP="n"
    # If you need to explicitly specify a hostname for DHCP requests
    DHCP_HOSTNAME=""
    # Host's IP address, netmask, network address, broadcast address
    IPADDR=""
    NETMASK="255.255.255.0"
    NETWORK="10.0.1.0"
    BROADCAST="10.0.1.255"
    # Gateway address for static routing
    GATEWAY="10.0.1.1"
    # Things to add to /etc/resolv.conf for this interface
    DOMAIN=""
    SEARCH=""
    DNS_1=""
    DNS_2=""
    DNS_3=""
    # NFS mounts, should be listed in /etc/fstab
    MOUNTS=""
    # If you need to override the interface's MTU...
    MTU=""
    # For IPX interfaces, the frame type and network number
    IPX_FRAME=""
    IPX_NETNUM=""
    # Extra stuff to do after setting up the interface
    start_fn () { return; }
    # Extra stuff to do before shutting down the interface
    stop_fn () { return; }
    # Card eject policy options
    NO_CHECK=n
    NO_FUSER=n
    ;;
esac

Just fill in all your appropriate settings and it should initiate everything every time you insert the card. If you connect to multiple networks you separate the different configurations by setting a different scheme for each network like this:
Code:

# Network adapter configuration
#
# The address format is "scheme,socket,instance,hwaddr".
#
# Note: the "network address" here is NOT the same as the IP address.
# See the Networking HOWTO.  In short, the network address is the IP
# address masked by the netmask.
#
case "$ADDRESS" in
scheme1,*,*,*)
    settings for scheme 1
    ;;
scheme2,*,*,*)
    settings for scheme 2
    ;;
esac

Then you would simply change schemes using the command cardctl scheme scheme name

hope that helps ;)

eyeliner 08-06-2004 06:51 AM

:newbie:

THANKS!

Sound is up. And it shuts down now. Network, however...
I can surf the web, but how can i see the shared file in each computer?

This one is my last remaining question.

Thank you all. I apreciate i.

isis 08-06-2004 07:28 AM

If you want to browse a Windows - Network with samba and kde, just open Konqueror in KDE and type

smb:/

You`ll then hopefully see all workgroups in your network and will be able to browse them.
I usually have a link to konqueror with that option on my desktop ( Link to program, command : konqueror smb:/ ).

Anyway, do you use kde?
If so you have to use kdm as loginmanager to shut the pc down from kde menu.

Just comment the section about gdm out in /etc/rc.d/rc.4:

#! /bin/sh
#
# rc.4 This file is executed by init(8) when the system is being
# initialized for run level 4 (XDM)
#
# Version: @(#)/etc/rc.d/rc.4 2.00 02/17/93
#
# Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
# At least 47% rewritten by: Patrick J. Volkerding <volkerdi@slackware.com>
#

# Tell the viewers what's going to happen...
echo "Starting up X11 session manager..."

# Try to use GNOME's gdm session manager:
#if [ -x /usr/bin/gdm ]; then
#exec /usr/bin/gdm -nodaemon
#fi

# Not there? OK, try to use KDE's kdm session manager:
if [ -x /opt/kde/bin/kdm ]; then
exec /opt/kde/bin/kdm -nodaemon
fi

# If all you have is XDM, I guess it will have to do:
if [ -x /usr/X11R6/bin/xdm ]; then
exec /usr/X11R6/bin/xdm -nodaemon
fi

# error
echo
echo "Hey, you don't have KDM, GDM, or XDM. Can't use runlevel 4 without"
echo "one of those installed."
sleep 30

# All done.

would look like that ;).

Hop it helps and good luck.

eyeliner 08-06-2004 10:28 AM

Thank you!

By using smb:/ i see my workgroup, after selecting it an internal error error rises its ugly head...

libsmbclient reported an error... blah blah...

There is light at the end of the tunnel, is it?

isis 08-06-2004 02:41 PM

Is there anything in your logfiles
/var/log/samba and /var/log/messages ?

eyeliner 08-06-2004 08:20 PM

Everything is now fine!
I used this smb.conf:

[global]
workgroup = Casa
security = share
public = yes
username map = /etc/samba/users.map
writeable = yes

[homes]
browseable = no
writeable = yes

[home]
path = /share
public = yes
only guest = yes
writable = yes

Bad thing is that now appear a few network folder named:
tmp, share, homes in WinXP.

How to remove them?

Probably needs some furtherwriting but i guess that goes out of my league.
Thank for your help people. I apreciate it.

If you have coments, please, comment.

isis 08-09-2004 06:10 PM

Easiest way to config your samba is probably using swat ( An easy to use webadmin for samba ):


/etc/inetd.conf

# swat is the Samba Web Administration Tool
swat stream tcp nowait.400 root /usr/sbin/swat swat <-- just uncomment this line and reboot or restart your inetd service

Then use your browser to connect to http://localhost:901
Login with your root - account and configure samba just the way you like.

WMD 08-09-2004 07:59 PM

Webmin also has Samba config, along with many other things.

eyeliner 08-10-2004 07:04 AM

The funny thing is when i connect both my usb modem and network card.
Net access is fine. as Slack gives eth1 for modem and i've put dhcp="yes"
in the eth1 portion of rc.inet1.config.

But when i only connect the modem... eth0 is the modem and net access is
gone, by the obvious reason.

Any workaround?


All times are GMT -5. The time now is 07:21 AM.