Hot answers tagged

104

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 ...


58

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.


48

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: ...


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 ...


13

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 ...


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-...


9

sudo sh -c "TERM=linux setterm -foreground black >/dev/tty0" sudo sh -c "TERM=linux setterm -clear all >/dev/tty0" This will change the font color to black, than clears the screen. Or in a single line: sudo sh -c "TERM=linux setterm -foreground black -clear all >/dev/tty0" And set it back to normal: sudo sh -c "TERM=linux setterm -foreground ...


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

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


9

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 ...


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

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 ...


7

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.


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

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


6

If you're using vino for the VNC portion of xrdp (rather than vnc4server), you could follow these instructions to enable session sharing: Log in to your Pi and install the Vino Package $ sudo apt-get install vino Next Run X11 $ startx Once that is done you can run the vino-preferences from the terminal. $ vino-preferences Configure it like you want ...


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

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

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

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-...


5

First of all, you should be able to access your Pi via its hostname, like raspberrypi.local. Second, you should make an entry in your .ssh/config file for the Pi: Host raspberrypi User pi Hostname raspberrypi.local Compression yes ForwardX11 yes This will enable X11 forwarding for the host with hostname raspberrypi.local (replace with IP if you ...


5

You need to install x11vnc daemon on the linux distro with runs on Pi. Then run that command; x11vnc -display :0 -usepw -noxdamage -ncache 10 -ncache_cr -listen IP_of_pi -allow allowed_ip_address After ran the command, connect to pi with any VNC client.


5

You have a few options. PHP As long as we have python and .NET we must also have PHP. And as long as you got a LAMP installed then this is pretty straightforward. Here is a example of PHP getting emails from GMAIL PROS - More likely choice for anybody using Linux as there are many examples and libraries. CONS - If you don't like PHP you wills still use it ...


5

The Problem seems to be the incomplete USB Descrioptors: Couldn't open device, some information will be missing Report Descriptors: ** UNAVAILABLE ** The Descriptor that could be read say that this is a Mouse. bInterfaceProtocol 2 Mouse And that there would be a Descriptor of 20 Bytes that describes the data format: bDescriptorType ...


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.


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