There's a nice little package called sux that does the Xauthority exporting
for you in a comfortable manner (only available in testing and unstable at
the moment):
$ apt-cache show sux|grep Description -A 30
Description: wrapper around su which will transfer your X credentials
Sux is a wrapper around the standard su command which will transfer
your X credentials to the target user.
.
http://sourceforge.net/projects/sux/
( from http://fgouget.free.fr/sux/ )
Just do sux <user> and you'll be able to start X applications.
Snapper
06-03-2005
> Can anyone tell me if it is possible to pass through the display
> variable to this new xterm
These lines should be placed in the .login or .profile:
TTTY=`tty`
if [ "$TTTY" != "/dev/console" ]
then
DISP=`who am i | awk '{print $6}' | sed 's/(//g' | sed 's/)//g'`
DISPLAY=$DISP:0.0
export DISPLAY
else
DISPLAY="127.0.0.1:0.0"
export DISPLAY
fi
$display
try something like
#!/bin/sh
tty=`tty | sed 's/.*pts/pts/'`
disp=`who -l | grep $tty | awk '{ print $NF }' | sed 's/[\(\)]//g'`
although this script needs some error checking; another option may be to use
ssh, which passes on the DISPLAY environment variable to the session _AND_ is
way more secure than a telnet session.
JJK
gnu who
$ who
tong dtremote May 24 15:37 (grace:0)
tong dtremote May 25 11:02 (chaos:0)
*N*:
-
who only list prime connection, not individual ptss
-
the diference of the (…) between remote login & telnet login
linux local local logon
root tty1 May 26 21:54
user tty2 May 26 21:56
void tty3 May 26 23:27
user ttyp0 May 26 21:56 (:0.0)
user ttyp1 May 26 21:57 (:0.0)
*N*:, the 1st three is not xterm logon.
documented on: 2000.04.20
Date: Wed, 25 Sep 2002 16:07:59 GMT
Newsgroups: comp.os.linux.x
> > I'm running LTSP on two boxes and it works great. I can't get straight to
> > my mandrake 8.2 and graphic login is there, I choose my window manager and
> > everything works well.
> >
> > I wanted to add a terminal on my windows machine so that I could also
> > reach the server. I installed cygwin and this script to start the Xwin
> > server:
> >
> > @echo off
> > if "%1"=="" goto noserver
> > goto allok
> > :noserver
> > echo Usage: xdm servername
> > goto end
> >
> > :allok
> > echo I'm here
> > set path=%PATH%;d:\cygwin\bin;d:\cygwin\usr\X11R6\bin
> > d:
> > chdir \cygwin\usr\X11R6\bin
> > XWin -query %1
> > :end
> >
> > I type in xdm 192.168.1.150 (address of the server) and all I get is the
> > grey screen with an X as if it cannot find the xdmcp server. When I put
> > in a fake ip address the xserver doesn't even start so I am inclined to
> > believe that the client and server are connecting but not negotiating a
> > login. Can anyone suggest anything to help?
> >
> > Stupid assumptions:
> >
> > XDMCP is working for both ltsp and microimages MIX so it should work for
> > cygwin.
> >
> > Since the ltsp is working well then I xdmcp should be working for this
> > server I should not need to add anything else to the Xaccess file.
> >
> > etc/hosts is not relevant on either the client or the server.
>
> Assuming that Cygwin's X server works the same way as XFree86 on unix, two
> things come to mind to check for: 1) make sure the program "chooser" is
> installed, and 2) make sure your Mandrake system is listed in the Xaccess
> file. See the section "CHOOSER" in the xdm(1) man page.
>
> Another thing you may want to try is starting Cygwin X, then go to the
> Mandrake system and run "xmessage -display <address of windows machine>
> Hello". If that fails, you may need to run xhost on the Windows machine
> first.
It took me a long time and looking at cygwin mailing lists, but finally I
found out 2 very important pieces of information for those who want to use
cygwin as a client on windows. One it prints a nice log of the x start. That
was the first benefit. Here I found that for some reason that escapes me,
cygwin was reporting to Linux that it was at 192.168.1.2xx (I can't remember
the exact address right now). In actuality it is on 192.168.1.111. So the
XDMCP was trying to respond to this ghost address. I then found a parameter
called -from. So when I created a simple shortcut in windows with this
syntax:
D:\cygwin\usr\X11R6\bin\XWin.exe -query 192.168.1.150 -from 192.168.1.111
It fired up beautifully. Really. Beautifully. Thanks for the help.
John
Newsgroups: gmane.linux.debian.user
Date: Thu, 02 Mar 2006 21:04:46 -0600
> I would like to set up an environment on my Debian system that is
> suitable for viewing and creating ANSI art, specifically the sort that
> was popular on bulletin board systems in the 90's.
>
> Based on what I could find on Google, these are usually intended for the
> so-called "extended ASCII" 8-bit character set that was used on IBM PC's
> and compatible systems running DOS.
You probably want one of these:
xfonts-terminus-dos - Fixed-width fonts for DOS encodings
xfonts-dosemu - VGA font for the DOS Emulator
If you want to use the console, 'man consolechars'. 'apropos console' for
other relevant commands.
You may also be interested in these packages:
aa3d - ASCII art stereogram generator aewan - ASCII-art Editor Without A
Name artwiz-cursor - artwiz futuristic mouse cursor for x11 ascii -
interactive ASCII name and synonym chart asciijump - Small and funny
ASCII-art game about ski jumping aview - A high quality ASCII art image
viewer and video player bb - ASCII-art demo based on AAlib
libaa1 - ascii art library
libaa1-dev - ascii art library, development kit msc - Generates simple
ASCII message sequence charts overkill - bloody 2D action deathmatch-like
game in ascii-art textdraw - Tool to draw/modify/move geometric figures &
text for ASCII art xfonts-mona - proportional fonts for 2ch ASCII art
John Hasler
environment for viewing/creating ANSI art?
> If you want to use the console, 'man consolechars'. 'apropos console'
> for other relevant commands.
console_codes
But its description of character sets is so vague that it could be deleted
without losing information.
Thomas E. Dickey
environment for viewing/creating ANSI art?
Andrew Cady <d@jerkface.net> wrote:
> The "dosemu" package includes the font that you want -- the very same
> one that came on the IBM-PC, with all the line-drawing glyphs and such.
vga
iirc, there's only one small size for it though (fine if you're used to
running X in 640x800 mode, but not useful for general purposes).
> The other problem is colors. I know that the 'rxvt' xterm clone allows
> each ANSI color to be set to an arbitrary RGB value using X resources.
hmm - yes: it implements the control sequences that xterm does. (regarding
repainting - ymmv).
> I don't know what the proper settings are, but I would not be surprised
> if the dosemu documentation was helpful in this respect. Unfortunately,
> rxvt does not support blinking.
xterm does
xterm supports ANSI color, VT220 emulation and UTF-8 There's an faq at
http://invisible-island.net/xterm/xterm.faq.html
ftp://invisible-island.net/xterm/
Thomas E. Dickey
Newsgroups: comp.os.linux.x
Exceed is a product of Hummingbird. I have used the trial versions of both
x-win-pro and X-win32 to connect to IBM AIX-6000 (PPC). I will recommend
x-win32 but you have to deal wit the 30_mins runtime per log on. The system
will shutdown requiring you to log back on. x-win-pro will let you go on for
1 hr or so before requiring a log off. You can download either of these at
http://www.tucows.com
A way to run Xterminal from dos machine?
Latest version of x-win32 runs for 2 hours without closing,
but warns you every 30 minutes.
If you want to use more than one client at once though, it's no good -
It's restricted to 1 copy per subnet at any one time.
Pity, it's the best I've seen..
Rasputin.