Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]install gentoo using minimal cd & wireless network
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lazykoala
n00b
n00b


Joined: 08 Jan 2014
Posts: 22

PostPosted: Thu Apr 17, 2014 2:12 pm    Post subject: [SOLVED]install gentoo using minimal cd & wireless netwo Reply with quote

Hi Guys,

I'm trying to install Gentoo using install-x86-minimal-20140408.iso in a wireless network. I don't have a wired network. (Can't install any software.) I only have a usb adapter:
RTL 8188CUS Wireless LAN802.11n USB 2.0 Network Adapter

I can't use lsusb in the livecd mode (command not found), however I use DVD to detect the usb:
0bda:8176 RealTek Semiconductor Corp. RTL8188CUS 802.11n WLAN

# iwconfig:
wlp0s29u1u1 IEEE 802.11bgn ESSID:off/any

# cat /proc/net/wireless
Inter-| sta-| Quality | Discarded packets | Missed | WE
face | tus | link level noise | nwid crypt frag retry misc | beacon | 22

# net-setup wlp0s29u1u1
gives me the driver information is: rtl8192cu
seems not correct


I google the solution and found one in the ubuntu environment, also need wired network to install ndiswrapper and download driver for RTL 8188CUS, the problem is I have no any wired network to do this.

Any help would be appreciated.


Last edited by lazykoala on Thu Apr 17, 2014 9:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 885
Location: Germany

PostPosted: Thu Apr 17, 2014 2:40 pm    Post subject: Reply with quote

Two things:
1) Don't use the Gentoo minimal CD unless you have a wired connection or it will be more tedious than it is worth.
2) RTL8188CUS seems to be supported by kernel drivers. I don't know where and what you found in Ubuntu forums or how old this entry was. you might have to install firmware btu you don't need ndiswrapper.

I recommend using SystemRescueCD for installing Gentoo - but actually any live environment will do as long as it is the same bitness as your desired Gentoo (i.e. a 32bit live environment for installing a 32bit Gentoo and 64bit environment for 64bit Gentoo)
SystemRescueCD can be downloaded from here: http://www.sysresccd.org/SystemRescueCd_Homepage
It has the advantage that you can either use it in pure text mode, so you would get the same feeling as you would have with the Gentoo minimal cd, or you can start a desktop and have the advantage of being able to browse the net more easily while installing (you can of course use lynx, elinks or any other text mode browser, but I find them a bit awkward).
Moreover, setting up a wireless connection using WiCD or Networkmanager (whatever SysResc uses) in a desktop environment is much easier than doing it in a console.


Quote:
#net-setup wlp0s29u1u1
gives me the driver information is: rtl8192cu

This is correct.
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Thu Apr 17, 2014 3:35 pm    Post subject: Reply with quote

IIRC, the minimal installcd does not include firmware for realtek wifi, so you can only use it after copying the correct firmware file to the /lib/firmware directory. To find out which is the correct firmware file, run
Code:
# ifconfg wlp0s29u1u1 up
and check the dmesg error message (if there is no error message in dmesg, then you have the correct firmware already).

Then set
/etc/conf.d/net:
modules_wlp0s29u1u1="wpa_supplicant"
wpa_supplicant_wlp0s29u1u1="-Dnl80211"
and run
Code:
# wpa_passphrase [your essid] >> /etc/wpa_supplicant/wpa_supplicant.conf
[enter your WPA PSK]
# ln -s /etc/init.d/net.lo /etc/init.d/net.wlp0s29u1u1
# /etc/init.d/net.wlp0s29u1u1 start
Back to top
View user's profile Send private message
lazykoala
n00b
n00b


Joined: 08 Jan 2014
Posts: 22

PostPosted: Thu Apr 17, 2014 9:27 pm    Post subject: Reply with quote

Thank you very much, Clad in Sky and chithanh, especially chithanh.

I follow chithanh's steps, it works, excellent.

Code:
# ifconfig
enp2s0: flags=4099<UP, BROADCAST, MULTICAST> mtu 1500
             ........
lo: flags=73 .......

wlp0s29u1u1: flags=4163<UP,BROADCAST, RUNNING,MULTICAST> mtu 1500
inet 192.168.0.16 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::.....


Code:
# iwconfig
lo           no wireless extensions
enp2s0   nowireless extensions
wlp0s29u1u1   IEEE 802.11bgn ESSID:"NETGEAR59"
                      Mode:Managed Frequency:2.437 GHz Access Point: 4C:60.....
                      Bit Rate=150 Mb/s  Tx-Power=20 dBM
                      ......


Code:
# dmesg | grep wlp0s29u1u1
systemd-udevd[22456]: renamed network interface wlan0 to wlp0s29u1u1
IPv6: ADDRCONF(NETDEV_UP): wlp0s29u1u1: link is not ready
wlp0s29u1u1: authenticate with 4c:60:.....
wlp0s29u1u1: send auth to 4c:60..... (try1/3)
wlp0s29u1u1: authenticated
wlp0s29u1u1: associate with 4c:60:..... (try 1/3)
wlp0s29u1u1: connection to AP 4c:60..... lost
wlp0s29u1u1: RX AssocResp from 4c:60:..... (capab=0x411 status=0 aid=1)
wlp0s29u1u1: associated
IPv6: ADDRCONF(NETDEV_UP): wlp0s29u1u1: link becomes ready



Code:
# cat /proc/net/wireless
Inter-| sta-| Quality | Discarded packets | Missed | WE
face | tus | link level noise | nwid crypt frag retry misc | beacon | 22
wlp0s29u1u1: 0000 44. -66. -256 0 0 0 0 26 0




Code:
# ping www.gentoo.org
PING www-bytemark-v4v6.gentoo.org (89.16.167.134) 56(84) bytes of data.
64 bytes from www.gentoo.org (89.16.167.134): icmp_seq=1 tt1=42 time=414 ms
64 bytes from www.gentoo.org (89.16.167.134): icmp_seq=3 tt1=42 time=647 ms
64 bytes from www.gentoo.org (89.16.167.134): icmp_seq=4 tt1=42 time=355 ms
64 bytes from www.gentoo.org (89.16.167.134): icmp_seq=5 tt1=42 time=364 ms


I also checked /lib/firmware. It's empty, no any firmware. But anyway, it works now.

It's the first time I make the wireless network worked in the real machine in Gentoo (actually in linux). It's great encouragement to me. I have more confidence to shift from windows to linux. Excellent! :D :D :D

Thank you very much chithanh. I'm really appreciated.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum