How to connect my Ubuntu Server to internet The Next CEO of Stack OverflowAccessing server on InternetHow to run a local and external website on same computer with 2 NIC's, 2 Routers and 3 separate networks?How can I connect to the internet in Ubuntu server?How to connect to internet Ubuntu server command line 14.04Step By Step : Making a server accessible worldwideHow to connect to internet?Can't connect to internet, Ubuntu 16.0.4.1 serverUbuntu web server can't connect to internetUbuntu 14.0 VM (VirtualBox) on Windows 7 host not connecting to internetCannot connect to internet - Ubuntu Server 14.04

How can I open an app using Terminal?

Is a stroke of luck acceptable after a series of unfavorable events?

How do I construct this japanese bowl?

How to start emacs in "nothing" mode (`fundamental-mode`)

What is the point of a new vote on May's deal when the indicative votes suggest she will not win?

Which organization defines CJK Unified Ideographs?

How easy is it to start Magic from scratch?

If I blow insulation everywhere in my attic except the door trap, will heat escape through it?

How to safely derail a train during transit?

When airplanes disconnect from a tanker during air to air refueling, why do they bank so sharply to the right?

Only print output after finding pattern

Why doesn't a table tennis ball float on the surface? How do we calculate buoyancy here?

What is the purpose of the Evocation wizard's Potent Cantrip feature?

Anatomically Correct Mesopelagic Aves

What happens if you roll doubles 3 times then land on "Go to jail?"

How to write papers efficiently when English isn't my first language?

Science fiction (dystopian) short story set after WWIII

How do we know the LHC results are robust?

Grabbing quick drinks

The King's new dress

Rotate a column

How to make a software documentation "officially" citable?

When Does an Atlas Uniquely Define a Manifold?

Need some help with wall behind rangetop



How to connect my Ubuntu Server to internet



The Next CEO of Stack OverflowAccessing server on InternetHow to run a local and external website on same computer with 2 NIC's, 2 Routers and 3 separate networks?How can I connect to the internet in Ubuntu server?How to connect to internet Ubuntu server command line 14.04Step By Step : Making a server accessible worldwideHow to connect to internet?Can't connect to internet, Ubuntu 16.0.4.1 serverUbuntu web server can't connect to internetUbuntu 14.0 VM (VirtualBox) on Windows 7 host not connecting to internetCannot connect to internet - Ubuntu Server 14.04










0















I know this might be a duplicate question, but I have scoured the forums and none of the answers have worked for me yet. I want to set up an ubuntu server on my old Dell laptop as it is useless as a laptop now but still works.



Here are the steps I took:



  1. Created a bootable USB with Ubuntu server on it using unetbootin

  2. Set up Ubuntu Server with SSH, LAMP to connect via my WIFI connection

  3. Got the server working and logged in

  4. trying to run sudo apt-get update results in the following errors (sorry for crappy photo) Terminal window showing error messages


  5. Yes, I am located in Thailand.


  6. I am using a Zyxel Router

  7. ifconfig reveals my inet addr to me 127.0.0.1, localhost

I don't know if this is a configuration issue or related to my router not allowing me to create a server.



Hopefully my question isn't too vague. If anyone could direct me on where I might be going wrong that would be cool!



Thanks










share|improve this question






















  • What kind of server(s) are you trying to set up? Web? ssh? ftp? vpn?

    – Organic Marble
    Jun 2 '16 at 2:03











  • It's an SSH server as far as I'm aware. I'm using a LAMP stack and operating through SSH. Basically I want to be able to host websites on there

    – Ryan Mc
    Jun 2 '16 at 2:39












  • To access an ssh server from outside your lan, you need to forward the appropriate port in your router to your server pc. Otherwise connection requests stop in the router. then ypu need to determine what your external ip address is.

    – Organic Marble
    Jun 2 '16 at 11:38















0















