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

Notices

Reply
 
Search this Thread
Old 07-10-2013, 03:31 PM   #16
ThomasLMcLean
Member
 
Registered: Apr 2011
Location: Metro Portland, OR
Distribution: Linux Mint
Posts: 61

Original Poster
Rep: Reputation: 0

Allend:

With the help of dolphin, which comes with a terminal attached in release 14 and KDE, I am down to Item 7 of your post 9 with confidence that all is OK.

I am having trouble with the term $(uname-r). The command line tells me that there is no such file or directory when I type it verbatim as you have written it {/$(uname-r)}. I have also tried variation of this and none seem to work. I also don't understand what you mean when you say the output of {uname-r}. The terminal returns /-r/ when I use /$uname-r/. Ref. post14


I am unable to get to the file: compat-drivers-2013-03-28-5-u using the terminal. I used Dolphin and found them. The terminal keeps telling me: “not a file or directory” when I use the command : 'cd compact-drivers-2013-03-28-5-u'. {?} I worked through this issue using Dolphin, but someday I would like to know why I can't using the terminal.

Thanks for your help. We seem to be getting there, sorry that I know so little.

Tom McLean
 
Old 07-10-2013, 04:12 PM   #17
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,465

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
Quote:
I am having trouble with the term $(uname-r)
The -r option to the uname command needs to be separated with a space character. i.e. Type 'uname' then a space then '-r'
Quote:
The terminal keeps telling me: “not a file or directory” when I use the command : 'cd compact-drivers-2013-03-28-5-u'.
If you open a Konsole terminal window with the Shift-F4 key combination in Dolphin, it should open with the working directory set to that being displayed in Dolphin.
You can check this with the 'pwd' command.
You should also be able to see the contents of the directory with the 'ls' command.
You move between directories using the 'cd' command.
 
Old 07-10-2013, 04:44 PM   #18
ThomasLMcLean
Member
 
Registered: Apr 2011
Location: Metro Portland, OR
Distribution: Linux Mint
Posts: 61

Original Poster
Rep: Reputation: 0
Allend:

Sorry for the last miss post. I will try the space now.

My verson seems to include a terminal with Dolphin and is set to follow the directory viewed in the GUI. That is how I got the new Module made. Someday, I would like to know why I could not do it in the command terminal.

Now the last step.

Thanks

Tom

Last edited by ThomasLMcLean; 07-10-2013 at 04:53 PM. Reason: I did see that my post 17 had made it to the form
 
Old 07-10-2013, 06:16 PM   #19
ThomasLMcLean
Member
 
Registered: Apr 2011
Location: Metro Portland, OR
Distribution: Linux Mint
Posts: 61

Original Poster
Rep: Reputation: 0
Allend:

I did the following with the indicated results.

Bash-4.2# modprobe -v alx

lnsmod /lib/modules/3.2.29-smp/kernel/drivers/net/mdio.ko
lnsmod /lib/modules/3.2.29-smp/kernel/drivers/ethnet/atheros/alx/alx.ko
Error: could not insert 'alx' : unknown symbol in module or unknown parameter (see dmesg)

I entered 'dmesg' and got about 200 lines of stuff. Every thing before this went smoothly with no comments from the commandline

I did not reboot before tring the probe. Maybe I should have.

I will return tomorrow.

We are nearly there!

Tom
 
Old 07-10-2013, 09:50 PM   #20
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 160

Rep: Reputation: 3
Try to type 'dmesg | tail' this should give you only the relevant information. Post what dmesg outputs in code blocks. Also typing $uname -r in your terminal is the wrong way to go about things. The $ denotes to the shell that you are entering a variable. It should also be saying something like "-r command not found" because it expects "-r" to be a command. But uname itself is a command. Try typing 'uname -a' in the terminal. It should output a bunch of information about your system. Like kernel version hostname and stuff like that. Typing 'uname -r' returns only the version of the kernel you are using. 14.0 ships with version 3.2.29, so that is what the terminal should output.

In the future, 'dmesg | tail' can be a very useful tool for troubleshooting. I use fluxbox, for example, and fluxbox does not automount (or would it be called hotplug?) devices such as external drives when they are plugged into my computer. And sometimes I do not know what device they would be under /dev. Typing 'dmesg | tail' into a terminal tells me exactly what device I have just plugged in, and what label it has (/dev/sdc1 for instance) so I can then mount it or add it to my /etc/fstab if need be. But dmesg does not just stop there! dmesg can be extremely useful when it comes to tracking down most errors.

If you need additional help with anything, try reading the man pages. Sometimes you might not need to google things at all, and sometimes still, you might just get information that was in the man page already. To learn more about dmesg, try typing 'man dmesg' in your terminal. Man pages provide lots of information about commands that you might not know how to use. It is sort of similar in some ways to adding --help, but much more detailed.

