Forum › Forums › Orphaned Posts › antiX-17 “Heather Heyer, Helen Keller” › network won't stay connected after reboot (solved)
- This topic has 14 replies, 7 voices, and was last updated Mar 5-6:29 am by anticapitalista.
-
AuthorPosts
-
February 27, 2018 at 6:05 pm #7018Member
sleekmason
After reboot I have to run ceni to get wifi.
Here’s the message i’m getting in ceni. Guessing this is an easy one. I just don’t know it;)/bin/run-parts --exit-on-error --verbose /etc/network/if-up.d run-parts: executing /etc/network/if-up.d/000resolvconf run-parts: executing /etc/network/if-up.d/mountnfs run-parts: executing /etc/network/if-up.d/ntpdate run-parts: executing /etc/network/if-up.d/wpasupplicant- This topic was modified 5 years, 2 months ago by anticapitalista. Reason: added 'solved'
February 27, 2018 at 6:21 pm #7020Forum Admin
rokytnji
::I don’t use ceni. But wicd instead. But if me. I’d check to see if ceni is included to start up in Global Desktop Session in the AntiX control center.
Sometimes I drive a crooked road to get my mind straight.
Not all who Wander are Lost.
I'm not outa place. I'm from outer space.Linux Registered User # 475019
How to Search for AntiX solutions to your problemsFebruary 27, 2018 at 6:24 pm #7021Anonymous
February 27, 2018 at 7:29 pm #7024Member
sleekmason
::*Solved, sort of.
I wound up breaking it way worse than that. The seven minute reinstall fixed it again.March 3, 2018 at 5:47 am #7185Member
sleekmason
::Saw I was asking a question in a “solved” topic Here , so switching back to here.
Networking will not reconnect on boot.. I’m using ceni, and the files are being overwritten somewhere. so:
Where does networking expect to find the info from Ceni, and how can I keep it from being overwritten? Yes, I know I could use wicd to keep it reconnecting but the whole point is not to!
Any help appreciated. Any info needed will be provided pretty quick.
- This reply was modified 5 years, 2 months ago by sleekmason.
March 3, 2018 at 9:35 am #7196Moderator
Brian Masinick
::I don’t know what has been happening recently with WiFi networks, but I have been having intermittent problems with WiFi networks connecting, disconnecting, and reconnecting repeatedly. Moreover, I am not sure if I have a bad network card or what, but my wired connection to my system doesn’t work at all, even though it is connected to the same box that provides WiFi.
4G LTE, though more expensive and not always as fast, is at least consistent through my smart phone.
--
Brian MasinickMarch 3, 2018 at 12:01 pm #7198Memberdelix02
::at the moment a PC with antiX17 and testing repos has problems to get connected wireless, too. After booting it is not possible to surf the net because the domain names are not reachable. Unplugging and replugging the wire solves the problem here.
Thought it is a hardware problem, but maybe it is the same thing…My sid systems run without problems.
- This reply was modified 5 years, 2 months ago by delix02.
March 3, 2018 at 7:36 pm #7205Member
sleekmason
::Just did the detailed guide posted HERE in response to my WM removal attempts, and for some reason my wifi connected on boot! could be a coincidence as I was messing with other things concerning dkms right before.
–
I’m also not advocating removing things as a cure, only as a place (maybe) to find clues.*EDIT Rebooted, and the problem came back. Must have made a mistake about that. weird.
- This reply was modified 5 years, 2 months ago by sleekmason.
March 4, 2018 at 9:10 am #7237ModeratorBobC
::I think it could be because the /etc/network/interfaces file or /etc/wpa_supplicant/wpa_supplicant.conf are getting modified, but I’m not sure by what.
I noticed it after I suspended at one location on wifi and resumed somewhere else, but not sure that was the cause. I’ve also noticed it had problems when I would switch to hard wired and back to wifi.
I ended up modifying my system to not use ceni or wicd or network manager, and instead use a roaming profile on wpa_supplicant with wpa_gui managing the locations, which saves the memory like ceni and saves my wifi access points which ceni didn’t, IIRC. I also modified to reimplement hibernation and reboot from hibernation, which could have affected network connection things because I don’t really know how it works, I just fixed the obvious bugs I found, and it seemed to work, and I’ve been using it all the time since then. Maybe there were also network related issues on the hibernate or resume that I wouldn’t know about.
I don’t think my setup is perfect and I ended up needing to create a wpa_reset script (it runs the programs or scripts people told me to run) which has been working most of the time, and the time it didn’t was when I saw the 2 files had been changed, and I restored them from my copies, rebooted, and I was back to working.
Again, mine is modified, so the underlying AntiX code may not be the cause.
March 4, 2018 at 9:49 am #7238Forum Admin
anticapitalista
::Try using this file in /etc/init.d/network. Make sure you have a backup of the existing file.
A reboot is probably needed.File is here:
- This reply was modified 5 years, 2 months ago by anticapitalista.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
March 4, 2018 at 11:49 am #7240Member
sleekmason
::Looks like a winner!Recommend doing ceni again before rebooting. No worries if you don’t, you will just have to after reboot. Either way.Is there a way to mark the OP as solved?
EDIT**** Spoke too soon again. Don’t know why. Changed the file back after ceni problems and error message on boot. (didn’t catch it).
- This reply was modified 5 years, 2 months ago by sleekmason.
- This reply was modified 5 years, 2 months ago by sleekmason.
March 4, 2018 at 1:49 pm #7250ModeratorBobC
::sleekmason, If I might suggest, do a diff between the networking file you had before and the one anti posted so he knows if your was different. Mine did match, but this is your thread to fix your problem, and that might help him diagnose it.
March 4, 2018 at 3:51 pm #7274Member
sleekmason
::Thank you for the suggestion Bobc
–
–diff -y networking.old networking.new #!/bin/sh -e #!/bin/sh -e ### BEGIN INIT INFO ### BEGIN INIT INFO # Provides: networking ifupdown # Provides: networking ifupdown # Required-Start: mountkernfs $local_fs urandom # Required-Start: mountkernfs $local_fs urandom # Required-Stop: $local_fs # Required-Stop: $local_fs # Default-Start: S # Default-Start: S # Default-Stop: 0 6 | # Default-Stop: # Short-Description: Raise network interfaces. # Short-Description: Raise network interfaces. # Description: Prepare /run/network directory, ifstate # Description: Prepare /run/network directory, ifstate ### END INIT INFO ### END INIT INFO PATH="/sbin:/bin" | # Don't exit on error status > set +e > > PATH="/sbin:/bin:/usr/bin" RUN_DIR="/run/network" RUN_DIR="/run/network" IFSTATE="$RUN_DIR/ifstate" IFSTATE="$RUN_DIR/ifstate" STATEDIR="$RUN_DIR/state" STATEDIR="$RUN_DIR/state" > NET_STATE="$RUN_DIR/net-state" [ -x /sbin/ifup ] || exit 0 [ -x /sbin/ifup ] || exit 0 [ -x /sbin/ifdown ] || exit 0 [ -x /sbin/ifdown ] || exit 0 > ME=${0##*/} > . /lib/lsb/init-functions . /lib/lsb/init-functions > LOG_FILE=/var/log/init.d-$ME.log CONFIGURE_INTERFACES=yes CONFIGURE_INTERFACES=yes EXCLUDE_INTERFACES= EXCLUDE_INTERFACES= VERBOSE=no < [ -f /etc/default/networking ] && . /etc/default/networking [ -f /etc/default/networking ] && . /etc/default/networking verbose="" | : ${LOG_FILE:=/dev/null} [ "$VERBOSE" = yes ] && verbose=-v | : ${IFUP_TIMEOUT:=60} < process_exclusions() { < set -- $EXCLUDE_INTERFACES < exclusions="" < for d < do < exclusions="-X $d $exclusions" < done < echo $exclusions < } < process_options() { | check_run_dir() { [ -e /etc/network/options ] || return 0 | test -d "$RUN_DIR" && return log_warning_msg "/etc/network/options still exists and it | if mkdir -p "$RUN_DIR"; then > chown root:netdev "$RUN_DIR" || log_warning_msg "can' > else > log_failure_msg "can't create $RUN_DIR" > exit 1 > fi } } check_ifstate() { check_ifstate() { if [ ! -d "$RUN_DIR" ] ; then | test -r "$IFSTATE" && return if ! mkdir -p "$RUN_DIR" ; then | :> "$IFSTATE" log_failure_msg "can't create $RUN_DIR" | test -r "$IFSTATE" && return exit 1 | log_failure_msg "can't initialise $IFSTATE" fi | exit 1 if ! chown root:netdev "$RUN_DIR" ; then < log_warning_msg "can't chown $RUN_DIR" < fi < fi < if [ ! -r "$IFSTATE" ] ; then < if ! :> "$IFSTATE" ; then < log_failure_msg "can't initialise $IFSTATE" < exit 1 < fi < fi < } } check_network_file_systems() { check_network_file_systems() { [ -e /proc/mounts ] || return 0 [ -e /proc/mounts ] || return 0 if [ -e /etc/iscsi/iscsi.initramfs ]; then if [ -e /etc/iscsi/iscsi.initramfs ]; then log_warning_msg "not deconfiguring network interfaces | log_warning_msg "not deconfiguring network interfaces exit 0 | exit 0 fi fi while read DEV MTPT FSTYPE REST; do while read DEV MTPT FSTYPE REST; do case $DEV in | case $DEV in /dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*|curlftpfs*) | /dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*) log_warning_msg "not deconfiguring network interf | log_warning_msg "not deconfiguring network interf exit 0 | exit 0 ;; | ;; esac | esac case $FSTYPE in | case $FSTYPE in nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs|pvfs|pvf | nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs|pvfs|pvf log_warning_msg "not deconfiguring network interf | log_warning_msg "not deconfiguring network interf exit 0 | exit 0 ;; | ;; esac | esac done < /proc/mounts done < /proc/mounts } } check_network_swap() { check_network_swap() { [ -e /proc/swaps ] || return 0 [ -e /proc/swaps ] || return 0 while read DEV MTPT FSTYPE REST; do while read DEV MTPT FSTYPE REST; do case $DEV in | case $DEV in /dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*) | /dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*) log_warning_msg "not deconfiguring network interf | log_warning_msg "not deconfiguring network interf exit 0 | exit 0 ;; | ;; esac | esac done < /proc/swaps done < /proc/swaps } } > # Try to bring up every hot-plug interface that has a sys dir > # and that is not listed in EXCLUDE_INTERFACES. Launch each > # in the background ifup_hotplug () { ifup_hotplug () { if [ -d /sys/class/net ] | local all_ifaces="${*:-$(ifquery --list --allow=hotpl then | ifaces=$(for iface in $(ifquery --list --allow=ho | local excludes="$EXCLUDE_INTERFACES" sys_dir=/sys/class/ do | link=${iface##:*} | test -d $sys_dir || return link=${link##.*} | if [ -e "/sys/class/net/$ | printf " " then | echo "$iface" | local children iface fi | for iface in $all_ifaces; do done) | test -d $sys_dir/$iface || continue if [ -n "$ifaces" ] | case " $excludes " in *" $iface "*) continue;; esac then | ifup $ifaces "$@" || true | # # Make sure ifup is not already running for this in fi | # local proc="$(ps -C ifup ho args)" > # [ "${proc%$iface*}" != "$proc" ] && continue > > printf "%s " $iface > echo "$ME: ifup $iface" >/dev/kmsg > (ifup $iface >>$LOG_FILE 2>>$LOG_FILE) & > children="$children $!" > done > > [ -z "$children" ] && return > local reaper=/usr/local/bin/process-reaper > if test -x $reaper; then > $reaper $children & > else > (sleep $IFUP_TIMEOUT ; kill $children) & fi fi > return 0 } } case "$1" in | udevadmin_settle() { start) | [ -x /sbin/udevadm ] || return process_options | #[ -z "$(ifquery --list --exclude=lo)" ] && [ -z "$(ifque check_ifstate | udevadm settle | } if [ "$CONFIGURE_INTERFACES" = no ] | then | case $1 in log_action_msg "Not configuring network interface | start) exit 0 | init_is_upstart && exit 1 fi | check_run_dir set -f | check_ifstate exclusions=$(process_exclusions) | touch $NET_STATE log_action_begin_msg "Configuring network interfaces" | if [ -x /bin/udevadm ]; then | if [ "$CONFIGURE_INTERFACES" = no ] if [ -n "$(ifquery --list --exclude=lo)" ] || | then /bin/udevadm settle || true | log_action_msg "Not configuring network interface fi | log_action_end_msg 0 fi | exit 0 if ifup -a $exclusions $verbose && ifup_hotplug $excl | fi then | set -f log_action_end_msg $? | else | log_action_begin_msg "Configuring network interfaces log_action_end_msg $? | fi | test -f $LOG_FILE && rm -f $LOG_FILE ;; | | udevadmin_settle stop) | check_network_file_systems | ifup -a && ifup_hotplug check_network_swap | log_action_end_msg $? | echo "$ME done" > /dev/kmsg log_action_begin_msg "Deconfiguring network interface | ;; if ifdown -a --exclude=lo $verbose; then | log_action_end_msg $? | stop) else | init_is_upstart && exit 0 log_action_end_msg $? | check_network_file_systems fi | check_network_swap ;; | | rm -r $NET_STATE reload) | process_options | test -e /run/network/.ifstate.lock || exit 0 | log_action_begin_msg "Deconfiguring network interface log_action_begin_msg "Reloading network interfaces co | ifdown --all --exclude=lo state=$(ifquery --state) | log_action_end_msg $? ifdown -a --exclude=lo $verbose || true | ;; if ifup --exclude=lo $state $verbose ; then | log_action_end_msg $? | reload) else | init_is_upstart && exit 1 log_action_end_msg $? | fi | log_action_begin_msg "Reloading network interfaces co ;; | state=$(ifquery --state) | ifdown --all --exclude=lo force-reload|restart) | ifup --exclude=lo $state process_options | log_action_end_msg $? | ;; log_warning_msg "Running $0 $1 is deprecated because | log_action_begin_msg "Reconfiguring network interface | force-reload|restart) ifdown -a --exclude=lo $verbose || true | init_is_upstart && exit 1 set -f | exclusions=$(process_exclusions) | log_warning_msg "Running $0 $1 is deprecated because if ifup -a --exclude=lo $exclusions $verbose && ifup_ | log_action_begin_msg "Reconfiguring network interface then | ifdown --all --exclude=lo log_action_end_msg $? | ifup --all --exclude=lo && ifup_hotplug else | log_action_end_msg $? log_action_end_msg $? | ;; fi | ;; | *) | echo "Usage: /etc/init.d/networking {start|stop|reloa *) | exit 1 echo "Usage: /etc/init.d/networking {start|stop|reloa | ;; exit 1 < ;; < esac esac exit 0 exit 0March 5, 2018 at 6:08 am #7297Member
sleekmason
::**SOLVED!!
Yes, the file works. I didn’t check the permissions and it wasn’t allowing me to access the networking group. Sorry for being a bit slow on this.Question: Is there a way to mark the op as solved after my access to edit has been removed?
March 5, 2018 at 6:29 am #7300Forum Admin
anticapitalista
::Question: Is there a way to mark the op as solved after my access to edit has been removed?
Afraid not. I’ll do it for you.
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
-
AuthorPosts
- You must be logged in to reply to this topic.