Announcement

Collapse
No announcement yet.

How to get internet connection in Cli?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to get internet connection in Cli?

    I know I can't surf the web, but I need access to accessories to run apt-get update. I installed Kubuntu Hardy with kde4.0 through Wubi on her computer yesterday. Then i added the launchpad repo to upgrade to kde4.1, but the kdebase-runtime-kde4 package was broken. Now I have no graphig login(again), startx doesnt launch kde4, and apt-get update cant connect with the repos. I get Cli login, and access to the kubuntu install nicely.

    Is there a command to connect me to the internet to update?

    #2
    Re: How to get internet connection in Cli?

    if this is a wired ethernet connection we're talking about,
    and if the dsl router is set up for dynamic ips, then chances are you can simply enter:
    Code:
    ifconfig -a
    to see what interfaces you have.
    in normal circumnstances you'll have eth0 and lo.
    eth0 is what you need (or eth1, ...)
    so...
    Code:
    sudo dhclient eth0
    you should get a few messages telling you what's going on...
    including one that tells you you've been assigned a new ip address.

    if you have other set ups, then i might be a bit more complicated.

    hth
    gnu/linux is not windoze

    Comment


      #3
      Re: How to get internet connection in Cli?

      Thanks for the answer. The pc in question is connected through a wireless card. What I ended up doing was doing a reinstall of Kubuntu. Yet, I would still very much like to have an answer to my question, in case it should come in handy at some point later.

      Comment


        #4
        Re: How to get internet connection in Cli?

        Originally posted by NexusHumanis
        ...
        Yet, I would still very much like to have an answer to my question, in case it should come in handy at some point later.
        ...
        with wireless there's the added encryption issue.
        the easiest/fastest way is to disable encryption (i.e.: WEP, WPA/2).
        then use the 3 commands in this thread.
        hth

        gnu/linux is not windoze

        Comment

        Working...
        X