The X window system (commonly X Window System or X11, based on its current major version being 11) is a computer software system and network protocol that provides a basis for graphical user interfaces (GUI) for networked computers.

learn more… | top users | synonyms

19
votes
4answers
39k views

Open a window on a remote X display (why “Cannot open display”)?

Once upon a time, DISPLAY=:0.0 totem /path/to/movie.avi after ssh 'ing into my desktop from my laptop would cause totem to play movie.avi on my desktop. Now it gives the error: No protocol ...
21
votes
1answer
844 views

How do keyboard input and text output work?

Suppose I press the A key in a text editor and this inserts the character a in the document and displays it on the screen. I know the editor application isn't directly communicating with the hardware ...
14
votes
3answers
3k views

Reattach to lost X11 session

I'm using X11 forwarding over ssh to run Linux apps on my Windows box, and when the network drops it loses everything that was running. Is there anything similar to screen for X11?
16
votes
1answer
560 views

Shortcut keys that are independent to keyboard layout

Is there a way to define an association of a particular physical key of the keyboard to some action, independently of the letter that this key is associated to in any layout? Example: In most ...
19
votes
5answers
5k views

What process created this X11 window?

Given an X11 window ID, is there a way to find the ID of the process that created it? Of course this isn't always possible, for example if the window came over a TCP connection. For that case I'd ...
6
votes
2answers
738 views

How to share the clipboard betwen bash and X11

In this thread the top answer shows how to copy text that has been previously selected with the mouse on a gnome-terminal, to the clipboard in X11. My question is: Say I copy a piece of text from the ...
5
votes
2answers
589 views

Isn't $HOME supposed to be the location of the user's home directory?

I'm having trouble with a web application I'm writing: The web application, which runs as user nobody, needs to launch an inkscape process to manipulate some SVG files. Because this runs as user ...
21
votes
4answers
13k views

How to speed up X over SSH on a slow network connection?

Are there any specific recommendations on speeding up X applications over ssh on a slow network connection? In this specific case, I am accessing a server located in west coast from a laptop in east ...
17
votes
4answers
15k views

What is “.xsession” for?

What is the purpose of the .xsession file in the home folder? What should be put in there? The desktop environments don't use that file and for the X startup from the tty there is .xinitrc.
10
votes
2answers
776 views

Manipulating X key and pointer grabs on the command line

