Score:0

Is there a package that provides /sbin/consoletype?

sz flag

Is there a ubuntu package that provides /sbin/consoletype? https://linux.die.net/man/1/consoletype

Thank you

user535733 avatar
cn flag
You can answer this for yourself using the search feature of http://packages.ubuntu.com
turtle avatar
sz flag
I tried that and no results, any help is appreciated. https://packages.ubuntu.com/search?keywords=consoletype&searchon=names
guiverc avatar
cn flag
You've not provided any OS/release details; some CLI tools can look further than the aforementioned URL, but CLI command varies on release (Ubuntu Core Server will use different commands to Ubuntu Server, but you've not provided specific details on product/release). Do note *consoletype* is *deprecated* so may not exist if your release is recent.
turtle avatar
sz flag
Oh sorry i just updated the question to add the OS version, I figured consoletype is a very generic
muru avatar
us flag
`/etc/sysconfig/` is not used in Ubuntu - that's more on the RHEL side of the family. So I wouldn't expect it to be available or even work in Ubuntu.
waltinator avatar
it flag
Ubuntu 16.04 has passed its End-Of-Life date, and is no longer supported on AskUbuntu.
turtle avatar
sz flag
Ahh duly noted I am doing some Extended Security Maintenance on a server before a planned upgrade. I figured its supported till 2026 https://ubuntu.com/16-04
user535733 avatar
cn flag
Extended Security Maintenance is exactly what it says on the tin: Security patches. But nothing else -- no bugfixes, no community support.
turtle avatar
sz flag
Duly noted no community support for Extended Security Maintenance
Score:1
sz flag

Consoletype appears to be a system V init program and is not provided on Ubuntu, consoletype from Gentoo appears to work:
https://gitweb.gentoo.org/proj/gentoo-functions.git/tree/consoletype.c

To compile

gcc -o consoletype consoletype.c

I put it in /opt and it works YMMV

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.