I realize this post didn't really solve any of your problems, but I hope some of this information helps you. I am not an expert Linux user, and won't claim to be. All the same though, weaning yourself off the GUI can be very useful. Once I started using fluxbox (Currently I use no other wm) I learned so much more about how to use the shell simply because no programs were doing it for me. And finally, good luck slacking!

Last edited by flyinggeorge; 07-10-2013 at 09:51 PM.
 
Old 07-11-2013, 09:57 AM   #21
ThomasLMcLean
Member
 
Registered: Apr 2011
Location: Metro Portland, OR
Distribution: Linux Mint
Posts: 61

Original Poster
Rep: Reputation: 0
Thanks Flyinggeorge:

What is the symbol between dmesg and tail. I don't think my key board has a vertical line on it.

I will give these things a try. However, the slack box isn't connected to the Internet, that's what started this thread, and I have no way of cutting and pasteing screen shots.

Tom McLean
 
Old 07-11-2013, 10:18 AM   #22
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: Slackware®
Posts: 11,289
Blog Entries: 3

Rep: Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446Reputation: 1446
Member Response

Hi,

Vertical bar | is the 'pipe' symbol which is 'Shift-\' on most keyboards.
 
Old 07-11-2013, 10:28 AM   #23
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 160

Rep: Reputation: 3
onebuck beat me to the punch!

It's called the 'pipe.' Hold shift and type '\'

The pipe is a very useful symbol. It's sort of like an amendment to commands. You can use several different arguments after the pipe to make the output of commands more readable. The best examples (I guess these are just the ones I use more often) would be, most, less, tail, grep. The most and less commands do basically the same thing. Try typing 'ls | most' in a directory where you have a lot of files. Maybe if your home directory is not very populated yet, try typing 'ls /usr/bin | most' or replace most with less. This allows you to scroll through the output and look for a certain file. Or maybe you need to know if a certain file is in a certain directory. You could type something to the effect of 'ls *name_of_directory* | grep *name_of_expected_file* Or you can use grep to locate specific lines in a file. If you have a log file outputted from some program and you need to find a specific date (assuming there are timestamps) you could use cat and grep to locate the lines of interest. Something like 'cat log.txt | grep Jul\ \ 8' This example comes from a log I happen to have sitting in my home folder and there are two spaces between Jul and 8. Of course you could also search for a specific error like this.

I hope some of this helps you in the future.
 
Old 07-11-2013, 11:37 AM   #24
ThomasLMcLean
Member
 
Registered: Apr 2011
Location: Metro Portland, OR
Distribution: Linux Mint
Posts: 61

Original Poster
Rep: Reputation: 0
Gentlemen:
Thanks for the lesson. So it is called the pipe and typed thusly |.

This would be an aside to the thread, but apropos to the thread originator:

Flyiinggeorge, since you are newer at this then Onebuck, where or how did you learn the commandline. I have the TLCL e-book, however that is 500 pages plus on my computer,and I prefer a printed book. They allow me to read several pages at one time, which helps my learning process. Preferring the printed book is probably a carryover from my engineering school days, where we would read two or more books, including appendix, at one time. With the command line I need to refer to a book at the same time I am trying things on the computer

I will work on the slack box later, and report back.

Thanks;

Tom McLean
 
Old 07-11-2013, 01:55 PM   #25
flyinggeorge
Member
 
Registered: Feb 2012
Location: United States
Distribution: Slackware 14.0
Posts: 160

Rep: Reputation: 3
I guess I learned from necessity. Like I said I switched from a GUI-heavy interface to a CLI-heavy interface. I learned basically everything I know from google or man pages. I wish I had a cooler story to tell, lol. Some of the things I googled that might help you out were things like "basic linux commands." Stuff like that, people will lay out examples of commands, how to use them, and such. I have never sat down with an actual book and read about the subject, although that would probably help me a lot.

Also I think I learned the most about my system when it was broken. I remember the first time I tried to upgrade my kernel I forgot to update lilo to boot to the new image and my machine would not boot linux. So I stuck the Slackware install DVD in and made it boot to /dev/sda1 and from there I read the man page on lilo and fixed it. Simple things like this not only give one a sense of accomplishment, but IMO teach a good deal about how to use a system. That is not to say that I see no use for a good book though. I've just never owned one.

*Edit: don't forget to post the output of dmesg | tail for us!

Last edited by flyinggeorge; 07-11-2013 at 01:57 PM.
 
Old 07-11-2013, 07:07 PM   #26
ThomasLMcLean
Member
 
Registered: Apr 2011
Location: Metro Portland, OR
Distribution: Linux Mint
Posts: 61

Original Poster
Rep: Reputation: 0
Here it is. I assume that the last four lines tell what went wrong. But I do not know what to do next. I ran /sbin/depmod -a earlier after I finished making and loading the module. The commandline returned no comment.

