Tag Info

Hot answers tagged

4

When you run ssh -X remotehost and you get DISPLAY=localhost:10 presented to the remote host. ssh listens on that port and forwards traffic back to the calling system, using its original value of DISPLAY to determine the server address. It's probable that on your local system you've got DISPLAY=:0. Or if you haven't, that's what it's being defaulted as. ...


2

Have you set DISPLAY environment variable on the client? I'm not sure which shell you are using, but with Bourne shell derivative (like bash), please try: export DISPLAY=127.0.0.1:0 ssh -X marko@vm Or if you're using cmd.exe: set DISPLAY=127.0.0.1:0 ssh -X marko@vm


2

Your second problem seems to be an issue with tmux and the evaluation of certain AppleScripts through osascript. There's a wrapper you can install which should fix the problem. You'll want to install reattach-to-user-namespace through Homebrew or MacPorts and wrap the call to osascript: reattach-to-user-namespace osascript -e 'display notification "Hello, ...


2

First a misconception: any selected text is immediately sent to the clipboard Actually text is never "sent" anywhere until it is requested by a receiving application. When you select text, the application only claims the selection, which means basically that it raises a flag to say that from now on it owns it. Now on to your question: In X11 there ...


2

I wrote a tool which returns the plain application name (e.g. 'Terminal', 'gedit' or 'SmartGit' which are the ones I tested). Most code is shamelessly stolen from @Harvey here. // gcc clipboard-owner.c -lX11 -o clipboard-owner #include <stdlib.h> #include <stdio.h> #include <string.h> #include <X11/Xlib.h> #include ...


1

I figured out that xmodmap was the correct solution here. In the .Xmodmap file, turn off shift, then add right shift as mode switch and add left shift as shift: clear Shift keysym Shift_R = Mode_switch add Shift = Shift_L Now the order of the first few keysym columns is key, left_shift+key, right_shift+key. So for my parentheses example: keycode 18 = 9 ...


1

Which distribution and package manager? Most of them have a history/undo which will allow you to recover the removed packages or at least see a list of what you removed. For yum that would be: to see a list of entries in the history: $ sudo yum history to see the action that took place in an entry: $ sudo yum history info 33 to undo these actions: $ ...


1

I don't think the OpenBSD console supports fonts for multibyte encodings. In principle it might be possible to support them in relation to the recent drm(4) code, but I don't think anybody is working on that. You might want to ask on an OpenBSD list for an authoritative answer.


1

Indeed, Graphics.X11.ExtraTypes.XF86 does not appear to provide an XF86XK_AudioMicMute KeySym. Either this was an oversight (maybe the MicMute key keysym was added after the Haskell module was written) or an intentional decision (perhaps because the Mic Mute key is so uncommon). Either way, luckily, there is a way to bind keys in Haskell without a KeySym: ...


1

Every Firefox user is associated with a profile. This profile basically contains all the preferences, history, bookmarks etc. When Firefox starts, it puts a lock on the profile. This ensures that no other Firefox process uses this profile. But, this doesn't mean that there can be only one instance of Firefox. It just means there can be only one instance of ...


1

Not sure if this is some bug related to wine in combination with some or all window managers... But I finally found one working solution for my needs: startx <(echo ssh -X myRemoteLinuxIP wine notepad) which runs wine application as single-app without window manager. And keyboard is finally routed inside the program.


1

I just ran into this problem connecting to a headless RHEL7 server. You need the xorg-x11-xauth package installed on your host in order for the DISPLAY variable to get set, and to be properly authorized. Hope I saved somebody some time.


1

Shared memory is a mechanism to exchange rendered image without having to use sockets, the protocol works something like this: X client create the shared buffer, X client tell the server that's where you will find the images i create, the server "attach" itself to the shared memory and refresh whenever there is an update, this mechanism is 10x of socket ...



Only top voted, non community-wiki answers of a minimum length are eligible