Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux.ubuntu > #197281 > unrolled thread
| Started by | fred flintstone <fred@server.invalid> |
|---|---|
| First post | 2017-09-24 12:36 -0700 |
| Last post | 2017-10-11 17:50 +0000 |
| Articles | 18 on this page of 38 — 6 participants |
Back to article view | Back to alt.os.linux.ubuntu
nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-09-24 12:36 -0700
Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-09-24 15:46 -0400
Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-09-29 14:26 -0700
Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-04 19:40 -0700
Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-05 05:03 +0000
Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-07 15:49 -0700
Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-07 23:24 +0000
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-10 23:22 +0000
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-10 20:32 -0700
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-11 04:52 +0000
Re: systemd was Re: nautilus not working/wireless not responding either Melzzzzz <Melzzzzz@zzzzz.com> - 2017-10-11 05:00 +0000
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-12 16:09 -0700
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-13 03:06 +0000
Re: systemd was Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-13 00:33 -0400
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-13 05:00 +0000
Re: systemd was Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-13 09:31 -0400
Re: systemd was Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-13 09:32 -0400
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-13 14:19 +0000
Re: systemd was Re: nautilus not working/wireless not responding either Marek Novotny <marek.novotny@marspolar.com> - 2017-10-13 09:56 -0500
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-22 14:35 -0700
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-22 23:57 +0000
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-25 12:03 -0700
Re: systemd was Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-26 12:46 -0400
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-26 23:54 +0000
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-31 17:28 -0700
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-11-01 01:36 +0000
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-11-06 12:35 -0800
[OT] Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-27 00:23 +0000
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-25 16:13 -0700
Re: systemd was Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-13 11:42 -0400
Re: systemd was Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-13 11:45 -0400
Re: systemd was Re: nautilus not working/wireless not responding either fred flintstone <fred@server.invalid> - 2017-10-13 17:03 -0700
Re: systemd was Re: nautilus not working/wireless not responding either "Jonathan N. Little" <lws4art@gmail.com> - 2017-10-13 20:25 -0400
Re: systemd was Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-14 01:45 +0000
Re: systemd was Re: nautilus not working/wireless not responding either Mike Easter <MikeE@ster.invalid> - 2017-10-10 16:34 -0700
Re: systemd was Re: nautilus not working/wireless not responding either Mike Easter <MikeE@ster.invalid> - 2017-10-10 16:41 -0700
Re: nautilus not working/wireless not responding either Mike Easter <MikeE@ster.invalid> - 2017-10-11 10:28 -0700
[OT] Re: nautilus not working/wireless not responding either Bit Twister <BitTwister@mouse-potato.com> - 2017-10-11 17:50 +0000
Page 2 of 2 — ← Prev page 1 [2]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2017-10-22 23:57 +0000 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <slrnouqc3d.jcr.BitTwister@wb.home.test> |
| In reply to | #197520 |
On Sun, 22 Oct 2017 14:35:35 -0700, fred flintstone wrote: > I'd like still to get this script to run any time the wireless fails, Do yourself a favor, install this quick, untested, kludge and bounce your network and see what is in the output file. ----8<----8<----8<----8<--cut below this line--8<----8<----8< #!/bin/bash #****************************************************** #* dump_env - Dump dhclient-exit-hooks environment vars #* #* Install: locate the dhclient-exit-hooks.d directory, #* save script in the .d/ directory and set execute perms #* Example: #* locate dhclient-exit-hooks.d/ #* cp dump_env /etc/dhclient-exit-hooks.d/ #* chmod +x /etc/dhclient-exit-hooks.d/dump_env #* #****************************************************** export PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin _app=$(basename $0) _out_fn=/var/tmp/$_app.log env | sort >> $_out_fn echo "Current time : $now" >> $_out_fn journalctl --since "1 minute ago" >> $_out_fn #***********************end dump_env*******************************
[toc] | [prev] | [next] | [standalone]
| From | fred flintstone <fred@server.invalid> |
|---|---|
| Date | 2017-10-25 12:03 -0700 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <f5c5g4F8u30U1@mid.individual.net> |
| In reply to | #197522 |
On 10/22/2017 04:57 PM, Bit Twister wrote: > On Sun, 22 Oct 2017 14:35:35 -0700, fred flintstone wrote: > >> I'd like still to get this script to run any time the wireless fails, > > Do yourself a favor, install this quick, untested, kludge and bounce > your network and see what is in the output file. > ----8<----8<----8<----8<--cut below this line--8<----8<----8< > > #!/bin/bash > #****************************************************** > #* dump_env - Dump dhclient-exit-hooks environment vars > #* > #* Install: locate the dhclient-exit-hooks.d directory, > #* save script in the .d/ directory and set execute perms > #* Example: > #* locate dhclient-exit-hooks.d/ > #* cp dump_env /etc/dhclient-exit-hooks.d/ > #* chmod +x /etc/dhclient-exit-hooks.d/dump_env > #* > #****************************************************** > export PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin > > _app=$(basename $0) > _out_fn=/var/tmp/$_app.log > > env | sort >> $_out_fn > echo "Current time : $now" >> $_out_fn > journalctl --since "1 minute ago" >> $_out_fn > > #***********************end dump_env******************************* > Thanks, BT, I've had some time now to get the envelope data and array it usefully as per above, but my system has a few differences. Let's look at the code. I named your code 1.env.sh and then used my create tool to clone it, saving it as 2.env.sh, incrementing the output if it has any, and pulling it up in gedit for modification. sudo cp 2.env.sh /etc/dhcp/dhclient-exit-hooks.d/ My scripts begin with a number followed by a period. Ben Bararisse suggested it in comp.unix.programmer, but it's entirely possible that he could have pranking me. I find that it saves on typing on the command line to use lower numbers first, a tab key, and a period. In the new script, I define a path where I want the output: _app=$(basename $0) _path_to=/home/bob/Desktop/perl/logs/dhooks/ _out_fn=$_path_to$_app.log echo "basename dollar sign zero is" $_app echo "path is" $_path_to env | sort >> $_out_fn echo "Current time : $now" >> $_out_fn journalctl --since "1 minute ago" >> $_out_fn cd /etc/dhcp/dhclient-exit-hooks.d/ Does this archictecture change between our two systems? Mine seems to have an intermediary dhcp directory. $ chmod +x 2.env.sh chmod: changing permissions of '2.env.sh': Operation not permitted If I had typed sudo -i before this, would this have been permitted? $ sudo chmod +x 2.env.sh $ ls -l total 16 -rwxr-xr-x 1 root root 0 Oct 24 17:48 1.env.sh -rwxr-xr-x 1 root root 891 Oct 25 10:59 2.env.sh lrwxrwxrwx 1 root root 8 May 25 05:37 debug -> ../debug -rw-r--r-- 1 root root 1756 Apr 13 2016 rfc3442-classless-routes -rw-r--r-- 1 root root 1117 Jan 12 2017 timesyncd -rwxr-xr-x 1 root root 1025 Nov 24 2015 zzz_avahi-autoipd $ 2.env.sh 2.env.sh: command not found Question: why do I chmod +x this script? $ sh 2.env.sh basename dollar sign zero is 2.env.sh path is /home/bob/Desktop/perl/logs/dhooks/ $ diff --help | less $ pwd /etc/dhcp/dhclient-exit-hooks.d $ $ pwd /home/bob/Desktop/perl/logs/dhooks $ ls -l total 8 -rw-rw-r-- 1 bob bob 3437 Oct 25 10:49 1.env.bob.log -rw-rw-r-- 1 bob bob 3871 Oct 25 11:03 2.env.sh.log This first listing is this a renamed file from the envelope output when run in its native location. $ diff 1.env.bob.log 2.env.sh.log 28c28 < OLDPWD=/home/bob/Desktop/perl/logs --- > OLDPWD=/home/bob/Desktop/perl 34c34 < PWD=/home/bob/Desktop/perl --- > PWD=/etc/dhcp/dhclient-exit-hooks.d 50c50 < WINDOWID=65017434 --- > WINDOWID=65011722 67c67,70 < -- No entries -- --- > -- Logs begin at Wed 2017-10-18 14:02:36 PDT, end at Wed 2017-10-25 11:02:05 PDT. -- > Oct 25 11:02:05 bob-ThinkPad-SL510 sudo[4290]: bob : TTY=pts/1 ; PWD=/etc/dhcp/dhclient-exit-hooks.d ; USER=root ; COMMAND=/bin/chmod +x 2.env.sh > Oct 25 11:02:05 bob-ThinkPad-SL510 sudo[4290]: pam_unix(sudo:session): session opened for user root by (uid=0) > Oct 25 11:02:05 bob-ThinkPad-SL510 sudo[4290]: pam_unix(sudo:session): session closed for user root $ Is there something in particular I should grep for? -- fred
[toc] | [prev] | [next] | [standalone]
| From | "Jonathan N. Little" <lws4art@gmail.com> |
|---|---|
| Date | 2017-10-26 12:46 -0400 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <ost3hj$s8v$1@dont-email.me> |
| In reply to | #197531 |
fred flintstone wrote: > cd /etc/dhcp/dhclient-exit-hooks.d/ > > Does this archictecture change between our two systems? Mine seems to > have an intermediary dhcp directory. > > $ chmod +x 2.env.sh > chmod: changing permissions of '2.env.sh': Operation not permitted This is because you to not have write permissions in this directory. Remember you moved from your profile /home/fred (where you can write stuff) to /etc/dhcp/dhclient-exit-hooks.d/ (where you should not be able to write stuff). This is intentional in Linux for security. To write|edit|delete stuff *not* in your own profile requires 2 things: 1) You be a member of sudoers 2) You elevate your privileges to root, such as using sudo. You should have entered: sudo chmod +x 2.env.sh > > If I had typed > > sudo -i > > before this, would this have been permitted? Yes. > > $ sudo chmod +x 2.env.sh > $ ls -l > total 16 > -rwxr-xr-x 1 root root 0 Oct 24 17:48 1.env.sh > -rwxr-xr-x 1 root root 891 Oct 25 10:59 2.env.sh With elevated permissions you are now able to change file's permissions. > lrwxrwxrwx 1 root root 8 May 25 05:37 debug -> ../debug > -rw-r--r-- 1 root root 1756 Apr 13 2016 rfc3442-classless-routes > -rw-r--r-- 1 root root 1117 Jan 12 2017 timesyncd > -rwxr-xr-x 1 root root 1025 Nov 24 2015 zzz_avahi-autoipd > $ 2.env.sh > 2.env.sh: command not found Okay, this happens because in Linux unlike Windows the *current* directory is *not* in your path. This is intentional again for security reasons. It is to prevent a "custom" command to override the default command simply be placing the custom executable|script in the current working directory. If you are going to run a script not on the path you must either use the absolute path or the relative path to the executable. So in your situation since you were in the same directory as the script you been successful if you used either the absolute or relative path: /etc/dhcp/dhclient-exit-hooks.d/2.env.sh or ./2.env.sh "./" dot slash means current directory. > > Question: why do I chmod +x this script? Because in Linux what allows a script to run is determined by its executable bit and not like Windows that uses a part of the filename, i.e., "file extension", to tell the OS "this is executable". It is something that throws ex-Windows users new to Linux. The ".sh" really mean nothing to Linux. Example in Linux: echo -e "ls -ls\necho 'hello world, I did a listing'" > foobar chmod +x foobar ./foobar The 3 steps will create a script, make it executable , then run it and it will work. Example in Windows command window: echo dir > foobar echo echo hello world, I did a listing >> foobar foobar The 4 steps will not work and results in an error: 'foobar' is not recognized as an internal or external command, operable program or batch file. But change the name to add extension: ren foobar foobar.bat foobar Now success! HTH -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2017-10-26 23:54 +0000 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <slrnov4td9.tf7.BitTwister@wb.home.test> |
| In reply to | #197531 |
On Wed, 25 Oct 2017 12:03:30 -0700, fred flintstone wrote: > On 10/22/2017 04:57 PM, Bit Twister wrote: >> On Sun, 22 Oct 2017 14:35:35 -0700, fred flintstone wrote: >> >>> I'd like still to get this script to run any time the wireless fails, > > My scripts begin with a number followed by a period. Ben Bararisse > suggested it in comp.unix.programmer, but it's entirely possible that he > could have pranking me. I find that it saves on typing on the command > line to use lower numbers first, a tab key, and a period. > > cd /etc/dhcp/dhclient-exit-hooks.d/ > > Does this archictecture change between our two systems? Well, my header showed mine is different from yours. > Mine seems to have an intermediary dhcp directory. The only constant I have seen with Linux is change. :) location and contents can/will be different depending on release of the application, and package used by the distribution. > > $ chmod +x 2.env.sh > chmod: changing permissions of '2.env.sh': Operation not permitted > > If I had typed > > sudo -i > > before this, would this have been permitted? Yes. when you are working in a directory you might want to check the owner and group to get a feel of permissions and see who is the GID/UID For example: $ ls -al | head -4 total 20 drwxr-xr-x 2 root root 4096 Oct 25 03:09 . drwxr-xr-x 142 root root 12288 Oct 26 05:29 .. -rwxr-xr-x 1 root root 1291 Oct 4 2016 static-routes.sh Here you can see everything is owned by UID=root and GID=root > $ sudo chmod +x 2.env.sh > $ ls -l > total 16 > -rwxr-xr-x 1 root root 0 Oct 24 17:48 1.env.sh I can highly recommend not leaving junk/scraped files in .d/ directories. > -rwxr-xr-x 1 root root 891 Oct 25 10:59 2.env.sh > lrwxrwxrwx 1 root root 8 May 25 05:37 debug -> ../debug > > Is there something in particular I should grep for? What I am trying to do is get your script to run to allow it to decide what needs to be done. I think you will not be able make those decisions by looking in the journal. So far all I have done is help you make your script do what you asked for based on what you have provided and try to point you into the direction I think you need to go. Having failed to get you the information needed has proven a problem so far. I do not have the setup to actually figure out what is going wrong. Your release does not match my ubuntu_15_04 VirtuaBox guest contents. > lrwxrwxrwx 1 root root 8 May 25 05:37 debug -> ../debug It looks like debug is going to do what I wanted dump_env to do for you. Look in that file and you might notice that you can change a ="no" to a ="yes". bounce the network and look a the output file. If that works then post the output. If that works as designed we should make some progress in making your script help you with your original quest in this thread.
[toc] | [prev] | [next] | [standalone]
| From | fred flintstone <fred@server.invalid> |
|---|---|
| Date | 2017-10-31 17:28 -0700 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <f5siopF2o5eU1@mid.individual.net> |
| In reply to | #197538 |
On 10/26/2017 04:54 PM, Bit Twister wrote:
> On Wed, 25 Oct 2017 12:03:30 -0700, fred flintstone wrote:
>> On 10/22/2017 04:57 PM, Bit Twister wrote:
>>> On Sun, 22 Oct 2017 14:35:35 -0700, fred flintstone wrote:
>>>
>>>> I'd like still to get this script to run any time the wireless fails,
>>
>> My scripts begin with a number followed by a period. Ben Bararisse
>> suggested it in comp.unix.programmer, but it's entirely possible that he
>> could have pranking me. I find that it saves on typing on the command
>> line to use lower numbers first, a tab key, and a period.
>>
>> cd /etc/dhcp/dhclient-exit-hooks.d/
>>
>> Does this archictecture change between our two systems?
>
> Well, my header showed mine is different from yours.
>
>> Mine seems to have an intermediary dhcp directory.
>
> The only constant I have seen with Linux is change. :)
>
> location and contents can/will be different depending on release of the
> application, and package used by the distribution.
>
>
>
>>
>> $ chmod +x 2.env.sh
>> chmod: changing permissions of '2.env.sh': Operation not permitted
>>
>> If I had typed
>>
>> sudo -i
>>
>> before this, would this have been permitted?
>
> Yes. when you are working in a directory you might want to check the
> owner and group to get a feel of permissions and see who is the GID/UID
>
> For example:
> $ ls -al | head -4
> total 20
> drwxr-xr-x 2 root root 4096 Oct 25 03:09 .
> drwxr-xr-x 142 root root 12288 Oct 26 05:29 ..
> -rwxr-xr-x 1 root root 1291 Oct 4 2016 static-routes.sh
>
> Here you can see everything is owned by UID=root and GID=root
>
>
>> $ sudo chmod +x 2.env.sh
>> $ ls -l
>> total 16
>> -rwxr-xr-x 1 root root 0 Oct 24 17:48 1.env.sh
>
> I can highly recommend not leaving junk/scraped files in .d/ directories.
>
>> -rwxr-xr-x 1 root root 891 Oct 25 10:59 2.env.sh
>> lrwxrwxrwx 1 root root 8 May 25 05:37 debug -> ../debug
>>
>> Is there something in particular I should grep for?
>
> What I am trying to do is get your script to run to allow it to decide
> what needs to be done. I think you will not be able make those
> decisions by looking in the journal.
>
> So far all I have done is help you make your script do what you asked
> for based on what you have provided and try to point you into the
> direction I think you need to go.
>
> Having failed to get you the information needed has proven a problem
> so far.
>
> I do not have the setup to actually figure out what is going wrong.
>
> Your release does not match my ubuntu_15_04 VirtuaBox guest contents.
>
>> lrwxrwxrwx 1 root root 8 May 25 05:37 debug -> ../debug
>
> It looks like debug is going to do what I wanted dump_env to do for
> you.
>
> Look in that file and you might notice that you can change a ="no" to
> a ="yes". bounce the network and look a the output file. If that works
> then post the output.
>
> If that works as designed we should make some progress in making your
> script help you with your original quest in this thread.
>
Shoot, bt, I want this to work, but I've not been able to get any output:
$ sudo -i
[sudo] password for bob:
root@bob-ThinkPad-SL510:~# cd /etc
root@bob-ThinkPad-SL510:/etc# cd dhcp/
root@bob-ThinkPad-SL510:/etc/dhcp# ls
debug dhclient.conf dhclient-enter-hooks.d dhclient-exit-hooks.d
root@bob-ThinkPad-SL510:/etc/dhcp# cat debug
#
# The purpose of this script is just to show the variables that are
# available to all the scripts in this directory. All these scripts are
# called from dhclient-script, which exports all the variables shown
# before. If you want to debug a problem with your DHCP setup you can
# enable this script and take a look at /tmp/dhclient-script.debug.
# To enable this script set the following variable to "yes"
RUN="yes"
if [ "$RUN" = "yes" ]; then
echo "$(date): entering ${1%/*}, dumping variables." \
>> /tmp/dhclient-script.debug
# loop over the 4 possible prefixes: (empty), cur_, new_, old_
for prefix in '' 'cur_' 'new_' 'old_'; do
# loop over the DHCP variables passed to dhclient-script
for basevar in reason interface medium alias_ip_address \
ip_address host_name network_number subnet_mask \
broadcast_address routers static_routes \
rfc3442_classless_static_routes \
domain_name domain_search domain_name_servers \
netbios_name_servers netbios_scope \
ntp_servers \
ip6_address ip6_prefix ip6_prefixlen \
dhcp6_domain_search dhcp6_name_servers ; do
var="${prefix}${basevar}"
eval "content=\$$var"
# show only variables with values set
if [ -n "${content}" ]; then
echo "$var='${content}'" >> /tmp/dhclient-script.debug
fi
done
done
echo '--------------------------' >> /tmp/dhclient-script.debug
fi
root@bob-ThinkPad-SL510:/etc/dhcp# cd /tmp
root@bob-ThinkPad-SL510:/tmp# ls *.debug
ls: cannot access '*.debug': No such file or directory
Disconnected from wireless here.
root@bob-ThinkPad-SL510:/tmp# ls *.debug
ls: cannot access '*.debug': No such file or directory
root@bob-ThinkPad-SL510:/tmp# pwd
/tmp
root@bob-ThinkPad-SL510:/tmp#
??
--
fred
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2017-11-01 01:36 +0000 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <slrnovi982.7ji.BitTwister@wb.home.test> |
| In reply to | #197551 |
On Tue, 31 Oct 2017 17:28:07 -0700, fred flintstone wrote:
>
> Shoot, bt, I want this to work, but I've not been able to get any output:
>
> # loop over the 4 possible prefixes: (empty), cur_, new_, old_
> for prefix in '' 'cur_' 'new_' 'old_'; do
> # loop over the DHCP variables passed to dhclient-script
> for basevar in reason interface medium alias_ip_address \
> ip_address host_name network_number subnet_mask \
> broadcast_address routers static_routes \
> rfc3442_classless_static_routes \
> domain_name domain_search domain_name_servers \
> netbios_name_servers netbios_scope \
> ntp_servers \
> ip6_address ip6_prefix ip6_prefixlen \
> dhcp6_domain_search dhcp6_name_servers ; do
Yep, same here, and those were the variables I was wanting access to
to be able to let your script decide what to do.
I spent some time trying to get access to the desired variables. but I
believe NetworkManager has a bug or two. The following is my latest
attempt with all the links I installed yet the majority were never
triggered.
-----8<-----8<-----8<-- dump_env.sh ---8<-----8<-----8<
#!/bin/bash
#*********************************************************************
#* dump_env.sh - Dump network environment vars
#*
#* Install:
#* save script in /var/local/dump_env.sh
#* chmod +x /var/local/dump_env.sh
#*
#* create links in every directory having to do with networking
#* where you want to see the environment variables
#* Example:
#*
#* ln -sf /var/local/dump_env.sh /etc/NetworkManager/dispatcher.d/no-wait.d/xx_dump_env.sh
#* ln -sf /var/local/dump_env.sh /etc/NetworkManager/dispatcher.d/pre-down.d/xx_dump_env.sh
#* ln -sf /var/local/dump_env.sh /etc/NetworkManager/dispatcher.d/pre-up.d/xx_dump_env.sh
#* ln -sf /var/local/dump_env.sh /etc/dhcp/dhclient-enter-hooks.d/xx_dump_env.sh
#* ln -sf /var/local/dump_env.sh /etc/dhcp/dhclient-exit-hooks.d/xx_dump_env.sh
#* ln -sf /var/local/dump_env.sh /etc/network/if-down.d/xx_dump_env.sh
#* ln -sf /var/local/dump_env.sh /etc/network/if-post-down.d/xx_dump_env.sh
#* ln -sf /var/local/dump_env.sh /etc/network/if-pre-up.d/xx_dump_env.sh
#* ln -sf /var/local/dump_env.sh /etc/network/if-up.d/xx_dump_env.sh
#* ln -sf /var/local/dump_env.sh /etc/network/interfaces.d/xx_dump_env.sh
#*
#* Bouncing the network should create /tmp/dump_env.sh_log.xxxx
#* Example:
#* nmcli networking off
#* nmcli networking on
#* service network-manager restart
#* cat /tmp/dump_env*
#*
#*********************************************************************
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
set -u
_app=dump_env.sh
_out_fn=/tmp/${_app}_log.$$
touch $_out_fn
chmod 666 $_out_fn
echo "exe: $0" >> $_out_fn
echo "cmd line args: $@" >> $_out_fn
date >> $_out_fn
env | sort >> $_out_fn
echo "------end $_out_fn ---------------" >> $_out_fn
exit 0
#***********************end dump_env.sh *******************************
Here were the results
$ while read -r line; do head -3 $line; echo "" ;done < <(ls -1 dump_env.sh_log*)
exe: /etc/NetworkManager/dispatcher.d/pre-down.d/xx_dump_env.sh
cmd line args: enp0s3 pre-down
Fri Oct 27 15:13:08 CDT 2017
exe: /etc/NetworkManager/dispatcher.d/pre-up.d/xx_dump_env.sh
cmd line args: enp0s3 pre-up
Fri Oct 27 15:13:13 CDT 2017
exe: /etc/NetworkManager/dispatcher.d/pre-up.d/xx_dump_env.sh
cmd line args: enp0s3 pre-up
Fri Oct 27 15:13:18 CDT 2017
exe: /etc/NetworkManager/dispatcher.d/pre-up.d/xx_dump_env.sh
cmd line args: enp0s3 pre-up
Fri Oct 27 17:07:04 CDT 2017
exe: /etc/NetworkManager/dispatcher.d/pre-up.d/xx_dump_env.sh
cmd line args: enp0s3 pre-up
Sun Oct 29 14:39:05 CDT 2017
As you can see, the great majority of the desired soft links were
never executed.
I had expected dispatcher.d/01ifupdown would have caused several
triggers to be fired up. You might want to Google
dispatcher.d/01ifupdown and check a few links to see how to get it to
execute.
I did find it interesting that a
nmcli network off
nmcli network on
gave me two dumps, but
servide network-manager restart
only got me one dump.
I suggest you will need to get someone who knows what is going on to
take a look into why none of the desired links are being executed.
I suggest posting the above on the ubuntu forum to see if someone can
help you getting the links to work, or access to the desired
variables.
[toc] | [prev] | [next] | [standalone]
| From | fred flintstone <fred@server.invalid> |
|---|---|
| Date | 2017-11-06 12:35 -0800 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <f6bvd3Fn3moU1@mid.individual.net> |
| In reply to | #197552 |
On 10/31/2017 06:36 PM, Bit Twister wrote: > On Tue, 31 Oct 2017 17:28:07 -0700, fred flintstone wrote: > I did find it interesting that a > nmcli network off > nmcli network on > gave me two dumps, but > servide network-manager restart > only got me one dump. I was able to incorporate this to make an effective tool for diagnosing the wireless and resetting it, all the while logging: https://github.com/TBlazer66/perl/blob/master/11.jctl.sh Typical output is here. I think it's important to note that this output is for ubuntu 16.04, and that bets might be off for the next version, which bt has, (version 230). (I thought that the 229 next to systemd was how many lines it had.) https://github.com/TBlazer66/perl/blob/master/11-01-23_2017-11-06.log > > I suggest you will need to get someone who knows what is going on to > take a look into why none of the desired links are being executed. > I suggest posting the above on the ubuntu forum to see if someone can > help you getting the links to work, or access to the desired > variables. > If I were a better boy scout, I would do precisely that. Once I start to write with perl, I lose ambition with the architecture underneath. I think this is a pretty decent result for now. There's all kinds of messages in the syslog to decipher before I'm gonna know what's going on for real. Nautilus' problems were probably caused by the spotty wireless. Thanks all for comments, -- fred --
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2017-10-27 00:23 +0000 |
| Subject | [OT] Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <slrnov4v4u.tf7.BitTwister@wb.home.test> |
| In reply to | #197531 |
On Wed, 25 Oct 2017 12:03:30 -0700, fred flintstone wrote:
>
> My scripts begin with a number followed by a period. Ben Bararisse
> suggested it in comp.unix.programmer, but it's entirely possible that he
> could have pranking me. I find that it saves on typing on the command
> line to use lower numbers first, a tab key, and a period.
Each to their own. I happen to be using geany as my editor. Makes my
life pretty easy. If I launch it without an argument, it opens the
file(s) that I did not remove from its memory.
I have a standard boilerplate/skeleton. When I start a new app, I copy
it to the app and start hacking away at it.
Since I use a consistent programming style it made dead easy to do man
a consistent change throughout my files.
I wanted to change 139 files, launched geany with each file, did a
Ctrl-h to replace a string with another one, click In Session button
and all 139 files were changed. :)
As for your less typing kick, it is possible to set up an alias to do
the typing for you.
example if you had APP=dump_env.sh
and an alias e='edt $APP'
and an alias r='$APP'
Now all you would need to do e to edit, and r to run dump_env.sh.
edt is my script to automagically pick what editor to use for a given
file type. Example snippet from grep '\&' edt
ods) libreoffice --calc $_fn &
odt) libreoffice $_fn &
csv) gnumeric -g 787x768 $_fn 2>/dev/null &
xls) gnumeric -g 787x768 $_fn 2>/dev/null &
gnumeric) gnumeric -g 787x768 $_fn 2>/dev/null &
$EDITOR $_fn &
-----------------
EDITOR is whatever editor that is installed.
$ echo $EDITOR
geany
EDITOR was set with this logic.
#*****************************************
# decide which editor is installed
#* and is to be the default file editor.
#* first one found wins.
#*****************************************
for e in geany kwrite gedit nedit emacs gvim vi ; do
_editor=$(type -p $e)
if [ $? -eq 0 ] ; then
_editor=$(basename $_editor)
break
fi
done
export EDITOR=$_editor # default file editor
export VISUAL=emacs # default command line editor
export PAGER=less # default file pager
export TERM=vt100
[toc] | [prev] | [next] | [standalone]
| From | fred flintstone <fred@server.invalid> |
|---|---|
| Date | 2017-10-25 16:13 -0700 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <f5ck4fFc7amU1@mid.individual.net> |
| In reply to | #197522 |
On 10/22/2017 04:57 PM, Bit Twister wrote: > On Sun, 22 Oct 2017 14:35:35 -0700, fred flintstone wrote: > >> I'd like still to get this script to run any time the wireless fails, > > Do yourself a favor, install this quick, untested, kludge and bounce > your network and see what is in the output file. I missed the "bounce" part: $ grep -i "networkmanager" 2.env.sh.log >1.nm $ cat 1.nm | less Looks about right to me: Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5712] policy: auto-activating connection 'SBG6900AC-C1177-5G' Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5745] device (wlp5s0): Activation: starting connection 'SBG6900AC-C1177-5G' (b118e181-80eb-417e-9bc2-7e4d094d69b5) Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5748] device (wlp5s0): state change: disconnected -> prepare (reason 'none') [30 40 0] Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5751] manager: NetworkManager state is now CONNECTING Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5765] device (wlp5s0): state change: prepare -> config (reason 'none') [40 50 0] Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5769] device (wlp5s0): Activation: (wifi) access point 'SBG6900AC-C1177-5G' has security, but secrets are required. Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5770] device (wlp5s0): state change: config -> need-auth (reason 'none') [50 60 0] Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5854] device (wlp5s0): state change: need-auth -> prepare (reason 'none') [60 40 0] Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5864] device (wlp5s0): state change: prepare -> config (reason 'none') [40 50 0] Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5868] device (wlp5s0): Activation: (wifi) connection 'SBG6900AC-C1177-5G' has security, and secrets exist. No new secrets needed. Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5868] Config: added 'ssid' value 'SBG6900AC-C1177-5G' Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5869] Config: added 'scan_ssid' value '1' Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5869] Config: added 'key_mgmt' value 'WPA-PSK' Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5869] Config: added 'auth_alg' value 'OPEN' Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.5869] Config: added 'psk' value '<omitted>' Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.6154] sup-iface[0x24cfb80,wlp5s0]: config: set interface ap_scan to 1 Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.6486] device (wlp5s0): supplicant interface state: inactive -> associating Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.6603] device (wlp5s0): supplicant interface state: associating -> 4-way handshake Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.7934] device (wlp5s0): supplicant interface state: 4-way handshake -> completed Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.7934] device (wlp5s0): Activation: (wifi) Stage 2 of 5 (Device Configure) successful. Connected to wireless network 'SBG6900AC-C1177-5G'. Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.7936] device (wlp5s0): state change: config -> ip-config (reason 'none') [50 70 0] Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.8163] dhcp4 (wlp5s0): activation: beginning transaction (timeout in 45 seconds) Oct 25 15:25:08 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970308.8358] dhcp4 (wlp5s0): dhclient started with pid 7116 Oct 25 15:25:12 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970312.6822] device (wlp5s0): state change: ip-config -> ip-check (reason 'none') [70 80 0] Oct 25 15:25:12 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970312.6832] device (wlp5s0): state change: ip-check -> secondaries (reason 'none') [80 90 0] Oct 25 15:25:12 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970312.6882] device (wlp5s0): state change: secondaries -> activated (reason 'none') [90 100 0] Oct 25 15:25:12 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970312.6885] manager: NetworkManager state is now CONNECTED_LOCAL Oct 25 15:25:12 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970312.7936] device (wlp5s0): Activation: successful, device activated. Oct 25 15:25:16 bob-ThinkPad-SL510 NetworkManager[851]: <warn> [1508970316.5016] sup-iface[0x24cfb80,wlp5s0]: connection disconnected (reason 15) Oct 25 15:25:16 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970316.5289] device (wlp5s0): supplicant interface state: completed -> disconnected Oct 25 15:25:16 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970316.6066] device (wlp5s0): supplicant interface state: disconnected -> scanning Oct 25 15:25:19 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970319.7132] device (wlp5s0): supplicant interface state: scanning -> authenticating Oct 25 15:25:19 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970319.7437] device (wlp5s0): supplicant interface state: authenticating -> associated Oct 25 15:25:19 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970319.7500] device (wlp5s0): supplicant interface state: associated -> 4-way handshake Oct 25 15:25:19 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970319.7618] device (wlp5s0): supplicant interface state: 4-way handshake -> completed Oct 25 15:25:24 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970324.9514] dhcp6 (wlp5s0): activation: beginning transaction (timeout in 45 seconds) Oct 25 15:25:24 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970324.9554] dhcp6 (wlp5s0): dhclient started with pid 7215 Oct 25 15:25:24 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970324.9621] manager: NetworkManager state is now CONNECTED_GLOBAL Oct 25 15:25:24 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970324.9631] policy: set 'SBG6900AC-C1177-5G' (wlp5s0) as default for IPv6 routing and DNS Oct 25 15:25:24 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970324.9703] dns-mgr: Writing DNS information to /sbin/resolvconf Oct 25 15:25:25 bob-ThinkPad-SL510 whoopsie[1145]: [15:25:24] The default IPv6 route is: /org/freedesktop/NetworkManager/ActiveConnection/12 Oct 25 15:25:25 bob-ThinkPad-SL510 whoopsie[1145]: [15:25:24] Not a paid data plan: /org/freedesktop/NetworkManager/ActiveConnection/12 Oct 25 15:25:25 bob-ThinkPad-SL510 whoopsie[1145]: [15:25:24] Found usable connection: /org/freedesktop/NetworkManager/ActiveConnection/12 Oct 25 15:25:28 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970328.9988] address 192.168.0.3 Oct 25 15:25:28 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970328.9989] plen 24 (255.255.255.0) Oct 25 15:25:28 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970328.9989] gateway 192.168.0.1 Oct 25 15:25:28 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970328.9990] server identifier 192.168.0.1 Oct 25 15:25:28 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970328.9990] lease time 3600 Oct 25 15:25:28 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970328.9990] nameserver '75.75.75.75' Oct 25 15:25:28 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970328.9991] nameserver '75.75.76.76' Oct 25 15:25:28 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970328.9991] domain name 'hsd1.wa.comcast.net.' Oct 25 15:25:28 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970328.9992] dhcp4 (wlp5s0): state changed unknown -> bound Oct 25 15:25:29 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970329.0150] policy: set 'SBG6900AC-C1177-5G' (wlp5s0) as default for IPv4 routing and DNS Oct 25 15:25:29 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970329.0152] dns-mgr: Writing DNS information to /sbin/resolvconf Oct 25 15:25:36 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970336.0609] valid_lft 3600 Oct 25 15:25:36 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970336.0609] preferred_lft 1800 Oct 25 15:25:36 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970336.0610] address 2601:1c2:4a01:7d0::2 Oct 25 15:25:36 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970336.0610] nameserver '2001:558:feed::1' Oct 25 15:25:36 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970336.0610] nameserver '2001:558:feed::2' Oct 25 15:25:36 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970336.0610] dhcp6 (wlp5s0): state changed unknown -> bound, event ID="d6:37:21:ce|1508375976" Oct 25 15:25:36 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970336.0883] dhcp6 (wlp5s0): state changed bound -> unknown Oct 25 15:25:36 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970336.0937] dhcp6 (wlp5s0): state changed unknown -> expire Oct 25 15:25:36 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970336.0946] dhcp6 (wlp5s0): canceled DHCP transaction, DHCP client pid 7215 Oct 25 15:25:36 bob-ThinkPad-SL510 NetworkManager[851]: <info> [1508970336.0946] dhcp6 (wlp5s0): state changed expire -> done -- fred
[toc] | [prev] | [next] | [standalone]
| From | "Jonathan N. Little" <lws4art@gmail.com> |
|---|---|
| Date | 2017-10-13 11:42 -0400 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <orqmta$17g$1@dont-email.me> |
| In reply to | #197456 |
Bit Twister wrote: > On Fri, 13 Oct 2017 09:32:29 -0400, Jonathan N. Little wrote: >> Bit Twister wrote: >>> On Fri, 13 Oct 2017 00:33:30 -0400, Jonathan N. Little wrote: >>>> Bit Twister wrote: >>> >>> $ journalctl --version | head -1 >>> systemd 230 >>> >> >> $ apt-cache policy systemd >> systemd: >> Installed: 229-4ubuntu19 > > > poettering released v235 Oct 6, 2017 > > Ubuntu 16.04 LTS was released July 21, 2016. As I said apparently it has not been backported to the LTS release. It seems to happen in other distros too with their stable releases. I use LTS version on my production systems. I only test with the 6-mo releases to plan for the next LTS. -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com
[toc] | [prev] | [next] | [standalone]
| From | "Jonathan N. Little" <lws4art@gmail.com> |
|---|---|
| Date | 2017-10-13 11:45 -0400 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <orqn3j$17g$2@dont-email.me> |
| In reply to | #197458 |
Jonathan N. Little wrote: >> > > Ubuntu 16.04 LTS was released July 21, 2016. Sorry I meant to say April not July. July was the first "service patch" 16.04.1, however for the servers I did wait until July for most of them. -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com
[toc] | [prev] | [next] | [standalone]
| From | fred flintstone <fred@server.invalid> |
|---|---|
| Date | 2017-10-13 17:03 -0700 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <f4d2l9F1rg8U1@mid.individual.net> |
| In reply to | #197452 |
On 10/12/2017 09:33 PM, Jonathan N. Little wrote:
> Bit Twister wrote:
>> $ alias jctl='journalctl --no-hostname'
>
> $ journalctl --no-hostname
> journalctl: unrecognized option '--no-hostname'
>
> $ journalctl --help | grep hostname
> <blank>
>
> $ journalctl --help | grep "\--no"
> --no-tail Show all lines, even in follow mode
> --no-full Ellipsize fields
> --no-pager Do not pipe output into a pager
>
> $ lsb_release -a
> LSB Version:
> core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
>
> Distributor ID: Ubuntu
> Description: Ubuntu 16.04.3 LTS
> Release: 16.04
> Codename: xenial
>
>
Is your point here that you are getting different output than BT,
because your machine seems to understand --no-hostname as much as mine
does: not at all? In the nearly 2000 lines of reading that BT assigned,
I could not find it. If I grep'ed it, it would have been a useless use
of grep.
What I have now is somewhere near human readable:
$ sh 6.jctl.sh
$ cat 6.jctl.txt
Current time : 04:52:37 PM
greping fail
Oct 13 16:04:19 bob-ThinkPad-SL510 NetworkManager[826]: <info>
[1507935859.4808] device (wlp5s0): state change: activated -> failed
(reason 'ip-config-expired') [100 120 6]
Oct 13 16:04:19 bob-ThinkPad-SL510 NetworkManager[826]: <warn>
[1507935859.6077] device (wlp5s0): Activation: failed for connection
'LoveDucks-5G'
Oct 13 16:04:19 bob-ThinkPad-SL510 NetworkManager[826]: <info>
[1507935859.6111] device (wlp5s0): state change: failed -> disconnected
(reason 'none') [120 30 0]
last 4 in tail
Oct 13 16:51:43 bob-ThinkPad-SL510 NetworkManager[826]: <info>
[1507938703.6417] device (wlp5s0): supplicant interface state:
authenticating -> associated
Oct 13 16:51:43 bob-ThinkPad-SL510 wpa_supplicant[936]: wlp5s0: WPA: Key
negotiation completed with 94:10:3e:c0:85:cc [PTK=CCMP GTK=CCMP]
Oct 13 16:51:43 bob-ThinkPad-SL510 wpa_supplicant[936]: wlp5s0:
CTRL-EVENT-CONNECTED - Connection to 94:10:3e:c0:85:cc completed [id=0
id_str=]
Oct 13 16:51:43 bob-ThinkPad-SL510 NetworkManager[826]: <info>
[1507938703.9260] device (wlp5s0): supplicant interface state:
associated -> completed
systemd 229
systemd:
Installed: 229-4ubuntu19
Candidate: 229-4ubuntu19
Version table:
*** 229-4ubuntu19 500
500 http://us.archive.ubuntu.com/ubuntu xenial-updates/main
amd64 Packages
100 /var/lib/dpkg/status
229-4ubuntu10 500
500 http://security.ubuntu.com/ubuntu xenial-security/main
amd64 Packages
229-4ubuntu4 500
500 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
$ cat 6.jctl.sh
#!/bin/bash
export PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
set -u # Show usage of unset variables
#alias jctl='journalctl ' # hostname what?
now="$(date +"%r")"
echo "Current time : $now" >6.jctl.txt
# jctl --since "50 minutes ago" >>6.jctl.txt !long
echo greping fail >>6.jctl.txt
journalctl --since "50 minutes ago" | grep fail | head -3 >>6.jctl.txt
echo 'last 4 in tail' >>6.jctl.txt
journalctl | tail -4 >>6.jctl.txt
journalctl --version | head -1 >>6.jctl.txt
apt-cache policy systemd >>6.jctl.txt
exit
$
There's a lot of reading to get up to speed here. Again we see the line
that starts the failure:
Oct 13 16:04:19 bob-ThinkPad-SL510 NetworkManager[826]: <info>
[1507935859.4808] device (wlp5s0): state change: activated -> failed
(reason 'ip-config-expired') [100 120 6]
'ip-config-expired' doesn't sound like a good reason to die.
Thanks any and all for tips and tricks on how to manage this heap of
records and sort them out along any meaningful paths. I've noticed lots
of other things going on that aren't the network manager...nautilus
errors, for example, that the thread began with. Having nautilus be
wonky forces me to stay on the terminal, which is good for being unixy.
--
fred
[toc] | [prev] | [next] | [standalone]
| From | "Jonathan N. Little" <lws4art@gmail.com> |
|---|---|
| Date | 2017-10-13 20:25 -0400 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <orrlhb$11v$1@dont-email.me> |
| In reply to | #197461 |
fred flintstone wrote: > On 10/12/2017 09:33 PM, Jonathan N. Little wrote: >> Bit Twister wrote: >>> $ alias jctl='journalctl --no-hostname' >> >> $ journalctl --no-hostname >> journalctl: unrecognized option '--no-hostname' >> >> $ journalctl --help | grep hostname >> <blank> >> >> $ journalctl --help | grep "\--no" >> --no-tail Show all lines, even in follow mode >> --no-full Ellipsize fields >> --no-pager Do not pipe output into a pager >> >> $ lsb_release -a >> LSB Version: >> core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch >> >> Distributor ID: Ubuntu >> Description: Ubuntu 16.04.3 LTS >> Release: 16.04 >> Codename: xenial >> >> > > Is your point here that you are getting different output than BT, > because your machine seems to understand --no-hostname as much as mine > does: not at all? In the nearly 2000 lines of reading that BT assigned, > I could not find it. If I grep'ed it, it would have been a useless use > of grep. More accurately you and I are both running Ubuntu 16.04 LTS which currently has systemd version 229. Systemd version 229 does not have the '--no-hostname' switch. Bit Twister is running a different distro or a different release, (IIRC he does not use Ubuntu), which has a newer version of systemd which does include that switch. You will have to either wait for Canonical to backport newer version of systemd to 16.04 or upgrade Ubuntu to a newer release. I would advise you wait and stay with the stable LTS version. The next LTS will not be released until April 2018. -- Take care, Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2017-10-14 01:45 +0000 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <slrnou2r1d.6cn.BitTwister@wb.home.test> |
| In reply to | #197461 |
On Fri, 13 Oct 2017 17:03:42 -0700, fred flintstone wrote: > On 10/12/2017 09:33 PM, Jonathan N. Little wrote: > > What I have now is somewhere near human readable: > > $ cat 6.jctl.sh > #!/bin/bash > export PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin > set -u # Show usage of unset variables > #alias jctl='journalctl ' # hostname what? > now="$(date +"%r")" > echo "Current time : $now" >6.jctl.txt > # jctl --since "50 minutes ago" >>6.jctl.txt !long > echo greping fail >>6.jctl.txt > journalctl --since "50 minutes ago" | grep fail | head -3 >>6.jctl.txt You might consider using grep --ignore-case > > There's a lot of reading to get up to speed here. Again we see the line > that starts the failure: > > > Oct 13 16:04:19 bob-ThinkPad-SL510 NetworkManager[826]: <info> > [1507935859.4808] device (wlp5s0): state change: activated -> failed > (reason 'ip-config-expired') [100 120 6] > > 'ip-config-expired' doesn't sound like a good reason to die. Well, keep in mind NetworkManager is just a wrapper for calling command line level apps that actually do the work. NetworkManager received a non-zero return status and the coder did her/his best to give pertinent information in one line. Having rolled my own script to manage my wireless connection, I can cut NetworkManager coders some slack. :) Here take a minute and glance at man ip > > Thanks any and all for tips and tricks on how to manage this heap of > records and sort them out along any meaningful paths. I've noticed lots > of other things going on that aren't the network manager Can not remember what caused me to loose time knowing about a problem but the result was I created a script, ck_4_fail, that I have running in my cron queue hourly. It gives me a pop up when it finds problems. Currently it is looking for $ grep '|' /local/bin/include_fault_words | tr '|' '\n' | wc -l 28 key words. short snippet |problem reading|unbound |Unknown |Unsafe| > ...nautilus > errors, for example, that the thread began with. Having nautilus be > wonky forces me to stay on the terminal, which is good for being unixy. Your apt-cache policy systemd >>6.jctl.txt seems to be for telling you about package possibilities, guessing so you know about an update. I have a pull_updates/install_updates script running daily. It pulls down any packages for installing and tests if they will install. If any packages show up, it sends me an email. If anything for install, I'll run install_updates which repeats what the pull_updates did and installs any packages, checks for o any configuration files the update may have wanted to do o any broken file links o any remaining packages that did not install o check for orphan packages that were not removed o provide a list of bug reports that might have been fixed by any package that was installed for me to test. There is hourly cron job running to tell me about new packages in the download directory to be installed. You might want to "man xmessage" when you have nothing else to do. :) Your since 50 minutes dump, reminds me you need to look into man dhclient-script
[toc] | [prev] | [next] | [standalone]
| From | Mike Easter <MikeE@ster.invalid> |
|---|---|
| Date | 2017-10-10 16:34 -0700 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <f453okF6g7hU1@mid.individual.net> |
| In reply to | #197414 |
fred flintstone wrote: > I've read it twice, but with its length, I want to see it in yet aother > format, so here it is. I find that I pick up things reading the same man > data but in thunderbird. If the length of this bothers you, you are on > the wrong thread. You can also pipe it into less so that you can navigate around better than the terminal. man systemd.unit | less For me, that also displays the tables in that man page better and the line wraps are better. For any place that you may run into :<standard input>:1284: warning [p 10, 22.5i]: can't break line ... you can mitigate that with manipulation to make it go away, such as stretch the terminal size bigger/longer. -- Mike Easter
[toc] | [prev] | [next] | [standalone]
| From | Mike Easter <MikeE@ster.invalid> |
|---|---|
| Date | 2017-10-10 16:41 -0700 |
| Subject | Re: systemd was Re: nautilus not working/wireless not responding either |
| Message-ID | <f4544mF6ipvU1@mid.individual.net> |
| In reply to | #197441 |
Mike Easter wrote: > You can also pipe it into less so that you can navigate around better > than the terminal. If you need to know how to navigate in less, just use its help function: less --help or pipe less help into less, which works/navigates a little better than vanilla less help less --help | less -- Mike Easter
[toc] | [prev] | [next] | [standalone]
| From | Mike Easter <MikeE@ster.invalid> |
|---|---|
| Date | 2017-10-11 10:28 -0700 |
| Message-ID | <f472l7Fkc75U1@mid.individual.net> |
| In reply to | #197414 |
Bit Twister wrote: > You may want to bookmark this url > https://encrypted.google.com/advanced_search I'm trying/ was trying/ to figure out the difference between the 'encrypted' version and the www/non-encrypted at: https://www.google.com/advanced_search ... then I figured out how to search for the answer and found this explanation. https://productforums.google.com/forum/#!topic/websearch/1LCUfb5q2O8 What is the difference between google.com and encrypted.google.com If it is too much trouble to read, the short answer is 'nowadays, none." -- unless the answers there were incomplete. -- Mike Easter
[toc] | [prev] | [next] | [standalone]
| From | Bit Twister <BitTwister@mouse-potato.com> |
|---|---|
| Date | 2017-10-11 17:50 +0000 |
| Subject | [OT] Re: nautilus not working/wireless not responding either |
| Message-ID | <slrnotsmf4.1pg.BitTwister@wb.home.test> |
| In reply to | #197446 |
On Wed, 11 Oct 2017 10:28:06 -0700, Mike Easter wrote: > Bit Twister wrote: >> You may want to bookmark this url >> https://encrypted.google.com/advanced_search > > I'm trying/ was trying/ to figure out the difference between the > 'encrypted' version and the www/non-encrypted at: Heheh, only reason I give the 'encrypted' is because that was the url google sent me to when the old search url I used was retired.
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | alt.os.linux.ubuntu
csiph-web