Hot answers tagged

112

All raspberry devices MAC addresses started with B8:27:EB (for RPi4 B they start with dc:a6:32, replace where appropriate). So, on *nix systems, this can be accomplished by executing the following command: nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}' where 192.168.1.* will be your local network mask. You will get an answer like: Nmap ...


66

If you're running MacOS or Linux, try this one: $ arp -na | grep -i b8:27:eb On windows, you can use: arp -a | findstr b8-27-eb On RPi 4B, you need to use different string for comparision (dc:a6:32:be:95). You can check it on your RPi by ip -br link There will be entries for each network card. eth0 is cable internet, wlan0 is the WiFi.


55

If you want to login as root using SSH or WinSCP you need to edit the config of SSHD, do this: Login, and edit this file: sudo nano /etc/ssh/sshd_config Find this line: PermitRootLogin without-password Edit: PermitRootLogin yes Close and save file reboot or restart sshd service using: /etc/init.d/ssh restart Set a root password if there isn't one already: ...


18

later I found out another solution to make it work for Remmina 0.9.99.1. You can change the security authentication for the VNC server to be VNC Password instead of Unix password and create an admin user credentials so you can use it in the remote connection as the following: On VNC Server side on Raspberry Pi 3 Go to the options on the VNC Server on ...


14

To make the answer a little more explicit, here are all the steps I took to get it working: On the raspberry pi Install tightvnc server (designed to support lower bandwidth) sudo apt-get install tightvncserver Configure vnc desktop with screen resolution and color depth vncserver :1 -geometry 800x600 -depth 24 On the mac Enable the native vnc client ...


12

As @lenik's answer says, your TV needs to support CEC. I installed a compiled version of libcec which included the command line utility cec-client from SourceForge using the following commands: wget http://sourceforge.net/projects/selfprogramming/files/libCEC.deb/libcec_2.1.0-1_armhf.deb/download -O libcec_2.1.0-1_armhf.deb sudo dpkg -i libcec_2.1.0-...


12

I use mDNS/Bonjour to give my Pi a local name like pi.local. I dont need to know it's IP address and this works for shortcuts and when you need to embed a link... How and Why to assign a local name to your Pi


10

I can switch my TV on using the following command: irsend SEND_ONCE LG_AKB72915207 KEY_POWER This is how I set it up. Hardware Setup I am using a Raspberry Pi P1 2011.12. The bare Infrared LED connected to GPIO#18 and GND. Installing lirc sudo apt-get install lirc -y Update /etc/modules sudo nano /etc/modules And add the following lines which ...


9

A couple of things to try: Are you able to ping the Raspberry Pi from the windows machine, open a command prompt and enter ping 192.168.0.198 (but with the IP address you are using for SSH), if you get replies the connection is good, if not there is a networking problem preventing SSH working Did you set-up SSH using raspi-config, or did you set it up ...


9

Ok I solved this problem by adjusting the display options in Raspi-config. Using the following: sudo raspi-config Advanced Options > Resolution > DMT Mode 85 1280x720


8

