网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

linux命令行配置热点,linux配置文件命令

linux系统下怎么设置连wifi

如果安装Linux系统的设备有无线网卡,即可连接WiFi,下面是Linux系统连接WiFi的方法:

目前累计服务客户1000+,积累了丰富的产品开发及服务经验。以网站设计水平和技术实力,树立企业形象,为客户提供成都网站设计、网站建设、网站策划、网页设计、网络营销、VI设计、网站改版、漏洞修补等服务。成都创新互联始终以务实、诚信为根本,不断创新和提高建站品质,通过对领先技术的掌握、对创意设计的研究、对客户形象的视觉传递、对应用系统的结合,为客户提供更好的一站式互联网解决方案,携手广大客户,共同发展进步。

①检查是哪一个接口来支持无线连接

sudo iwconfig

②启动无线网卡WLAN0

sudo ip link set wlan0 up

③扫描附近的无线网络

sudo iw dev wlan0 scan | less

④用下面的命令直接连接

sudo iw dev wlan0 connect [网络 SSID] key 0:[WEP 密钥]

#SSID就是无线网的名称,密钥就是无线网的密码。

如何用linux做wifi热点

第一步:安装应用;

apt-get install hostapd dnsmasq

第二步:配置文件;

修改/etc/hostapd/hostapd.conf

修改/etc/dnsmasq.conf

第三步:添加脚本;

将以下脚本添加到/etc/network/if-up.d/wapstart:

将以下脚本添加到/etc/network/if-post-down.d/wapstop:

为这两个脚本加上可执行权限:

chmod +x /etc/network/if-up.d/wapstart

chmod +x /etc/network/if-post-down.d/wapstop

最后一步:使用咯;

ifconfig eth0 down

ifconfig eth0 up

linux mint17怎么开热点

第一步:安装应用;

apt-get install hostapd dnsmasq

第二步:配置文件;

修改/etc/hostapd/hostapd.conf

1

2

3

4

5

6

7

8

9

10

interface=wlan0

driver=nl80211

ssid=hotspot # Your WAP name, change it to something more unique

hw_mode=g

channel=6 # You may want to change this if the channel is too crowded

wpa=1

wpa_passphrase=hotspot_password # Password for clients

wpa_key_mgmt=WPA-PSK

wpa_pairwise=TKIP CCMP

wpa_ptk_rekey=600

修改/etc/dnsmasq.conf

1

2

3

4

5

6

7

8

9

# disables dnsmasq reading any other files like /etc/resolv.conf for nameservers

no-resolv

# Interface to bind to

interface=wlan0

# Specify starting_range,end_range,lease_time

dhcp-range=10.0.0.3,10.0.0.20,12h

# dns addresses to send to the clients

server=8.8.8.8

server=8.8.4.4

第三步:添加脚步;

将以下脚本添加到/etc/network/if-up.d/wapstart:

#!/bin/sh

WIRE=eth0

WIFI=wlan0

# Only run script for wired interface

if [ ! "$IFACE" = "$WIRE" ]

then

exit 0

fi

# Setup wireless interface

ifconfig $WIFI up 10.0.0.1 netmask 255.255.255.0

# Start dnsmasq

/etc/init.d/dnsmasq start

#Enable NAT

iptables --flush

iptables --table nat --flush

iptables --delete-chain

iptables --table nat --delete-chain

iptables --table nat --append POSTROUTING --out-interface $WIRE -j MASQUERADE

iptables --append FORWARD --in-interface $WIFI -j ACCEPT

# Start the Wireless Access Point service

/etc/init.d/hostapd start

exit 0

将以下脚本添加到/etc/network/if-post-down.d/wapstop:

#!/bin/bash

WIRE=eth0

WIFI=wlan0

# Only run script for wired interface

if [ ! "$IFACE" = "$WIRE" ]

then

exit 0

fi

# Stops Wireless Access Point services

/etc/init.d/hostapd stop

/etc/init.d/dnsmasq stop

# Asked nice the first time...

killall dnsmasq

killall hostapd

ifconfig $WIFI down

为这两个脚本加上可执行权限:

chmod +x /etc/network/if-up.d/wapstart

chmod +x /etc/network/if-post-down.d/wapstop

最后一步:使用咯;

ifconfig eth0 down

ifconfig eth0 up

deepin linux怎么创建wifi热点

方法/步骤

安装hostapd无线网认证程序。

sudo apt-get install hostapd

安装小型DNS/TFTP服务器。

sudo apt-get install dnsmasq

安装iptables。默认deepin linux下已经安装。

sudo apt-get install iptables

安装git,需要克隆github上的create_ap。sudo apt-get install git

建立一个文件夹,并初始化git仓库,以便克隆github上的工具。

克隆github上的ap创建工具create_ap。

克隆完成,执行如下命令安装create_ap。

sudo make install

接下来查看自己电脑上网络名称。

最后通过create_ap来创建wifi热点,命令格式:

create_ap 无线网卡 有线网卡 热点名称 密码

比如我的电脑创建一个密码为110120114的叫mywifi的热点。

sudo create_ap wlan0 enxb827eb03ac05 mywifi 110120114

开启后,其它无线设备就可以在无线网扫描中找到mywifi的网络,输入密码即可上网了。


网页标题:linux命令行配置热点,linux配置文件命令
本文来源:http://bjjierui.cn/article/hdpodc.html

其他资讯