LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-07-2011, 05:44 AM   #1
rng
Member
 
Registered: Aug 2011
Posts: 747

Rep: Reputation: 23
How to connect to network from command line


In ubuntu top panel, on the right side, there is an indicator showing network status. I click on that and choose the network option (which has ip address, gateway etc) and it connects.

Can I do the same thing from command line?

Thanks for your help.
 
Old 12-07-2011, 05:53 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
you want to see your network settings? try "ifconfig -a" and "route -n" for starters.
 
Old 12-07-2011, 07:02 AM   #3
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
Thanks for your interest. I do not want to see network settings. I want to connect to internet using the values of ip address, netmask and broadcast that I have. How can I do it?
 
Old 12-07-2011, 07:16 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well on an ethernet network you don't "connect to the internet", you just set up your ip routing correctly etc.

plenty of standard documentation around though if you look, e.g. https://help.ubuntu.com/10.04/server...iguration.html
 
Old 12-07-2011, 11:08 AM   #5
Stephen Morgan
Member
 
Registered: Feb 2011
Location: England
Distribution: Slackware
Posts: 147

Rep: Reputation: 15
Ubuntu uses Network Manager, there's a command line interface called nmcli, you should be able to connect using that.
 
Old 12-07-2011, 07:16 PM   #6
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
I tried command 'nmcli' - there is no such command on my system. I also could not find any nmcli program in synaptic package manager. Though the command is there in ubuntu manpages:

http://manpages.ubuntu.com/manpages/...1/nmcli.1.html

I am using ubuntu version 10.04 LTS.

Last edited by rng; 12-08-2011 at 07:20 PM.
 
Old 12-07-2011, 07:27 PM   #7
phatmack
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Rep: Reputation: Disabled
Found the following info here: http://ubuntuforums.org/showthread.php?t=1678256
Quote:
You need the lastest netwotk-manager (0.8.1):

sudo add-apt-repository ppa:network-manager/trunk
sudo apt-get update && sudo apt-get upgrade
Hope it helps!
 
Old 12-08-2011, 12:08 AM   #8
rng
Member
 
Registered: Aug 2011
Posts: 747

Original Poster
Rep: Reputation: 23
Thanks.
 
Old 12-08-2011, 07:33 AM   #9
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,122
Blog Entries: 3

Rep: Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404Reputation: 1404
Member response

Hi,

Quote:
Originally Posted by rng View Post
Thanks for your interest. I do not want to see network settings. I want to connect to internet using the values of ip address, netmask and broadcast that I have. How can I do it?
If you wish to connect and browse from the cli then look at links;
Quote:
excerpt from man links:
links - lynx-like alternative character mode WWW browser

SYNOPSIS
links [options] URL

DESCRIPTION
links is a text mode WWW browser with ncurses interface, supporting colors, correct table render-
ing, background downloading, menu driven configuration interface and slim code.

Frames are supported. You can have different file formats associated with external viewers.
mailto: and telnet: are supported via external clients.

links can handle local (file://) or remote (http:// or ftp://) URLs.
...
...
SEE ALSO
lynx(1), w3m(1)
Or lynx;
Quote:
excerpt from man lynx;
lynx - a general purpose distributed information browser for the World Wide Web

SYNOPSIS
lynx [options] [path or URL]

use "lynx -help" to display a complete list of current options.

DESCRIPTION
Lynx is a fully-featured World Wide Web (WWW) client for users running cursor-addressable,
character-cell display devices (e.g., vt100 terminals, vt100 emulators running on Windows 95/NT
or Macintoshes, or any other "curses-oriented" display). It will display hypertext markup
language (HTML) documents containing links to files residing on the local system, as well as
files residing on remote systems running Gopher, HTTP, FTP, WAIS, and NNTP servers. Current
versions of Lynx run on Unix, VMS, Windows 95/NT, 386DOS and OS/2 EMX.

Lynx can be used to access information on the World Wide Web, or to build information systems
intended primarily for local access. For example, Lynx has been used to build several Campus
Wide Information Systems (CWIS). In addition, Lynx can be used to build systems isolated within
a single LAN.
If you wish to change device connection configuration from the cli then look at curses based 'wicd' or manually use 'ifconfig', 'route' and change/add DNS to '/etc/resolv.conf'.

FYI: I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem or query.
HTH!
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot get iwconfig to connect from command line SolymyrBhaal Linux - Networking 2 11-23-2009 03:23 PM
Connect To Unprotected HotSpot Using Only Command Line nythacker Linux - Wireless Networking 5 03-13-2009 12:17 PM
How to connect to computers via command line? Micro420 Linux - Networking 9 03-01-2006 01:17 AM
connect to internet using command line ic_torres Slackware 5 12-05-2005 04:35 AM
Command line direct connect client? Lenny Linux - Software 1 09-22-2003 01:41 AM


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