Mageia Forum
Uživatelské aplikace => Síť a Internet => Téma založeno: LUTEC Března 30, 2017, 11:49:50
-
Nainstaloval jsem mageiu 5 na starsi notebook HP pavilion dm3 a vse fungovalo super nez jsem nastavil zdroje a aktualizoval system. Po restartu se prestaly zobrazovat wifi site. Kontrolka zobrazuje zapnutou wifi, zadnou chybu to nehlasi jen kdyz rozkliknu site, tak to nic nevidi. Koukal jsem, ze tenhle problem se hodne resil ale na jinych linuxovych systemech ale neumel jsem rady vyuzit tak abych svoji wifi zprovoznil. Je tam wifi Atheros wireless ar9285.
Poradite mi nekdo jak na to?
-
http://forum.mageia.cz/index.php?topic=173.msg1913#msg1913
http://forum.mageia.cz/index.php?topic=602.msg4785#msg4785
-
Diky vyreseno pomoci prikazu
# rfkill unblock all
nechapu proc jsem toto tema nenasel, zkousel jsem to tu hledat pomoci ruznych klicovych slov.....kazdopadne diky za pomoc
-
jeste bych k tomu mel jeden podruznej dotaz, sice je to vyreseno ale musim vzdy po spusteni do konzole , prihlasit se jako root a napsat prikaz....
zkousel jsem vyresit sam, ale je to nad me schopnosti. Muj postup byl:
prihlasit se jako root do dolphinu a ve slozce /etc/xdg/autostart vytvorit skript s nazvem wifi.sh, tento skript byl napsany takto:
#!/bin/bash
rfkill unblock all
skript jsem udelal spustitelny
dale jsem otevrel ve slozce /etc/xdg/autostart soubor mageia-mgaonline.desktop a v nem zmenil nektere udaje a pak ulozil jako wifi.desktop do slozky /etc/xdg/autostart
po zmene vypadal tento soubor takto:
[Desktop Entry]
Name=Wifi
Comment=start wifi
Exec=/etc/xdg/autostart/wifi.sh
Icon=
Type=Application
StartupNotify=true
Categories=Settings;Network;
X-KDE-autostart-after=kdesktop
vypis z konzole:
[root@localhost autostart]# ls -l
celkem 92
-rw-r--r-- 1 root root 296 lis 11 2014 at-spi-dbus-bus.desktop
-rw-r--r-- 1 root root 2007 říj 16 2014 at-spi-registryd.desktop
-rw-r--r-- 1 root root 6351 říj 16 2014 gnome-keyring-gpg.desktop
-rw-r--r-- 1 root root 7777 říj 16 2014 gnome-keyring-pkcs11.desktop
-rw-r--r-- 1 root root 7339 říj 16 2014 gnome-keyring-secrets.desktop
-rw-r--r-- 1 root root 5996 říj 16 2014 gnome-keyring-ssh.desktop
-rw-r--r-- 1 root root 7741 říj 17 2014 gsettings-data-convert.desktop
-rw-r--r-- 1 root root 210 dub 3 18:42 mageia-mgaonline.desktop
-rw-r--r-- 1 root root 202 kvě 17 2015 mageiawelcome.desktop
-rw-r--r-- 1 root root 265 čen 27 2016 net_applet.desktop
-rw-r--r-- 1 root root 4616 říj 24 2014 polkit-mate-authentication-agent-1.desktop
-rw-r--r-- 1 root root 3989 úno 3 2015 pulseaudio.desktop
-rw-r--r-- 1 root root 11371 říj 17 2014 user-dirs-update-gtk.desktop
-rw-rw-r-- 1 root root 179 dub 3 18:50 wifi.desktop
-rwxrwxr-x 1 root root 30 dub 3 18:47 wifi.sh*
neco nebo vsechno je spatne, protoze to nefunguje a po restartu se nic nezmeni a wifi nefunguje...
-
http://forum.mageia.cz/index.php?topic=602.30
-
Díky, uložím si to do svých poznámek ať to v budoucnu zase nehledám.
-
Vracim se k tomuto tematu, protoze mi toto reseni prestalo fungovat. Nechapu kde se stala chyba, protoze mi to fungovalo az do chvile nez jsem z duvodu reseni problemu s ovladacem grafiky nedokazal nabootovat do oken a nechtelo se mi to opravovat, tak jsem resil preinstalovanim celeho systemu a po nainstalovani jsem automaticky hned otevrel jako root soubor /etc/init.d/network-up a doplnil dle instrukce řádek /usr/bin/rfkill unblock all pod řádek ### END INIT INFO uložil jsem v kwrite a restartoval počítač, ale wifi nejela. Kdyz pak spustim konzoli a napisu
rfkill unblock all
tak se wifi spusti, takze bude problem nejspis v tom, ze si system ten prikaz ze souboru networ-up nevezme. v network-up to vypada takto:#! /bin/bash
#
### BEGIN INIT INFO
# Provides: $network $named
# Should-Start: portreserve NetworkManager
# Default-Start: 2 3 4 5
# Short-Description: Wait for the hotplugged network to be up
# Description: Wait for all network interfaces started asynchronously
# at boot time.
### END INIT INFO
/usr/bin/rfkill unblock all
# Source function library.
. /etc/init.d/functions
NETWORKDELAY=20
DEFAULT_LINK_DETECTION_DELAY=2
MIN_LINK_DETECTION_DELAY=0
MAX_LINK_DETECTION_DELAY=$MIN_LINK_DETECTION_DELAY
ELAPSED_TIME=0
RESOLVCONF_FLAGFILE=/var/run/resolvconf/enable-updates
RESOLVCONF_DIR=/var/run/resolvconf/interface
# source network configuration
. /etc/sysconfig/network
# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0
cd /etc/sysconfig/network-scripts
. network-functions
# find all the interfaces besides loopback.
# ignore aliases, alternative configurations, and editor backup files
interfaces=$(/bin/ls ifcfg* | \
LC_ALL=C sed -e "$__sed_discard_ignored_files" \
-e '/\(ifcfg-lo$\|:\|ifcfg-.*-range\)/d' \
-e '/ifcfg-[ A-Za-z0-9#\._-]\+$/ { s/^ifcfg-//g;s/[0-9]/ &/}' | \
LC_ALL=C grep -v '^ifcfg-' | \
LC_ALL=C sort -k 1,1 -k 2n | \
LC_ALL=C sed -e 's/ \([0-9]\)/\1/')
function may_have_link() {
local DEVICE=$1
local LINKDELAY=0
! check_link_down ${DEVICE} || is_associating ${DEVICE}
}
function is_associating() {
local DEVICE=$1
is_wireless_device ${DEVICE} || return 1
local AP=`iwgetid -a -r ${DEVICE} 2>/dev/null`
[ -n "$AP" ] && [ "$AP" != "00:00:00:00:00:00" ] && [ "$AP" != "44:44:44:44:44:44" ] && [ "$AP" != "FF:FF:FF:FF:FF:FF" ]
}
function should_wait_network() {
for i in $interfaces; do
unset DEVICE TYPE BOOTPROTO MII_NOT_SUPPORTED PEERDNS DNS1 DNS2
unset REALDEVICE PARENTDEVICE NM_CONTROLLED
LINK_DETECTION_DELAY=$DEFAULT_LINK_DETECTION_DELAY
eval $(LANG=C grep -F "DEVICE=" "ifcfg-$i")
eval $(LANG=C grep -F "REALDEVICE=" "ifcfg-$i")
eval $(LANG=C grep -F "PARENTDEVICE=" "ifcfg-$i")
eval $(LANG=C grep -F "TYPE=" "ifcfg-$i")
eval $(LANG=C grep -F "BOOTPROTO=" "ifcfg-$i")
eval $(LANG=C grep -F "MII_NOT_SUPPORTED=" "ifcfg-$i")
eval $(LANG=C grep -F "LINK_DETECTION_DELAY=" "ifcfg-$i")
eval $(LANG=C grep -F "PEERDNS=" "ifcfg-$i")
eval $(LANG=C grep -F "DNS1=" "ifcfg-$i")
eval $(LANG=C grep -F "DNS2=" "ifcfg-$i")
eval $(LANG=C grep -F "NM_CONTROLLED=" "ifcfg-$i")
[ -z "$REALDEVICE" -a -n "$PARENTDEVICE" ] && REALDEVICE=$PARENTDEVICE
[ -z "$REALDEVICE" ] && REALDEVICE=${DEVICE%%:*}
if [ $LINK_DETECTION_DELAY -lt $MIN_LINK_DETECTION_DELAY ]; then
LINK_DETECTION_DELAY=$MIN_LINK_DETECTION_DELAY
fi
if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi
if [ "$BOOTPROTO" != "static" ] \
&& [ "$BOOTPROTO" != "dhcp" ] \
&& [ "$BOOTPROTO" != "bootp" ]; then
continue
fi
# Ignore Wifi network files created by NetworkManager
if [ "$TYPE" = "Wireless" ]; then
continue
fi
# only check interfaces using ifplug, other interfaces are
# started synchronously from the network service
if [ "$MII_NOT_SUPPORTED" = "yes" ]; then
continue
fi
# only check interfaces automatically launched
if LANG=C grep -q -E "^ONBOOT=['\"]?[Nn][Oo]['\"]?" "ifcfg-$i"; then
continue
fi
# ignore devices that are not present
ip -o link show ${DEVICE} &>/dev/null || continue
! is_false $NM_CONTROLLED && is_nm_running && _use_nm=true
# for NM controlled just ask NetworkManager
if [ "$_use_nm" = "true" ]; then
# Ignore disabled wifi h/w
if is_nm_device_unavailable ${DEVICE}; then
# Question: Is NM cleverer than us here? Does it do this delay
# internally and mark it as disconnected until it knows better?
# before configured delay, consider a lack of link beat
# as not ready, and unplugged thereafter
if [ $ELAPSED_TIME -lt $LINK_DETECTION_DELAY ]; then
return 0
fi
# no need to wait for unplugged devices to come up
continue
fi
is_nm_active ${DEVICE} || return 0
# The resolvconf check below uses a single generic "NetworkManager"
# DNS file, rather than device specific ones, so fudge the device.
DEVICE=NetworkManager
else
# check link beat
if ! may_have_link ${DEVICE}; then
# before configured delay, consider a lack of link beat
# as not ready, and unplugged thereafter
if [ $ELAPSED_TIME -lt $LINK_DETECTION_DELAY ]; then
return 0
fi
# no need to wait for unplugged devices to come up
continue
fi
# check address is set
ADDR=`ip addr show scope global ${DEVICE} | awk '/inet/ {print $2;}'`
if [ -z "$ADDR" ]; then
return 0
fi
fi
# wait for changes to be propagated by resolvconf if needed
if [ -e $RESOLVCONF_FLAGFILE ]; then
if [ "$BOOTPROTO" = "dhcp" -a "$PEERDNS" != "no" ] \
|| [ -n "$DNS1" -o -n "$DNS2" ]; then
if [ ! -e $RESOLVCONF_DIR/$DEVICE ]; then
return 0
fi
if [ $RESOLVCONF_DIR/$DEVICE -nt /etc/resolv.conf ]; then
return 0
fi
fi
fi
done
# all interfaces are ready
return 1
}
case "$1" in
start)
gprintf "Waiting for network to be up"
for i in $interfaces; do
LINK_DETECTION_DELAY=$DEFAULT_LINK_DETECTION_DELAY
eval $(LANG=C grep -F "LINK_DETECTION_DELAY=" "ifcfg-$i")
if [ "$LINK_DETECTION_DELAY" -gt $MAX_LINK_DETECTION_DELAY ]; then
MAX_LINK_DETECTION_DELAY=$LINK_DETECTION_DELAY
fi
done
NETWORKDELAY=$(( NETWORKDELAY + MAX_LINK_DETECTION_DELAY ))
while should_wait_network && [ $ELAPSED_TIME -lt $NETWORKDELAY ]; do
sleep 1
let ELAPSED_TIME=$ELAPSED_TIME+1
done
[ $ELAPSED_TIME -ge $NETWORKDELAY ] && failure || success
echo
;;
stop)
;;
*)
gprintf "Usage: %s\n" "$(basename $0) {start|stop}"
exit 1
esac
exit 0