Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Xubuntu and connecting over RemoteDesktop with Windows 7.

Everything works fine, but the auto_completion in my bash doesn't work. I checked the .bashrc file in my home directory and also the /etc/bash.bashrc.

I uncommend the lines below in my local bashrc configuration and also in bash.bashrc, but nothing changes.

if ! shopt -oq posix; then
  if [ -f /usr/share/bash-completion/bash_completion ]; then
    . /usr/share/bash-completion/bash_completion
  elif [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
share|improve this question
I am very curious as to why this only shows up on remote sessions but not on sessions directly logged in on the console. It happens with either VNC or XRDP - which is not surprising as behind the covers XRDP just invokes VNC to do the rendering. It is I presume because the X server built into VNC is different from the Xorg one but it is still puzzling why this occurs - after all the change suggested here should only affect the "Super-Tab" key combo not the simple "Tab" key. Does this imply that somehow VNC is always showing the "Super" key depressed when tab is hit? And as a final point, I hav – user273641 Apr 24 '14 at 14:19
This issue is still present in Xubuntu 14.04 when using VNC. And implementig the change fix the issue. Remember to search the second occurence of "Super> Tab" like explained in the steeldriver answer; it's in the "custom" section. – user294420 Jun 17 '14 at 17:15
@user294420 I couldnt quite understand the change to be employed can I have a little more explanation? – Sohaib Sep 6 '14 at 6:47
possible duplicate of xrdp tab does not work – Ingo Karkat Jun 10 '15 at 14:31
up vote 15 down vote accepted

You may find that this is a more general issue with interception of the Tab key under remote XFCE4 sessions, rather than a problem with bash completion itself.

I had a similar issue running XFCE4 over VNC and the workaround for me was to edit the ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml file to unset the following mapping

<       <property name="&lt;Super&gt;Tab" type="string" value="switch_window_key"/>
>       <property name="&lt;Super&gt;Tab" type="string" value="empty"/>

Note that there may be two entries, and the first already has the value "empty". If this is the case, edit the second entry.
I found this solution online somewhere and can't really take credit for it.

share|improve this answer
Good shot, but i found this issue also with google. This property has already this value at my xfce4-keyboard-shortcuts.xml by default. The link: – nik the lion Oct 1 '13 at 15:59
Damn. I wounder why this value is by default "empty". Checked this with less and find a second entry. But this time with the value "switch_window_key". Changed > restart > works!!!! Thank you :) – nik the lion Oct 1 '13 at 16:09
@steeldriver I couldnt quite understand the change to be employed can I have a little more explanation? – Sohaib Sep 6 '14 at 6:48
Edit that file and replace switch_window_key with empty on that line. I used nano to edit the file. I then restarted VNC with sudo service vncserver restart. It just worked for me. – Cameron Taggart Oct 27 '15 at 21:12

protected by Community Jun 17 '14 at 19:23

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.