📂 Go to https://yesik.it/EP26 to download the files used in this video, so you can practice on your own system
▼ Links, time markers and a ton more in the description below.
====
HOW TO OPEN A LINUX SESSION OVER BLUETOOTH?
====
Opening a session on your Linux system through a Bluetooth radio link? Whether this is a requirement for your next IoT project, a mean to access your system from your smartphone or just a fun experiment, you will see it is much easier than you might think!
▶ 🎬 Watch the video now: "How to open a Linux Session over Bluetooth?"( • How to open a Linux Session over Blue... )
The getty program [or actually agetty(https://linux.die.net/man/8/agetty) on Linux systems] is the traditional tool used to open a session on a Unix-like system from a text console. Historically, getty was used to connect dumb serial terminals (teletype, or tty) to a mainframe system. Today it is still used to provide local login from the host text console. However, thanks to Unix uniform handling of devices, it can also be used to open remote sessions through a wide range of devices. This is commonly used in the embedded world to allow login through a TTL or RS232 serial port, but you can attach the getty program to any communication device, as long as it presents a stream interface.
So, using the rfcomm(https://linux.die.net/man/1/rfcomm) tool provided as part of BlueZ, the official Bluetooth stack for Linux, we will emulate a serial port, both client-side and server-side. Then we will only have to attach the getty program on that virtual serial port on one end of the link, and a terminal emulator of the other end, et voila: remote login through Bluetooth.
The video will also show you how you can create a systemd service to automatically enable remote login over Bluetooth, something you may find useful on IoT devices or headless systems. And for better interoperability, I also show how to use sdptool(https://linux.die.net/man/1/sdptool) to advertise your newly created Bluetooth end-point so you can use any standard Bluetooth serial console client to log into your Linux system. But if you plan to use such a solution in production, I need to warn you: some tools used here are deprecated in the latest releases of BlueZ. Unfortunately, as of today, there is no direct replacement. Also, watch the video up to the very very last image: there is a hint to remind you we are talking here about clear text communication over the air. But with a little bit of curiosity, you may find a solution to that latter issue.
----
HOW IS IT RELATED TO OTHER VIDEOS?
----
Even if the solution described here can be used with most Linux systems, I am using a Raspberry Pi as my remote system in the video. Mostly because this is a low-cost and readily available single board computer ideal to experiment with. The board was installed as described in a previous video:
▶ How to install Raspbian Headless and Wireless(https://www.yesik.it/EP19)
The only difference is I disabled SSH on the Raspberry Pi to make it clear we will log in to the board without ever using the IP network. And of course, since SSH was disabled, I had to plug a keyboard and monitor on the board to enter the first few commands.
----
TIME LINKS
----
If you don’t have the time to watch the video entirely, here are few links to jump directly to the section that interests you the most:
▶ Deprecation warning( • How to open a Linux Session over Blue... )
▶ Login over Bluetooth: theory of operations( • How to open a Linux Session over Blue... )
▶ Introducing my remote system( • How to open a Linux Session over Blue... )
▶ Modifying the default Bluetooth systemd service to make the device descoverable( • How to open a Linux Session over Blue... )
▶ Scanning for Bluetooth devices from the client( • How to open a Linux Session over Blue... )
▶ Manually attaching getty to the Bluetooth link server-side( • How to open a Linux Session over Blue... )
▶ Attaching the screen terminal emulator to the Bluetooth link client-side( • How to open a Linux Session over Blue... )
▶ First login over Bluetooth( • How to open a Linux Session over Blue... )
▶ Creating a service to automatically enable login over Bluetooth( • How to open a Linux Session over Blue... )
----
SHARE TO HELP ME REACH MY NEXT YOUTUBE MILESTONE!
----
It’s a lot of work to maintain this channel, and the only thing I can take joy in from what I do is seeing more subscribers and the channel growing. That’s why I’m asking you to recommend and share the following links on your favorite social media and websites. Thanks!
👍 Subscribe to my YouTube channel: "Yes I Know IT"(https://yesik.it/youtube?sub_confirma...)
🎬 Watch the video: "How to open a Linux Session over Bluetooth?"( • How to open a Linux Session over Blue... )
#Bluetooth #Linux #Login #RaspberryPi #YesIKnowIT
Watch video How to open a Linux Session over Bluetooth ? Yes, I Know IT ! Ep 26 online without registration, duration hours minute second in high quality. This video was added by user Yes, I Know IT ! 18 November 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,240 once and liked it 110 people.