Monday, November 13, 2017

suppress updates on Firefox

On Firefox 54, updates are loaded to

C:\Users\jws\AppData\Local\Mozilla\updates

Erasing any directory there will stop it from updating.

about:preferences#advanced

about:preferences -> advanced -> updates should be set "never check for updates" as well

This may be necessary for various updates, which are being added to Firefox which are screwing things up.  Not sure if and when it will stabilize, so freezing updates become necessary.

Saturday, November 11, 2017

save and restore of putty session definitions from machine to machine

Putty sessions are saved in the registry entries for the Putty application.   That entry for the user must be backed up and restored to transfer the session information between machines.

Saving:
This incantation will back up the registry entries for a user to a file.

regedit /e "%userprofile%\desktop\putty-registry.reg" HKEY_CURRENT_USER\Software\Simontatham

The "manufacturer is "Simontatham" and is the same on all machines.

This saves the session entries in a Desktop file putty-registry.reg

File names on machine on restore (Merge):
In each Session entry there will be a location for any sessions which have a key file set for SSH preshared key.  It is not a good idea to save and transfer the preshared keys between machines, unless they are ones you have generated, and know what you are doing.

"PublicKeyFile" will be the path to the preshared key, and will need to point at the location for the preshared private key file on the new machine.  This should be done before merging and restoring onto the machine.

Restore (Merge):
This incantation will allow one to restore them on another machine.

The saved file will need to be located on a drive with a drive letter.  Otherwise the restore will not work.  Copying the putty-registry.reg file back to the new machine Desktop would be a good way to ensure this (it will be on C:).

Double clicking on the reg file once transferred to the other machine will restore those registry keys, and they should appear on the next invocation of putty.

You can also run regedit (from the run feature of the start menu) and select to import the file.

https://www.cyberciti.biz/tips/putty-session.html

Thursday, November 2, 2017

Storage usage analysis tools

ncdu  tool to show map of usages from current directory down.

included in ubuntu / debian base

apt-get update
apt-get -y install ncdu


Monday, September 25, 2017

Network monitoring tools command line, Linux


Testing various command line tools, which use ncurses or other to display data on a terminal on Linux command line.

Sources of ideas:

https://askubuntu.com/questions/257263/how-to-display-network-traffic-in-the-terminal

Installs via apt-get:

bmon:  Very detailed, not a bad load.
    Tested on Asus Tinkerboard (arm, rpi clone)

wavemon:  can apt-get
   https://github.com/uoaerg/wavemon

slurm:

tcptrace:

iftop:

fping:
  https://stackoverflow.com/questions/503171/send-a-ping-to-each-ip-on-a-subnet

nethogs:

iptraf:

ifstat:

sysstat:
sar -n DEV  1

enter image description here


speedometer:
sudo apt-get install speedometer
$ speedometer -l  -r wlan0 -t wlan0 -m $(( 1024 * 1024 * 3 / 2 ))


Sunday, September 24, 2017

armbian wifi, xrdp install


  1. Ubuntu-desktop (already installed, but we did sudo apt-get install and found out)
  2. TightVNCServer
  3. XRDP (with, of course vnc4server installed with the package)

https://docs.ubuntu.com/core/en/stacks/network/network-manager/docs/configure-wifi-connections

https://people.freedesktop.org/~lkundrak/nm-docs/nmcli-examples.html

First, determine the name of the WiFi interface:

$ nmcli d
DEVICE             TYPE      STATE         CONNECTION
...
wlan0              wifi      disconnected     --
 
Make sure the WiFi radio is on (which is its default state):

$ nmcli r wifi on
 
Then, list the available WiFi networks:

$ nmcli d wifi list
*  SSID           MODE   CHAN  RATE       SIGNAL  BARS  SECURITY
   ...
   my_wifi      Infra  5     54 Mbit/s  89      ▂▄▆█  WPA2
 
As an example, to connect to the access point 'my_wifi', you would use the following command:

$ nmcli d wifi connect my_wifi password <password>
 
<password> is the password for the connection which needs to have 8-63 characters or 64 hexadecimal characters to specify a full 256-bit key.


Wednesday, August 30, 2017

Installing s-tui and pre-requisites

s-tui is a nice terminal graphic performance monitor, showing utilization, frequency and system temperature. 

Here is an article about s-tui

https://linoxide.com/monitoring-2/s-tui-terminal-tool-monitoring-cpu-temperature-linux/

and the GIThub link

https://github.com/amanusk/s-tui

It is installable with pip, so pip must be installed.

To do that, first install pip

sudo apt-get install -y python-setuptools python-dev build-essential

then pull in pip

sudo easy_install pip

next one can install s-tui

pip install s-tui

It's been tried out on raspberry pi, raspian, and on ubuntu 16.04 on intel.

It needs work on armbian, at least on the orangepi zero system.


Saturday, August 26, 2017

Program attiny 85 with arduino uno



http://curiousmotor.blogspot.in/2017/08/how-to-program-attiny-8545-using.html

Full details on link, showing lashup here from article on link above.


 After uploading the code, grab your Attiny and other stuff and set up things this way-