I know this might be a duplicate question, but I have scoured the forums and none of the answers have worked for me yet. I want to set up an ubuntu server on my old Dell laptop as it is useless as a laptop now but still works.



Here are the steps I took:



  1. Created a bootable USB with Ubuntu server on it using unetbootin

  2. Set up Ubuntu Server with SSH, LAMP to connect via my WIFI connection

  3. Got the server working and logged in

  4. trying to run sudo apt-get update results in the following errors (sorry for crappy photo) Terminal window showing error messages


  5. Yes, I am located in Thailand.


  6. I am using a Zyxel Router

  7. ifconfig reveals my inet addr to me 127.0.0.1, localhost

I don't know if this is a configuration issue or related to my router not allowing me to create a server.



Hopefully my question isn't too vague. If anyone could direct me on where I might be going wrong that would be cool!



Thanks










share|improve this question






















  • What kind of server(s) are you trying to set up? Web? ssh? ftp? vpn?

    – Organic Marble
    Jun 2 '16 at 2:03











  • It's an SSH server as far as I'm aware. I'm using a LAMP stack and operating through SSH. Basically I want to be able to host websites on there

    – Ryan Mc
    Jun 2 '16 at 2:39












  • To access an ssh server from outside your lan, you need to forward the appropriate port in your router to your server pc. Otherwise connection requests stop in the router. then ypu need to determine what your external ip address is.

    – Organic Marble
    Jun 2 '16 at 11:38













0












0








0


0






I know this might be a duplicate question, but I have scoured the forums and none of the answers have worked for me yet. I want to set up an ubuntu server on my old Dell laptop as it is useless as a laptop now but still works.



Here are the steps I took:



  1. Created a bootable USB with Ubuntu server on it using unetbootin

  2. Set up Ubuntu Server with SSH, LAMP to connect via my WIFI connection

  3. Got the server working and logged in

  4. trying to run sudo apt-get update results in the following errors (sorry for crappy photo) Terminal window showing error messages


  5. Yes, I am located in Thailand.


  6. I am using a Zyxel Router

  7. ifconfig reveals my inet addr to me 127.0.0.1, localhost

I don't know if this is a configuration issue or related to my router not allowing me to create a server.



Hopefully my question isn't too vague. If anyone could direct me on where I might be going wrong that would be cool!



Thanks










share|improve this question














I know this might be a duplicate question, but I have scoured the forums and none of the answers have worked for me yet. I want to set up an ubuntu server on my old Dell laptop as it is useless as a laptop now but still works.



Here are the steps I took:



  1. Created a bootable USB with Ubuntu server on it using unetbootin

  2. Set up Ubuntu Server with SSH, LAMP to connect via my WIFI connection

  3. Got the server working and logged in

  4. trying to run sudo apt-get update results in the following errors (sorry for crappy photo) Terminal window showing error messages


  5. Yes, I am located in Thailand.


  6. I am using a Zyxel Router

  7. ifconfig reveals my inet addr to me 127.0.0.1, localhost

I don't know if this is a configuration issue or related to my router not allowing me to create a server.



Hopefully my question isn't too vague. If anyone could direct me on where I might be going wrong that would be cool!



Thanks







14.04 server ssh internet






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 2 '16 at 0:01









Ryan McRyan Mc

313




313












  • What kind of server(s) are you trying to set up? Web? ssh? ftp? vpn?

    – Organic Marble
    Jun 2 '16 at 2:03











  • It's an SSH server as far as I'm aware. I'm using a LAMP stack and operating through SSH. Basically I want to be able to host websites on there

    – Ryan Mc
    Jun 2 '16 at 2:39












  • To access an ssh server from outside your lan, you need to forward the appropriate port in your router to your server pc. Otherwise connection requests stop in the router. then ypu need to determine what your external ip address is.

    – Organic Marble
    Jun 2 '16 at 11:38

















  • What kind of server(s) are you trying to set up? Web? ssh? ftp? vpn?

    – Organic Marble
    Jun 2 '16 at 2:03











  • It's an SSH server as far as I'm aware. I'm using a LAMP stack and operating through SSH. Basically I want to be able to host websites on there

    – Ryan Mc
    Jun 2 '16 at 2:39












  • To access an ssh server from outside your lan, you need to forward the appropriate port in your router to your server pc. Otherwise connection requests stop in the router. then ypu need to determine what your external ip address is.

    – Organic Marble
    Jun 2 '16 at 11:38
