Check to make sure your SSH config is set to listen on all interfaces. This will ensure that if the system boots and only WiFi is available, it will listen on the WiFi interface. I suspect this is ok based on your above description, but it is worth checking anyway. The other thing I would do is watch the boot process via a monitor (if possible, or via dmesg ...


8

omxplayer now has an option to set the background to black. omxplayer -b It works both on the terminal and in X. This feature should be in the current version available in raspbian.


8

If you want to use a GUI application for it, you can use Yakala tool (https://github.com/mozcelikors/yakala) for Debian/Ubuntu. This tool helps you not only search for available Type B and Type C networks, but also helps you to directly SSH into the network: sudo add-apt-repository ppa:mozcelikors/yakala sudo apt-get update sudo apt-get install yakala or ...


8

I've just encountered the issue too. As an alternative to aibrahim's method if you are doing it remotely via ssh, here's my steps to VNC to display :0. Setup password using sudo vncpasswd -service Add the following lines to /root/.vnc/config.d/vncserver-x11 as described in RealVNC: Support legacy viewers SecurityTypes=VncAuth UserPasswdVerifier=VncAuth ...


7

you need a TV set that supports CEC (Consumer Electronics Control) protocol over HDMI. it might be a good idea to consult your TV manual or company web site to find details regarding your particular case, also quick search for "TV_model + CEC" might give you a few pointers. basically, if your TV set is made just a few years ago, there's a good chance you ...


7

By default the raspberry's name is raspberrypi. You can just 'ping raspberrypi' and the ICMP echo reply gives you the IP address. It worked for me. Make sure though the DHCP server is reachable as the raspberry's NIC is by default in DHCP client mode. Otherwise the raspberry gets an APIPA address.


7

simulate this circuit – Schematic created using CircuitLab Assume you have a Raspberry Pi connected to your Router at home. Normally your router will give IP addresses to all devices attached to it. In my example the Router assigns to the Raspberry Pi the IP of 192.168.0.101 This IP is only visible in your internal Network and not from the World ...


6

What you would need to do is create a reverse SSH tunnel. You would have to configure the Pi to do this before you place it at the remote locations. What happens is the Pi creates a connection from inside the network. With normal NAT that is considered safe and the connection is established and any data that comes back is routed to the correct IP. Some ...


6

Someone already implemented a module for LIRC (http://aron.ws/projects/lirc_rpi/). Just connect the sensor to the gpio pins. lirc_rpi is already present in current raspbian builds. The only thing you need to take into account is that some IR-sensors don't work on 3.3volt. Here a detailed explanation of how I added remote control to my pi (my orignal post at:...


6

For your system-level watchdog, I was going to suggest building a hardware watchdog. There are connections on the RPi board (the P6 header) which you can short to reset the device. You could connect this to a countdown timer chip, and have your app regularly use the GPIO pins to reset the timer. If your app stopped working for too long, the countdown would ...


6

You cannot login as root because Raspbian does not have a root password. See Raspbian root default password Normally ssh does not allow root access because this is considered a security risk. You should be able to do everything you need using sudo (which is the normal Debian practice). If you REALLY want ssh root access it can be enabled.


6

The simplest solution is to install RealVNC Viewer. You can download it from here, and it is available for Linux, MacOS and Windows. The issue is with the encryption schemes used by different VNC servers.


6

You can use VNC. It's is a graphical desktop sharing system to remotely control another computer. If you have Raspbian Jessie or later, VNC Connect is pre-installed. To enable VNC: Go to your Raspberry Pi > Open the application menu > Preferences > Raspberry Pi Configuration > tab Interfaces > Enable VNC If not, install VNC server manually : sudo apt-...


6

0x5344 from the oemid means SD as in SanDisk. Type is probably not easy; I guess it is their internal name. Read more at https://www.cameramemoryspeed.com/sd-memory-card-faq/reading-sd-card-cid-serial-psn-internal-numbers/


5

I would like to know if the reset pin is an okay method of starting the Pi assuming it was properly halted. There isn't actually a pin, but there are two holes at P6 on the rev. 2 board (~1cm left of the HDMI jack) that if shorted together will reset the power. You can attach a switch to this.


5

You may want to use the usbnet driver (usbnet homepage) which allow you to map USB port as they were Ethernet port. Then you can route traffic through your USB port and therefore ssh your RPi by the mean of a regular USB cable.


5

In linux and MAC, you can also type in "arp - a" in the terminal and you can get a list of connected devices, look for the one with B8 in it, example: 192.168.4.5 @ B8... will be the raspberry pi IP.


5

I use the free Fing app in my android smartphone. It scans the network and shows the connected devices by type, including Raspberry Pi, as well as scanning available ports. Handy to see if SSH, web or VNC are enabled and running.


5

TeamViewer cannot be used on the Raspberry Pi at this time. They do not have a build for it. You can install a VNC server, and that would be your simplest option. You would have no issues connecting on your LAN, however if you wanted to connect remotely, you would need to set up port forwarding. An alternative to port forwarding would be to use a NeoRouter ...


5

You can install and run piControl, a Node.js web application to shut down or reboot your Raspberry Pi. More info here. To make your Raspberry Pi reachable from the Internet, you should give it a static IP address on your local network, and forward the public HTTP default port (80) to the local IP address of the Raspberry Pi.


Only top voted, non community-wiki answers of a minimum length are eligible