/home/thomas# dmesg | tail

[ 9.3762831] inputs: HDA Nvidia HDMT/DP,pcm-3 as/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card/input 13
[ 9.4909281] Adding 4162556k swap on /dev/sda5. Priority:-1
[ 9.5057881] fuse init (API version 7.17)
[ 10.4897061] Ext4-fs (sda1): re-mounted. Opts: (null)
[ 10.682401 ] ppdev: user-space parallel port driver
[ 10.683730 ] lp: driver loaded but no devices found
[ 14.0229671] alx: Unknown symbol backport _dependency_symbol (err 0)
[ 14.746007 ] NET: Registered protocol family 10
[ 17.0584731] alx: Unknown symbol backport _dependency_symbol (err 0)
[ 18.755461 ] NET: Registered protocol family 5

Thanks to everyone for your interest and help;

Tom McLean
 
Old 07-12-2013, 01:20 AM   #27
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,465

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
Please post the output of 'sbin/modinfo alx'.

The only hint I have found on this suggests a license restriction. http://stackoverflow.com/questions/5...-kernel-module
 
Old 07-12-2013, 01:43 PM   #28
ThomasLMcLean
Member
 
Registered: Apr 2011
Location: Metro Portland, OR
Distribution: Linux Mint
Posts: 61

Original Poster
Rep: Reputation: 0
Allend:

Here it is. I apparently need two dependencies: compat and mdio. (?)

:~$ /sbin/modinfo alx

filename: /lib/modules/3.2.29-smp/kernel/drivers/net/ethernet/atheros/alx/alx.ko
version: 1.2.3
license: Dual BSD/GPL
description: Qualcomm Atheros Gigabit Ethernet Driver
Author: Qualcomm Corporation, <nic-devel@qualcomm.com>
description: 6FCBC2A7406D04372B764
Alis: pci:v00001969d000010A0sv*sd*bc*sc*i*
Alis: pci:v00001969d000010A1sv*sd*bc*sc*i*
Alis: pci:v00001969d00001090sv*sd*bc*sc*i*
Alis: pci:v00001969d00001091sv*sd*bc*sc*i*
depends: compat, mdio
vermagic: 3.2.29-smp SMP mod_unload PENTIUMIII

This was retyped from the original screen.

Thanks for your insight and patience Allend:

Tom McLean
Still; half/slacked, but gaining altitude.
 
Old 07-12-2013, 11:54 PM   #29
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,465

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
Quote:
depends: compat, mdio
As you point out, the alx kernel module has a dependency on the compat.ko kernel module. This is also built when you build the alx.ko kernel module. The mdio.ko kernel module is already present.

Try this, with the directory where you built the module as the working directory,
i)As root, create a directory for the module in the /lib/modules tree. 'mkdir /lib/modules/$(uname -r)/kernel/compat'
ii)As root, copy the kernel module into the /lib/modules tree. 'cp ./compat/compat.ko /lib/modules/$(uname -r)/kernel/compat'
iii)As root, update the module dependencies with '/sbin/depmod -a'
As root, test with 'modprobe -v alx'

On a side note, the Dual BSD/GPL licence is fine. http://www.tldp.org/LDP/lkmpg/2.6/html/x279.html

Last edited by allend; 07-13-2013 at 12:27 AM.
 
1 members found this post helpful.
Old 07-13-2013, 08:27 PM   #30
Kallaste
Member
 
Registered: Nov 2011
Distribution: Slackware
Posts: 344

Rep: Reputation: 84
Quote:
Originally Posted by ThomasLMcLean View Post
Gentlemen:
I have the TLCL e-book, however that is 500 pages plus on my computer,and I prefer a printed book. They allow me to read several pages at one time, which helps my learning process. Preferring the printed book is probably a carryover from my engineering school days, where we would read two or more books, including appendix, at one time. With the command line I need to refer to a book at the same time I am trying things on the computer
If you are looking for a good printed book that will teach you the command line and set you on your way to becoming a Linux guru, I highly suggest you pick up a copy of Rute from Amazon. It is older, but still relevant.

Finding the best book for whatever subject I'm studying is a genuine obsession of mine. For Linux, this one is my favorite.

You can also read it online for free:

http://rute.2038bug.com/index.html.gz

Although I share your preference for a printed book, it is nice to have a digital copy as well.
 
1 members found this post helpful.
  


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
[SOLVED] I Slacked it, now what? wifi question. ogbi-web_kenobi Slackware 37 08-18-2012 09:13 PM
Dell XPS M1210 - anyone slacked it yet? spaceballs Slackware 6 09-07-2006 10:49 AM
Preparing to be Slacked - Replace old Linux lel800 Slackware 10 10-21-2004 03:45 PM


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