Tag Info

New answers tagged

0

Remote GUI (X11) connections go through TCP port 6000+n where n is the display number¹. So the two messages refer to the same problem: some program tried to connect to display 12 and failed. Emacsclient doesn't make X11 connections, Emacs does. So if you see this message, it means Emacsclient managed to contact Emacs and tell it to open a new frame. ...


0

This thread helped me a lot, but there were a lot more steps than what's described in the answer so I thought I'd leave a comment with the details steps that worked for me. Use the “Driver Manger” app in “System Settings” to select “nvidia-346” as the driver (not “nvidia-346-updates”). Click “Apply Changes”. Once the application is done processing nothing ...


0

Regarding the font size, in lxterminal you could set the default font to the size you want, although this would apply to all terminals. If you were using gnome-terminal you could set up a profile with the desired font size and pass it in using the flag --window-with-profile, but I don't see any related options in lxterminal. If you don't want this to be ...


0

On my (standard) Ubuntu environment I got the xterm over ssh failure message "... suid-root program..." (see above), even with all the proper forwarding settings. This behavior went away a soon sshd is configured to use only IPv4, because of an X11 forwarding bug in SSH if IPv6 on the system is disabled. vi /etc/ssh/sshd_config AddressFamily inet service ...


0

I've found a solution. It turned out that it is a setting that can be changed with xrandr. To get back the correct aspect ratio in all modes, the following line works: xrandr --output DVI-I-1 --set 'scaling mode' None Here DVI-I-1 is the DVI port my monitor is connected to; that's easily found out by calling xrandr without options. In order to have this ...


0

In ~/.ssh/config have something like this: Host server1 HostName server1 ForwardX11 yes User username


3

You don't need (and don't want) xhost +. Just update (or create) your .ssh/config file with the following for the equivalent of -X: Host * ForwardX11 yes Or for the equivalent of -Y: Host * ForwardX11Trusted yes This will affect your connections to all hosts. You can of course use something other than * to limit these configurations changes to ...


0

urxvt don't seem to be the problem here (I'm using urxvt too). Maybe awesome blocks this key sequence. Try to open urxvt alone (without awesome). To do this open another tty (ctrl-alt-fN) and type something like xinit urxvt -- :1, and try the key sequence. If this doesn't show results, try to change to sh, for example, and test again. I was in a similar ...


3

X11 uses two buffers: PRIMARY and CLIPBOARD. To copy/paste to the CLIPBOARD buffer you can often use CTRL-C and CTRL-V. You can insert to the PRIMARY buffer by selecting a text and paste from it by pressing the middle mouse button. If you want to use the CLIPBOARD buffer, put this in your ~/.Xresources file and use Ctrl+Shift+C and Ctrl+Shift+V to ...


1

Turns out, I didn't account for the fact that X11 has two buffers: primary and clipboard. My text from xterm was copied into primary buffer, while I needed it in clipboard buffer. I was able to fix the problem by installing parcellite package, launching it and configuring it to synchronize two buffers.


0

Open xterm and highlight the text you want to copy. Go to the application in which you wish to paste and hover the mouse cursor over the field you want to paste in. Click the scroll button on your mouse. (on laptops this can be done by pressing left and right click at the same time) When you highlight text, it copies the text to your primary buffer. Keep ...


0

I use the following settings in Mint 17.2 + Cinnamon, but I think it works in your environment as well. xinput list # to get the id of your mouse xinput list-props 10 # to list the properties of your mouse xinput set-prop 10 'Device Accel Profile' -1 # turns off mouseaccel xinput set-prop 10 'Device Accel Constant Deceleration' 1.5 # settings the sens I ...


0

I found a way to turn Caps Lock into Shift Lock, thanks to a Super User answer: xmodmap -e "keycode 66 = Shift_Lock" The following turns my left Ctrl key into shift lock: xmodmap -e "keycode 37 = Shift_Lock" To make the left Shift key lock, use xmodmap -e "keycode 50 = Shift_Lock" Right Shift key, use xmodmap -e "keycode 62 = Shift_Lock" When ...


1

On Ubuntu 14.04 I did the following: 1) Installed uim using the Software Manager, other packages like uim-xim, uim-gtk2, uim-gtk3 and uim-qt are auto installed. See https://launchpad.net/ubuntu/+source/uim. 2) Defined environmental variables by adding the next lines to ~/.profile, this way the custom compose key sequences only apply to the current user: # ...


