ubuntu 连网线 ubuntu如何安装软件

大家好,今天来为大家解答ubuntu 连网线这个问题的一些问题点,包括ubuntu如何安装软件也一样很多人还不知道,因此呢,今天就来为大家分析分析,现在让我们一起来看看吧!如果解决了您的问题,还望您关注下本站哦,谢谢~

ubuntu插了网线没有有线连接

检查网线和网口、检查网络设置、检查网络驱动程序等。

1、检查网线和网口:确保网线连接到计算机的网口上,网线没有损坏。可以将网线连接到其他设备上,确认是否是网线的问题。

2、检查网络设置:打开Ubuntu的网络设置,检查是否启用了有线网络连接。可以通过单击右上角的网络图标,在下拉菜单中选择「有线网络」,确保开关处于打开状态。

3、检查网络驱动程序:需要安装适用于网卡的驱动程序。可以通过终端命令lspci-k查看已安装的网卡和其对应的驱动程序。重新安装网卡驱动程序来解决问题。

Linux Ubuntu 跟 windows7用一根网线怎么传输文件

不用网线,用无线就可以,win7建立无线局域网,linux连上win7的局域网,然后用网上连接,或者FTP传输都可以

方法:

samba是ubuntu和windows之间实现网络共享的工具。

1.安装samba

[cpp] view plaincopy

sudo apt-get install samba

查看安装是否成功:

[cpp] view plaincopy

sudo dpkg-l samba*

输入上面命令会看到如下输出:

[cpp] view plaincopy

Desired=Unknown/Install/Remove/Purge/Hold

| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend

|/ Err?=(none)/Reinst-required(Status,Err: uppercase=bad)

||/ Name Version Description

+++-==============-==============-============================================

ii samba 2:3.5.11~dfsg- SMB/CIFS file, print, and login server for U

un samba-client<none>(no description available)

ii samba-common 2:3.5.11~dfsg- common files used by both the Samba server a

ii samba-common-b 2:3.5.11~dfsg- common files used by both the Samba server a

un samba-tools<none>(no description available)

un samba4<none>(no description available)

un samba4-clients<none>(no description available)

un samba4-common<none>(no description available)

前面显示ii表示安装成功了。

2.创建共享目录

假设用户名为user_z

[cpp] view plaincopy

[cpp] view plaincopy

mkdir/home/user_z/share(创建share文件夹用来共享)

chmod 777/home/user_z/share(更改chare的文件权限为所有用户可读可写可运行)

3.备份并编辑smb.conf

[cpp] view plaincopy

[cpp] view plaincopy

sudo cp/etc/samba/smb.conf/etc/samba/smb.conf_backup

sudo gedit/etc/samba/smb.conf

找到 Authentication参数,设置 security。

security的设置可以是为 share,也可以为 user。设置为 share时,访问不需要用户名和密码,也不需要映射用户和添加用户密码。但是为了安全考虑,此处我们设置为 user,并设置访问密码

[cpp] view plaincopy

security= user(这里也可以设置为share,这时访问就不需要用户名和密码了。那么就不需要映射用户和添加用户与密码)

username map=/etc/samba/smbusers

设置[share]参数,假设允许访问share文件夹的网络用户名是guest_z(后面要相应地添加该用户)

[cpp] view plaincopy

[Share]

comment= Shared Folder with username and password

path=/home/user_z/share

public= yes

writable= yes

valid users= guest_z

create mask= 0700

directory mask= 0700

force user= nobody

force group= nogroup

available= yes

browseable= yes

找到Global Settings,设置:

[cpp] view plaincopy

<pre name="code" class="cpp">workgroup= WORKGROUP#注意,这里的WORKGROUP是共享中的工作组名称

#下面的三行是为了防止出现中文目录乱码的情况

display charset= UTF-8

unix charset= UTF-8

dos charset= cp936</pre>

<pre></pre>

<p></p>

<pre></pre>

4.添加网络账户guest_z<pre name="code" class="cpp">sudo useradd guest_z</pre>要注意,上面只是增加了new这个用户,却没有给用户赋予本机登录密码。所以这个用户将只能从远程访问,不能从本机登录。而且samba的登录密码可以和本机登录密码不一样。现在要新增网络使用者的帐号:<br>

