Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Serial over Bluetooth - 'Inappropriate ioctl' error

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
neilneil2000
Posts: 6
Joined: 2017-08-28 07:40

Serial over Bluetooth - 'Inappropriate ioctl' error

#1 Post by neilneil2000 »

Hi, I have configured rfcomm to allow me to connect a console session over bluetooth. This seems to be working reliably, however I get the following errors at login. I have searched everywhere and can find others with the same problem but no solution.

Code: Select all

-bash: cannot set terminal process group (XXX): Inappropriate ioctl for device
-bash: no job control in this shell
XXX varies depending on when the job starts.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Serial over Bluetooth - 'Inappropriate ioctl' error

#2 Post by pylkko »

What device are you connecting to?

neilneil2000
Posts: 6
Joined: 2017-08-28 07:40

Re: Serial over Bluetooth - 'Inappropriate ioctl' error

#3 Post by neilneil2000 »

A Raspberry Pi Zero W

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Serial over Bluetooth - 'Inappropriate ioctl' error

#4 Post by pylkko »

But if you just press enter do you get a normal prompt anyway?

neilneil2000
Posts: 6
Joined: 2017-08-28 07:40

Re: Serial over Bluetooth - 'Inappropriate ioctl' error

#5 Post by neilneil2000 »

I do, but there are various other impacts of this not being correctly set. Like having to tell sudo to accept a password from stdin.

RChadwick
Posts: 3
Joined: 2019-03-04 20:25

Re: Serial over Bluetooth - 'Inappropriate ioctl' error

#6 Post by RChadwick »

Did anyone ever find a solution to this? I have the exact same problem, on a Raspberry Pi Zero W, using Kali.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Serial over Bluetooth - 'Inappropriate ioctl' error

#7 Post by GarryRicketson »

This is not Kali user forums, nor is it Raspberry fruit farm , it is

Debian User Forums, and no Debian is NOT kali linux.

RChadwick
Posts: 3
Joined: 2019-03-04 20:25

Re: Serial over Bluetooth - 'Inappropriate ioctl' error

#8 Post by RChadwick »

Well, isn't Kali based on Debian?
Kali is a bit irrelevant. Forget I said Kali. I meant to say Debian. I had a temporary mind melt. I was asking because I had the exact same symptom, and wanted to know if anyone has found an answer to this Debian problem.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Serial over Bluetooth - 'Inappropriate ioctl' error

#9 Post by GarryRicketson »

Ok, well in that case to get some information that is needed about your system, if you have 'inxi' use

Code: Select all

$ inxi -F
and please show us the output, if you do not have inxi,

Code: Select all

# apt install inxi
===edited====
Please , do NOT modify/edit any of the information in the inxi output, if it is not accurate and exactly as it shows, any solutions, if there are any, might also not work.
Postby RChadwick » 2019-03-04 15:53
Well, isn't Kali based on Debian?
It might be based on Debian, but no it is NOT the same as Debian, please do not waste everyone's time trying to BS us, if it is Kali you need to read the kali documenation and ask there on the kali forums, there are some things that must be done differently on kali, especially related to network services,bluetooth,etc,.....
from: https://docs.kali.org/introduction/shou ... kali-linux ---snip---Network services disabled by default: Kali Linux contains systemd hooks that disable network services by default. These hooks allow us to install various services on Kali Linux, while ensuring that our distribution remains secure by default, no matter what packages are installed. Additional services such as Bluetooth are also blacklisted by default.

RChadwick
Posts: 3
Joined: 2019-03-04 20:25

Re: Serial over Bluetooth - 'Inappropriate ioctl' error

#10 Post by RChadwick »

Thank you for the help. Here's the output:

Code: Select all

System:    Host: kali Kernel: 4.14.93-Re4son+ armv6l bits: 32 Console: tty 0 Distro: Kali GNU/Linux 2019.1
Machine:   Type: ARM Device System: Raspberry Pi Zero W Rev 1.1 details: BCM2835 rev: 9000c1 serial: 0000000097f0c515
CPU:       Topology: Single Core model: ARMv6-compatible v6l bits: 32 type: UP
           Speed: 700 MHz min/max: 700/1000 MHz Core speed (MHz): 1: 700
Graphics:  Device-1: bcm2708-fb driver: bcm2708_fb v: kernel
           Device-2: bcm2835-hdmi driver: N/A
           Display: tty server: N/A driver: N/A tty: 166x35
           Message: Advanced graphics data unavailable in console for root.
Audio:     Device-1: bcm2835-hdmi driver: N/A
Network:   Device-1: ICS Advent DM9601 Fast Ethernet Adapter type: USB driver: dm9601
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: 00:e0:4c:53:44:58
           IF-ID-1: wlan0 state: down mac: 8e:bd:d4:5b:93:aa
Drives:    Local Storage: total: 59.48 GiB used: 6.77 GiB (11.4%)
           ID-1: /dev/mmcblk0 model: SN64G size: 59.48 GiB
Partition: ID-1: / size: 57.68 GiB used: 6.74 GiB (11.7%) fs: ext4 dev: /dev/mmcblk0p2
           ID-2: /boot size: 60.9 MiB used: 30.5 MiB (50.1%) fs: vfat dev: /dev/mmcblk0p1
Sensors:   Message: No sensors data was found. Is sensors configured?
Info:      Processes: 69 Uptime: 1m Memory: 433.2 MiB used: 49.2 MiB (11.4%) Init: systemd runlevel: 5 Shell: bash
           inxi: 3.0.32

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Serial over Bluetooth - 'Inappropriate ioctl' error

#11 Post by GarryRicketson »

RChadwick wrote:Well, isn't Kali based on Debian?
Kali is a bit irrelevant. Forget I said Kali. I meant to say Debian. I had a temporary mind melt. I was asking because I had the exact same symptom, and wanted to know if anyone has found an answer to this Debian problem.
You meant to lie, and say Debian, but it is not Debian:

Code: Select all

System:    Host: kali Kernel: 4.14.93-Re4son+ armv6l bits: 32 Console: tty 0 Distro: Kali GNU/Linux 2019.1 
You need to read the documentation on kali linux, and ask them about the procedures to enable blue tooth. There actually is a topic on that on their forum.

Post Reply