Ubuntu wi fi direct

How do I share my Wi-Fi via Wi-Fi Direct on my laptop?

On Windows, my laptop’s wireless card had the ability to share its own internet by Wi-Fi Direct. I could connect by laptop to other devices via Intel’s My Wi-Fi program, which I believe uses Wi-Fi Direct, and then share my internet to them. Is there any way to do this in Ubuntu? My laptop model: Samsung NP300E5A. My wireless card: Intel Corporation Centrino Wireless-N 130. Thanks! EDIT: I am using Ubuntu 12.04. Also, I am not trying to share my ethernet connection. I am trying to share my wireless connection to other Wi-Fi devices. See here.

4 Answers 4

Seems like you have misunderstood WiFi Direct use case. WiFi Direct is not about sharing the connection (as you wrote it), but a peer-to-peer communication without involving AP.

The sad truth is that you cannot mix WiFi Direct with Station mode, which so far makes the whole idea of using WiFi Direct pretty useless. At least I’m not aware about any solution that is capable of doing that.

My advise to you — wait at least couple of years until this technology will be widely supported. Currently, since this technology is primarily driven by Sony, WiFi Direct is already present in their TV’s, so you can stream videos/photos to Sony TV directly from your WiFi Direct supported device. Excerpt from the same link:

Sometimes your friends want to share their personal photos and videos on your beautiful HDTV. With Sony’s Wi-Fi Direct™ Mode, your friends can throw personal content to your TV without connecting to your home network. Wi-Fi Direct completely bypasses the Wi-Fi access point/router, so it’s easy to set up.

By the way, latest Android version supports WiFi Direct as well, Galaxy Nexus has it.

Источник

Как расшарить папку в plasma. Как юзать wi-fi direct. И Digital Media Server. И kdeconnect.

Есть трубка на Андройде (версия 6). Хочу разобраться, как коннектить с компом проще всего без провода. Есть роутер, но можно и напрямую.

  • В настройках андройда есть Digital Media Server — даёт шарить папку с Музыкой/Фото/Видео. Когда включен и в одной сети с компом — как обнаружить через графическое меню плазмы? И сохранить там оптимально.
  • Поставил пакеты kdenetwork-filesharing (Properties dialog plugin to share a directory with the local network) и samba (folder sharing) , почему в dolphin не появилась по пкм на папке возможность расшарить её для Андройда? С него как понимаю, через ES проводник можно туда заливать, хоть это и больше получается движений.
  • В трубке есть возможность искать устройства wi-fi direct. (У меня находит только соседский телек). Как я могу включить это в плазме и как можно использовать?
  • Поставил на трубку апк kdeconnect, утилита с компа её не видит (пингуют они друг друга норм). Как правильно добавить правило в фаерволле в плазме (там в данный момент висит только Connection wlo1, zone: public), чтобы port range 1714-1764 for both TCP and UDP был доступен только для трубки либо по её ip, либо по макадресу, в общем, чтобы из внешнего интернета был недоступен. Ткните по пунктам плиз, пытался добавить Rich Rule, но не получилось нормально сделать. Как впечатления вообще от тулзы, кто юзает?
Читайте также:  Раздача wifi мтс премиум

Я подключаюсь по Wi-Fi через sftp. ES как раз умеет.

а вроде wifi директа в линуксы не довезли.

Спасибо за ссылку и инфу!
Кстати говоря, а как ты задавал правила для фаерволла для него?
Не хотелось бы, чтобы кто-то из внешней сети мог получить доступ к ресурсам, оставить только для трубки по локальному вайфаю.

Воу, разобрался, да лучше вариант вообще похоже найти сложно!)
У меня на самой трубке ещё фаерволл был включен, про который я и забыл, потому и правило никак не работало=)
Скорее бы добавили возможность смс с компа читать и отправлять!)
Единственный вопрос, плагин на компе — там есть плагин Execute command, я добаил команду test, которая просто делает ping, но не могу найти, откуда запустить её.
А так-то — вообще круто!

ИМХО не надо никаких фаерволов там настраивать, оно же в локальной сетке только работает по дефолту, а изнутри туда доступа и так не будет.

Скорее бы добавили возможность смс с компа читать и отправлять!)

Там есть такая штука, все входящие смс-ки всплывают на компе месседжами. а отправку смс с компа в новой версии обещали тоже.

Там есть такая штука, все входящие смс-ки всплывают на компе месседжами.