0

You can use the --newmode option of xrandr to add the mode to X; then you can use the --addmode option of xrandr to add the mode to the output you are using. Then you should be able to select the mode using xrandr or a GUI mode selector. xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync xrandr --addmode VGA1 ...


2

If you understand what is going on in X11 forwarding, you will know that it is not so simple as described in the answer from @yaegashi. X11 forwarding is creating another layer under the ssh and it can't be chained as normal terminal data streams. But you are able to do it using port forwarding: Based on this blog post, which does it as hardcoding in shell ...


2

Why doesn't that solution with ProxyCommand work for X11 forwarding? I think you can directly reach mum's computer with X11 forwarding using the following configuration. Host mum ProxyCommand ssh -q -W localhost:1993 login@vps0 ForwardX11 yes


1

Maybe this can help someone else. I had the same question as you but for a normal user. Let's say I want to start firefox using the user account foo. I'm logged in as bar: [bar@localhost ~]$ sudo -u foo -H firefox Sadly that command failed with the same error as in the question (i.e. no protocol specified & cannot open display) My solution was to ...


2

After reading a little bit on assigning modifiers, following the hint from Gilles, I came up with key <TAB> { [ BackSpace ] }; key <CAPS> { [ Control_L ] }; key <LCTL> { [ Tab ] }; key <MENU> { [ Alt_R ] }; modifier_map Control { <CAPS> }; modifier_map Mod1 { Alt_L, Alt_R, <MENU> }; This solves problems 1 and 2. ...


0

I think, I recently posed the same question just for Linux Mint instead of Debian. See here for my (almost complete) solution using xim: Insert both characters if a dead key combination is not recognized (e.g. 'a → á, 'b → 'b)


0

I couldn't get it all to work yet (couldn't figure out how to do some things yet like . ^ and & [probably octal values]), but it's good enough for me for now. When I do eventually complete it for the first/second level I'll reupload the properly modified .XCompose for xim. Thanks again for cksk for the help. http://pastebin.com/vJg6G0th


0

Problem solved. Very simple one but not related to the fundamentals of using R through VNC, the problem was a combination of an old vncserver version and a funny network triangulation. Case closed.


0

On Debian with Gnome you can install gnome-tweak-tool. In the secton "Typing" there are loads of available behaviors for Caps Lock


1

The tools to manipulate the keyboard layout on the virtual consoles are loadkeys, dumpkeys and showkeys. Read their manpages and inform yourself about their intricacies. Note that these tools only work in a virtual console, not in a terminal emulator in a graphical environment like gnome. The learn about the difference read this question and answers: ...


2

xseticon allows you to do exactly that.


1

In order to avoid having to synchronize between clients to allocate new ids, each X11 client is simply given a large range of resource ids for their use, and ids come out of that set, regardless of what other clients have used in their sets. Furthermore resource identifiers are used for objects other than toplevel windows, so if you only list window ...


2

You have hinted the answer yourself by referencing https://en.wikipedia.org/wiki/Fixed_(typeface) This is the standard fixed bitmap font which has been expanded by Markus Kuhn to have a rather complete character set. The question is then how to scale a bitmap. What you have achieved so far is scaling a vector font and converting it to a bitmap (ttf → bdf → ...


0

I'm not sure but you can maybe merge the font and the siz like this: xterm -fn helvetica -fs 20x10 regards, maniat1k


2

Having 'a and 'b behave differently sounds annoying. I recommend that you use a different way to input characters with diacritics. Instead of making ' and such dead keys, use a compose key. To enter 'a', you type ' a ' normally. To enter á, you type Compose ' a. I'm not familiar with Mint's keyboard layout configuration interface but it should have an ...


5

I found a way to make this work in OpenSUSE, and I hope it won't be too different in Mint. Maybe your files will be in slightly different locations, but it shouldn't be too hard to find the right ones. OpenSUSE uses ibus by default (or, at least, the Gnome version does), but I got rid of it and used xim. I don't know if Mint also uses ibus but, in any case, ...


4

It really seems to me that the Unix community is killing themselves in the Desktop world. I think there is a misconception that any form of Unix exists in order to compete in the home PC market. There are some linux distros which have this focus; the first one was really Ubuntu, but it is worth considering that part of Ubuntu's original vision was to ...


0

Right now you can increase the font size by holding control and right mouse button(i.e ctrl+right mouse button) and select the font size. To make it default you need to have an Xresources configuration. I am trying it and I will update the answer once I get it. Update: You can create .Xresources file inside your home directory and add the below line ...


