how can i log in as Admin

Asked by VanTroy

im new to Ubuntu and i had the problem of "RTL 8111C chip" lan driver which i have no internet connection

i download the driver r8168-8.005.00.tar.bz2

first : how can i install it
second: how can i log in as root

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bhavani Shankar
Solved:
Last query:
Last reply:
Revision history for this message
VanTroy (themask998) said :
#1

i tried to log as root at the log in screen

and it says " admin cant log in at this screen " or something like that

Revision history for this message
Bhavani Shankar (bhavi) said :
#2

Hello Van troy:

First you have to compile software

Refer these links on some nice info:

https://help.ubuntu.com/community/CompilingSoftware

https://help.ubuntu.com/community/CompilingEasyHowTo

To login as root use the recovery mode (usually second option in grub menu) this mode logs you in as root

Regards

Bhavani Shankar.

Revision history for this message
Tony Mugan (tmugan) said :
#3

You don't need to login as root for your driver
login as your self and then prefix any commands you wish to run as admin/root with "sudo"
It will prompt you for a password. Use the same password as you used for your own account.

Revision history for this message
Tony Mugan (tmugan) said :
#4

Bhavani's response is more comprehensive, just wanted to clarify the Ubuntu approach to elevating privileges to root while logged in normally.

Cheers.

Revision history for this message
VanTroy (themask998) said :
#5

thanx for all of you

but could you plz explain how to install this driver
it looks like r8168-8.005.00.tar.bz2
start from terminal and write what?

im really new to this world i used to double click to install (in windows)

Revision history for this message
Tony Mugan (tmugan) said :
#6

Ok, try this.
1) login as yourself
2) double click the file r8168-8.005.00.tar.bz2 you downloaded
3) Extract the contents to, say, your home folder
4) look for "terminal" in the Applications, Accessories menu
5) change to the folder you extracted the files to e.g.
cd ~/Desktop/r8168-8.005.00/
6) There should be a readme file to give you instructions but I would guess
./configure
./make
./make install
7) and that should be enough to install the drivers in your down loaded package
8) Try a reboot

Revision history for this message
Tony Mugan (tmugan) said :
#7

This chap seems to have resolved it...

http://www.jamesonwilliams.com/hardy-r8168.html

Revision history for this message
VanTroy (themask998) said :
#8

thanks to all and to the helpful answers

i will switch to Ubuntu and try it and back with the results

thanks again

Revision history for this message
VanTroy (themask998) said :
#9

i read the read me file and do as it say which have the following
==========================
<Requirements>

 - Kernel source tree (supported Linux kernel 2.6.x and 2.4.x)
 - For linux kernel 2.4.x, this driver supports 2.4.20 and latter.
 - Compiler/binutils for kernel compilation

<Quick install with proper kernel settings>
 Check whether the built-in driver, r8169.ko (or r8169.o for kernel 2.4.x), is installed.
  # lsmod | grep r8169

 If it is installed, please remove it.
  # rmmod r8169
 note: If the built-in driver cannot removed by rmmod, please edit /etc/modprobe.conf and comment 'alias eth0 r8169'. Then, remmove it again or reboot your computer.

 Unpack the tarball :
  # tar vjxf r8168-8.aaa.bb.tar.bz2

 Change to the directory:
  # cd r8168-8.aaa.bb

 If you are running the target kernel, then you should be able to do :

  # make clean modules (as root or with sudo)
  # make install
  # depmod -a
  # insmod ./src/r8168.ko (or r8168.o in linux kernel 2.4.x)

 You can check whether the driver is loaded by using following commands.

  # lsmod | grep r8168
  # ifconfig -a
==========================================
but it says no such file " r8168.ko" in the directory of src which in the folder of the driver

the file i download have the following files under src folder
Makefile
Makefile_linux24x
r8168.h
r8168_n.c
rtl_ioctl.c
rtl_ioctl.h

i dont know what to do

plz help me i spent almost 2 days in this problem and no solution

Revision history for this message
Best Bhavani Shankar (bhavi) said :
#10

Update from the forums: http://ubuntuforums.org/showthread.php?t=755002

To compile the working r8168 driver you need to:

sudo apt-get install build-essential
wget ftp://66.104.77.130/cn/nic/r8168-8.006.00.tar.bz2
tar -xjvf r8168-8.006.00.tar.bz2
cd r8168-8.006.00/src

Then copy the attached patch to the r8168-8.006.00/src directory

Link:

http://launchpadlibrarian.net/14011806/r8168-8.005.00.hardy.diff.txt

patch < r8168-8.005.00.hardy.diff.txt
cd ..
make clean
make modules
sudo make install
sudo depmod -a
sudo mkinitramfs -o /boot/initrd.img-`uname -r` `uname -r`

Then you need to black list the r8169 driver:

sudo sh -c 'echo "blacklist r8169" >> /etc/modprobe.d/blacklist-network'

Hope it helps

Bhavani Shankar.

Revision history for this message
VanTroy (themask998) said :
#11

thanks a lot Bhavani Shankar it works great

but some little problem

that every time i reboot the system i found that no network driver was loaded ( no network devices appear at the net wrok icon)

and i have to repeat your steps and it work again

any solution

Revision history for this message
TenLeftFingers (tenleftfingers) said :
#12

This question should be marked as solved since a poster has explained how to log in as admin/root. A seperate question should be started asking for help with installing a driver. This means that others will be able to benefit from any information that gets posted here.

Revision history for this message
VanTroy (themask998) said :
#13

Thanks Bhavani Shankar, that solved my question.

Revision history for this message
redsonic (redsonic69) said :
#14

Hi,

It works for me also. thanks. But before I had to change its name in /etc/network/interfaces from eth0 to eth1

Finally and after long long time !!!
:)