<pre name="code" class="plain">sudo smbpasswd-a guest_z

(设置你的new密码,这个密码不是开机登录时候用的,是你要访问WIN共享文件或者WIN共享文件访问你的时候要填的密码)</pre><br>

5.编辑smbusers文件,(若第一次添加用户,此文件可能不存在,输入下面命令,系统会为我们新建一个smbusers文件)<br>

<pre name="code" class="plain">sudo gedit/etc/samba/smbusers</pre>在smbusers文件中加上<br>

<pre name="code" class="plain">new=“network username”</pre>保存,退出。<br>

<br>

删除网络使用者的帐号的命令把上面的-a改成-x;如 sudo smbpasswd-x guest_z<br>

<br>

6.测试并重启samba,Samba服务会同时启动两个服务,其中smbd主要用来管理共享出来的目录,nmbd主要用来解析NetBIOS名。在Windows系统中,主机可以被加入一个组中,这样每个主机都必须有一个名字,这个名字是用于在网上被标志的名,并非机器的主机名,将其称为NetBIOS名。其中nmbd进程是随着smbd进程启动而启动。<br>

<pre name="code" class="plain">sudo testparm#测试

sudo smbd restart

sudo nmbd restart</pre>这样,在win7命令行中输入\\linux ip,就可以访问你linux下的文件了。<br>

<p></p>

<p>7.遇到的访问错误:</p>

<p>“multiple connections to a server or shared resource”,一种可能性如下:</p>

<p>(链接:<a href="">;)<br>

</p>

<p><span style="color:rgb(51,51,51); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:13px; line-height:16px">The network folder specified is currently mapped using a different</span><br style="color:rgb(51,51,51); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:13px; line-height:16px; text-align:left">

<span style="color:rgb(51,51,51); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:13px; line-height:16px; text-align:left">user name and password. To connect using a different user name and</span><br style="color:rgb(51,51,51); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:13px; line-height:16px; text-align:left">

<span style="color:rgb(51,51,51); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:13px; line-height:16px; text-align:left">password, first disconnect any existing mappings to this network</span><br style="color:rgb(51,51,51); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:13px; line-height:16px; text-align:left">

<span style="color:rgb(51,51,51); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:13px; line-height:16px; text-align:left">share.</span><br style="color:rgb(51,51,51); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:13px; line-height:16px; text-align:left">

</p>

<p style="border-style:initial; border-color:initial; font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; margin-top:1em; margin-bottom:1em; outline-width:0px; outline-style:initial; outline-color:initial; padding-top:0px; padding-bottom:0px; border-top-style:none; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; text-decoration:none; color:rgb(51,51,51); font-size:13px; line-height:16px; text-align:left">

To do this</p>

<p style="border-style:initial; border-color:initial; font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; margin-top:1em; margin-bottom:1em; outline-width:0px; outline-style:initial; outline-color:initial; padding-top:0px; padding-bottom:0px; border-top-style:none; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; text-decoration:none; color:rgb(51,51,51); font-size:13px; line-height:16px; text-align:left">

net use*/delete</p>

<span style="color:rgb(51,51,51); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:13px; line-height:16px; text-align:left">Press'Y' on keyboard</span><br>

<p><span style="color:rgb(51,51,51); font-family:'Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:13px; line-height:16px; text-align:left"><br>

</span></p>

<p><br>

</p>

<p><br>

</p>

<pre></pre>

<div style="padding-top:20px">

<p style="font-size:12px;">版权声明:本文为博主原创文章,未经博主允许不得转载。</p>

</div>

ubuntu系统安装好后,没有网线只有无线的环境下,怎么联网

这个你可以看看右上角那个联网标志,点开后它会显示检测到的无线网,选择一个直接连就可以了吧。除非你没装无线网卡的驱动,这就没办法了。

或者你是说怎么进行网络设置?

无线设置是设置路由器,如果设置好就可以连了。如果没有可以点开浏览器设置。

希望能帮到你。

阅读剩余
THE END