What kind of server(s) are you trying to set up? Web? ssh? ftp? vpn?

– Organic Marble
Jun 2 '16 at 2:03





What kind of server(s) are you trying to set up? Web? ssh? ftp? vpn?

– Organic Marble
Jun 2 '16 at 2:03













It's an SSH server as far as I'm aware. I'm using a LAMP stack and operating through SSH. Basically I want to be able to host websites on there

– Ryan Mc
Jun 2 '16 at 2:39






It's an SSH server as far as I'm aware. I'm using a LAMP stack and operating through SSH. Basically I want to be able to host websites on there

– Ryan Mc
Jun 2 '16 at 2:39














To access an ssh server from outside your lan, you need to forward the appropriate port in your router to your server pc. Otherwise connection requests stop in the router. then ypu need to determine what your external ip address is.

– Organic Marble
Jun 2 '16 at 11:38





To access an ssh server from outside your lan, you need to forward the appropriate port in your router to your server pc. Otherwise connection requests stop in the router. then ypu need to determine what your external ip address is.

– Organic Marble
Jun 2 '16 at 11:38










3 Answers
3






active

oldest

votes


















1














You dont have an ip address. see https://help.ubuntu.com/14.04/serverguide/network-configuration.html



I couldnt find a good primer on ipv4 or routing to link you to. this one should get you started, http://computer.howstuffworks.com/internet/basics/question549.htm also look up how routers, and nat (network address translation) works.



you'll want to forward to traffic to your new server if you intend to reach it from outside your home network. the docs at netfilter.org can tell you how to do this.






share|improve this answer

























  • This doesn't work for me. I'm using wifi but the examples assume using ethernet. However, whatever command I run I get "Device not found" message. Here is an example of trying to create temp ip address: sudo ifconfig eth0 192.168.1.1 netmask 255.255.255.0 or sudo ifconfig wlan0 192.168.1.1 netmask 255.255.255.0

    – Ryan Mc
    Jun 2 '16 at 2:04



















1














Firstly you have to make sure that wireless interface is actually detected



sudo lshw -C network


If not, you need to install suitable drivers for the wireless card.



If it is detected, you need to make sure that wireless interface is listed in /etc/network/interfaces, look for lines or create them



auto wlan0
iface wlan0 inet dhcp


Then you'll need to connect to the wireless access point, actual steps depend on your wifi security, so i'll provide this link with some really nice instructions:



http://ubuntuforums.org/showthread.php?t=571188






share|improve this answer























  • Thanks, it turns out my wifi card is called wlp18s0b1. Crazy!

    – Ryan Mc
    Jun 2 '16 at 15:30


















0














This one work for my ubuntu server 16.04 with USB wifi adapter.
https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant





share








New contributor




