Tag Info

Hot answers tagged

38

I think you've already noticed that some sort of "server" is needed. Each client (desktop environment, window manager, or windowed program) needs to share the display with all of the others, and they need to be able to display things without knowing the details of the hardware, or knowing who else is using the display. So the X11 server provides the layer ...


35

If you want the X connection forwarded over SSH, you need to enable it on both the server side and the client side. (Depending on the distribution, it may be enabled or disabled by default.) On the server side, make sure that you have X11Forwarding yes in /etc/sshd_config (or /etc/ssh/sshd_config or wherever the configuration file is). On the client side, ...


32

The following will work only if vim --version indicates that you have +xterm_clipboard feature. If not, you will have to install extra packages or recompile vim with that feature added. There are actually two options for this: "+y copies to the "usual" clipboard buffer (so you can paste using Ctrl+V, right click and select "Paste" etc), while "*y ...


16

If you are using vim >=7.3.74, then you can actually put this in your vimrc: set clipboard=unnamedplus Which will automatically use the + buffer (the system clipboard) by default. Then to yank (copy), you just use the regular y command, etc. I found this behavior to be fairly annoying, though, as commands like d put the text they operate on into the ...


14

A window system does not have to have a server, but you can decide to implement window system based on a client-server model. Doing so has several advantages as you clearly separate the activities in the client and the server, they don't need to run on the same machine and it is more easy to service multiple clients. That is currently still very handy (e.g. ...


12

Linux graphics support has been a heavily mutating thing for most of the life of the kernel. Initially, the kernel only talked to the graphics card for text mode purposes. Back then, X used its drivers to do everything, so it worked as a huge kernel-outside-the-kernel. Later, with Direct Rendering Infrastructure (DRI), some of the code for accelerated ...


9

I find the standard "+gP and "+y commands very difficult to use. So I've remapped Ctrl-Y for yanking into the clipboard and Ctrl-P to paste from the clipboard. Add this to .vimrc nnoremap <C-y> "+y vnoremap <C-y> "+y nnoremap <C-p> "+gP vnoremap <C-p> "+gP


8

The display is the first argument to Xorg. You can ps then grep Xorg out. [braga@coleman teste_geom]$ ps aux | grep Xorg root 1584 5.3 1.0 156628 41708 tty1 Rs+ Jul22 22:56 /usr/bin/Xorg :0 -background none -verbose -auth /var/run/gdm/auth-for-gdm-a3kSKB/database -nolisten tcp vt1 braga 9110 0.0 0.0 109104 804 pts/1 S+ 00:26 0:00 ...


7

Xubuntu uses upstart, so you should use sudo service gdm stop or sudo service lightdm stop depending if you are using Ubuntu 11.04 (or prior) or Ubuntu 11.10.


7

A windowing system means that several independent programs share a common resource, the screen and input devices. Shared resources can only safely be implemented in two ways: The resource may be controlled by the kernel, and applications make kernel calls to access it. The resource may be controlled by a dedicated process (server), and applications contact ...


6

How does X-server calculate DPI? The DPI of the X server is determined in the following manner: The -dpi command line option has highest priority. If this is not used, the DisplaySize setting in the X config file is used to derive the DPI, given the screen resolution. If no DisplaySize is given, the monitor size values from DDC are used to derive the ...


5

I admittedly know nothing about CentOS, but usually F1 through F6 are reserved for TTYs; X sessions don't start until F7. Hitting Ctrl+Alt+F7 should get you back to the first X session


5

Cygwin X Faq states that they use getdtablesize : Cygwin/X queries getdtablesize() for the maximum number of client connections allowed; by default Cygwin returns 32 from getdtablesize(). Cygwin/X Server Test Series release Test44, released on 2001-08-15, changed the maximum number of clients from 32 to 1024 by passing the square of ...


5

As far as I know, starting with version 1.7, xorg defaults to 96 dpi. It doesn't calculate anything unless you specify DisplaySize via Xorg config files. Also, don't rely on xdpyinfo output. My laptop runs on Intel SandyBridge. Excerpt from my Xorg.0.log on a fresh Archlinux install: (==) intel(0): DPI set to (96, 96) running xdpyinfo | grep -E ...