Ага, я заметил уже, очень удобно! Правда месседж закрывается достаточно быстро, а если сразу не ответил — остаётся уведомление только о нём.

а отправку смс с компа в новой версии обещали тоже.

Это конечно было бы офигенно! Кстати, у меня графический пароль стоит отдельно на некоторые приложения, которые не используешь долго. И я заметил, один раз не отправился месседж, когда долго трубку не юзал и отправил, возможно, что из-за этого. У тебя не было такого?

ИМХО не надо никаких фаерволов там настраивать

У меня стандартный для плазмы firewalld + графический настройщик, всё ненужное закрыто на всякий случай по умолчанию. Подключение в нём отображается и зона только одна, роутер торчит в инет. Трубка получает ip 192.168.100.2, пришлось добавить рич правило, где разрешил её ipv4 явно и диапазон портов, на трубе ещё фаерволл AFWall+ — там тоже пришлось разрешить. Не люблю, чтобы лишнее в инет пускало что-то.

а вроде wifi директа в линуксы не довезли.

Кто-то на форуме убунту говорил, что ставил вроде. Хз, придётся погуглить ещё, счас времени пока нет. Просто трубас не самый слабый, и некоторые игрухи даже с консолей портируют, да и просто атмосферные есть. Клёво было бы картинку на комп на моник расшаривать с неё, а тачем так же управлять.

у wifi больший лаг, чем у синезуба.

у wifi больший лаг, чем у синезуба.

Синезуб способен только звук на наушники передавать (довольно чисто), и то, отойди подальше — начинает кашлять. А по вафле я видео 1080p с ютуба смотрю без тормозов и задержек. Оно даже при начале просмотра успевает вперёд прогрузиться до конца, с запасом. И это через не самый быстрый инет, а потом вафлю, а не вайфай директ напрямую.

Читайте также:  Модуль вай фай айфон 4s замена

Похожие темы

  • Форум Как расшарить интернет через wi-fi? (2012)
  • Форум Не удаётся расшарить интернет по wi-fi (2011)
  • Форум Wi-Fi media player, работающий с linux (2013)
  • Форум Plasma-nm не видит Wi-Fi сети (2017)
  • Форум [возможно ли] wi-fi tunnel server (2011)
  • Форум Wi-fi/LTE — fedora server 27, как? (2017)
  • Форум Ubuntu Server 11.10+Squid и ноут через wi-fi (2011)
  • Форум Помогите настроить hostapd (программный Wi-Fi) на ubuntu server 14.04 (2015)
  • Форум Как подключить в Ubuntu Server 11.01 fi-wi в командной строке? (2011)
  • Новости Запрет на продажу 61 модели телефонов Samsung в РФ (2021)

Источник

How to bring up WiFi Direct stack on ubuntu

I am working on a project where I have to connect a linux laptop with an android tablet using wifi direct.The tablet already has the wifi direct option but the laptop doesnt. Can someone please tell what is the procedure I need to follow to get Wifi direct working on my laptop. I am using samsung NP-R528 laptop with ubuntu 12.04. Edit: I have figured out that i have to install wpa_supplicant and wpa_cli to use p2p commands http://thangamaniarun.wordpress.com/2013/03/03/how-to-use-wi-fi-direct-on-androidubuntu-part1/ I followed the process given in the following link http://processors.wiki.ti.com/index.php/OMAP_Wireless_Connectivity_NLCP_WiFi_Direct_Configuration_Scripts But when I try to connect(using p2p_connect pin keypad) it to my andorid tablet the followin happens on linux machine it shows GO_NEG_SUCCESS , P2p-GROUP-FORMATION-SUCCESS ,P2P-GROUP-STARTED ,WPS-SUCCESS and then immediately CTRL-EVENT-EAP-FAILURE #android’s MAC# , AP-STA-CONNECTED #android’s MAC#, AP-STA-DISCONNECTED #android’s MAC# When i use adb to see log cat it also shows the same thing that group is formed and then immediately P2P-GROUP-REMOVED. same thing happened when I tried the other way round(i.e. form android to ubuntu)

1 Answer 1

I have figured that The problem was caused because of the dhcp server not responding.I have found a temporary fix by assigning a static IP address to both the devices.

You must log in to answer this question.

Hot Network Questions

Subscribe to RSS

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.14.43533

Ubuntu and the circle of friends logo are trade marks of Canonical Limited and are used under licence.

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