Nyi Nyi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f780619%2fhow-to-connect-my-ubuntu-server-to-internet%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    You dont have an ip address. see https://help.ubuntu.com/14.04/serverguide/network-configuration.html



    I couldnt find a good primer on ipv4 or routing to link you to. this one should get you started, http://computer.howstuffworks.com/internet/basics/question549.htm also look up how routers, and nat (network address translation) works.



    you'll want to forward to traffic to your new server if you intend to reach it from outside your home network. the docs at netfilter.org can tell you how to do this.






    share|improve this answer

























    • This doesn't work for me. I'm using wifi but the examples assume using ethernet. However, whatever command I run I get "Device not found" message. Here is an example of trying to create temp ip address: sudo ifconfig eth0 192.168.1.1 netmask 255.255.255.0 or sudo ifconfig wlan0 192.168.1.1 netmask 255.255.255.0

      – Ryan Mc
      Jun 2 '16 at 2:04
















    1














    You dont have an ip address. see https://help.ubuntu.com/14.04/serverguide/network-configuration.html



    I couldnt find a good primer on ipv4 or routing to link you to. this one should get you started, http://computer.howstuffworks.com/internet/basics/question549.htm also look up how routers, and nat (network address translation) works.



    you'll want to forward to traffic to your new server if you intend to reach it from outside your home network. the docs at netfilter.org can tell you how to do this.






    share|improve this answer

























    • This doesn't work for me. I'm using wifi but the examples assume using ethernet. However, whatever command I run I get "Device not found" message. Here is an example of trying to create temp ip address: sudo ifconfig eth0 192.168.1.1 netmask 255.255.255.0 or sudo ifconfig wlan0 192.168.1.1 netmask 255.255.255.0

      – Ryan Mc
      Jun 2 '16 at 2:04














    1












    1








    1







    You dont have an ip address. see https://help.ubuntu.com/14.04/serverguide/network-configuration.html



    I couldnt find a good primer on ipv4 or routing to link you to. this one should get you started, http://computer.howstuffworks.com/internet/basics/question549.htm also look up how routers, and nat (network address translation) works.



    you'll want to forward to traffic to your new server if you intend to reach it from outside your home network. the docs at netfilter.org can tell you how to do this.






    share|improve this answer















    You dont have an ip address. see https://help.ubuntu.com/14.04/serverguide/network-configuration.html



    I couldnt find a good primer on ipv4 or routing to link you to. this one should get you started, http://computer.howstuffworks.com/internet/basics/question549.htm also look up how routers, and nat (network address translation) works.



    you'll want to forward to traffic to your new server if you intend to reach it from outside your home network. the docs at netfilter.org can tell you how to do this.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jun 2 '16 at 1:54

























    answered Jun 2 '16 at 1:41









    pixelpixel

    113




    113












    • This doesn't work for me. I'm using wifi but the examples assume using ethernet. However, whatever command I run I get "Device not found" message. Here is an example of trying to create temp ip address: sudo ifconfig eth0 192.168.1.1 netmask 255.255.255.0 or sudo ifconfig wlan0 192.168.1.1 netmask 255.255.255.0

      – Ryan Mc
      Jun 2 '16 at 2:04


















    • This doesn't work for me. I'm using wifi but the examples assume using ethernet. However, whatever command I run I get "Device not found" message. Here is an example of trying to create temp ip address: sudo ifconfig eth0 192.168.1.1 netmask 255.255.255.0 or sudo ifconfig wlan0 192.168.1.1 netmask 255.255.255.0

      – Ryan Mc
      Jun 2 '16 at 2:04

















    This doesn't work for me. I'm using wifi but the examples assume using ethernet. However, whatever command I run I get "Device not found" message. Here is an example of trying to create temp ip address: sudo ifconfig eth0 192.168.1.1 netmask 255.255.255.0 or sudo ifconfig wlan0 192.168.1.1 netmask 255.255.255.0

    – Ryan Mc
    Jun 2 '16 at 2:04






    This doesn't work for me. I'm using wifi but the examples assume using ethernet. However, whatever command I run I get "Device not found" message. Here is an example of trying to create temp ip address: sudo ifconfig eth0 192.168.1.1 netmask 255.255.255.0 or sudo ifconfig wlan0 192.168.1.1 netmask 255.255.255.0

    – Ryan Mc
    Jun 2 '16 at 2:04














    1














    Firstly you have to make sure that wireless interface is actually detected



    sudo lshw -C network


    If not, you need to install suitable drivers for the wireless card.



    If it is detected, you need to make sure that wireless interface is listed in /etc/network/interfaces, look for lines or create them



    auto wlan0
    iface wlan0 inet dhcp


    Then you'll need to connect to the wireless access point, actual steps depend on your wifi security, so i'll provide this link with some really nice instructions:



    http://ubuntuforums.org/showthread.php?t=571188






    share|improve this answer























    • Thanks, it turns out my wifi card is called wlp18s0b1. Crazy!

      – Ryan Mc
      Jun 2 '16 at 15:30















    1














    Firstly you have to make sure that wireless interface is actually detected



    sudo lshw -C network


    If not, you need to install suitable drivers for the wireless card.



    If it is detected, you need to make sure that wireless interface is listed in /etc/network/interfaces, look for lines or create them



    auto wlan0
    iface wlan0 inet dhcp


    Then you'll need to connect to the wireless access point, actual steps depend on your wifi security, so i'll provide this link with some really nice instructions:



    http://ubuntuforums.org/showthread.php?t=571188






    share|improve this answer























    • Thanks, it turns out my wifi card is called wlp18s0b1. Crazy!

      – Ryan Mc
      Jun 2 '16 at 15:30













    1












    1








    1







    Firstly you have to make sure that wireless interface is actually detected



    sudo lshw -C network


    If not, you need to install suitable drivers for the wireless card.



    If it is detected, you need to make sure that wireless interface is listed in /etc/network/interfaces, look for lines or create them



    auto wlan0
    iface wlan0 inet dhcp


    Then you'll need to connect to the wireless access point, actual steps depend on your wifi security, so i'll provide this link with some really nice instructions:



    http://ubuntuforums.org/showthread.php?t=571188






    share|improve this answer













    Firstly you have to make sure that wireless interface is actually detected



    sudo lshw -C network


    If not, you need to install suitable drivers for the wireless card.



    If it is detected, you need to make sure that wireless interface is listed in /etc/network/interfaces, look for lines or create them



    auto wlan0
    iface wlan0 inet dhcp


    Then you'll need to connect to the wireless access point, actual steps depend on your wifi security, so i'll provide this link with some really nice instructions:



    http://ubuntuforums.org/showthread.php?t=571188







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jun 2 '16 at 11:39









    TaaviTaavi

    31839




    31839












    • Thanks, it turns out my wifi card is called wlp18s0b1. Crazy!

      – Ryan Mc
      Jun 2 '16 at 15:30

















    • Thanks, it turns out my wifi card is called wlp18s0b1. Crazy!

      – Ryan Mc
      Jun 2 '16 at 15:30
















    Thanks, it turns out my wifi card is called wlp18s0b1. Crazy!

    – Ryan Mc
    Jun 2 '16 at 15:30





    Thanks, it turns out my wifi card is called wlp18s0b1. Crazy!

    – Ryan Mc
    Jun 2 '16 at 15:30











    0














    This one work for my ubuntu server 16.04 with USB wifi adapter.
    https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant





    share








    New contributor




    Nyi Nyi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
























      0














      This one work for my ubuntu server 16.04 with USB wifi adapter.
      https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant





      share








      New contributor




      Nyi Nyi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















        0












        0








        0







        This one work for my ubuntu server 16.04 with USB wifi adapter.
        https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant





        share








        New contributor




        Nyi Nyi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.










        This one work for my ubuntu server 16.04 with USB wifi adapter.
        https://www.linuxbabe.com/command-line/ubuntu-server-16-04-wifi-wpa-supplicant






        share








        New contributor




        Nyi Nyi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.








        share


        share






        New contributor




        Nyi Nyi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 2 mins ago









        Nyi NyiNyi Nyi

        11




        11




        New contributor




        Nyi Nyi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Nyi Nyi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Nyi Nyi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f780619%2fhow-to-connect-my-ubuntu-server-to-internet%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

            Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

            Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org