1

I am using the following link :https://thepi.io/how-to-use-your-raspberry-pi-as-a-wireless-access-point/ to set up my raspberry pi to act like a wireless router. So far I have installed raspbian on a sd card. I don't have access to an external monitor or a keyboard. I have access to a ubuntu laptop. I want to use the commands on the tutorial to set up the pi but how do I connect to pi in the first place. This is the first time I am doing this and I have no idea. I have an ethernet cable and wifi access that is again provided by a raspberry pi that was already set up by somebody else. How can I connect to the raspberry pi in the terminal to execute the commands? Thanks!

4
  • 4
    Your question is unclear. The Pi makes a poor router and if I wanted to setup an Access Point I would follow the Foundation tutorial. Your first task should be to configure Raspbian. See How to set up networking/WiFi You COULD follow "Headless Raspbian WiFi Setup" but it is better to connect to your router via Ethernet.
    – Milliways
    Commented Jan 26, 2019 at 7:16
  • Okay the thing is I have a terminal that says my username. How do I connect to the pi so that I can get pi@raspberrypi or something like that so that I can control the pi from my laptop terminal and use the commands.
    – Crypton99
    Commented Jan 26, 2019 at 7:25
  • In other words how do I ssh into a headless pi. I have an ethernet cable if it helps.
    – Crypton99
    Commented Jan 26, 2019 at 7:51
  • ssh [email protected] or ssh pi@<ip address of your pi>.
    – jake
    Commented Jan 26, 2019 at 13:44

1 Answer 1

1

ENABLE SSH

SSH is what you're looking for. If you connect your RPI ethernet port to your router you can use arp -a (linux, mac) to see all IP addresses on your network. You will likely see your pi as pi (192.168.1.15) or something along those lines.

Once you find the pi IP you can connect to the raspberry pi using the ssh command. When connecting to the raspberry pi a prompt will ask you for a password (it is usually raspberry on raspbian OS).

ssh [email protected]

If this doesn't work, SSH might not be enabled. You can take your SD card and put create an empty file with the name SSH at the boot directory.

3
  • When I execute apr -a on my Raspberry Pi I get: -bash: apr: command not found. Did you mean ip a? But this only shows the IP addresses of the local interfaces not all IP addresses on the network.
    – Ingo
    Commented Feb 12, 2019 at 21:49
  • forgive me typo. try arp -a Commented Feb 13, 2019 at 15:34
  • Ah.. you mean asking the local arp cache. But this will not give you all IP addresses on your network. It will only show addresses that where addressed the last 5 minutes. If you haven't addressed the RasPi the last 5 minutes (e.g. with ping) it isn't shown in the arp cache. Using nmap seems to be better.
    – Ingo
    Commented Feb 13, 2019 at 19:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.