2

Unix has specifications/a standard they hope you'll follow, POSIX, ways things should be implemented, though up to the developer, it's a standard we should follow if we want our code to work on many architectures/platforms/systems whatever, up to the developer at the end of the day to follow what (hopefully) majority of developers are following. Windows has ...


10

To be called UNIX you need to go through a certification process that requires (among other things) that you implement the POSIX standard. So your question is completely invalid. There is UNIX API, it's called POSIX. EDIT: Here is the list of requirements: http://www.unix.org/version4/overview.html


0

I had the same problem with Cygwin and Xming, connecting to a remote Linux server. My $DISPLAY variable was simply ":0.0" in Cygwin, and although that works locally, it didn't work with the remote ssh command. Changing the variable to "localhost:0.0" fixed the issue. export DISPLAY=localhost:0.0 Once I did that, my command worked: ssh -Yf user@host ...


1

I've been long using a miniscript I named lonew for this. It's meant to be short for "lastof or new". lastof is another script of mine, which attempts to find a visible window that matches a given command a was accessed the most recently. Both of the scripts are below: (they might use some refactoring but they get the job done) lonew: #!/bin/bash ...


1

Perhaps this is something along the lines of what you are looking for. I have just used sleep, but you can use a dialog such as yad or zenity, and change the loop so that it keeps cycling, or whatever you need. You can then add a hot-key as needed . It requires that you prime the script with the application's startup command, and also the application's ...


1

X programs use DISPLAYs to work out what X11 instance to apply the program to. If you are the sole user of your host then most likely your display will be localhost:0 or often abbreviated to :0. you can find your DISPLAY variable by using: echo ${DISPLAY} To tell xclip to use that display, issue the -display command line option, or set the the DISPLAY ...


0

I have tried all of these, but still had the same problem "No Protocol specified", If anyone is facing the same after trying all the solutions, I can tell its not complicated at all, I found an error message in my Xming log file. Xming (running in taskbar)>>view log file... So you can restart the system and run the Xming, if Xming is running properly, the ...


3

FocusOut event, serial 37, synthetic NO, window 0x4c00001, mode NotifyGrab, detail NotifyAncestor FocusIn event, serial 37, synthetic NO, window 0x4c00001, mode NotifyUngrab, detail NotifyAncestor What happened when you pressed A with Shift held is a passive grab: there's an X client which has exclusive control over this key combination, and ...


1

kill -TERM -$$ (kill current process group) should also do it in a race condition-safe manner. This or kill % should be preferred to killing by pid or by name.


5

Try to add a last line kill %1 In interactive shells at least you can kill the pid of the background job this way. Otherwise look if the process can write a pid file or use killall, if you're sure, there's only one process of this wm


0

Either your cookie file $XAUTHORITY is getting cleaned up, or maybe your machine name is changing (some aggressive dhcp settings?) so that the wrong thing is getting looked up. Things to check: Run xauth info and echo $XAUTHORITY to see if your file is someplace that might get cleaned up (like /tmp). Run xauth list > xauth.working, then sleep your ...


1

This should do it: xclip -selection c -o | xclip -selection c


0

I followed this tutorial And also changed /etc/X11/xinit/xinitrc to point the window manager I am using & executed it (in my case for XFCE this was exec /bin/sh /etc/xdg/xfce4/xinitrc) Re-booted the server and it now works. Hope this helps.


1

So far I've found xdotool tool which can fake input from the mouse and keyboard quite easily. Some examples with simple keyboard interaction: xdotool key a xdotool key Down xdotool key Tab xdotool key "Return" xdotool key "Control_L+t" xdotool key Alt+1 xdotool key ctrl+v xdotool key Super xdotool key KP_Enter xdotool key ctrl+Page_Up xdotool key ...


2

Using ImageMagick, based on rlogo_icon.h. #!/bin/sh echo 'unsigned long rlogo_icon[] = {' identify -format '%w, %h,' $1 convert $1 -color-matrix '0 0 1 0, 0 1 0 0, 1 0 0 0, 0 0 0 1' RGBA:- | hexdump -v -e '1/4 "0x%08x,\n"' echo '};' Usage: ./script.sh rlogo_icon.png > rlogo_icon.h I'm not sure this -color-matrix is always correct. I placed bytes in ...



Top 50 recent answers are included