New answers tagged

1

Run xprop _NET_WM_PID or xdotool selectwindow getwindowpid from a terminal then click on a window to see the process ID of the process that owns that window. (This works often but not always, see What process created this X11 window? for caveats.) One you have the process ID (e.g. 1234), ps -p 1234 -o args or ls -l /proc/1234/exe tells you what command the ...


0

First jeep is the serveur (ARM Archlinux without physical screen). My PC is under Archlinux. I try @Bratchley suggestion. I change X11Forwarding to yes in /etc/ssh/sshd_config and restart sshd.socket Works fine :) I can connect from PC with ssh -Y root@jeep If I launch lxterminal I have a terminal window on jeep :) But I need entire LXDE desktop of ...


0

So I create /etc/systemd/system/xvnc.socket [Unit] Description=XVNC Server [Socket] ListenStream=5900 Accept=yes [Install] WantedBy=sockets.target And /etc/systemd/system/xvnc@.service [Unit] Description=XVNC Per-Connection Daemon [Service] ExecStart=/usr/bin/x11vnc -display :0 -bg -forever -shared -rfbauth /home/odroid/.vnc-passwd -noxdamage -norc ...


0

Perhaps instead you could just use a separate dedicated X11 server for the application. This can be as simple as running Xnest :1 & and then running your app under DISPLAY=:1. However, the cursor is not shown unless the real cursor is in the window, and moving your cursor into the window will move the Xnest cursor. Another alternative is to start a ...


0

Use a name instead of a numerical ID. Run xinput list to see the available devices and xinput list-props to see a device's properties. See Make mouse movements scroll when the middle button is held down for examples. Alternatively, if this is your personal machine, you can set this up system-wide by adding a file in /etc/X11/xorg.conf. Again, see Make mouse ...


2

