onnect your router to the computer using an Ethernet cable, if possible. Open Firefox and type in the address for your router's configuration page (usually something like 192.168.0.1 or 192.168.1.1, check the manual for your router).

There should be a place there where you can fill in your username and password, and other settings, and have the router make the connection for you automatically.

Once that's done, you will have an auto-on internet connection and you can surf the internet on Ubuntu easily.

If your router doesn't support this, then you will need to run this command to configure the connection:

sudo pppoeconf

Then, to start a connection:

sudo pon

To stop the connection:

sudo poff
............................................................................................................................................
Go into the gnome menu and select networking.
select card.
make active.
exit
open a terminal and use sudo
type in "ifconfig"
press enter
if your card is active it will show an ip address besides 127.0.0.1
If not type "ifconfig -a"
look at your cards
pick the card that matches the one used to connect to the internet: ethernet/wireless/phone/etc.
type ifconfig <name of active card> up"
to test type "ping www.google.com"
continue this with each card until you have an active connection.
Then you're online.

............................................................................................................................................
install deb files : sudo dpkg --install name
team viewer for virtual connection 
................................................................................................
list of ports : netstat -a | more
                          netstat -an | more
...................................................................................................
edit text files  : nano name
...............................................................................
ctrl+alt+f1 goes to server from desktop and to return put f7 at f1
............................................