start a GUI software on a remote Linux PC via SSH

Is there a way to start a GUI software on a remote Linux PC via SSH?

=>

We just need to run export DISPLAY=:0 in ssh session and programs run will run on the remote display.

ex:

[email protected]:~$ ssh tim [email protected]:~$ export DISPLAY=:0 [email protected]:~$ firefox

or

#we can shorten this all down into one command that will connect, export the display in-line and start the application in a way that won‘t close it after the ssh session dies

ssh tim "DISPLAY=:0 nohup firefox"

时间: 2024-08-02 08:08:35

start a GUI software on a remote Linux PC via SSH的相关文章

Share folders on your local Windows PC to remote Linux PC

1. make the folders(H:\win7_host_backup) on Windows PC shared 2. on remote Linux PC cmdline, mount -t cifs -o username=xxxxxxx,password=xxxxx,dir_mode=0755,file_mode=0755 //WindowsPC_IP/win7_host_backup ~/remote_windows Done.

Share folders on remote Linux PC to your local Windows PC

With samba on Linux PC already installed On Linux PC: 1. vi /etc/samba/smb.conf add the following text in the end,  NOTE, there are  SPACEs before those options. [192.168.0.27.home]         comment = Linux Server 192.168.0.27 home         path = /hom

linux服务之ssh

一,查看版本[[email protected] ~]# ssh -VOpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010                    表明该系统正在使用OpenSSHssh -V ssh: SSH Secure Shell 3.2.9.1 (non-commercial version) on i686-pc-linux-gnu    表明该系统正在使用SSH2 二,首次使用当你第一次使用ssh登录远程主机时,会出现没有找到主机密

Linux PC开发环境搭建建议

搭建Linux PC开发环境 很早之前整理的在Linux(ubuntu)系统下搭建 PC开发环境的工具的推荐和简单说明,尽管现在有些已经不再使用,但还是要备份一下,作为以后的参考: package: download from: 软件集成开发环境(代码编辑.浏览.编译.调试) Emacs http://www.gnu.org/software/emacs/ Source-Navigator 5.2b2 http://sourceforge.net/projects/sourcenav 代码索引工

gdb调试之linux pc和linux arm环境下

Linux PC应用程序gdb调试: 1.查看core文件参数 [email protected]:~/File_unzip/cp_module$ ulimit -a core file size          (blocks, -c) 0        //产生core文件数目,不会产生core文件 data seg size           (kbytes, -d) unlimited scheduling priority             (-e) 0 file size 

Linux 配置双机SSH信任

Linux 配置双机SSH信任 一.实现原理 使用一种被称为"公私钥"认证的方式来进行ssh登录."公私钥"认证方式简单的解释是: 首先在客户端上创建一对公私钥(公钥文件:~/.ssh/id_rsa.pub:私钥文件:~/.ssh/id_rsa),然后把公钥放到服务器上(~/.ssh/authorized_keys),自己保留好私钥.当ssh登录时,ssh程序会发送私钥去和服务器上的公钥做匹配.如果匹配成功就可以登录了. 二.实验环境 A机:TS-DEV/10.0.

linux中修改ssh端口和禁止root远程登陆设置

linux中修改ssh端口和禁止root远程登陆设置 查看下系统版本 [[email protected] ~]# cat /etc/redhat-release CentOS release 6.7 (Final) 修改配置文件 linux修改端口22vim /etc/ssh/sshd_config找到#port 22将前面的#去掉,然后修改端口 port 1234重启服务就OK了service sshd restart或/etc/init.d/ssh restart为增强安全先增加一个普通权

Linux系统下ssh登陆很慢的解决办法

Linux系统下ssh登陆很慢怎么办?很多的Linux用户发现连接上Linux服务器在输入用户名之后还要再等一下才能输入密码,时间过长了,现在小编与大家分享一下如何解决ssh登陆问题的问题,需要的朋友可以参考下 很多的Linux用户发现连接上Linux服务器在输入用户名之后还要再等一下才能输入密码,时间过长了,现在小编与大家分享一下如何解决ssh登陆问题的问题,希望对您有所帮助 . 1.我们平时登陆Linux服务器的时候,都需要在输入用户名之后再等待一下,这个时间因不同而等的时间不一样. 2.其

Linux主机间ssh实现无密码登陆

server1    主机名:centos6         IP:192.168.2.105        操作系统:centos6.5 server2    主机名:rhel6             IP:192.168.2.110        操作系统:rhel6.5 为了实现server1对server2能够实现无密码登陆,可以在server1主机上使用ssh-keygen工具生成一对密钥,server1保留私钥,将公钥上传至server2主机相应用户的主目录下的.ssh/文件夹下,