• Fedora 23建立wifi热点(Android手机可用)


      在ubuntu14.04下使用ap-hotspot,速度还不错。但是在15.04下就用不了了,不知为啥。现在使用fedora23,在学校还是挺需要给手机连wifi的,于是google看看ap-hotspot能不能在fedora下使用,结果搜到了作者的github,说是ap-hotspot过时了,于是又写了个create_ap代替,下载地址:

    https://github.com/oblique/create_ap

      使用挺方便的,下载并解压,然后进入该目录安装:

    $ cd create_ap-master/
    $ sudo make install

      执行:

    $ create_ap wlo1 eno1 MyAccessPoint MyPassPhrase
    WARN: Your adapter does not fully support AP virtual interface, enabling --no-virt
    WARN: Realtek drivers usually have problems with WPA1, enabling -w 2
    WARN: If AP doesn't work, please read: howto/realtek.md
    Config dir: /tmp/create_ap.wlo1.conf.5ltPflEd
    PID: 3454
    Network Manager found, set wlo1 as unmanaged device... DONE
    Sharing Internet using method: nat
    hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlo1.conf.5ltPflEd/hostapd_ctrl
    Configuration file: /tmp/create_ap.wlo1.conf.5ltPflEd/hostapd.conf
    Using interface wlo1 with hwaddr 70:18:8b:38:85:b1 and ssid "RedBase"
    wlo1: interface state UNINITIALIZED->ENABLED
    wlo1: AP-ENABLED 
    wlo1: STA 68:a0:f6:4a:5c:c6 IEEE 802.11: authenticated
    wlo1: STA 68:a0:f6:4a:5c:c6 IEEE 802.11: associated (aid 1)
    wlo1: AP-STA-CONNECTED 68:a0:f6:4a:5c:c6
    wlo1: STA 68:a0:f6:4a:5c:c6 RADIUS: starting accounting session 565C49ED-00000000
    wlo1: STA 68:a0:f6:4a:5c:c6 WPA: pairwise key handshake completed (RSN)
    wlo1: STA 68:a0:f6:4a:5c:c6 WPA: group key handshake completed (RSN)
    wlo1: STA 68:a0:f6:4a:5c:c6 WPA: group key handshake completed (RSN)

      Enjoy!

      

      也可以通过服务的方式启动:

    $ sudo systemctl start create_ap.service 

      设置开机启动:

    $ sudo systemctl enable create_ap.service
  • 相关阅读:
    TextView 显示内容时出现 ArrayIndexOutOfBoundsException 的解决方法(Android 4.1)
    Android Activity 启动模式和任务栈
    Android 坐标系和 MotionEvent 分析、滑动
    Android 控件架构及View、ViewGroup的测量
    Android Studio 3.0 及以上版本使用技巧总结
    移动端开发网络优化建议
    Netty系列之Netty高性能之道
    并发框架Disruptor译文
    Python轻量Web框架Flask使用
    修改MySQL的时区,涉及参数time_zone
  • 原文地址:https://www.cnblogs.com/justforfun12/p/5008467.html
Copyright © 2020-2023  润新知