Red Hat / Fedora :: Pseudo-ttys - Both BSD And SVR5 Versions Seem To Be Incomplete
May 21, 2010
I'm trying to complete the porting to RHEL 5 of a commercial application that we've had running on AIX and SCO for decades. It originally ran on dumb-terminals, and even now runs on dumb-terminal emulators that run on Windows. We have thousands of customers, many of whom we'd like to migrate to Linux. We're pretty much done with the port, with the exception of this little glitch we're having with pseudo-ttys...
Our app utilizes pseudo-ttys, such that sub-portions of the application run under a screen manager that provides for screen-switching of multiple instances of the sub-apps on non-GUI terminals, some of which are still running serial. In this regard, it is not unlike the GNU "screen" program. However, it also supports file transfers over serial links using zmodem, and requires the ability to switch in and out of a fully 8-bit transparent mode where the screen switching keyboard commands must be ignored.
On AIX, we're using the BSD TIOCUCNTL (UIOCCMD) capability to send commands from the sub-app to the screen manager. TIOCUCNTL provides custom user ioctls and is an ideal way to solve the problem. It is not implemented on Linux, and the "alternative" of TIOCPKT does not provide arbitrary ioctls so at best we'd have to commandeer some of the existing TIOCPKT ioctls for our own use if that's even possible. TIOCPKT seems like a hack, it apparently was implemented not as a general mechanism but to solve problems specific to rlogin/rlogind.
SCO didn't support TIOCUCNTL either, so years ago we used the SVR5 alternative of putmsg/getmsg. This is a streams-based mechanism of sending control information over streams separate from the data. While RHEL 5 seems to have man pages indicating these commands exist, and in fact you can link programs using them to libc without errors, they are apparently stubbed out and return "function not implemented." This seems to be, according to this Wiki, due to certain Linux factions deeming that streams are "technically inadequate":
Certainly, I would agree that a streams implementation that is incomplete is undoubtedly "technically inadequate."
At the same time, it would appear that the SVR5 method of pseudo-tty is now the recommended implementation, the BSD one being "deprecated" (not to mention, also incomplete on Linux, given TIOCUCNTL is missing):
So here I am trying to figure out how to solve the problem. I have found a library that apparently implements the getmsg/putmsg commands for Linux, called libLiS. However, according to IBM, it has a problem with SELinux:
We've had to disable SELinux for other reasons anyway, so this is not a show stopper for us, and I am actively exploring using it as our solution. However, I've never been exactly crazy about the idea of depending on disabling security features to make something work. But, there's something to be said for the compatibility it would offer for our apps.
However, it occured ot me that we are probably not the first to have this problem, and was wondering if perhaps there is another solution that we should consider.
It has occured to me to use named pipes, but this would be rather ugly--we'd have to maintain a directory full of hundreds of named pipes, probably named after the associated ptys that the sub-apps could use to issue control commands to their screen manager, and the manager would have to monitor these pipes for commands, etc.-- certainly possible, but it seems like it might be re-inventing the wheel a bit, or at the very least, is a somewhat kludgy work-around to the apparent lack of any user-customizable control mechanisms in the pseudo-ttys. And we'd have to support it in addition to the code for the other methods since those platforms aren't going away anytime soon (SCO death-throes notwithstanding).
View 1 Replies
ADVERTISEMENT
Nov 18, 2009
So after deciding to upgrade the existing fedora install on my laptop from 11 to 12, I decided to use the preupgrade method. After grappling with the boot space issue by clearing out an old kernel that was deemed safe to remove by the python script on the preconfig wiki page and then using tune2fs, I left the computer to do it's thing, periodically checking back on it. I come back to my computer, and after an apparent restart I see this message spat out at me:
Code:
ramdisk: incomplete write (3537 ! 5123)
write error
kernel panic - not syncing : VFS : unable to mount root fs on unknown block (0,0)
I need this laptop up and running for tomorrow and I would appreciate any help given. I have a Fedora 11 live CD running on the laptop and there seems to be an extra 210 filesystem present with the folders efi, grub, lost+found in there, as well as some config files, elf-memtest86+-400, what seems to be .img file amongst other things. If necessary, I can provide a screenshot.
View 11 Replies
View Related
Dec 10, 2010
I make it a habit to review the logwatch reports regularly. I have been seeing this one from Anacron lately. I'm not sure exactly when it started, but it has been going on for a while now and started after the F13 to F14 upgrade. I have searched and tried to find out what it means, but have come up empty. This is the report:
[Code]....
Is this something that is just spurious and can be safely ignored? If this isn't, how do I go about fixing it?
View 6 Replies
View Related
Feb 24, 2009
Is it possible, a torrent download from end of incomplete downloaded after halt of restart ?
View 3 Replies
View Related
May 26, 2010
i'm currently using puppy linux 431. and i want to replace it with fedora LXDE but i encounter this error upon booting using livecd.
Quote:
RAMDISK: incomplete write (XXXXX!= XXXXXX)
write error
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
View 11 Replies
View Related
Jul 8, 2011
I installed XFCE on a machine built with the FC 15 LXDE based live CD using yum groupinstall XFCE. I got a usable XFCE session, but after a period of use, some things have gone missing. The windows don't have minimize,resize and close icons on the top bar. The settings selection for "Window Manager Tweaks" doesn't start any program. The programs that are open in the users session are not saved, even though that option is checked. Can this be explained by corruption of a single file somewhere? Or should I re-install XFCE again.
View 4 Replies
View Related
Jun 21, 2010
I can't switch from tty to tty. When I start up (I use startx for X) I can't even switch from tty1 to any other tty at all. When I'm using KDE, and I switch to a tty I have to use Ctrl-Alt-F*. When I do, it switches to the tty and after that I can't switch back to X or any other tty.
View 9 Replies
View Related
Mar 9, 2010
I have searched the web, tried getting support on IRC, and even tried some drastic measures that I came up with on-the-fly, but could not get satisfactory results.After installing the 2.6.31-20 kernel, I have noticed, that virtual terminals ( or whatever should I call those. The ones that are accessed by ctrl+alt+[function_key]) stopped loading. When I open any of them I only see a cursor and nothing else. I can take almost no actions: the only two things that actually work are changing between terminals and ctrl+alt+delete.
Eventually, I gave figured out, that this happens because getty is not launched automatically. After running appropriate command, each terminal can be recreated for the current session. Tried fixing this by creating a script that would run that command on each startup, but could not actually make the script to be executed (I tried making rc to run it, as I need these terminals to be present when GUI is not yet activated).Right now, I see two possible solutions: either make them autoload like they are supposed to, or work out a way for that script to be ran on startup. So, any ideas?Ah, yes. Also, the GDM now loads on tty2. Will it give me problems if it continues like that?
View 9 Replies
View Related
Apr 14, 2010
I have a laptop which has only one serial port.
I went into:
How do I know which of those "ttyS" refers to my serial port?
View 2 Replies
View Related
Jul 7, 2010
[Arch Linux] This has been mildly annoying ever since I installed Arch. From X, I can switch to any of my ttys, using Ctrl+Alt+FN. But when I'm in a console, that key combination does nothing, and I have to restart X11 to get back.
View 13 Replies
View Related
Jan 9, 2011
Occasionally when I start typing into a text box, it will not enter text until I go to another window or text box and click back in. This seems to happen at random without any pattern or to any specific applications more than others. I can still use alt-tab and similar commands, so I know it's not the hardware. I am running Ubuntu 10.04 Lucid Lynx using a Microsoft Multimedia keyboard and I am running SCIM for Japanese input, but I almost always have it set to English, and it can be set t
View 12 Replies
View Related
Apr 21, 2011
what is short cut key to toggle between pseudo terminals in red hat? how can i create customized short cut keys in red hat?
View 2 Replies
View Related
Apr 19, 2010
I'd like to know how to leave only tty1 and 2 and permanently disable others. (I'm running Lenny/i386).
View 4 Replies
View Related
Jan 24, 2011
I use mpssh or pssh to issue commands to multiple servers. Problem is that some of the commands require pseudo terminal and won't work with these tools. This will work just fine: "ssh -t user@server command" as stated under SSH man: -t = Force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g., when implementing menu services.
Multiple -t options force tty allocation, even if ssh has no local tty. So, is there a workaround for the above tools? Or is there any other tool for multi server administration that will work? If you are not sure what I am talking about just try executing "ssh user@server top" and "ssh -t user@server top" to know exactly the difference.
View 13 Replies
View Related
Jan 30, 2010
Perl has the concept of pseudo virtual files where data can be appended to the end of the script, & Perl will treat it as a legitimate source of data:
Code:
$ cat pseudo_file.pl
#!/usr/bin/env perl
use strict;
while (<DATA>) {
print; }
__DATA__
1
2
3
$ perl pseudo_file.pl
1
2
3
$ _
I would really like to be able to do something similar in a Bourne shell script where I don't have to manage a collateral text file which is prone to getting lost. Does anyone know if there is a similar construct in shell programming? I would have thought this feature was a remnant that Perl inherited from its shell programming roots, but searching on the Web has revealed nothing of consequence.
View 11 Replies
View Related
Jun 30, 2011
I'm not to clear on the difference between LTS versions and other versions, but think I may want to go with LTS. Can someone tell me if my thinking is correct given the following situation: I have some very cool, but very expensive software installed with a group license from my school, a school which I am not going to be attending for too much longer. So I want to go as long as possible without reinstalling Ubuntu, because once the product is licensed it will be licensed until I reinstall Ubuntu (or I uninstall the program). So I think this is going to require me keep the Ubuntu version I install as long as possible.
So in this case, should I go with 10.04LTS or should I just install Natty Narwhal and keep that as long as possible? It looks like 10.04LTS will be "supported" longer, but I'm not exactly clear on all that "supported" entails. Presumable it means security and software updates will be available for 10.04LTS for much longer than 11.x versions? So I'm thinking I should go with 10.04LTS
Is my thinking correct in going with 10.04LTS? Edit: It was pointed out that this would be against my contractual agreements. Which I suppose is probably true.
View 8 Replies
View Related
May 13, 2010
I am using 9.10 and my ability to "ctrl + alt F-dey" to a ttys shell no longer is available after running an update. 10.04 has the same bug. Getty is installed and I can not figure out what happened.
How do I get ttys back?
View 3 Replies
View Related
May 11, 2011
Specifically, I'd love to know what the valid values of:
And, where I can find this information? I've always wondered if it was documented somewhere, or if there was an interface into the kernel to query for it.
View 1 Replies
View Related
May 3, 2010
After the 10.04 upgrade all my CTRL-ALT-F1-6 terminals are squished up at the top of the screen. it's as if the vertical was pushed all the way to the top. You can't read anything. Here's a picture of it.http://imgur.com/7FKGoI'm running Nvidia binary drivers and everything seems to work great otherwise but I can't even find one person with this issue. I tried IRC already but no luck there yet. vga=795 is set in /etc/default/grub which is the correct res and depth
View 5 Replies
View Related
Jun 6, 2010
Fresh install of Ubuntu 10.04, Gnome session fails to start. Gnome-failsafe and XFCE work great. xsession-errors: [URL].... i also cannot switch between ttys, if i do video becomes blured to the point of unreadable. I think this is an issue with X. I have tried the generic kernel (non-pae) with noapic and apci=off with no results.
View 3 Replies
View Related
Nov 26, 2010
I've been able to write a basic script that opens a terminal a lil messagemy issue, i want it to open its pseudoterminal as soon as i log into GUIthe script:
Code:
#!/bin/bash
if [ $1 = "start" ]
[code]...
View 1 Replies
View Related
Sep 26, 2010
On my terminal only system ( no Xorg or guis ) I have a font rendering issue. In place of some symbols ( eg double-lines and some other miscellaneous line-drawing shapes) are generic diamonds. Attached is a fbgrab ( png format ) of elinks showing the problem. I have now configured elinks to only use single lines drawing characters ( which work fine ) for now as a work around. Here is my /etc/default/console-setup
Code:
# Change to "yes" and setupcon will explain what is being doing
VERBOSE_OUTPUT="no"
# Setup these consoles. Most people do not need to change this.
ACTIVE_CONSOLES="/dev/tty[1-6]"
[code]....
The numbers in the FONTFACE show the size of the font matrix. For example Lat2-Terminus20x10.psf is a font for codeset Lat2 with size of the font matrix 10x20 (i.e. 10 columns and 20 rows). If the number of columns is 8 then only the number of rows is specified. For example the font matrix of Armenian-Fixed15.psf has size 8x15.
In text video mode or if you use the RadeonFB kernel module only fonts whose font matrix has 8 columns can be used (that is the size should be a simple NUMBER rather than a NUMBERxNUMBER combination). The other fonts can be used only with framebuffer video modes and with the package 'kbd'. The console package 'console-tools' can not be used
with such fonts.
THE TERMINUS FONT:
The aim of the Terminus font is to reduce the eyes-fatigue when one has to read a lot. Currently this font supports only the Latin, the Cyrillic and the Greek scripts (the Lat15, Lat2, Lat7, CyrAsia, CyrKoi, CyrSlav, Greek, Uni2 and Uni3 codesets). The fonts with font face TerminusBold and size 14 or 16 are optimized for 8 pixels width glyph matrix (in most cases this means framebuffer). The fonts with font face TerminusBoldVGA and size 14 or 16 are optimized for 9 pixels width glyph matrix and can not be used with
framebuffer video modes.
The fonts with font face Terminus and size 14 or 16 can be used both with 8 and 9 pixels width glyph matrix. In the regular text video modes the width of the glyph matrix is 9
pixels. If you use the package svgatextmode then the width is 8 or 9 pixels and you probably know it. The Terminus font in this version of console-setup is version 4.26.
View 7 Replies
View Related
Jun 16, 2010
Just wanted to share a script that I wrote to migrate data off of a Time Machine backup. As anyone who's tried this knows, it's not straightforward because most directories are pseudo-hardlinked according to some hare-brained scheme Apple came up with. (Hard-linked directories actually show up as zero-length regular files with bizarre link counts greater than 128. The link count corresponds to a directory called "dir_$N" (where $N is the link count) inside of a special directory at the root of the Time Machine volume called ".HFS+ Private Directory Data^M" (where the ^M is a literal carriage-return character).)
Here's the script (it's also attached, for convenience). It works pretty much the same as "rsync -av <SRC_DIR> <DST_DIR>" would, if the pseudo-hardlinks weren't in the way. In other words, it just recursively copies the first directory to the second. So the first argument (the source directory) is typically something like
/media/<TIME_MACHINE_VOLNAME>/Backups.backupdb/<HOSTNAME>/Latest/<VOLNAME>
if you want the entire latest backup. It can also be a relative path, if you've already changed to a directory inside the backup.
[Code]....
View 2 Replies
View Related
Mar 7, 2009
install of Fedora, always used Debian or Ubuntu before now, and am looking for versions of localepurge, deborphan and debfoster - do they exist in the Fedora Software Repository?
View 10 Replies
View Related
Mar 17, 2011
How do I know the exact kernel version (or rpm package name) of fedora 14 without having to install one? I couldn't find the information on the the website. And one more question. Does one fedora distribution has only one kernel available all the time? Where can I find all the kernels for a particular distribution (for example Fedora 12) distributed by Fedora Project? I can find all the available kernels for a RedHat Enterprise distribution on [URL], but not for Fedora.
View 1 Replies
View Related
Jan 17, 2010
i wanna install older versions of fedora(10 or 11), and after looking everywhere, i found that if you search the available mirrors through the download page. This allows you to select mirrors with the version you want. I didnt know if that was the way to get older versions or if there is another way.
View 2 Replies
View Related
Mar 11, 2010
When yum updates the kernel it keeps the last 3 versions; the older kernels are deleted. Is there a way to keep more than 3 versions?
I presently have one working version and two which are not compatible with my machine. One more bad version and my system will be toast. (I would like to keep the "bad" versions for testing.)
View 2 Replies
View Related
Oct 7, 2010
I have been at this for awhile and i need to know which direction to go to enguage this problem.I am trying to get jnlp files to open automatically in chrome / firefox. Before you flame me, i have followed the instructions on the above "handy yellow link" to get java installed and set up.My goal is to click on "draw" at this link and have it open and run automatically in Chrome. [URL].. Nothing seems to happen when i click the link. From what i understand, i need jre 1.6. I sucesfully installed it from:[URL]..
I ran the alternative commands in the "handy yellow link" and selected 1.6. When i run "yum install java" i get the output: Package java-1.5.0-gcj-1.5.0.0-32.fc13.i686 already installed and latest version
Nothing to do Probably just an alternative command that i'm unaware of, but i cant find a simple fix.
View 10 Replies
View Related
Jun 6, 2011
For my work it is extremely useful to have multiple versions of gcc available. I've done this in the past under Ubuntu simply by enabling alternative or older repositories but in Fedora land I've not been able to find a standard automated way of doing this. Can anybody point me in the right direction?
View 13 Replies
View Related
Mar 9, 2011
I've setup .htpasswd and a .htaccess file.
The password is a0bc0def0g3
If i enter that password, it let's me in.
if i enter a0bc0def0g it also works. I've never seen this before and is totally weird.
View 3 Replies
View Related