5

However, I would love to know why ~/.Xauthority needs not to be owned by the root account in order to get past login with a regular user (in other words: why is that the reason for the login failure) Because X wants to write/replace that file when it starts your session. If you do not have write permissions on it, then it can't do that. do you have ...


5

I typically will use xev to determine the key's scancode and then map it to whatever action I want using either xdotool or XBindKeys. xev $ xev | grep -A2 --line-buffered '^KeyRelease' \ | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p' After running the above xev command you'll get a little white window that'll pop up. You'll ...


5

Besides InputClass there also exists a section called InputDevice which takes nearly the exact same options as InputClass. Of course you cannot use the Match* operators but have to give the device's path explicitly: Section "InputDevice" Identifier "touchpad" Driver "synaptics"   Option "Device" "/dev/input/event<X>" Option ...


5

This should do it: $ sudo apt-get install --no-install-recommends xserver-xorg-core \ xserver-xorg-input-all xserver-xorg-video-fbdev \ xserver-xorg-video-(yourcard, can be intel, nouveau, or ati)


4

Your rc.conf is not properly configured; the elipses (...) in the wiki are illustrative only. The rc.conf file is a shell script and arrays shouldn't contain those dots. Using that method is the deprecated way of loading modules. If you wish to continue to list them in this file, then you should use this format: MODULES=(wl lib80211 nvidia-bl) The correct ...


4

I don't know what the guys over at Cygwin/X are doing to make this fail. And I don't know why I cannot find any help or even mention of similar trouble anywhere in this galaxy that is within the reach of Google. I believe I am not the only one using the software, so the lack of help puzzles me. But let me provide a solution to my own question; I discovered ...


4

One way to do it is by adding a file called 10-synaptics.conf in the directory /etc/X11/xorg.conf.d (create the directory if it does not exist). In this file you can put something like Section "InputClass" Identifier "touchpad catchall" Driver "synaptics" MatchIsTouchpad "on" MatchDevicePath "/dev/input/event*" Option "MaxTapTime" ...


4

Take a look at this similar question over at superuser. Something like "xdotool key Home" End + Up in the .xbindkeysrc file should suffice. If you really want to try to use xmodmap, a start would be to map either the End key or the Up key to a modifier key in .Xmodmap. For example, you could grab your two keys with xev and map the End key to ...


4

.Xauthority is actually a security feature of X, the graphical system. It part of what prevents unauthorized access to your graphical session(s), key loggers or tracking mouse clicks for example. Security is a broad topic, and .Xauthority is one part of security mind you and covers local access, not necessarily tracking of mouse clicks by web sites ;) ...


4

Try xpra. This is similar to ssh -X, except it is faster and you can disconnect and re-connect to the session as many times as you like.


4

There are a few ways to output the user ID (UID) with ps; a simple one is with -f: ps -fC X Will give you information for all the X servers that are running (there can be more than one). This presumes that the executable is called X -- if there's no such process, you will have to target something else. Since it almost certainly at least has capital X in ...


4

Method #1 - Using xwd You could just use the command line tool xwd to grab the X displays like so: $ xwd -display :1 -root -out 1.xwd You could loop through 1 to 4 like so: $ for i in {1..4};do xwd -display :$i -root $i.xwd; done NOTE: The resulting .xwd files are a special type of X Windows dump file. $ file 1.xwd 1.xwd: XWD X Window Dump image ...


4

You're looking for headless with X. It's little bit described on ArchWiki, there's shown a way how to do this. There's another alternative to run headless X11 compatible server: Xvfb(X virtual framebuffer). It's a display server that performs all graphical operations in memory without showing any screen output. startx is just front-end for xinit which ...


3

This is similar to, though not an exact duplicate of, question 11623. Moving applications between X displays is possible; have a look at xmove, guievict, or xpra.


3

The closest thing you can get to that, as far as I know, is using rdesktop. You need a server-side application to get seamless mode applications though. (Plain RDP session doesn't require anything on the Windows host.)


3

Turns out I've been using the "generic" RPMs hoping it would just work, but it doesn't. "totaam" from winswitch chat helped me realize that, and turned me to the correct RPMs for my distribution. It now works fine.



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