ubuntu server ssh remote X11

 

只字片语写给我自己备份记录,别人读不懂勿怪~~~~~~~~~

"version": "0.2.0",

    "configurations": [

        {

            "name": "Python: Current File",

            "type": "python",

            "request": "launch",

            "program": "${file}",

            "console": "integratedTerminal",

            "env": {"PYTHONPATH":"${workspaceRoot}"}

        }

    ]

如果总说符号错误,就重启VScode, 或者关闭launch.json

{
            "name": "Python",
            "type": "python",
            "request": "launch",
            "stopOnEntry": false,
            "pythonPath": "${config:python.pythonPath}",
            "program": "${file}",
            "cwd": "${workspaceRoot}",
            "env": {"PYTHONPATH":"${workspaceRoot}"},
            "envFile": "${workspaceRoot}/.env",
            "debugOptions": [
                "WaitOnAbnormalExit",
                "WaitOnNormalExit",
                "RedirectOutput"
            ]
        },

 

sudp apt install gcc g++ make

vi /etc/modproxxx.d/blacklist.conf

blacklist nouveau

options nouveau modeset=0

sudo iniramxxxx -u

NVIxxx.run -no-nouveau-check -no-x-check -no-opengl-files

cuda cudnn anaconda3

 

先安装xming,好像xshell不用安装。

再安装vscode插件 remote X11 remote ssh

配置xming:X0.host---->

localhost
10.20.51.218

,启动

修改Ubuntu的/etc/ssh/sshd_config 里面几个 yes,

X11Forwarding yes

X11DisplayOffset 10

X11UseLocalhost yes

export DISPLAY=xxx.xxx.xxx.xxx:0.0 # 0.0 is the same with xming server

sudo apt install x11-xserver-utils

Namespace Gtk not available

sudo apt install libgtk-3-dev 

无线网卡

The driver is built by running make, and can be tested by loading the built module using insmod:

$ make
$ sudo insmod 8812au.ko

After loading the module, a wireless network interface named Realtek 802.11n WLAN Adapter should be available.

Installing

Installing the driver is simply a matter of copying the built module into the correct location and updating module dependencies using depmod:

$ sudo cp 8812au.ko /lib/modules/$(uname -r)/kernel/drivers/net/wireless
$ sudo depmod
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值