What command line tools exist to list and manage X server grabs? (That's grab as in key and pointer grabs, i.e. restricting the use of a particular key or mouse button to a particular application, or ...
9
votes
2answers
2k views

Detach/reattach an application run on X over SSH?

I have a development server that I leave running all the time, and a development laptop that I turn off/on everyday. I have a GUI application on the server that I'd like to run over SSH -X, and I'd ...
16
votes
4answers
5k views

Setting the window dimensions of a running application

I'm trying to start an application within Ubuntu (xfce or gnome) and via the command line and was wondering if there's a generic way to set the dimensions of a given window of a given app that is ...
9
votes
1answer
3k views

Copy file to xclip and paste to Firefox

I'm coping file to xclip cat file.txt | xclip I'm pasting without problem with xclip -o When I want to paste it to Firefox with Ctrl+V it pastes old text (that shouldn't already be in the ...
14
votes
3answers
5k views

How do I find the window dimensions and position accurately including decorations?

I've been trying to figure out the size of a window for use in a small script. My current technique is using wmctrl -lG to find out the dimensions. However, the problem is this: The x and y figures ...
9
votes
4answers
3k views

Reassign Ctl and Alt keys - xmodmap error

I am attempting to remap my keyboard in order to make emacs usable - my ergonomic keyboard puts its single Control key in an isolated 4-key island way off to the left. The OS is debian squeeze. Here ...
4
votes
3answers
333 views

Screenshot of non active window

How to take a screen shot of non active window? If I have 2 windows, I want to capture the screenshot of the one which is running in the background.
6
votes
2answers
552 views

Custom xkb layout in which one key creates two unicode code points

I am writing a new custom keyboard layout for Xorg, but there is one particular glyph which does not exist in Unicode. It is, however, easy to create it by using a standard letter plus a combining ...
4
votes
2answers
600 views

Is there a way to simulate a “Close” event on various windows using the terminal?

I answered on Ask Ubuntu Quit all instances of gnome-terminal via a command but as you all can read gnome-terminal didn't seems to have a SIGcall I could use to simulate this "Close" event. So this ...
3
votes
2answers
532 views

Java doesn't show menu text

I startet netbeans/intelliJ/squirrelSQL after I didn't use it for a few days/weeks and now the menu doesn't show text. There are just the underlineds. My system: ArchLinux (everything up to date, ...
3
votes
1answer
3k views

How to start a second X session?

I tried to do it with the command startx 1. It seemed to flicker to a different screen momentarily, but then exited. Got the following error: /usr/bin/xterm: No absolute path found for shell: :1 ...
3
votes
2answers
4k views

Accessing Linux server from Windows machine in graphical mode via SSH

I need to access one of my school Linux servers from my home computer that runs Windows. And I need to access graphical desktop (X server) on them remotely, not only shell. The problem includes 3 ...
3
votes
2answers
2k views

How to access X display from a cron job when using gdm3? [duplicate]

Possible Duplicate: Open a window on a remote X display (why “Cannot open display”)? I'm trying to run a cron job that needs access to my X session. I know my X session will ...
2
votes
2answers
4k views

Cannot connect to X server :0.0 as superuser

When I am online, I get following error and the tool does not start: [root@dhcppc9 lin64]# ./ise No protocol specified _pn: cannot connect to X server :0.0 But everything is OK when I am not a ...
6
votes
2answers
8k views

X client forwarded over SSH “cannot open display: localhost:11.0”

I have enabled X forwarding on remote machine where SSH server is running: # grep -i forward /etc/ssh/sshd_config X11Forwarding yes # On local machine, I have started SSH client with -X flag ...
4
votes
2answers
64 views

Tuning keyboard (dead key) functionality in X

My preferred keyboard configuration is US-International. When I use it on MS-Windows and type certain special characters (i.e., ~ ' ") followed by a, o n I get á ó or ñ as I wish. However when I type ...
3
votes
1answer
104 views

After upgrade, X button in titlebar no longer closes xterm

In theory, pressing the close button should close an xterm. It did before I did an aptitude upgrade. (I'm running Debian testing). But now it doesn't—clicking the X does nothing—but only for some ...
3
votes
2answers
4k views

How to configure xorg.conf for widescreen VNC on headless Linux/Ubuntu?

I have a Ubuntu 12.10 Box configured to run headless. I've managed to boot X headless by a lot of trial and error but I still have a glitch: When booting using the monitor, it all works ok, widescreen ...
2
votes
2answers
773 views

Why won't my X Server won't start as a regular user?

X won't start on my main machine. I can start it as root, but then it only logs me in as root -- I can't use my regular user account. When I start up, it flashes a black screen, then hangs at ...
1
vote
1answer
58 views

osx server, windows client, running emacs opens it on server not client

I've installed emacsformacosx on my OSX box. I'd like to shove my macmini in a data center and run it headless. I've gotten x-windows working. If I run xeyes, it displays on my Windows 7 client. ...
1
vote
1answer
281 views

how to send keyboard signal using a shell script

I have an application in graphical interface that when I run it, it's not opened in full screen mode, but when I use the keyboard shortcut Alt+Ctrl+M , it becomes fullscreen, I want to change the ...
13
votes
3answers
2k views

How can I use just one unified clipboard? (even for IntelliJ's “copy path”)

I don't really understand the linux clipboard/s scheme. Instead of understanding it, is there a way to simplify it into one, unified clipboard? You know, so I could copy in any app and paste in any ...
10
votes
2answers
879 views

Record every keystroke and store in a file

I need to record every keystroke and store in a file in the user directory ~, when using my account, I am not sudoer and I cannot install programs (like logKeys) in any way. How could I do so using ...
22
votes
5answers
15k views

How to get keycodes for xmodmap?

I'm trying to use xmodmap to remap Alt / Super keys on Dell L100 keyboard, and have trouble getting the keycodes. For instance, using xev doesn't give me keycode for Alt FocusOut event, serial 36, ...
11
votes
2answers
10k views

How to use keyboard instead of mouse middle-click for copy/paste? [duplicate]

Possible Duplicate: Pasting X selection (not clipboard contents) with keyboard Is there a shortcut for copy-paste under X? I'd like to use the keyboard for pasting.
10
votes
3answers
3k views

How to get near-perfect screen recording quality?

Someone suggested I direct a copy of the unmodified X display to a file and afterwards convert that file to a general purpose video file. What commands would I use to do this on a Kubuntu system? ...
3
votes
1answer
504 views

What process created this window with no PID associated? [duplicate]

Possible Duplicate: What process created this X11 window? I need to kill a process that spawned a window which seems to have no PID associated with it. At least that is what xdotool says: ...
14
votes
5answers
835 views

How to make X less sensitive when right clicking?

Whenever I right click in X, I almost always seem to trigger the first option in the menu unless I am thinking about what I am doing because I: Mouse down; menu appears Accidentally drag mouse 1-3 ...
6
votes
1answer
8k views

~/.xinitrc not being run

I am not able to run my ~/.xinitrc (~/.xsession) scripts when logging into my computer. I'm using Xubuntu 12.10 with vanilla lightgm as the login manager. Both these files have the right permission ...
6
votes
1answer
4k views

Xvfb or Firefox throwing errors & gratuitously logging

per the answer to this question, I'm running Xvfb to make a virtual display so firefox will run on my CentOS server. (I don't need to see firefox or do any actual key or screen input/output with ...
5
votes
1answer
494 views

Understanding linux desktop

I use debian wheezy xfce and want to set up my desktop. But I read some settings are redundant. Hence I want to understand how everything works, but I am massively lost. Can someone please sort, ...
4
votes
3answers
219 views

How many clipboards are in system? [duplicate]

I was recently thrown there from the windows world and I'd like to ask some questions about clipboards in Linux (and Unix?) systems. What is X clipboard? How many clipboards are in Linux? Actually, ...
8
votes
1answer
805 views

How can I find out if the ~/.XCompose file has loaded?

I've added a simple sequence, but it won't work. How can I find out if the OS (Ubuntu 12.10 with Unity) is actually loading the file?
5
votes
2answers
12k views

Debian: very low resolution and an “unknown monitor” problem

Edit: I have installed CrunchBang (or #!, a Debian-based distro), and that seems to have solved all of my resolution problems. I've just installed Debian after using Linux Mint for a few months. ...
5
votes
0answers
226 views

How to disable select-on-release right mouse button in Linux [duplicate]

We are having issues with mouse behavior in Linux. In Windows: In any application, to open a context menu and select an option: right mouse button down + release move the cursor to an option left ...
5
votes
2answers
5k views

How can I run a separate X session on a different physical display?

Here's what I need to do. I need to be playing a movie over HDMI to a television screen for my friends while I'm hacking on some personal projects over VGA to a smaller monitor. It's imperative that ...
4
votes
3answers
5k views

How do I change currently selected keyboard layout from command line?

I have my keyboard layouts (two of them) and switching between them configured via the following command: setxkbmap -layout us,ru -option -option "grp:lctrl_lshift_toggle,ctrl:nocaps" Now I want to ...
1
vote
2answers
3k views

Why can't I run GUI apps from 'root': “No protocol specified”?

I installed debian onto my machine last night. Now, I don't understand why I can't run GUI apps from a terminal when running as root. For example: sudo -i glxgears Generates the following output: ...
6
votes
1answer
76 views

How to make a key simulate another key?

In my keyboard the I key doesn't work. So, I use an on-screen keyboard. I'm using Ubuntu 13.04. But its hectic. Is there a way so that I can make another key (for example Home on my keypad) to behave ...
6
votes
1answer
486 views

Is there a command such as xwininfo, xdpyinfo, xprop, or xlsclient that will tell me what font an X client window is using?

I'm trying to find a command that will report what font a given X window is configured to use. Does such a command exist? Looking through these tools I did not see an option that would give me this: ...
6
votes
1answer
3k views

How can I set mouse sensitivity, not just mouse acceleration?

I can't find a single desktop environment that supports setting both mouse acceleration AND mouse sensitivity. I don't want any mouse acceleration, but I want to increase the speed of my mouse. That ...