LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-04-2009, 04:50 PM   #1
Josh000
Member
 
Registered: Aug 2009
Distribution: Slackware 13 64bit
Posts: 534

Rep: Reputation: 35
Two minor problems...wifi and keyboard


Hi guys,

The first problem I have has nothing to do with Slackware specifically(AFAIK). I would just like to know how to join wifi networks from the commandline. From what I have been reading, I would need to set the ESSID, channel, mode, key etc, all as separate iwconfig commands. Which is absurdly cumbersome.

Is there no simple way, using the given tools, to list and switch between networks? Or, is WICD the only way to do this?

The second problem, is that I have a UK keybaord. Pretty much the same as the US, just with an alt gr key and a few extra symbols. In the console, this works fine, as I chose a UK keymap during setup.

In X, not so. It still thinks it is a US keyboard. From what I have read, the way to fix this requires slight HAL configuration. Is this correct? In previous versions of slack(I last used v8), the keymap I chose at setup was honored in X.

Why is that no longer the case, and why must a cumbersome step be taken post install? (if that is the case).
 
Old 11-04-2009, 05:15 PM   #2
marrowsuck
Member
 
Registered: Sep 2006
Posts: 202

Rep: Reputation: 89
@second problem:
Quote:
Speaking of Xorg, the version of Xorg shipped with Slackware 13.0 will not
(in most cases) require an /etc/X11/xorg.conf file at all. Configuration of
input devices and such is handled by HAL, and the X server autoconfigures
everything else. You can still create an xorg.conf file if you wish, or you
can create a minimal xorg.conf with only the specific contents that you wish
to override (as an example, to use a binary-only video driver).
Due to removed drivers and other such changes, it's quite possible that your
old xorg.conf will not work correctly with this version of Xorg.

If you need to use a non-US keyboard layout, then copy the file located at
/usr/share/hal/fdi/policy/10osvendor/10-keymap.fdi to /etc/hal/fdi/policy
and edit it to suit your needs. Have a look at the contents of that file
for an example and more information. If you prefer to do this the "old" way
using /etc/X11/xorg.conf, then you can use "X -configure" or "xorgsetup" to
generate an xorg.conf, then add the following lines to the "ServerFlags"
section to disable input device hotplugging via HAL:
Option "AllowEmptyInput" "false"
Option "AutoAddDevices" "false"
Option "AutoEnableDevices" "false"
This is also relevant if you prefer to disable HAL completely for whatever
reason.
as Pat writes in CHANGES_AND_HINTS.TXT.

Last edited by marrowsuck; 11-04-2009 at 05:18 PM.
 
Old 11-04-2009, 05:17 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Code:
~# cat wlan.sh
#!/bin/bash
#
#10-26-09 13:30 gws
#setup the wlan0 device
#
/sbin/ifconfig wlan0 192.168.1.18
/sbin/route add default gw 192.168.1.1
/sbin/iwconfig wlan0 essid "Your Device ESSID"
/sbin/iwconfig wlan0 key "Your Key"
/sbin/iwconfig wlan0 ap 00:09:00:00:00:00
I use the above script to setup my wlan device when I need too.
You can use the 'wireless tools' to get all the information. I really don't like 'WICD'. 'WICD' causes me a lot of headaches and heart aches. So I just removed the package.

You could setup a script to sed through the information from iwconfig then pass the information or setup variables to pass but I'm not that lazy.

 
Old 11-04-2009, 05:18 PM   #4
Josh000
Member
 
Registered: Aug 2009
Distribution: Slackware 13 64bit
Posts: 534

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by marrowsuck View Post
@second problem:

as Pat writes in CHANGES_AND_HINTS.TXT.
Well..., color me slightly embarrassed. I should have known better to check that.

The point remains though...why is this step not part of the install? Just curious.
 
Old 11-04-2009, 05:24 PM   #5
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by Josh000 View Post
<snip>

In X, not so. It still thinks it is a US keyboard. From what I have read, the way to fix this requires slight HAL configuration. Is this correct? In previous versions of slack(I last used v8), the keymap I chose at setup was honored in X.

Why is that no longer the case, and why must a cumbersome step be taken post install? (if that is the case).
Josh, this is Slackware!

Read the documentation to allow you to see or understand the intrinsic needs for your system;

RELEASE_NOTES
CHANGES_AND_HINTS.TXT
UPGRADE.TXT

I suggest that you read through the other 'TXT' files on your media.

 
Old 11-04-2009, 05:27 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by Josh000 View Post
Well..., color me slightly embarrassed. I should have known better to check that.

The point remains though...why is this step not part of the install? Just curious.
To setup for a local keyboard you are given that choice during the install. Once you decide to setup 'X' then you must decide that configuration.

 
Old 11-04-2009, 05:39 PM   #7
Josh000
Member
 
Registered: Aug 2009
Distribution: Slackware 13 64bit
Posts: 534

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by onebuck View Post
I suggest that you read through the other 'TXT' files on your media.
Hi Onebuck,

I'm actually overly familiar with Slackware, and checked out that file before installing. My keyboard only became an issue recently, and that file was not something I thought to check.

More of a case of not using Slack for so long, and knowing it was something to do with HAL, which has been around for quite a while.

Quote:
Originally Posted by onebuck View Post
To setup for a local keyboard you are given that choice during the install. Once you decide to setup 'X' then you must decide that configuration.
Well, my point was that the keyboard setup for X should be done automatically or as part of the install, as it possible used to be.
 
