date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,429,002,573,000
This is basically the same question as How to set ctrl+c to copy, ctrl+v to paste and ctrl+shift+c to kill process in xfce4-terminal?, but not a duplicate, because neither of the answers helped.  Alex Kaszynski's answer suggests modifying the ~/.config/xfce4/terminal/accels.scm file.  I did that: I have changed two li...
Add these lines to the ~/.config/xfce4/terminal/accels.scm file. (gtk_accel_path "<Actions>/terminal-window/paste" "<Primary>v") (gtk_accel_path "<Actions>/terminal-window/copy" "<Primary>c") Note that these lines don't start with a semicolon, which starts a comment in Scheme.
How do I switch <Ctrl+C> from interrupt to copy, and <Ctrl+Shift+V> to <Ctrl+V>, in xfce4-terminal?
1,429,002,573,000
man itself shouldn't know anything about mouse wheel, and the scroll bar of the xfce4-terminal window doesn't change, so... Did xfce4-terminal send something to the pty master fd when the window captures mouse wheel event from X server? If yes, what does it write to the pty device to act like I pressed the Down Key? ...
Your pager displays its contents in the alternate screen buffer, which selects “alternate scroll mode” (which you can see because the vertical scroll bar changes — it no longer allows scrolling the window contents), and in that mode, the terminal translates mouse wheel movement to cursor up/down controls. This was int...
Why can I use mouse wheel to scroll man page in xfce4-terminal?
1,429,002,573,000
If I type these two commands in a terminal: xfce4-terminal --hide-menubar --hide-borders --hide-toolbars --title=dt wmctrl -r dt -e 0,10,10,720,720 I get the desired result (position and resize of window with title dt, noting than unlike gnome-terminal, xfce4-terminal doesn't rewrite manually assigned titles) Natural...
The && concatenation operator causes the second command not to be executed until after the first command (xfce4-terminal) exits (and only if the exit status indicates success, since it is a short-circuit logical operator). You should get the behavior you expect if you change && to ; or simply place the wmctrl comma...
WMCTRL not working after starting xfce4-terminal
1,429,002,573,000
I have a few files on my computer that I need to compile frequently while editing, e.g.: context file.tex I tried to add a launcher to the XFce4 panel that will open xfce4-terminal and compile this code, however, none of the commands I try in the launcher preferences window work. How can I add a launcher to the XFce ...
In the launcher preferences window, enter this as the command: bash -c "context file.tex; exec bash" Then check the option "Execute on terminal". That will execute Bash on terminal, running the 2 commands between quotes, instead of an interactive shell. The first one is, of course, your compiling. The second one repl...
How to add a launcher that compiles some code in a terminal in XFce?
1,429,002,573,000
#!/bin/sh xfce4-terminal zenity --info exit Expected behavior on my Xfce4 desktop when the script is run (via a keyboard shortcut) is that the Terminal window appears. Only when I close same should the Zenity window then appear. Normally, this is exactly what happens. However, if I first open an Xfce4 Terminal window...
Give a try to this, I tested and looks good. xfce4-terminal -x bash -c 'trap "zenity --info" EXIT; bash' When executed, it opens a new xfce4-terminal, and executes the command following. This command is a shell trap. That means when this same process, the new-opened terminal, gets the signal to EXIT, will execute the...
Can't Stop Simultaneous Step Execution in Shell Script - xfce4-terminal command
1,429,002,573,000
When I enable vim's spellchecker using :set spell underlines appear under any misspelled words in urxvt. However, when I try the same in xfce-terminal (on the same machine, using the same .vimrc and ediing the same file) no underlines appear. The spellchecker is still working as misspelled words can be navigated betwe...
This problem is due to vim trying to use undercurls (wiggly underlines) rather than normal underlines, but being configured incorrectly. Check that your terminal supports undercurls by trying to print some: echo -e '\e[4:3mcurly underline (new in 0.52)\e[4:0m' If they display correctly then the problem is due to vim....
Vim Spelling Underline Shows in urxvt but not xfce-terminal
1,429,002,573,000
My terminal works normally but when I hit the bottom of the screen it doesn't start scrolling upwards until I'm about 9 lines off screen. So I can see what I typed if I hit enter 9 times. This only happens if the terminal is full screen, if I make it smaller then it will scroll normally when I hit bottom. Where is th...
First, can you see all the edges of the terminal window when in full screen mode? If the bottom edge is not visible, it might be that your display is mis-adjusted so that the bottom part of the image goes beyond the screen. That can usually be fixed using the controls in the actual physical display. If that's not the ...
How to fix a Full Screen Terminal that believes it is 9 lines bigger than it is
1,429,002,573,000
I have a very interesting issue with xfce4-terminal and I don't know how to fix. The geometry settings are scaled extremely small. By that, I mean I have a geometry of 80 cols by 40 cols and I get a window that is effectively 27x3 (see below), which I think is the very minimum it will open. If I specify 120x80, it's...
I was able to solve the issue by uninstalling and reinstalling the software. Since it was originally installed via ports, I just issued the commands (as root) # cd /usr/ports/x11/xfce4-terminal/ # make deinstall Then reinstall # make install clean The interesting thing was it was a re-installation of the same versi...
xfce4-terminal geometry is scaled extremely small
1,429,002,573,000
Currently using Xfce and xfce4-terminal, but suggestions involving other Linux-based systems may still be helpful. I start a longish-running program in a terminal window, then alt-tab away and do other work. Is there a way to have a program in that session request that its window be marked 'Urgent' and/or 'Presented' ...
You could use wmctrl to tell the window manager to activate it (raise it and give it focus): wmctrl -ia "$WINDOWID"
'Present' terminal window on shell/executable command?
1,382,010,812,000
What is the command that launches the whisker menu in the Linux Mint xfce edition. For another distribution that used xfce it was xfce4-popup-whisker menu but that doesn't seem to work. I would like to assign the super key to launch the menu.
It's indeed xfce4-popup-whiskermenu. However the command is only available from a certain version of the whisker menu. Most probably that other distribution had a newer version of it. Check your currently installed version in the application manager. The newest is 1.1.1, which contains the popup command. Follow the in...
Linux Mint XFCE, command to launch menu
1,382,010,812,000
I thought this would be simple, but I have this issue where SXHKD bindings won't work after boot until a bash xfce4-terminal has been opened once. So I tried opening a terminal on boot via rc.local, which is no good because it doesn't open with the ~/.config settings. So I created a launcher put in /etc/xdg/autostart ...
Rather than autostart the terminal why not autostart SXHKD. Create this file ~/.config/autostart/sxhkd.desktop It should contain: [Desktop Entry] Name=sxhkd Comment=Simple X hotkey daemon Exec=/usr/bin/sxhkd Terminal=false Type=Application Here's a worked example, where I tried the following on an Xfce installation I...
Unable to launch terminal
1,382,010,812,000
I am using xfce terminal on one side of screen, and many tabs. But when I want to use EOF interupt (aka <ctrl>-<Shift>-D), then the tab will remove its position from that side of screen to the other (see image below), I have even try to set -o ignoreeof but to no avail. Before <ctrl>-<Shift>-D: after <ctrl>-<Shift>-D...
Don't have a fix, but this partial answer might be of some use, or at least provide some explanation for what's happening. The effect you're seeing seems not to be a bug but instead due to "smart placement" of windows. I don't know if there's a way to completely disable smart placement or to have a moved tab appear in...
How to disable to move one terminal tab by EOF (ctr-d) interupt on xfce terminal?
1,382,010,812,000
I know there was a question on how to edit shortcuts for tab in xfce terminal: Is there a shortcut (missing?) to move tab in xfce4 terminal app?, but I did what said (that is - enable editable accelerators in appearance settings), and still cannot change shortcuts in the menubar. My purpose is to change shortcut for 1...
I wasn't able to change the shortcuts using the "editable accelerators" and according to this post in the XFCE forum this only works for GTK2 applications. You can change the defaults in ~/.config/xfce4/terminal/accels.scm (just like in your previous question How to switch from interrupt to copy, and to in xfc4-ter...
How to make editable accelerators in xfce terminal?
1,382,010,812,000
I'm using arch linux and started to install some software after xfce4 desktop. However, My font "Monospace Regular" suddenly became thin and flat after some software installed (I don't know which one). I definitely haven't change any configuration about font type. They look like this in my screenshot. How can I fix i...
I figured it out. Reinstall ttf-dejavu will restore it. And the software that cause this is gimp : )
arch linux xfce4 terminal font type gets wired after install some software
1,382,010,812,000
About a week ago (maybe after an update) the starting directory of xfce4-terminal changed from ~ to ~/Documents when launched from the panel. I'm pretty sure that wasn't because of anything I have done: there are no cd commands in ~/.bashrc (and that should not be necessary) and the launcher did not contain anything i...
Looks like the xfce4-terminal defaults to opening in whatever directory it was launched from. I just installed it on my Arch system, and confirmed the behavior. So I looked at its Preferences section (Edit => Preferences) and saw: So, just set that field to /home/yourUser and it should work. It should, but at least o...
xfce4-terminal starts in ~/Desktop instead of ~
1,382,010,812,000
I switched a few days ago from xfce4 to cinnamon. Quite an improvement in usability. However, I miss the function of the xfce4-terminal that I can mark text and that it is automatically copied to the cliboard. Wasn't able to find it in the gnome-terminal settings, manual and a startpage-research did not give any resul...
I found a work-around, which is even better: Anything you highlight in Linux, regardless of the program, is put into a special clipboard buffer, which you can paste using your mouse's middle (wheel) button (which is emulated on many laptops by pushing both buttons at the same time) source https://superuser.com/a/307...
Gnome-Terminal mark text > copy to clipboard (like in xfce4-terminal)
1,382,010,812,000
I am attempting to install this fork of PongoOS onto Debian 12.1 using these instructions and the last step I have taken was enter the following into the terminal: EMBEDDED_CC=clang EMBEDDED_LDFLAGS=-fuse-ld=/usr/bin/ld64 STRIP=cctools-strip make all The next step is to execute Pongo.bin using the following terminal ...
Your "the next step" command line is step #6 in the instructions you linked. Step #2 (git clone https://github.com/konradybcio/pongoOS) should have produced a pongoOS directory, and step #3 (cd pongoOS) whould have set it as your current working directory. To execute step #6, you should still be in that directory. A "...
Installing PongoOS fork on Debian results in no makefile binaries
1,382,010,812,000
Basically, I'd like to use a launcher to open a new tab with a program running in it when I already have a terminal open (obviously). To do this I use xfce4-terminal --tab --drop-down -x You'll notice I'm also using the --drop-down Which is essential to my ideal set up but am unsure if it matters to my question, but...
A simple script like this can be used to prevent the empty tab: #!/bin/bash c=$(ps -e | grep -c xfce4-terminal) if [ $c -gt 0 ] then xfce4-terminal --tab --drop-down -x $1 else xfce4-terminal --drop-down -x $1 fi Assuming the script is named xfce4termtab, the launcher command would be either...
Is there a way to prevent an empty tab from showing up when using the --tab switch in a launcher for xfce4-terminal?
1,382,010,812,000
I am running Debian,and want to utilize the multiple workspaces feature as a means of managing the large amount of terminal windows I tend to have open, but in order for the individual workspaces to be visually distinguishable, the icons of what is open in them must be, which is my issue here. So basically I am asking...
You can launch xfce4-terminal with customised icon, title, geometry and so on. For example, xfce4-terminal --icon=/home/user/scripts/green.png --title="Custom title" --geometry=100x30+130+200 The above command would open a terminal window with specified icon and title, 100x30 characters in size, positioned 130 pixels...
Selecting a custom icon for particular Xfce terminal windows
1,382,010,812,000
This had never happened to me before until I started using Windows 11. Firstly, I have already followed this guide step-by-step far before posting: https://www.kali.org/docs/wsl/win-kex/ I am a Windows Insider helping to develop winget-cli, and I have used the Beta channel for Windows 11 for the last 4 months. When th...
First try the tried and true fix for everything: restart your computer, sudo apt update sudo apt upgrade to see if it fixes itself. All of these commands should be ran as root. Delete the symlink, rm /tmp/.X11-unix, run vncserver (to set up another symlink), then kex should work. If it does not, make sure that you are...
Windows Terminal Preview - Kali Linux KeX Not Working on Windows 11
1,382,010,812,000
I created this alias in bash: alias .one='cd Learn/React/React\ JS/one_app/ && code . && exit' to open a project in VSCODE, but when i try to execute in whisker search bar using !.one i receive the error Failed to execute child process. Any help? *Linux mint 20.4
The aliases you define in bash aren't available outside of bash. If you want a command available from the whisker menu of XFCE, you need to make a .desktop file and in one of the locations which are standard for those files. One such location (and the one I'd recommend) is in ~/.local/share/applications. I suggest tak...
Execute alias in whisker search bar
1,382,010,812,000
Is it possible to close the parent terminal window once an application has been loaded? I have a program I need to run using root privileges to work properly and currently I have made a script file which checks if the user is root if not then they are asked to confirm the root password before the application is loaded...
In general you can launch a gui program and close immediately the xterm that launched it with: exec program&exit or better exec program2>&1>/dev/null &exit You have a script that acquire input still in terminal, so the terminal for you doesn't have to exit soon, so here is the solution: replace ./myGuiProgram with no...
Close terminal window once application is opened
1,382,010,812,000
My mp3 file has id3 tags which can be displayed in a terminal on my debian buster linux for example by using the program id3tool or id3. If my shell (xfce4-terminal) has a set default character encoding to UTF-8, the output of id3tool looks like this: Filename: test.mp3 Song Title: Qu�l Dich Fit Artist: Wise Guys ...
extract metadata to txt file with ffmpeg, convert it with iconv, then re-add.
convert encoding of id3 tags of mp3 file
1,382,010,812,000
I would like to Launch "Xfce4-terminal" on boot using Xfce desktop, Xrdp-client, and Centos. I tried creating a .desktop file under .config/autostart and also tried to set the xfce4-terminal on login from the xfce4 desktop settings as well but still I am unable to launch the terminal on boot. did the following from ...
This worked for me . Place a file in /etc/xdg/autostart directory with the following contents. #cat xfce.desktop [Desktop Entry] Type=Application Name=Xfce_terminal Exec=xfce4-terminal Terminal=true Remember this is a global setting and it applies to all the users and there will be no need to manage them separately u...
Unable to Launch "Xfce4-terminal" on boot
1,382,010,812,000
I have been trying to rebind the shortcut for moving the cursor forwards/backwards one word at a time in the Xfce4 terminal. I'm used to using <Ctrl>LeftArrow and <Ctrl>RightArrow to achieve this. Using these shortcuts in the terminal produces the following characters instead: ;5D when pressing <Ctrl>LeftArrow and ;5...
Adding the following lines to ~/.inputrc and re-reading the file works as a solution: "\e[1;5C": forward-word "\e[1;5D": backward-word
Rebinding Xfce4 terminal shortcut for moving the cursor one word at a time?
1,304,703,631,000
I have a machine running Ubuntu which I SSH to from my Fedora 14 machine. I want to forward X from the Ubuntu machine back to Fedora so I can run graphical programs remotely. Both machines are on a LAN. I know that the -X option enables X11 forwarding in SSH, but I feel like I am missing some of the steps. What are th...
X11 forwarding needs to be enabled on both the client side and the server side. On the client side, the -X (capital X) option to ssh enables X11 forwarding, and you can make this the default (for all connections or for a specific connection) with ForwardX11 yes in ~/.ssh/config. On the server side, X11Forwarding yes m...
How to forward X over SSH to run graphics applications remotely?
1,304,703,631,000
Is there any way to open a graphical program (for instance, gedit) while using X11 forwarding over SSH and transfer the X server connection back to the X server on the SSH host?
If you look at the Wikipedia page on the subject there are several apps mentioned. Xmove excerpt xmove is a computer program that allows the movement of X Window System applications between different displays and the persistence of X applications across X server restarts.[4] It solves a problem in the design of...
Can I move a running application to a different X server? [duplicate]
1,304,703,631,000
Consider a situation where I'm logging in over SSH from machine A to machine B, I have an X session on machine A, and I want to run an X program on B. ssh -X B makes this work transparently. But what if the server configuration lacks X11Forwarding yes, I don't have root permissions on the server, and the server admini...
@Demi 's answer is good but I think filling it out would be great help. local -- the local machine serving an Xserver. remote -- the remote machine serving the application which drives the data going to the Xserver Remote /etc/ssh/sshd_config: X11Forwarding no X11DisplayOffset 10 X11UseLocalhost yes Remote ~/.X...
Forwarding X11 over SSH if the server configuration doesn't allow it
1,304,703,631,000
After running X programs over SSH, SSH doesn't terminate after shell exit (have to use e.g. CtrlC to kill it). My guess is although the X program already exit, there is still some "connection" left (not freed). The exceptions I have found now are gtk-demo and acroread. Does anyone know the reason? Is this a problem wi...
Starting the X program probably starts a background process that doesn't terminate when you close the program (or the program itself doesn't terminate properly). See here for an explanation of what happens. To fix this, you can try to find out what processes are still running and either prevent them from being started...
SSH not terminated after exit when there is X Forward program
1,304,703,631,000
I communicate with the server via a ssh tunnel, configured via Putty. Recently, I'm trying to forward the X11 through it, but it doesn't work. Is there any one work this way? Searched with google, but didn't find anything.
Yes, this is possible in a few different ways but you will need an X window server for Windows. Some options of a X windows server are XManager, XMing and MobaXterm. Once you have an X server running on Windows you can use PuTTY to connect to your host after you have set the configuration parameters: Connection/SSH/X1...
Is it possible that X11 can be forwarded through a SSH tunnel
1,304,703,631,000
I have a server running XFCE on debian and a client running gnome3 on arch, and I want to control GUI applications running on server from client using X11 forwarding. ssh -X user@server on the client followed by localc - Works! Except every few seconds no matter what I do - even moving the window - gnome tells me "Li...
On 3.36 or newer you can use this command to disable the check: gsettings set org.gnome.mutter check-alive-timeout 0. Or you can try something longer than the default timeout of 5000 milliseconds instead of 0 if you don't want to disable it entirely.
"This application is not responding" nonsense with X11 forwarding
1,304,703,631,000
I'm connecting to a Linux machine from my Windows desktop via PuTTY. I'm running Xming on my Windows PC so that I can remote display X windows applications. Loading individual graphical programs works fine. I can run gedit for example and it pops right up. I want to load a desktop session, exactly how it would be view...
yes, if you want to. to do this change your xming startup options to open the whole x server in a single window. The drawback is that you can't move windows out side this window.
SSH via PuTTY: launch gnome-session and gnome-panel in one Window
1,304,703,631,000
I have the following setup: internet host_1 --> router_1 <----------> router_2 <-- host_2 Both host_1 and host_2 run Ubuntu 18.04. From host_2, I would like to access the GUI applications in host_1 through ssh X forwarding. So, I tried with option -C in addition to -X: <host_2_prom...
You don't want the -C option in the ssh connection. Compression is great when you are moving lots of data, but here you want responsiveness, and your ADSL is fast enough. Switching to x2go should make you very happy. It implements an X11 specific compression. Both ends know when the end of an X11 message is reached an...
SSH X forwarding too slow
1,304,703,631,000
Usually I do this on ssh for getting a X application using sudo su ssh -X server OKI login xauth list $DISPLAY which returns to me server/unix:10 MIT-MAGIC-COOKIE-1 blablablablabla Then I do sudo su xauth add server/unix:10 MIT-MAGIC-COOKIE-1 blablablablabla And after running an X application..I get it, it is...
Solution found. An alternative method copied from this blog Using this script userfirst=sshloginuser usersecond=sudoorsuuser $usersecond@host$ su - $userfirst -c 'xauth list' |\ grep `echo $DISPLAY |\ cut -d ':' -f 2 |\ cut -d '.' -f 1 |\ sed -e s/^/:/` |\ ...
ssh and sudo but no $DISPLAY
1,304,703,631,000
When I request X forwarding from SSH server, then SSH server sets a $DISPLAY variable with value localhost:10.0. In addition, it starts to listen on 127.0.0.1 port 6010(and also ::1 port 6010 for IPv6): Netid State Recv-Q Send-Q Local Address:Port ...
It’s part of the X11 protocol (search for "6000") and is documented e.g. in Xorg(1): Xorg listens on port 6000+n, where n is the display number. This connection type can be disabled with the -nolisten option (see the Xserver(1) man page for details).
How do X clients know that they will need to connect to TCP port 6000+<display number>?
1,304,703,631,000
I am running some MATLAB scripts on the command-line of a remote computer using ssh. These scripts launch 5 xterms that are forwarded to me via ssh (using the -X option). At the moment I am debugging my code so I am restarting my scripts every now and then. Everything works fine for a couple of runs, but after the N't...
SSH blocks new X11 connections after 20 minutes in its default setup. To avoid this, run ssh -Y instead of ssh -X, or set the option ForwardX11Trusted yes in ~/.ssh/config. If you run ssh -v, you'll see the message “Rejected X11 connection after ForwardX11Timeout expired” when a new application tries to connect to the...
Cannot start xterm over ssh after several successes
1,304,703,631,000
I open GUI remote programs by SSHing with the -X (or -Y) flag, e.g., $ ssh -Y [email protected] Recently, I found there is a much more efficient way to do this with web browsing only: $ ssh -DNNNN [email protected] where NNNN is a four digit port number. Then I configure my local browser to connect through a proxy...
You are mixing up terms. The first thing is X11 forwarding and it is inefficient by definition and you can't do almost anything about that (it is not made for high-latency connections and decades ago]. In comparison to the other method, it is inefficient, because it is transferring whole gui (of broswer?) over the new...
More efficient X-forwarding?
1,304,703,631,000
I have the reverse problem that most people seem to be having. If I start an X application while logged into ssh, it displays on the server(host) machine instead of the client(local). This is the command I use $ ssh -X -p 6623 [email protected] My $DISPLAY variable appears correct on the client. $ echo $DISPLAY :0 I...
For the sake of this conversation lets say there are 2 machines named lappy and remotey. The lappy system is where you'd be running your ssh commands from. The system you're connecting to is remotey. 1. Display GUIs from remotey on lappy lappy .-,( ),-. __ _ .-( ...
SSH - How to make X applications run on client?
1,304,703,631,000
From my local machine I ssh to a remote server along with authentication regarding X display. I know that in this process, MIT-MAGIC-COOKIES are used and the value in both server and client needs to be identical in order for the authentication process to be valid. However, when I login to a remote server and have conf...
I believe you're getting confused by how SSH performs the proxying of the X11 connection via the tunnel it's established on the remote server side with how magic cookies typically works. From the SSH man page: excerpt The DISPLAY value set by ssh will point to the server machine, but with a display number greater tha...
x11 connection established but magic-cookie value different?
1,304,703,631,000
I have a rather odd setup I'm trying to get working. I have an Ubuntu install running in a container (through Proxmox). The host computer is CentOS. Neither server is running an X instance. My host machine is physically plugged into a monitor. My end goal is to be able to ssh -X from the host to the container and run ...
I need X installed on the host too, right? You need an X server installed on the host only, and it will need to be running. You will need some X client libraries in the container (installing xbmc will presumably pull these in as dependencies), but not an X server. What exactly are "displays" (like :0 and :1) and...
Understanding ssh X11 forwarding
1,304,703,631,000
I'm setting up a media server for my movies. The server is networked and so are a couple laptops/desktops. The server is running the latest Ubuntu (desktop edition, not server). This is the scenario I'm trying to achieve: Server is turned on and is connected to the network Client (my laptop) opens a web interface to ...
It's possible, but probably not desirable. The VLC client (window) will be shown on whatever display you want, but it will be playing uncompressed video, which will have to be sent as networked X requests. Even without any overheads, sending 720×540 at 24 bpp and 30 fps will need around 279 Mbps (720px × 540px × 3 byt...
How to forward a window (display) to another computer on the network
1,304,703,631,000
I have a GUI program which has all necessary libraries to run on a rented Ubuntu host, but the host itself rejects attempt to set up X forwarding during the ssh connection using -X. strace shows the UI program can run, but stops when it has no DISPLAY. I do not have root access to the rented host, it is not configured...
Following the various guides, I copied the file /etc/ssh/sshd_config to a new directory, then ran the following command in the same directory to create a new key pair: ssh-keygen -f myrsa -N '' I copied an xauth executable from a similar Linux system and placed it in the same directory. I then modified the sshd_confi...
Can I forward X11 over ssh on an rented host without forwarding support
1,304,703,631,000
I'd like to set-up X11 Forwarding to run remote X applications on the server and the X11 client can handle the UX interaction. However, I would like to configure the X11 client or fake it to actual do the user interaction programmatically (from the script). For example, I want to run an app which requires some mouse c...
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...
How to programmatically control X11 forwarded apps?
1,304,703,631,000
Connecting to a remote Solaris 10 system over X11 I observe inconsistent behavior regarding the used fonts. I am connecting from a Cygwin/X system. When I connect using ssh forwarding like this $ ssh -Y mymachine.example.org fonts work as expected, i.e. the rendering is very nice and programs seem to find all kind of...
I believe XDMCP is using the fonts local to the Solaris system. When you SSH you're using fonts that are local, since in that scenario you're the X server and the Solaris box is the X client. You can use the command xlsfonts to see what fonts are accessible to you on a given system. EDIT #1 - Font path You can find ou...
How to configure fonts on a remote X connection (XDMCP vs. ssh)?
1,304,703,631,000
I'm trying to set up a remote desktop connection to access my desktop PC from my laptop (both running Trisquel) over wifi. I've tried VNC and it was terribly slow, so I'm looking at alternative options. What I would ideally like to do is to start a remote X session over SSH, which would run on a separate tty on my lap...
startx gnome-session -- :1 tty8 If you run this command over a ssh -X session, you are not going to achieve a remote gnome-session for yourself. Instead, you're effectively trying to remote-start a GNOME session on the tty8 virtual console of the remote host, for whoever happens to sit at that computer. Instead, you ...
Why do I need XDMCP to start a remote X session over SSH?
1,304,703,631,000
For X11 forwarding, do both the local and remote systems have to run an X server? Can I do X11 forwarding if my remote machine is in: runlevel 3, meaning that no X server is running?
You only need to run the X server on your client PC where you want see the GUI/Desktop. Typically this would be on your Windows PC in most environments ofcourse you could run it on a Linux/Mac workstation to. Point is the X Server itself must run on the client pc. The Linux server needs SSH along with the X Window Sys...
What X Server requirements are associated with X11 forwarding?
1,304,703,631,000
Using XForwarding, you can access GUI applications over ssh between two Xorg-powered machines (and sometimes even from a windows machine). Is there a way to access OSX applications (like Finder) from an Xorg machine?
Finder doesn't use X APIs, so can't be forwarded over over ssh like that. Same with most mac applications; apple have their own windowing system called Aqua. Sharing the desktop via VNC or apple remote desktop works fine though -- look in the "Sharing" preference pane for the "Screen Sharing" option to set it up on th...
XForwarding Applications from OSX
1,304,703,631,000
I spend a lot of time on Mac OS X as a desktop system, and on the Mac there are two nice little utilities for the command line, pbcopy and pbpaste which can accept stdin and write to stdout. Is there a similar utility or non-GUI pasteboard in linux? How does that work? I read over this blog post http://blog.roseman.or...
You need a version of vim that was compiled with X support. You can run gvim -v (after installing gvim, of course) to run an appropriate version in a terminal.
Is there a clipboard on non-GUI Ubuntu / Linux systems? Can I synchronize it with my local (OS X) clipboard?
1,304,703,631,000
i am connecting from a laptop: $ uname -a Linux fedora 5.11.18-200.fc33.x86_64 #1 SMP Mon May 3 15:05:29 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux to a single-board-computer: $ uname -a Linux mobian 5.10-sunxi64 #2 SMP PREEMPT Tue Jan 12 09:55:56 UTC 2021 aarch64 GNU/Linux over SSH with compressed X11 forwarding: ssh...
it seems that the solution is described here: https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Network/#xforwarding it's all about the PULSE_SERVER "variable". So starting a process with PULSE_SERVER=localhost appenden before ensures the audio protocols run on the host machine. In my case the si...
X11 forwarding, how to force audio to the host?
1,304,703,631,000
I tried to XForward netbeans to my laptop, using the following code: # This does not work $ ssh [email protected] -Y netbeans which: no javac in (/usr/bin:/bin:/usr/sbin:/sbin) which: no java in (/usr/bin:/bin:/usr/sbin:/sbin) Cannot find java. Please use the --jdkhome switch. That did not work, but this did: # This ...
ssh example.com somecommand doesn't read your ~/.profile; somecommand is executed directly by the ssh daemon. When you don't specify a command, the ssh daemon invokes your login shell, which reads your ~/.profile. (Substitute ~/.bash_profile, ~/.zprofile or ~/.login depending on your login shell.) There are a few ways...
XForwarding not loading correct $PATH
1,548,479,940,000
I've been using X11 forwarding to forward clipboard contents from remote servers. When I tried to use X11 forwarding from one GUI linux computer to another, I noticed something peculiar. Let's say that machine A sshs into machine B. I can issue the following command on any machine to check its clipboard contents xclip...
When you forward an X11 connection, you give the remote system access to your local X11 session (through SSH). Thus, when you connect to B from A, with X11 forwarding enabled, the programs you run in that SSH session are connected to your X11 session on A. This explains why xclip shows the same contents on A and in th...
Does X11 forwarding create a "new" X11 session?
1,548,479,940,000
I usually use laptop (which has Windows) to ssh to my Linux server and run stuff on it (e.g. Intellij, MATLAB). I wonder if there anyway to open Java programs (again, like Intellij) of a remote linux machine, in Windows environment (say by doing something like Xforwarding?), since both machines already contain JVM. ...
You can use X forwarding on Windows as well; all you need is an X server (such as Xming) and an SSH client (such as PuTTY). Xming includes documentation explaining how to go about things; basically, you enable X forwarding in PuTTY, start the X server on your Windows machine, SSH to the Linux machine and run your Java...
Open Java programs of a linux machine on Windows with SSH?
1,548,479,940,000
When I ssh -X to a server, I will be assigned a $DISPLAY value, usually localhost:x.0 where x is the lowest number unused by all the users starting from 10. (e.g., if no other user uses $DISPLAY, then it is 10. If some user is already using 10, then it will be 11, etc) Now my question is: is there a way to specify a n...
I found two methods: The first one from local machine, ssh -X remote get the display port number echo $DISPLAY | awk -F'[:.]' '{print $2}', assume it is 10 check whether port 6020 in remote is used: lsof -i TCP:6020, assume it is not forward the port 6020 to 6010: ssh -NTR 6020:localhost:6010 localhost optionally ad...
How to specify `$DISPLAY` when ssh with X forwarding
1,548,479,940,000
raspberry-pi-7 1.jpg http://img823.imageshack.us/img823/2756/raspberrypi71.jpg Just got my Raspberry Pi in the mail and I've started playing around with it. After getting LXDE up and working working in desktop mode (i.e. monitor and keyboard plugged in) I decided I wanted to connect to it remotely. I know I can use a ...
I'm not the expert in X11 and even Linux, but I heard that OS X implementation of Xorg Server doesn't support some required extensions for visually rich UI. Or may be transparency (and other effects) in Linux can only be achieved with composition manager (such as xcompmgr, Compiz, etc.) on client side, so they can not...
How can I force LXDE to have a transparent background when connecting with X/X11?
1,548,479,940,000
From my main host[A] (with a screen), I ssh into a relay computer[B] (with -X) from where I log into the target machine[C] (again with -X) and X forwarding seems to work well for a while. After working on the target machine[C] in vim for a while though, I suddenly lose the ability to utilize the X forwarding function...
This is explained by the entry for ForwardX11Trusted in Debian's man for ssh_config, with Ubuntu behaving the same as Debian, but not Manjaro: ForwardX11Trusted If this option is set to yes, (the Debian-specific default), remote X11 clients will have full access to the original X11 display. If this option is set to n...
X forwarding is interrupted while ssh stays connected
1,548,479,940,000
I have a C program using SDL on my linux PC, when I try to launch this program from my windows pc with ssh it give me an error : no protocol specified and no available device. I have try to start SSH with -X or export DISPLAY=0 but it doesn't work. What should I do ? When I try with root : error: XDG_RUNTIME_DIR not s...
ssh is used to execute a remote shell, therefore it is usually for text-oriented commands (as opposed to graphical applications, like SDL ones). So don't expect graphical application to be able to run remotely through ssh. Fortunately, ssh is a powerful tool: owing to the network-friendly X protocol, ssh provides a wa...
Running SDL code in SSH
1,548,479,940,000
The centos Server and ubuntu host machine both has gedit installed. Root login to the server is blocked and only a user can login via SSH through rsa keys. When I log in to the server with -X supplied as parameter, I can use gedit like: gedit filename.txt & and the file opens in gedit for me to edit and save. But if ...
You can use the sudoedit command instead. EDITOR=gedit sudoedit filename.txt what this does is take a copy of the file, then runs the editor as you, then if it detects the file has changed copy the results back. In most cases has the same effect as sudo gedit filename.txt but it runs the editor unprivileged and so yo...
using Sudo wth Gedit fails from XForwarded server
1,548,479,940,000
I have two computers, a desktop and a laptop, both running Debian Stretch. Desktop notifications works on the laptop, and I believe it works (the attached monitor is broken, so I can't check, and maybe I should say "used to work"). On the laptop I run i3 as wm, no desktop environment, and dunst as notification daemo...
Based on the comments to the question, I found Why can't I run Gnome apps over remote SSH session? Two of the answers (not the accepted one, but that is older, and might work too, just not be the easiest way any longer) there mentioned dbus-launch. And if I run dbus-launch notify-send "Hello world", the notification ...
Forwarding desktop notifications over SSH
1,548,479,940,000
On machine B, I remote access machine C $ ssh -X t@C $ echo $DISPLAY localhost:10.0 How can I find/verify the mapping of $DISPLAY on C to $DISPLAY on B? Can it be done by the following command on C? $ netstat -a | grep 6010 tcp 0 0 localhost:6010 0.0.0.0:* LISTEN tcp6 ...
"the mapping of $DISPLAY on C to $DISPLAY on B" what does that mean? Clearly you grep out of something on C, so you only see sockets on C which involves "port num=6010". Other connection or listening socket on C are grep out. You didn't see any connection before because there hasn't been any X client running and conn...
How can I find the mapping on `$DISPLAY` after `ssh -X`?
1,548,479,940,000
I am connecting to via SSH and activated x-forwarding [user@client]# ssh -X [email protected] And open a graphical program (like gedit) [user@server]# gedit It opens, however, characters are not displayed properly: Client (my machine): Ubuntu 18 / Remote Server: Centos 7
So I found out that there was a font missing on the server. I installed dejavu-lgc-sans-fonts on the remote server. yum install dejavu-lgc-sans-fonts After this everything worked fine.
X-Forwarding: Characters are not displayed properly
1,548,479,940,000
I have a java application (not applet) which I run via a script which contains just this: #!/bin/sh /usr/bin/java -classpath /A/B.jar:/X/Y.jar MyApp.Go -p 1 -p 2 -p 3 This app, during initialisation, requires to read a lot of auxiliary files which live in the local disk along with the app. These files are a few gbyte...
Add exec to your script: #!/bin/sh exec /usr/bin/java -classpath /A/B.jar:/X/Y.jar MyApp.Go -p 1 -p 2 -p 3 This will cause the java process to replace the shell process running the script, instead of becoming a child process of the shell. That way, once the java process starts up, there will be no shell to return to,...
RFC: ssh -X to run a java app on login via SHELL variable, security and other issues?
1,548,479,940,000
I have a host which I want to access through reverse ssh and I also want to forward X11. So I did this on the remote host: ssh -X -R 43022:localhost:22 usr@myhost -p 2222 and I can connect fine with ssh -X -p 43022 usr@localhost from myhost but the X11 forwarding doesn't seem to work: $ xeyes Error: Can't open display...
You need to have a working DISPLAY before X can be forwarded to you. Before your: ssh -X -p 43022 usr@localhost check with echo $DISPLAY and run xeyes. If the $DISPLAY is empty or if xeyes does not run ... X forwarding will not work, there's nothing to forward it to.
why does forwarding X11 over reverse ssh tunnel not work properly
1,548,479,940,000
I'm working on a Raspberry Pi Zero W running Raspbian GNU/Linux 10 (buster). Other X11 applications like xlogo, xclock, xosview, and even xeyes works perfectly well, but I have no luck running oneko. pi@nalzoks-pi:~ $ oneko Display not supported shape extension. oneko: Error and exit. BadAccess (attempt to access priv...
When you login via ssh from a Mac to the Pi, the client program (oneko) runs on the Pi, and contacts the X server that is running on the Mac. I just tried this by logging into my Debian PC from my MacBook via ssh, and oneko runs fine, and when I do xdpyinfo, I see the same amount of extensions as I see when I do xdpyi...
oneko: Error and exit
1,548,479,940,000
My local machine is Fedora laptop. My remote server is FreeBSD 11.0 (located across the room). The objective is to have VirtualBox forwarded over SSH. If I plug a monitor into the remote server, run 'startx', and then 'VirtualBox', the VB manager shows up in a window with the VM I created via CLI. I have configured bo...
This is what works for me: Start ssh with ssh -X [email protected]. Note that $DISPLAY is 'localhost:10.0' or similar, and that's correct - it shouldn't be the guest's IP address. Start VirtualBox from the ssh prompt virtualbox &. The VirtualBox gui appears on the guest, and vms started from it appear on the guest....
VirtualBox over X Forwarding
1,548,479,940,000
Two machines, A et B, on a wired LAN with X11 forward running fine. A is a fully configured Arch linux but has a bad screen. B has a much better screen even though an old netbook, so I work on it using a live Porteus (Slackware). All is working fine with respect to the limited horsepower B has. Until I want to watch a...
Perhaps for your setup sshd is too slow and becoming a bottleneck here. Using plain X11 forwarding may ease the pressure of realtime video playback over network, however a sufficient bandwidth (for example, ethernet) is probably required. sshd (no matter of implementation) can copy files well, although it's still heav...
SSH: super high cpu usage when X forwarding a browser's embedded video
1,548,479,940,000
In my SSH config file, X forwarding is enabled, and I run ssh with the -X parameter. It gives me first error below but connects in the end. Failed to add the host to the list of known hosts (/home/myUserName/.ssh/known_hosts) The problem starts here. When I open an X program such as ff, it opens on the remote machine...
If you connect with SSH and you run an X11 application, and that X11 application displays on the remote machine instead of through the SSH connection, there are three possible reasons. The application is one of the few applications that only ever start a single instance for a given user on a given machine, and it's a...
SSH X forwarding enabled, but no forwarding
1,548,479,940,000
I'm using Apache/2.4.27 Within the VirtualHost I'm forwarding the remote client IP header from the Loadbalancer with: RemoteIPHeader X-Forwarded-For Which is needed by the application served by that Virtualhost. This is the log format within the main httpd.conf context. LogFormat "%h (%{X-Forwarded-For}i) %l %u %t \"...
Restore %a to that format if you're going to use mod_remoteip. In bugzilla, mod_remoteip fills in %a while it removes from %{X-Forwarded-For}i. So in a simple case with one trusted proxy, %a will hold the value used to see in X-Forwarded-For because of mod_remoteip
Apache Logs - X-Forwarded-for together with Virtualhost not logging
1,462,724,866,000
I found three configuration files. .xinitrc .xsession .xsessionrc I know that the first one is for using startx and the second and third are used when using a display manager. But what is the difference between the last two?
~/.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 (wit...
Difference between .xinitrc, .xsession and .xsessionrc
1,462,724,866,000
From many docs, I read that startx is starting LXDE in Raspbian OS. I am a little bit confused. Will always startx run LXDE GUI? Also I have seen example with using startlxde command. How is that command different and why startx and startlxde are running the same GUI(LXDE)? Or maybe it runs it because it is the defaul...
startx runs xinit which starts an X server and a client session. The client session is ~/.xinitrc if present, and otherwise /etc/X11/xinit/xinitrc (the location may vary between distributions). What this script does varies between distributions. On Debian (including derivatives such as Raspbian), /etc/X11/xinit/xinitr...
What desktop environment does startx run, and how can I change it?
1,462,724,866,000
In Arch Linux, I would like to run VirtualBox without a window manager. As a root I can easily do: xinit /usr/bin/VirtualBox -- :0 vt1 As a non-root user I get a blank screen. If I open another terminal, kill VirtualBox and read ~/.local/share/xorg/Xorg.0.log , then it does not show any error and is basically th...
I remember I was able to reproduce your problem with not being able to run Virtualbox as non-root user without window manager with older versions of Virtualbox but it works for me with 5.2.4-119785. However, as stated in the comments you don't need to graphical interface at all. Virtualbox comes with command line in...
Arch Linux: Running VirtualBox (VM) without a window manager
1,462,724,866,000
xinit /usr/bin/firefox seems to do what's expected: to run firefox without a window manager. xinit firefox seems to do similar, but with a small xterm running behind. Can someone explain me what's happening here?
I suspect that you simply do not have an ~/.xinitrc file. When xinit starts it looks for that file and if it does not find it then it runs a tiny xterm. To be exact it runs: xterm -geometry +1+1 -n login -display :0 Also, the command line to xinit is: xinit [ [ client ] options ... ] [ -- [ server ] [ display...
`xinit /usr/bin/firefox` vs `xinit firefox`
1,462,724,866,000
I've one .xinitrc with the following lines: #!/usr/bin/env bash xrdb -merge ~/.Xresources & xset r rate 200 30 & xterm & #fixme: xterm is not reading loaded .Xresources exec /etc/alternatives/x-window-manager Why the xterm is not using the settings loaded with the xrdb? P.S.: this xterm inside .xinitrc does not use t...
In your script #!/usr/bin/env bash xrdb -merge ~/.Xresources & xset r rate 200 30 & xterm & #fixme: xterm is not reading loaded .Xresources exec /etc/alternatives/x-window-manager the line with xterm needs to run in the background, using "&" because the window manager has to run to manage the xterm (and if xterm were...
xterm not using .Xresources
1,462,724,866,000
I have a statusbar (lemonbar) to which I pipe the output of a couple of scripts (time, battery, volume, etc.). These scripts, and the statusbar itself, are all started in a single bash script statusbar. When the statusbar process is killed, it cleans up after itself by attempting to kill its children, like so: trap "t...
You can try using setsid (part of the util-linux package) in the .xinitrc to start the script in a new session: setsid statusbar but will it still receive your signals?
Start new process group in .xinitrc
1,462,724,866,000
I run Firefox with command xinit /path/to/firefox/binary and it opens a display with Firefox running on it. Then I push Ctrl +Alt+F1 to go back to console and then I push Ctrl+z to suspend the Firefox into the background. Then, I push Ctrl+Alt+F7 to go back to Firefox. I expect Firefox to be freezed or non-responsive,...
Firefox puts itself in the background and detaches from your terminal if you run it from a terminal. Therefore pressing Ctrl+Z is not really suspending Firefox, it probably suspends xinit. wget and most commandline programs do not have this kind of detaching behaviour. GUI based programs like gedit start mostly like ...
Should suspended application in the background (by ctrl+z) still run or should it stop running?
1,462,724,866,000
I am disappointed with existing Display Managers, and so I was wondering wheteher I could live without one. I have very basic needs on my laptop. I have one user martin who wants to be logged into LXDE automatically after boot. I have made following change in /etc/inittab #1:2345:respawn:/sbin/getty 38400 tty1 1:2345:...
Use small footprint Display Manager. SLIM With this display manager, some manual configuration is needed. Please refer to their official document and write your /etc/slim.conf and ~/.xinitrc. The command you should put in your ~/.xinitrc to start LXDE is: exec startlxde The above is coming from : http://wiki.lxde.or...
starting LXDE automatically (without Display Manager)
1,462,724,866,000
In NixOS, services.xserver.desktopManager.xfce.extraSessionCommands describes "Shell commands executed just before XFCE is started.". What about for shell commands right after XFCE is started? That is, I want to persist in my configuration.nix file what I would normally put in an .xinitrc. Is this possible?
You should be able to put most of the application you would usually put into xinitrc also into services.xserver.desktopManager.xfce.extraSessionCommands as important environment variables such as $DISPLAY and $DBUS_SESSION_BUS_ADDRESS are set. In fact in most xinitrc's start the window manager as the last process. He...
Configure XFCE startup commands in NixOS
1,462,724,866,000
Not using display manager and executing startup logic via xinitrc. Problem is some dbus-related env variables are not set. xinitrc excerpt: dbus-update-activation-environment --systemd --all # note this errors /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 & eval $(/usr/bin/gnome-keyring-daemon --sta...
I use startx just fine (Debian unstable + experimental). If you look at where the dbus environment variables are set (again), it's in /etc/X11/Xsession.d/20dbus_xdg-runtime. I use my own .xinitrc, and I realized a bunch of problems I had stemmed from not sourcing the scripts in /etc/X11/Xsession.d (as the default xini...
xinitrc - set DBUS_SESSION_BUS_ADDRESS
1,462,724,866,000
I am new to Arch and did a fresh install. I have configured it to use dwm and I start it with startx. The problem is that some commands in xinitrc seem to not run. It clearly works to some extend, because dwm is starting, but i can't say the same for other commands. My xintirc is located: ~/.xinitrc (or /home/xor/.xin...
The problem with your .xinitrc is that it just starts with exec. This particular way to launch some command (here dwm) makes dwm replace the running shell, hence forbidding everything further down to be launched. Quoted from man exec If exec is specified with command, it shall replace the shell with command without c...
xinitrc seems to not run some commands
1,462,724,866,000
I have an Arch Linux with i3wm now. When I need to start my i3, I just type startx, because in config file I have exec i3;. When I need to run some another graphical environment, such as Gnome, I edit my xinitrc. Some graphical environments create after installing their own start-file (some not), such as startdde for ...
Just put exec "$@" at the end of your xinitrc, and then execute startx /path/to/xinitrc <wm> <wm-args> from a tty. startx interprets its first string argument as the client (/path/to/xinitrc, note that it has to be an absolute path), and rest of the arguments are passed to that client (wm and wm-args), which are exec...
How to make several "startx" profiles?
1,462,724,866,000
Running debian testing, no display manager, i3 window manager. gnome-keyring & libpam-gnome-keyring packages are installed. Added following 2 lines to end of /etc/pam.d/login: auth optional pam_gnome_keyring.so session optional pam_gnome_keyring.so auto_start keyring is started by systemd @ /etc/syst...
Think I got it sorted. Don't have deep understanding of what's going on, but it has to do with dbus. Problem is the way i3 was started from ~/.xinitrc: exec dbus-run-session i3 I'm guessing it causes keyring-daemon to be tied to different dbus session than i3 (and, by extension, most everything else in user space). T...
unlock gnome-keyring on login
1,462,724,866,000
I need to run a program that I haven't developed, the issue is that even if it doesn't run any GUI interface (can be used on silent mode) it still requires an X server running because of the way it's coded. I have struggled to, not install, but go and start an X server on a Centos 7 system. I don't want it to do anyth...
To have a GUI that exists only in memory, I would suggest using Xvfb (X Virtual Frame Buffer). I have written an answer on this previously, so I will just reproduce the same here with some minor edits. Xvfb (X Virtual Frame Buffer) allows you to have a display that exists only in-memory, so that tests/operations with ...
Starting just an X server on a minimal installation
1,462,724,866,000
I have Ubuntu-server 16.04. Installed gtk3 and can execute my program manually by this command: ./img when I go to it's directory /home/m. But when I tried to add this line to my /etc/rc.local file: /home/m/img & It didn't work. This is my rc.local full content: startx /home/m/img & exit 0 Then I tried to create ~/...
**Also I like to hide my mouse pointer and my windows borders but don't know how? You can append -- -nocursor to your startx to hide mouse pointer: exec startx -- -nocursor There are files ~/.config/openbox/rc.xml and /etc/xdg/openbox/rc.xml for you to edit (ref: http://openbox.org/wiki/Help:Configuration) , e.g. (...
My ubuntu-server doesn't execute my gtk-based program at startup!
1,462,724,866,000
I'm trying to get an xscreensaver to run as my desktop background / wallpaper using the method described here: https://wiki.archlinux.org/index.php/XScreenSaver#Animated_wallpaper and the first step is killing the process that controls the root X window, but I have no idea what process that is. Ideally I'd like to lea...
The root Window is a special Window of the X server. It doesn't have an associated application. The wiki improperly refers to the root window here. What they meant is a Window that masks/hides the root Window like typically found in modern desktop environments (usually referred to as the Desktop, and often implemented...
How can I find which process is controlling the root window?
1,462,724,866,000
I'm using archlinux, dwm and dwmblocks. At startup dwmblocks shows only the icons of the blocks', without loading the scripts output. If I run $ killall dwmblocks and restart $ dwmblocks & it loads all required modules flawlessly. For me, as a nonprofessional, it seems that the $PATH is not read before startx. So in...
The command source is not portable. That is a bash-specific (possibly also some other shells) alias to the standard POSIX shell command .. So, it looks like your .profile is being read by something other than bash which means you should use . and not source. Also, you can't be sure that $HOME will be set (it may well ...
dwmblocks not reading $PATH
1,462,724,866,000
I have a RPi running raspbian jessie which I use in kiosk mode: I start in /etc/rc.local /usr/bin/xinit /opt/domotique/xinitrc > /root/xinitrc-errors 2>&1 and /opt/domotique/xinitrc is date > /tmp/date.txt export DISPLAY=':0' xset s off xset -dpms xset s noblank setxkbmap fr /usr/bin/matchbox-window-manager -use_ti...
From xdotool(1): key [options] keystroke [keystroke ...] Options: --window window Send keystrokes to a specific window id. You can use ``WINDOW STACK'' references like ``%1'' and ``%@'' here. If there is a window stack, then ``%1'' is the default, otherwise the current window is used. In your ssh test, you had alre...
why would a command run at the prompt and not in a script?
1,462,724,866,000
I need to set some trackpoint settings automatically. I don't know the best file in which to place these commands, but I used .xsessionrc. The commands are properly executed (I can verify that by adding set -x in the script, I see the xset command being executed). The xinput command have their intended effect, but the...
The xset command is executed, but something in KDE overrides these settings afterwards. The easiest solution would be to find the place in KDE where you can set the mouse acceleration. There may not be one though. If you can't find a GUI way, you'll have to arrange for your xset command to run after KDE sets its own u...
xset not having any effect in my .xsessionrc file
1,462,724,866,000
I have a SSH server that is responsible for running dwm binary through X forwarding, on my client computer, i have a shell script that replaces the dwm binary on /usr/local/bin, inside that script, i simply make a call to the server requesting it to run the original dwm: ssh -q -tt [email protected] dwm $@ With only ...
Finally managed to find a solution for that, for some reason, the problem was in the fact that i was: Forcing TTY allocation, had to remove -tt flag from SSH client Requesting Docker to allocate a pseudo-tty and run in interactive mode, had to remove -it flags from Docker CLI on the SSH server side The points above...
startx inconsistent behavior
1,462,724,866,000
I am trying to figure out how to use my .xinitrc file to load an xmodmap configuration file. Although this seems to be a popular problem around the internet, I can't seem to get it working. I am running Arch Linux and am using Gnome as my desktop environment. Initially, all that was in my .xinitrc file was exec gnome-...
The way I got this working was to put an & after the sleep/xmodmap command (i.e. running it in the background), and put the full command before gnome-session (and the sleep command was necessary): sleep 20 && xmodmap ~/.xmodmap & exec gnome-session I believe exec gnome-session or something else is resetting my keyboa...
how to load an xmodmap configuration file using .xinitrc
1,462,724,866,000
I am trying to configure my .xinitrc to be able to choose different window managers before starting X but I cannot reproduce the same environment as when I just run startx without a .xinitrc file in my home dir. case $session in awesome ) exec awesome;; ob ) exec openbox-lxde-pi;; # No known sessio...
Ok after fiddling around the system I found that startlxde-pi exists so and it is actually what launches the default raspbian session (with openbox). Running xinit startlxde-pi does the job. Now I need to investigate how is that being called by startx when .xinitrc is missing.
What is the exact command to start the openbox-lxde default session in raspbian?
1,462,724,866,000
I added an .Xresources file to my home directory and when I load it from my shell prompt with xrdb -merge ~/.Xresources the resource settings are recognized (for X programs started afterwards). However I would like to have these resources applied all the time when i login to my user account. I thought the X11 system w...
The resources are stored on the X server. So if you are using a remote X server on Windows, the best way would be to copy your .Xresources file to Windows, and load it into the X server whenever you start the X server. If this doesn't work for you, because you want to have your .Xresources on the CentOS machine, then ...
.XResources are not loaded automatically. - Where should I put my xrdb -merge ~/.Xresources initialisation?
1,462,724,866,000
I have i3 installed as my primary window manager; now I want to test dwm. My xinitrc has only one line: exec i3. If I want dwm to launch and not i3 do I have to delete this line completely or do I have to just put exec dwm above this line?
The xinitrc file is a shell script. The exec statement in a shell script says "replace this running program (the shell running the script) with the given program". Assuming the given program can be run, the shell won't be around to run anything after the first exec; anything that comes after the first successful exe...
Is there a preference rule for exec in xinitrc?
1,462,724,866,000
I'm using fresh install of Arch with i3; after logging into I type in startx and i3 is starting with default settings, despite the configuration of my .xinitrc: #!/bin/sh exec i3 exec xrdb ~/.Xresources But when I run xrdb ~/.Xresources from the terminal, the colors change to values configured in .Xresources
In your .xinitrc you need to execute xrdb first and then launch i3. E.g: #!/bin/sh xrdb -merge ~/.Xresources exec i3
.xinitrc not loading .Xresources [closed]
1,462,724,866,000
I have a condition in .xinitrc that is not met, and I don't understand why: I have the .Xresources file in my ~ (with read permissions), and my ~/.xinitrc contains a line with [[ -f ~/.Xresources ]] && xrdb -load ~/.Xresources & However the condition between double brackets is not met. Why is that? The file exists an...
The solution is in the comment from @steeldriver: Is your .xinitrc a bash script, or a sh script? the [[ ... ]] extended test syntax may not be supported in the latter
condition in .xinitrc not satisfied, don't know why
1,462,724,866,000
I'm having some trouble starting pywal through .xinitrc Currently my .xinitrc is: exec dwm wal -i "/home/joe/pictures/wallpapers" & Anyone know what I could have messed up?
On exec dwm, the shell process that is executing the .xinitrc script will be replaced with dwm, and so any commands in .xinitrc after that will be totally ignored. Will it work if you just swap the order of those two lines? wal -i "/home/joe/pictures/wallpapers" & exec dwm Or does this have some undesirable side effe...
pywal wont run on startx
1,516,241,372,000
I am running a fresh install of CentOS 7 GNOME so I could RDP from Windows.  I followed the “Connect to GNOME desktop environment via XRDP” instructions, but when I connect I get an additional login that says authentication is required to create a color profile How do I remove this additional login? In an attempt to ...
EDIT: Please use the upvoted answer and not this one. OLD ANSWER: I found this bug and some workarounds here: https://bugzilla.redhat.com/show_bug.cgi?id=1149893 More specific you have to place a .rules file in /etc/polkit-1/rules.d/ (Select a filename and just givr the .rules extension) and give the rules: polkit.add...
Authentication is required to create a color profile
1,516,241,372,000
This is my xrdp config: [Globals] ini_version=1 fork=true port=3389 use_vsock=false tcp_nodelay=true tcp_keepalive=true security_layer=negotiate crypt_level=high certificate= key_file= ssl_protocols=TLSv1.2, TLSv1.3 autorun= allow_channels=true allow_multimon=true bitmap_cache=true bitmap_compression=true bulk_compres...
I solved the issue myself, hopefully someone else will find it usefull. I took a look at ~/.xsession-errors, it contained: (imsettings-check:16467): IMSettings-WARNING **: 04:42:56.491: Could not connect: Connection refused (imsettings-check:16467): GLib-GIO-CRITICAL **: 04:42:56.491: g_dbus_proxy_call_sync_internal:...
xrdp disconnects immediately after connection from Windows10/Centos to Centos7
1,516,241,372,000
I had to install a Linux based server, so after facing many problems over and over again, I finally managed to overcome all of them So now I was configuring xrdp and at the first look, everything worked fine, but then came the problem I can't find a way to fix it at all: Here at my work, we have lots of computers, and...
after looking around at the internet for a way to fix that, i found a temporary solution looks like the cause is a problem with the 18.04 version of ubuntu itself the way to fix it is quite simple, after logging in, the first thing you should do is umounting the thinclient thing, i did that by terminal using sudo umo...
File sharing over xrdp only works the first time
1,516,241,372,000
I am trying to connect to Debian 10 machine with KDE from Windows 10 using RDP. I am able to connect as root, but not as a less privileged user. The connection drops after I type the correct credentials in the login screen I've done a standard xrdp installation on my Debian machine, which is: $ sudo apt install xrdp ...
TL;DR: The user you're connecting with must be logged out xrdp must be running on system startup, not when you're logged in Your network connection should be available to all users (i.e. at the system startup) The user you're connecting with must be logged out The following error is observed in /home/{username}/....
Can't connect to xrdp as normal user, connecting as root is fine
1,516,241,372,000
According to xrdp docs it should be possible to connect remotely without using a local VNC server: xrdp can connect to a locally created X.org session with the xorgxrdp drivers [my emphasis], to a VNC X11 server, and forward to another RDP server. I can connect with RDP from Windows: Then I select Xorg sess...
This bug report has the same symptoms as described in the question. Seems xserver-xorg-legacy package is the culprit. So to make it work, it boils down to the following two commands: apt-get purge xserver-xorg-legacy apt-get install xrdp The required services are started automatically after install. No need to reboo...
Using XRDP without local VNC server
1,516,241,372,000
Not able to grep xrdp version line by running below command on ubuntu 14.04 $ sudo xrdp -v | grep -i "version" Output : Blank $ sudo xrdp -v Output : logging configuration: LogFile: /var/log/xrdp.log LogLevel: 4 EnableSyslog: 1 SyslogLevel: 4 xrdp: A Remote Desktop Protocol server. Co...
xrdp writes to 1, that is stdout as shown by strace but it looks that it buffers its output for some reasons. Try this: $ unbuffer xrdp -v | grep Version Version 0.9.4 Alternatively you can use stdbuf: $ stdbuf -o0 xrdp -v | grep Version Version 0.9.4
How to grep XRDP version number?