To kill all Gnuplot processes: pkill -x gnuplot If you want to kill just the Gnuplot processes that were invoked with the -persist option: pkill -fx 'gnuplot -persist.*' If you want to close the windows without closing the Gnuplot processes (I think that's useless here because closing the windows causes the Gnuplot processes to exit), you can use ...


1

If your ubuntu is not too old (? probably at least 15.04), you should have a command locatectl which on its own will list some current settings eg: System Locale: LANG=en_US.UTF-8 VC Keymap: us X11 Layout: us X11 Model: pc105 Note the values for layout, model, variant, and options if any and provide them to sudo localectl in that order, with ...


0

Connecting to an X11 display requires two pieces of information: the display name (normally passed in the DISPLAY environment variable) and the cookie, which is a password for the display that every application must show when connecting. Typically the cookie is stored in ~/.Xauthority, but it can be stored in a different file indicated by the XAUTHORITY ...


0

Turns out ssh doesn't like the way I set up my DISPLAY. Changing that environment variable (on Cygwin) to 127.0.0.1:0.0 solved the issue. It sure wasn't gonna like my DISPLAY since it had a typo. :0/0 instead of :0.0.


0

In your symbol (/usr/share/X11/xkb/symbols/XY) file, under your keyboard variant find the line { [ w, W,. These two, obviously, correspond to lower- and upper-case w. Now after them the third and fourth entries correspond to what you get when you press AltGr +w and AltGr+Shift+w respectively. You should just replace those third and fourth ...


0

I don't exactly understand the final sentence, question, but I can relate to the title of the question: "Remapping power key to delete". Try replacing any "XF86PowerOff" or just the one corresponding to your keyboard with "Delete" in /usr/share/X11/xkb/symbols/inet. You need to repeat this after a system update which updates that file.


0

I remembered the package ... it is called xcolorsel.


2

The question sounds a bit contradictory since you're citing X tools but ask for a solution that "ideally should work without X". About your 4th finding: xinput will give you the correspondence $ xinput list-props 11 Device 'AT Translated Set 2 keyboard': Device Enabled (145): 1 Coordinate Transformation Matrix (147): 1.000000, 0.000000, 0.000000, ...


1

You will need to get it to load a GTK theme (the default gnome one is adawita) You can try GTK_THEME=Adwaita then the command. Have you also looked at using x2go? It often gives better performance.


2

You're probably seeing the xauth timeout that ForwardX11Trusted no sets. You can change the length of the timeout with ForwardX11Timeout, but unfortunately you can't set that very long—it will crash the X server (or maybe just error out in newer Xorgs). See the question Disable ForwardX11Timeout without ForwardX11Trusted in OpenSSH Client? You can set ...


1

~/.xinitrc is executed by xinit, which is usually invoked via startx. This program is executed after logging in: first you log in on a text console, then you start the GUI with startx. The role of .xinitrc is to start the GUI part of the session, typically by setting some GUI-related settings such as key bindings (with xmodmap or xkbcomp), X resources (with ...


1

According to another discussion, startx + ~/.xsession and no ~/.xinitrc, results in reduced functionality (xfce4, sid) Firstly: .xsessionrc is for holding global environment variables. The emphasis is mine. Secondly: 40x11-common_xsessionrc in /etc/X11/Xsession.d is sourced before 50x11-common_determine-startup. So .xsessionrc is read before ...


2

The syntax :0.NUMBER specifies a screen number on display 0. The concept of screen was intended to describe multiple monitors on the same display, but an application can't be moved from one display to another, so it's been pretty much abandoned. Your monitors are all on screen 0, i.e. :0.0, which is equivalent to :0 since the only screen is the default ...


1

For completeness sake here is the naive / brute-force solution which I hoped is already implemented in some other utility. The fullyobscured notify-event in @Gilles link in the comment sounds very promising, but I wasn't sure how to get it to work, and this solution was also quite fun to implement. The script simply calculates the coverage area of all ...


1

Try fbida ? https://www.kraxel.org/blog/linux/fbida/ Under this discussion there appears to sometimes be a -noverbose option to display just the image without a status bar.


0

Well, i've already researched it and all answers were NO YOU CAN'T. Maximum i get was installing imagemagick package via apt-get install imagemagick command and running display imagefile.jpg, but under X11.


1

It's impossible to define such a shortcut unless the application supports it. The notion of selected text is entirely within the application, there's no way to access it from the outside, and there's no way to ask the application for the selected text (except by using some application-specific protocol). Many applications automatically copy the selected ...


0

I'm not aware of any secondary clipboard (other than having Clipman running — I use Xfce4). What I often do is select text and paste with the middle-click mouse button. Whenever I need two simultaneous (and convenient) copy/paste paths I select some text, either with the keyboard or mouse, press Ctrl + C, select some other text then use the middle click ...


1

shared Memory used (mostly) by tmpfs (Shmem in /proc/meminfo, available on kernels 2.6.32, displayed as zero if not available)> So the manpage definition of Shared is not as helpful as it could be :(. If the tmpfs use does not reflect this high value of Shared, then the value must represent some process(es) "who did mmap() with ...


1

shared Memory used (mostly) by tmpfs (Shmem in /proc/meminfo, available on kernels 2.6.32, displayed as zero if not available) tmpfs is swappable. You have tmpfs filesystem(s) which are being filled beyond safe limits. For comparison, the system I'm typing this on has 200M shared. 6G is too much on an 8G system running a desktop, with stuff like ...


0

As I understand it, you have to go through two levels of mapping. In the keycodes mapping you give "arbitrary" names (up to 4 chars inside <>) to the numeric scan-codes generated by the keyboard, then in the symbols mapping you say how that key name acts. So you need to have <ESC> = 9; <ESC2> = 180; then an xkb_symbols entry of key ...


1

If running the client in verbose mode (ssh -v user@host) gives you debug1: Remote: No xauth program; cannot forward with spoofing. but xauth is indeed installed on the server, then it is probably because sshd looks for xauth executable in wrong location (/usr/X11R6/bin/xauth usually). One can fix that by setting XAuthLocation /usr/bin/xauth in ...


4

You can disable X for a specific command line invocation by prefixing the command line with DISPLAY=: DISPLAY= gpg -d img0424.png.gpg That should give you the curses based pinentry interface instead of the GUI. But it is probably more efficient to download all the files with scp. The data volume transferred when displaying over X is likely to be more than ...


1

According to An Unreliable Guide to XKB Configuration, you can do this with an alias. That feature is used in xkb/aliases, so you should be able to do something like alias <ESC> = 9; alias <ESC> = 180;


3

The xterm manual shows an option which may help (added in patch #298 in 2013): -report-fonts Print a report to the standard output showing information about fonts which are loaded. This corresponds to the reportFonts resource. Also, appres is useful for showing what resources are used, e.g., ...


2

For occational use you could plug xtrace between your client and your server and make the client not see any extensions by using xtrace's -e switch: -e | --denyextensions Modify all server replies to say there are no extensions available. (As xtrace does supports only a small number of extensions anyway and calls all extended ...


0

I needed to add a dash when switching users in the console. So su - $ALTUSER instead of su $ALTUSER. The dash - is an alias for the -login option of su.


3

There are 2 sorts of hostname entries managed by xauth, local names such as myhost/unix:0 and remote names such as remote:0. The latter are held as ip addresses, but I imagine you are referring to the local names. The hostname part of these are not actually of any significance to X11, but can be used by the xdm tools to distinguish between several local ...



Top 50 recent answers are included