Wlan Hotspot

Rudl

New Member
Joined
Nov 20, 2020
Messages
5
Reaction score
0
Credits
63
Hallo together,

I have a Thinkpad T410s with lubunutu.

Is it possible to make a hotspot with it, so I can connect an android tablet with internet?
 


I am not that familiar with lubuntu. But you can certainly do this with many different flavors of Linux.
 
Can you give output of these 3 commands?

lspci

nmcli dev wifi list

ip addr
 
rudl@rudl-410s:~$ lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:19.0 Ethernet controller: Intel Corporation 82577LM Gigabit Network Connection (rev 06)
00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 06)
00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation QS57 Chipset LPC Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 06)
03:00.0 Network controller: Intel Corporation Centrino Ultimate-N 6300 (rev 35)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
ff:02.1 Host bridge: Intel Corporation 1st Generation Core i3/5/7 Processor QPI Physical 0 (rev 02)
ff:02.2 Host bridge: Intel Corporation 1st Generation Core i3/5/7 Processor Reserved (rev 02)
ff:02.3 Host bridge: Intel Corporation 1st Generation Core i3/5/7 Processor Reserved (rev 02)
rudl@rudl-410s:~$
rudl@rudl-410s:~$ nmcli dev wifi list
IN-USE BSSID SSID MODE CHAN RATE SIGNAL BARS SECURITY
rudl@rudl-410s:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether f0:de:f1:50:8c:4c brd ff:ff:ff:ff:ff:ff
inet 192.168.2.105/24 brd 192.168.2.255 scope global dynamic noprefixroute enp0s25
valid_lft 1803528sec preferred_lft 1803528sec
inet6 2003:e7:ff33:f98d:c456:cdd1:1f46:f650/64 scope global temporary dynamic
valid_lft 14394sec preferred_lft 1794sec
inet6 2003:e7:ff33:f98d:1fcf:c03c:c1b0:67e2/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 14394sec preferred_lft 1794sec
inet6 fe80::6a1b:e677:5ff3:2b6b/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 00:24:d7:a6:f3:98 brd ff:ff:ff:ff:ff:ff
rudl@rudl-410s:~$
 
Ok, You have an Intel Centrino, your kernel recognizes it.
It is device wlp3s0.

It looks like you are already using a 192.168.2.x IP address, so you don't want to conflict with that network.

I will use 192.168.7.x for your wifi network.
Make sure that wpa_supplicant is installed.
Make sure that NetworkManager-wifi is installed.

You can copy and paste this command.

nmcli dev wifi hotspot ifname wlp3s0 con-name wlp3s0 ssid rudi-hotspot password my$3cret

I would recommend changing rudi-hotspot to whatever you want your wifi network name to be.
I would definitely recommend you use a different password than my$3cret.
Your password has to be at least 8 characters long, longer is better.

Now we need to give your wifi interface a static IP address. You can copy and paste this also.

nmcli con mod wlp3s0 ipv4addr 192.168.7.1/24 connection.autoconnect yes

Now, assuming you have no errors, you should have a hotspot.
You can test this by typing...

iw wlp3s0 info

Or you can simply try to connect with your tablet or cell-phone.
It's possible we will have to add some routing to get to internet, but one thing at a time.
 
how can I detect that I have wpa_supplicant and NetworkManager-wifi installed.

Sorry, but I am a beginner with Linux.
 
apt list --installed | grep -i wpa_suppl
apt list --installed | grep -i NetworkManager-wifi
 
What does this mean?

rudl@rudl-410s:~$ apt list --installed | grep -i wpa_suppl

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

rudl@rudl-410s:~$ apt list --installed | grep -i NetworkManager-wifi

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

rudl@rudl-410s:~$
 
G'day @Rudl and welcome to linux.org :)

Change in syntax, we'll be looking for

wpasupplicant

and

network-manager-gnome

(and yes, I know Lubuntu is not GNOME DE)

First use

Code:
apt-cache policy wpasupplicant

and see what it says.

If it says something like

Code:
wpasupplicant:
  Installed: 2.4-0ubuntu6.6
  Candidate: 2.4-0ubuntu6.6

then it is already installed and can be used. If there is a blank space beside Installed, but something beside Candidate, then it can be installed with

Code:
sudo apt-get -y install wpasupplicant

On Network Manager

type in and enter only as follows

Code:
apt-cache policy network-manager

and then press your Tab key, it should generate a list (this is called Tab Complete). The list may look something like this

Code:
network-manager                    network-manager-openvpn-gnome
network-manager-dev                network-manager-pptp
network-manager-gnome              network-manager-pptp-gnome
network-manager-iodine             network-manager-ssh
network-manager-iodine-gnome       network-manager-ssh-gnome
network-manager-openconnect        network-manager-strongswan
network-manager-openconnect-gnome  network-manager-vpnc
network-manager-openvpn            network-manager-vpnc-gnome

If the GNOME entry is there, then where you stopped typing just start to finish it with

-gnome (just the -gn will do and then press Tab)

and when you have the completed entry, press Enter and see what it outputs.

If you get output that begins like this

Code:
network-manager-gnome:
  Installed: 1.2.6-0ubuntu0.16.04.4
  Candidate: 1.2.6-0ubuntu0.16.04.4

... you are in business. If nothing beside installed but an entry at Candidate, then install it as described above.

Hoping @dos2unix can run with it from here - wifi is not my strong point :)

Cheers

Chris Turner
wizardfromoz
 
@wizardfromoz @Condobloke @f33dm3bits might have to help with that part. I don't use
apt that often.
I mostly use yum/dnf and pacman as my package manager, but when I do use a Debian based system I use apt-get instead of apt since apt is just a python wrapper around original apt-* commands. So I am guessing it's just warning reminding the user that it's just a wrapper and not be trusted in scripts?

What does this mean?
rudl@rudl-410s:~$ apt list --installed | grep -i wpa_suppl
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
rudl@rudl-410s:~$ apt list --installed | grep -i NetworkManager-wifi
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
rudl@rudl-410s:~$
 
That may be so, but the packages referred to do not exist under Debian-based Distros.

wpa_suppl 's equivalent is wpasupplicant, and NetworkManager-wifi 's closest equivalent is network-manager-gnome .

:)

Wiz
 
That may be so, but the packages referred to do not exist under Debian-based Distros.

wpa_suppl 's equivalent is wpasupplicant, and NetworkManager-wifi 's closest equivalent is network-manager-gnome .

:)

Wiz
It was early in the morning when I replied to that and is now as well so it I didn't catch what was asked of me. So I have all faith in you that you got this one. I'll just follow the progress here, I can always spin up my vm if needed. :)
 

Members online


Latest posts

Top