Old 11-05-2009, 07:04 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by Josh000 View Post
<snip>
Well, my point was that the keyboard setup for X should be done automatically or as part of the install, as it possible used to be.
The 'X' setup is unique and really not something that should be setup vanilla. Sure you can setup a FB but the input devices are to much of a variant. The current 'X' initialization suits me fine. Except for that damn 'ATI' but that's not their problem or fault.

I believe you happen to fall into the group of a lucky few for previous versions. I don't see the problem with setting up the local devices by the user as to identify(tickle) local devices overall would be a task that would lead to even more problems. The user should be the one to setup keyboards, mice or whatever the human interface device would be.

I cannot see the need to change the installer to suit such a simple task. Especially one that has so many variables that are dictated by the variety of devices that a user would/could change at some point. I think the end user does have some responsibility when using Slackware and it should remain that way. Just my

I for one don't want Slackware to be a hold my hand distribution as that will lead to more confusion/instability.

 
Old 11-05-2009, 03:05 PM   #9
Josh000
Member
 
Registered: Aug 2009
Distribution: Slackware 13 64bit
Posts: 534

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by onebuck View Post
Hi,
The 'X' setup is unique and really not something that should be setup vanilla.
I completely disagree.

Keep in mind, I am only referring to the keymap, and not the general X setup.

This is not a hard step to do, and would only mean copying a file based on what keymap was selected.

Considering a full install is recommended, and most users of slack will probably use X, it should definitely be included. It simply makes sense. It could be triggered only if X was selected to be installed...not to difficult at all.

Quote:
I cannot see the need to change the installer to suit such a simple task. Especially one that has so many variables that are dictated by the variety of devices that a user would/could change at some point.
A keymap is kind of independent of hardware, to an extent.

There should be an expectation that your keyboard in X will function the same as it does in the console and as you set it up. It is a trivial step to do this(just copying a file), so why should it not be included?

It is no more handholding then any other part of the setup, it is just an extra step to ensure consistency.

On another note, does anyone have insight relating to my wireless question?
 
Old 11-05-2009, 09:09 PM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by Josh000 View Post
I completely disagree.

Keep in mind, I am only referring to the keymap, and not the general X setup.

This is not a hard step to do, and would only mean copying a file based on what keymap was selected.

Considering a full install is recommended, and most users of slack will probably use X, it should definitely be included. It simply makes sense. It could be triggered only if X was selected to be installed...not to difficult at all.

A keymap is kind of independent of hardware, to an extent.

There should be an expectation that your keyboard in X will function the same as it does in the console and as you set it up. It is a trivial step to do this(just copying a file), so why should it not be included?

It is no more handholding then any other part of the setup, it is just an extra step to ensure consistency.

On another note, does anyone have insight relating to my wireless question?
Send your recommendations to the Slackware team. I just feel the setup you are suggesting is not that difficult to setup to begin with. A user that selects 'KDE' for instance will go through the 'X' configurations for the desktop.

I think your opinion from a Slackware perspective is totally wrong. The variants that are required to setup various input/output devices are unique to the user's hardware. Those setting are left to the user to polish as they see necessary. If you want to tweak your system to do that then create another install then that's up to you. To streamline Slackware to suit oneself is OK with me but to change the whole to benefit one is not.

Slackware is Unique!

 
Old 11-05-2009, 09:58 PM   #11
Josh000
Member
 
Registered: Aug 2009
Distribution: Slackware 13 64bit
Posts: 534

Original Poster
Rep: Reputation: 35
Quote:
Originally Posted by onebuck View Post
I think your opinion from a Slackware perspective is totally wrong. The variants that are required to setup various input/output devices are unique to the user's hardware.
From a slackware perspective, it would actually make more sense to do the extra step and copy the Xmodmap or HAL file, so that the keyboard in X would match what was setup during install.

I don't know why you mention KDE...I was talking about X, which is independant from KDE, Gnome, XFCE, etc...

I am also not sure why you keep bringing up different hardware and devices.

I am talking about a keymap. You set it up during install for the console, so why not set it up for X at the same time, which only requires copying an extra file. It would not even require an extra step.

I think it is amazing how fragmented the community now is.
 
Old 11-06-2009, 08:53 AM   #12
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
Originally Posted by Josh000 View Post
From a slackware perspective, it would actually make more sense to do the extra step and copy the Xmodmap or HAL file, so that the keyboard in X would match what was setup during install.

I don't know why you mention KDE...I was talking about X, which is independant from KDE, Gnome, XFCE, etc...

I am also not sure why you keep bringing up different hardware and devices.

I am talking about a keymap. You set it up during install for the console, so why not set it up for X at the same time, which only requires copying an extra file. It would not even require an extra step.

I think it is amazing how fragmented the community now is.
As I said before contact the Slackware team.

I made the statement about 'KDE' as an example of setting the keyboard on the initial startup.

I know you setup the keymap for the console at the initial startup.

 
Old 11-06-2009, 11:07 AM   #13
Josh000
Member
 
Registered: Aug 2009
Distribution: Slackware 13 64bit
Posts: 534

Original Poster
Rep: Reputation: 35
Does anyone have an idea about the wireless stuff?
 
  


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
3 minor wifi problems in Slackware 12.1 gregorian Linux - Wireless Networking 6 08-02-2009 05:41 AM
A Few minor problems... fuelinjection Linux - General 1 06-10-2004 05:44 AM
Minor Keyboard Problem ! zetox Linux - Newbie 3 10-17-2003 07:06 AM
some minor problems restless Linux - General 2 02-06-2003 03:00 PM
Minor problems Gai-jin Linux - Newbie 4 01-07-2003 09:11 PM

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

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