Beginner cannot install Ethtool

Asked by John Denby

    Being a complete novice to Ubuntu, how do i install Ethtool ?
I have tried sudo get ethtool etc , but no joy

        I have the appropriate files on a usb , I can see it, but when i try to cd to the usb i cannot.
                If i right click and run on likely looking files , nothing happens.

   The reason is i have a long cat5 cable and it only works at 10 Mb/s. Dual boot PC fine on windows xp but been playing for hours getting nowhere.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ethtool Edit question
Assignee:
No assignee Edit question
Solved by:
John Denby
Solved:
Last query:
Last reply:
Revision history for this message
Tom (tom6) said :
#1

Ok, things are looking a little wrong - don't worry, it's good to see someone new :)

Overview
In a Command/Terminal window/console you can get help on using an application by typing the name of the app and then --help Also while typing you can take advantage of a 'predictive text' feature by pressing the Tab key, this helps me get commands right and fills in/auto-completes when i've got something long to type in (such as a directory path). Pressing tab twice halfway through typing is also interesting. Try typing
sudo apt-get --help

Look around in
cd /media
using the
LS
command (actually that should have been small letters)
Then when you've found the path to the directory with ethtool in it then try typing
sudo apt-get pathname/ethtool

Actually i'm only guessing about this last bit but it seems intuitive that apt-get works that way. I tend to use Synaptic Package Manger from the menus
System menu on the top taskbar - Administration - Synaptic (near the end)
And then change the settings to include other types of repositories (such as Cds etc)

Revision history for this message
Andy Ruddock (andy-ruddock) said :
#2

To install ethtool :

sudo apt-get install ethtool

(enter your password when prompted, it won't be echoed on screen)

If you have the .deb files locally :

dpkg -i /path/to/deb

(eg dpkg -i /media/disk/ethtool.deb)

Usb memory sticks are usually auto mounted under /media, so you'll often find them at /media/disk or /media/disk-1 although the name may also include the name or manufacturer of the device.

Revision history for this message
Tom (tom6) said :
#3

Thanks Andy, a more coherent answer :)

lol, i've just looked in Synaptic Package Manager and it's there - so if you have an internet connection just use Synaptic instead;-

System menu on the top taskbar - Administration - Synaptic is near the end

Good luck and have fun
Regards from
Tom

Revision history for this message
John Denby (johng3tsa) said :
#4

   Sorry , I must be missing something really basic. I am using "Ubuntu"

I have the ethtool-6 downloaded and have unzipped it into lots of files of various types , I can see this , and "Run in terminal" from right click.
  One file appears to install by echoing all sorts of stuff ,yes ,yes etc
On trying sudo apt-get ethtool, get error msg cannot find package.
 I know what is required , the problem is getting it to work!

"sudo ethtool -s eth0 speed 10 duplex full autoneg off"

 I have tried with Synaptic package manager and cannot make anything happen at all, all but one file greyed out .

Had a go with mii-tool no luck , operation not supported , no mii interfaces found.

The PC is dual boot , and XP + cat5 to router all working

Revision history for this message
John Denby (johng3tsa) said :
#5

Fixed it.
  Talked through as i did it, nautilus browser , make folder .Move ethtool file into it , unzip it.
Then from root terminal cd to this new folder with seperate files in it ./configure --prefix=usr
screenfulls stuff
then make
More screenfulls stuff
Ethtool now operational
          To get to load at start up edit rc.local file with vi
add new line ethtool -s eth0 speed 10 duplex full autoneg off
   Many thanks to don in Leeds

Revision history for this message
Tom (tom6) said :
#6

Nice one John. Congrats.

Thanks for posting the anser back here :)

Revision history for this message
Tom (tom6) said :
#7

Nice one John. Congrats.

Thanks for posting the answer back here :)

Revision history for this message
John Denby (johng3tsa) said :
#8

Here is the spells I used
Download ethtool-6.tar.gz on another internet connected machine/usb
On Ubuntu machine open terminal
type sudo bash , to get root terminal
type nautilus , opens browser
close terminal as appears messed up.

make a folder called ethtool in the location "src" (you need root login otherwise makefile greyed out)
drag and drop from usb the ethtool-6.tar.gz into this new folder
right click and "extract to"
This makes another folder "ethtool-6" with lots of stuff in it.

open new root terminal as above cd to /usr/src/ethtool/ethtool-6
Then type " ./configure --prefix=usr " hit return should be screen fulls of more stuff.

Then type " make " more stuff

Then type " make install "

Hopefully this installs ethtool . Test by simply typing " ethtool " in a terminal , you should get the useage menu.

To set speed at boot up you need to edit the file " rc.local " I used vi
Open root terminal as before, cd to " etc "
then type " vi rc.local " return.
I added a line just before end ethtool -s eth0 speed 10 duplex full autoneg off

Bit tricky driving vi ,but plenty of instructions about.

E&OE

Revision history for this message
ydchou (ydchou-69) said :
#9

I have tried the above steps but I get a message "bash: ./configure: No such file or directory"
I need help as without connection to net I cannot use apt-get.
I am posting the terminal commands :

yogesh@yogesh-desktop:~$ sudo bash
root@yogesh-desktop:/usr/src/ethtool/ethtool-6+20080227# ./configure --prefix=usr
bash: ./configure: No such file or directory

please help

Revision history for this message
Tom (tom6) said :
#10

Hi, please post this as a new question - using this link might help
https://answers.launchpad.net/ubuntu/+source/ethtool/+addquestion
Launchpad doesn't really have a way of dealing with old questions so you need to re-post this for yourself. You can always quote this url link back to this question to help explain what's going on, here's the link to this question
https://answers.launchpad.net/ubuntu/+source/ethtool/+question/57319

Good luck and regards from
Tom :)

Revision history for this message
Tom (tom6) said :
#11

There are also a couple of other places worth trying to get help from
https://help.ubuntu.com/community/HowToGetHelp

and my current favourite, a more general linux area not devoted to Ubuntu (so answerers may not be fully used to Ubuntu)
http://www.linuxquestions.org

Thanks and regards from
Tom :)