LinuxQuestions.org
Help answer threads with 0 replies.
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 07-17-2005, 01:52 PM   #1
Shwiing
LQ Newbie
 
Registered: Jul 2005
Posts: 14

Rep: Reputation: 0
Some newbish slackware questions...


Ok...So I havent used slackware in a while, only for servers.

I installed v 10.1 with the full install.

Here are my questions:

1) How would I go about having linux auto startx ?
2) How can I change my res to 1440 x 900 ?
3) How can I get my wireless network card to work ?
4) Can I get my wireless card and lan card to auto switch depending on whether lan cable is connected ? Like is there a program because in windows I have this program that auto switches for me like when I dont have an ethernet cord plugged in it switches to wireless and when I do have it plugged in, it switches to lan card.

Thanks
 
Old 07-17-2005, 02:05 PM   #2
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
1)
Edit /etc/inittab. Change this line:
id:3:initdefault:
to:
id:4:initdefault:

2)
As root, run "xorgconfig". You can manually enter a resolution there, but it may or may not work. My laptop's resolution is a standard 4:3 aspect ratio.

3)
What's the WLAN card? For some cards, all you need to do is edit /etc/rc.d/rc.wireless.conf and input the right values. For others, you'll need to write a startup script that sets it up properly.

4)
I'm not aware of such a program. But presumably, the wireless SSID and key will be different at different locations. Why not just not configure it with the appropriate SSID for where you have ethernet connectivity?
 
Old 07-18-2005, 04:51 PM   #3
Shwiing
LQ Newbie
 
Registered: Jul 2005
Posts: 14

Original Poster
Rep: Reputation: 0
The wireless card is...

Atheros AR5001X+ Wireless Network Adapter

Sorry I'm still not sure how to set it up.

Also if you dont mind me asking a random question...Which windows environment do you prefer? I want something simple but maybe not as complex as kde.

Thanks
 
Old 07-18-2005, 05:05 PM   #4
marsques
Member
 
Registered: Jan 2004
Location: Manchester
Distribution: slackware...
Posts: 344

Rep: Reputation: 31
try xfce (www.xfce.org) which is not resource hungry as KDE but not as simplistic at Flux Box...

also with the xfce-goodies available you can add additional functionality to the taskbar as required...
 
Old 07-18-2005, 06:19 PM   #5
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
Atheros cards usually get installed as ath0 if you're using madwifi. Sometimes, they get installed as wlan0 or wi0. None of those will work with Pat's rc.inet1 script that comes with Slack, so I wrote this script and saved it as /sbin/wlan. Then I call it from rc.local. It asks which wlan you want to connect to, and then sets the card as needed.

You'll need to edit it for your network(s). You can also modify it so that it doesn't ask if you have one network. Somebody here can tell you how to do that if you have trouble, and it'll allow you to start up the wlan on boot.

Code:
#!/bin/bash
# New wlan-up script, prompt for which wireless LAN AP we want to use.
# At some point, we will be updating this so that there's a timeout of 10 seconds or so that I
# can put it at system startup. This will have to do for now.

# I am deliberately not putting in a WHILE loop. I want it to skip the setup of the WLAN if I
# don't tell it to specifically use one of the two lans.

# Global variables:
INTERFACE="eth1"
ESSID="no-essid"
KEY="none"
TIMELIMIT=5

# Show the menu:

echo ""
echo "-=-=-=- Choose a Wireless AP for connection -=-=-=-"
echo "a. Home 54mbit - Bedroom end of house"
echo "b. Home 11mbit - Dining room and Sun Room"
echo "c. University Library"
echo ""
echo "-=-=- Type anything else to cancel connection -=-=-"

read -t ${TIMELIMIT} choice

case $choice in a)
  ESSID="ssid1"
  KEY="key1"
esac

case $choice in b)
  ESSID="ssid2"
  KEY="key2"
esac

case $choice in c)
  ESSID="LIBRARY"
esac

if echo "${ESSID}" | grep -q "no-essid"
then
  echo "*** Exiting without configuring LAN. You can reinvoke it with /sbin/wlan ***"
else
  echo ""
  echo "Enabling ${INTERFACE}"
  ifconfig ${INTERFACE} up
  echo "  Setting ESSID"
  iwconfig ${INTERFACE} essid ${ESSID}
  sleep 2

  if echo "${KEY}" | grep -q "none"
  then
    echo "  Configuring for access without encryption"
  else
    echo "  Setting Network Key"
    iwconfig ${INTERFACE} key ${KEY}
    sleep 2
  fi

  echo "  Obtaining DHCP"
  killall dhcpcd
  sleep 1
  dhcpcd ${INTERFACE}
fi
As for automatically switching between nets, the script can do that. Just run wlan (as root) and choose a different wireless net. If you want to be 100% sure that the wireless is disabled and the wired is up, run /etc/rc.d/rc.inet1 to bring up the wired, and then "ifconfig (interface) down" to bring down the wireless.

HTH.
 
Old 07-18-2005, 08:00 PM   #6
Shwiing
LQ Newbie
 
Registered: Jul 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Could I incorporate that into the code? Where it runs /etc/rc.d/rc.init1 to bring it up then ifconfig down to bring it down?

If you could give me a quick example of the syntax for that then ill mess around with it, thanks a bunch!

I also forgot to install madwifi so I'll get on that now.
 
Old 07-18-2005, 08:03 PM   #7
Shwiing
LQ Newbie
 
Registered: Jul 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Sorry for such a newbish question, but do you know of a site where I could learn the syntax?
 
Old 07-18-2005, 09:45 PM   #8
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Nice script, killerbob!
 
Old 07-18-2005, 10:00 PM   #9
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Quote:
Originally posted by Shwiing
Sorry for such a newbish question, but do you know of a site where I could learn the syntax?
Here's one of the best Bash guides out there: http://www.tldp.org/LDP/abs/abs-guide.pdf
or (html version): http://www.tldp.org/LDP/abs/html/
 
  


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
Very Newbish Question d3c1us MEPIS 5 07-05-2005 01:47 AM
Horribly newbish KDE questions gratefullydead Linux - Newbie 4 06-06-2005 09:14 AM
A few newbish questions... Fewyn Morisato Linux - Newbie 9 10-27-2003 10:58 AM
Newbish Question Oricon Linux - Newbie 5 03-09-2003 01:42 PM
A few newbish Linux questions gauge73 Linux - Networking 3 02-14-2003 05:14 PM


All times are GMT -5. The time now is 05:45 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration