Ubuntu“基本操作”及“实现【远程连接】前需步骤”

如何在外SSH远程连接Ubuntu系统【无公网IP】 随着科技和经济的发展,我们身边的电子设备也越来越多,而不同的电子设备也让我们接触到各有特色的操作系统。但多种操作系统之间如何有效的进行数据互联并进行远程操作,又成为比较麻烦的事。现在,我们可以通过cpolar建立的数据隧道,连接起不同的操作系统。现在,我们就来看看如何让Windows与Ubuntu系统进行远程互联。 阅读详情

1、Ubuntu管理员密码:

Ubuntu在终端输入su,su验证失败。

因为刚开始用时Ubuntu的管理员账户还没设置密码。Ubuntu默认留着root账户。只是在装系统时没有让你输入密码而已。

sudo passwd root

 

2、ubuntu关闭防火墙:

sudo ufw disable  关闭防火墙;  ====>  root账户下,则不需要加sudo

 sudo ufw enable   开启防火墙;

sudo ufw status      查看防火墙状态; 

3、Ubuntu查看ip地址:

安装net-tools包:

sudo apt install net-tool 

使用命令查看ip:

ifconfig  

MobaXterm-SSH远程连接Ubuntu 我们常常在公司的服务器上面的虚拟机进行交叉编译,所以才需要我们用远程终端工具MobaXterm去接入虚拟机。然后把我们在window用VScode编辑好的代码拖拽上传到服务器,等待服务器编译完把生成的可执行文件从服务器拖拽下来,烧录到板子运行。 阅读详情

相关推荐

ubuntu中安装Mysql以及使用Navicat远程连接的详细步骤【图文教程】

建议大家都安装的版本,在该版本下再安装版本的数据库。1查看当前是否安装了MySQL程序执行以上命令,如果执行后什么都没有,则进入到MySQL的安装步骤2如果执行以上命令,显式如下,就证明MySQL已经安装完毕,直接使用MySQL即可。3执行以下命令安装MySQL安装完成后,MySQL服务会自动启动4使用如下命令检查MySQL的状态至此,你已经成功的安装好了MySQL服务器。

qq_42037383的博客 1497

ubuntu开启远程连接服务

操作系统:ubuntu20.04远程连接软件:finalshell。

goodattainment的博客 8196

告别水印!Vue3项目集成Stimulsoft.Reports.js完整配置与激活指南

本文详细介绍了如何在Vue3项目中集成Stimulsoft.Reports.js,提供从授权策略到性能优化的完整解决方案。通过模块化架构设计和现代化引入方式,帮助开发者高效实现专业级报表功能,同时避免版权风险和水印问题,特别适合中小型项目需求。

weixin_33701294的博客 435

【Ubuntu】远程连接乌班图的方式-命令行界面、图形界面

3.1 不知道为何,乌班图 共享里自带的VNC 开启后,无法VNC连接,还需要安装X11vnc,后续再研究……挖坑---测试后,自带的VNC 就可以建立连接的。如果选择第一种方式,同意后,以后的连接都无需密码关于选择第二种,但不知道原始密码是多少???有待研究3.2 乌班图 锁屏状态,VNC、RDP竟然无法连接。3.3 安装过程注意查看服务是否启动、监听端口是否正常、防火墙端口已开放。

Best_lgx的博客 5万+

【深度学习】手把手教你在远程服务器上跑 YOLOv3 相关代码(含环境配置)

这篇文章主要记录了如何配置项目环境以及如何在远程服务器上跑 YOLOv3 模型。

作者正在煮茶中... 2391

18、动态系统响应分析

本文系统地介绍了动态系统响应的分析方法,涵盖传递函数建模、特殊输入下的响应特性(如脉冲和阶跃响应)、终值与初值定理的应用、系统直流增益的计算,并深入探讨了一阶和二阶系统的时域特性。通过实例分析与MATLAB仿真,展示了不同参数对系统行为的影响。文章还总结了系统响应在控制设计与故障诊断中的实际应用,并展望了多变量、非线性及实时响应分析的未来研究方向。配合流程图,提供了清晰的系统分析与设计路径。

kite3的博客 147

ubuntu配置远程桌面

如下步聚中,如果使用系统自带的有问题,先试下1,如果不行,直接用2以后的,是没有问题的。是一种与现有的 X11 显示服务器一起使用的 VNC 服务器,允许你在 VNC 会话中共享当前登录的桌面环境。是一种高性能的 VNC 服务器,兼容性好,且支持现代桌面环境。工作中常常的工作模式是本地电脑访问远程服务器,如果是图像算法工程师,必然需要查看图片,如果数据都在远程服务器上, 那么我们需要安装远程桌面。如果问题依然存在,可能需要检查系统是否正确安装了桌面环境,或者检查 VNC 服务器与桌面环境的兼容性。

dddeee的专栏 2万+

【SpringBoot 4.x 第29节】Spring Security 7 入门:先理解认证和授权!

🏆 本文收录于 《滚雪球学 Spring Boot 4.x》 专栏。本专栏面向 有一定 Java 基础,但尚未系统学习 Spring Boot 的读者,采用“滚雪球式学习法”:先跑通、再理解、再重构、再上线,带你从第一个 Hello API 开始,逐步完成一个可部署、可监控、可扩展的后端项目。

**My Coding Family** 564

详解使用SSH远程连接Ubuntu服务器系统

一篇让你明白ssh远程连接ubuntu系统!

墨辰JC的博客 3万+

SAP-ABAP:SAP创建CDS视图(SQL语句创建)实例详解

通过Eclipse和ADT创建CDS视图是SAP开发中的一项重要技能。CDS视图不仅简化了数据建模,还提供了高性能和灵活性。掌握CDS视图的开发和使用,可以帮助你更好地支持SAP S/4HANA和Fiori应用的开发。

baidu_35680696的博客 1827

大模型——dify实战通过dify搭建你自己的图片识别服务

本文介绍了如何通过Dify平台搭建图片识别服务。首先创建工作流,添加支持图片上传的字段,并配置视觉模型qwen-vl-max-latest进行图像分析。文章详细说明了各步骤操作,包括字段设置、模型选择、提示词编写等。在测试阶段发现URL解析问题后,提供了解决方案:修改Dify的.env文件,调整FILES_URL配置并重启服务。最终成功实现上传图片或输入图片链接后,AI能够准确分析并返回简洁的图片内容描述。这一方案适用于需要快速部署图像识别功能的场景。

1944

【奶妈级教程】Ubuntu18.04服务器远程连接指南

Ubuntu18.04服务器远程连接指南,包括服务器软件与网络设置、客户端局域网内连接服务器配置方法、连接使用的软件教程以及常见问题解答等内容。

joyboy2012的博客 2万+

2、微软 Power Automate 入门指南

本文是一篇关于微软 Power Automate 的入门指南,详细介绍了 Power Automate 的基本概念、相关术语、登录方式以及如何创建一个简单的自动化流。文章还探讨了 Power Automate 在业务流程中的应用场景和优势,并展望了其高级功能和未来发展。适合希望快速入门 Power Automate 并提升业务自动化效率的读者。

corn8的博客 452

VScode使用ssh远程连接Ubuntu【超简单且详细步骤】

本文介绍了如何在VS Code中使用SSH远程连接Ubuntu服务器进行开发。SSH是一种加密网络协议,可实现安全的远程登录、命令执行和文件传输。

不会C++、害怕嵌入式且不爱看动漫的小趴菜 1万+

【硬刚Hadoop】HADOOP MAPREDUCE(1):概述

本文是对《【硬刚大数据之学习路线篇】从零到大数据专家的学习指南(全面升级版)》的Hadoop部分补充。 1 MapReduce定义 MapReduce是一个分布式运算程序的编程框架,是用户开发“基于Hadoop的数据分析应用”的核心框架。 MapReduce核心功能是将用户编写的业务逻辑代码和自带默认组件整合成一个完整的分布式运算程序,并发运行在一个Hadoop集群上。 2MapReduce优缺点 2.1 优点 1)MapReduce易于编程 它简单的实现一些接口,就可以完成一个分布式程序..

微信搜:import_bigdata,大数据领域硬核原创作者 469

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

使用VScode远程连接Ubuntu

本篇为如何在VScode上远程连接Ubuntu:平常远程连接服务器的工具有很多,比如Moba、Xshell、putty、甚至CRT都可以进行远程连接服务器,但是他们的本质是相同的,都是使用ssh来进行远程连接。这里我们之所以要使用VScode远程连接,最大的好处就是写代码方便,平常我们使用那些工具,我们需要在本地上写好代码然后上传给服务器上执行,但是VScode恰好就可以解决这个问题。其核心组件都运行在远程环境中,本地完全不需要拥有远程开发环境的源代码。

钟言的博客 1万+

全球国家地区城市数据

MySQL全球国家地区城市数据报。。。。。。。。。。。。

VScode远程连接Ubuntu

使用vscode远程连接Ubuntu

2401_85241911的博客 2987

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

nomachine远程连接ubuntu

智驾小车(中控为Jeston AGX Orin)在三亚,需要和本部(青岛)的师兄协作开发系统,故有远程连接的需求(可视化界面调试代码),网上很少有nomachine结合p2link的文章于是自己动手写了这篇

qq_59860384的博客 2278

从 Windows 11 远程连接 Ubuntu

起初,我通过 SSH 轻松实现了命令行访问,但后来需要图形界面操作时,却踩了不少坑。通过这次折腾,我深刻理解了 Linux 显示管理器、桌面环境与远程协议之间的关系。如果你追求“鱼和熊掌兼得”——既想保留本地 Ubuntu 的原生体验,又想实现无缝远程连接,不妨参考本文方案。如果只需通过终端操作 Ubuntu(例如部署服务或修改配置),SSH 是最轻量、高效的方案。后,本地登录界面和桌面风格变得简陋,失去了 Ubuntu 原版体验。如果 Ubuntu 是服务器版或最小化安装,默认无图形界面。

2401_83666025的博客 3009

Windows远程连接Ubuntu详细操作

一、设置允许远程控制 1、在VMware中打开Ubuntu操作系统界面 2、点击“搜索您的计算机”图标 3、在搜索栏里输入:zhuo,搜索到“桌面共享” 4、点击“桌面共享”,按照如下所示进行设置:把“允许其他人查看您的桌面”勾选上,然后在安全那项,在“要求远程用户输入此密码”处设置密码,最后点击“关闭”按钮 二、安装vncserver 1、在Ubuntu主界面,...

沧海黎明 1万+

VScode远程连接Ubuntu服务器

VScode远程连接Ubuntu主机 本文记录了在VScode连接Ubuntu虚拟机并修改虚拟机内文件时遇到的一些问题及解决方法 提示:以下是本篇文章正文内容,下面案例可供参考 一、VScode连接主机 第一步:VScode安装插件并配置: 1.在VScode搜索remote-ssh并安装: 2.配置config文件: 其中host是主机名,可以随便设置;下面分别是ip地址和用户名,根据要连接的主机来设置,虚拟机可以输入"ifconfig"来看主机ip。 第二步:虚拟机配置: 1.在主机上安装SSH服

strive0_0的博客 2万+

在外SSH远程连接Ubuntu系统

在外SSH远程连接Ubuntu系统【无公网IP】

ks_wyf的博客 1565

【配置环境】Windows下 VS Code 远程连接虚拟机Ubuntu

Windows下 VS Code 远程连接虚拟机Ubuntu...

weixin_43729127的博客 1万+

Ubuntu安装Mysql启用远程连接

默认情况下,MySQL 数据库仅监听本地连接,如果想让外网远程连接到数据库,我们需要修改配置文件,让 MySQL 可以监听远程固定 ip 或者监听所有远程 ip。mysql默认只允许root账号在本地使用,需要修改一下允许远程使用root账号(没试过其他账号的情况,但原理一致)。防火墙是干嘛的呢,我自己的理解就是,如果开了防火墙,那服务器上所有端口都是。可以监听所有连接,或者也可以改成仅允许指定ip连接都可以。此时mysql的root账户没有设置密码,可以直接用。的时候只监听本地连接,改成。

目前专注区块链相关技术的学习与分享 6372

使用Xshell进行远程连接Ubuntu

使用xshell连接Ubuntu 1.Ubuntu的安装 ifconfig:查看虚拟机的ip地址 注意,由于xshell远程连接ubuntu是通过ssh协议的,所以,确保ubuntu安装ssh服务器: 输入以下命令进行安装远程ssh服务 sudo apt-get install openssh-server 若没有ssh,需要执行 sudo apt-get install ssh 2.、xshel...

weixin_46128342的博客 1909

win10远程连接Ubuntu

Ubuntu查看ip 使用Oracle VM VirtualBox装了一个Ubuntu18.04,想用winscp在Windows和Ubuntu直接传文件,登录winscp需要Ubuntu的ip和端口号,打开Ubuntu终端,输入ifconfig -a命令查看ip,提示要install net-tools,然后我输入在install net-tools时又提示没有找到安装候选, 这个问题应该是我新安装的系统apt需要更新一下,所以又输入apt-get update命令更新一下apt,更新完成后再输入命令in

qq_43737252的博客 8611
上一篇: 第五章 字符串专题 ---------------- 5.5 题解:压缩字符串
下一篇: Ubuntu开启ssh服务远程登录
Estrellas_
博客等级 码龄9年 273粉丝 233原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值