How to set up a Wifi-Direct connection between Android and Linux

I want to connect two devices using Wifi-Direct. One is a pc with Linux (during my test I’m using Linux Mint 17.2), the other is an Android smartphone (Samsung Galaxy S3 with Android 4.3. Not rooted and don’t want to root). Reading a number of guides on the internet, I decided to use wpa_supplicant in Linux and to create an app for Android. This is one of the best guides I found for wpa_supplicant: https://web.archive.org/web/20210114180304/https://processors.wiki.ti.com/index.php/OMAP_Wireless_Connectivity_NLCP_WiFi_Direct_Configuration_Scripts When I run iw list I see that the «Supported interface modes:» allows P2P_client and P2P_GO. My wpa_supplicant.conf contains:

ctrl_interface=/var/run/wpa_supplicant update_config=1 ap_scan=1 device_name=My-pc device_type=1-0050F204-1 driver_param=use_p2p_group_interface=1 p2p_go_intent=15 p2p_go_ht40=1 

The app is very similar to this example (it’s from a book) https://github.com/retomeier/Wrox-ProfessionalAndroid-4E/blob/9741a8b62005d49519b1decfea21e7213fdd94a3/Snippets_ch18/app/src/main/java/com/professionalandroid/apps/myapplication/WiFiDirectActivity.java It works as expected. When I try it with two Android devices, they can see each other and connect (it appear the Wifi-Direct icon). Now I am trying to connect Android and Linux, but I guess I don’t really understand how wpa_supplicant works. I also saw this question that is very similar to what I asked, but it doesn’t really answer my doubts. Direct Wifi Communication between android smartphone and other devices My problem is that I can’t understand how to do the handshake between the two devices and how to set up the network. Wpa_supplicant is my problem. I run:

sudo wpa_supplicant -wlan0 -Dnl80211 -c/etc/wpa_supplicant.conf sudo wpa_cli 
  • The device_name (and other parameters) weren’t set as I specifiend in the .conf file
  • wpa_supplicant continues to try to connect to all the networks
  • p2p_find was really slow.
Читайте также:  Пароль от вайфая смайл бус

so I went into /usr/share/dbus-1/system-services and moved away the two files

fi.epitest.hostap.WPASupplicant.service fi.w1.wpa_supplicant1.service 
sudo killall wpa_supplicant 

and it really dies, disconnecting me from Wifi without reconnecting the following second. Now I can launch wpa_supplicant and the three problems are resolved.

I go into wpa_cli, launch «p2p_find» and at the same time, I enable the search from within the app.

Android and Linux can now see each other.

P2P-DEVICE-FOUND 00:11:22:44:88:ff p2p_dev_addr=00:11:22:44:88:ff pri_dev_type=10-0050F204-5 name='GT-I9300' config_methods=0x188 dev_capab=0x24 group_capab=0x0 vendor_elems=1 new=0 

With «p2p_peers» I can see the cellphone MAC.

Here I can’t go ahead. I tried various possibilities, but none of them worked. My objective is to have Linux as Group Owner.

  • Question 1.1: Which is the correct way to handshake the two devices?
  • Question 1.2: When I try p2p_connect I often get «Michael MIC failure detected» between the results, what does it means in this contest?
  • Question 1.3: Android currently tries to connect with PBC. There is a way to connect with PIN?

Seeing that I couldn’t connect Android/Linux, I tried to do some practice with Linux/Linux (Linux Mint as GO, Ubuntu as Client), following examples from internet like the ones in the first link. I have a number of problems even here.

p2p_connect MAC_UBUNTU pin auth 
p2p_connect MAC_MINT PIN_GENERATED_BY_MINT 

When I write the psp_connect in Mint, it creates a new interface p2p_wlan0 _0, and it returns

P2P-DEVICE-LOST p2p_dev_addr=MAC_UBUNTU 

then the p2p_connect launched from Ubuntu fails.

  • Question 2.1 Why it switches interface when creating the group?
  • Question 2.2 What is the correct way to handle this change? After the change I can’t p2p_find Ubuntu anymore (I have to wait some time or restart everything)
  • Question 2.3 Should Ubuntu change it’s interface?
  • Question 2.3 In the new interface I should set the IP for both Ubuntu and Mint. how should I do this with static IPs?
  • Question 2.4 If I want to set up for example a DHCP server and client?
  • Question 1.4 And with Android(client) / Linux(GO)?

Источник

Оцените статью
Adblock
detector