Thursday, September 15, 2016

windows group policy editing


https://support.microsoft.com/en-us/kb/968264

This is a note about a specific polity, but shows how to get into policy editing

To work around this behavior, follow these steps:
  1. On the Management Server, click Start, click Run, type gpedit.msc, and then click OK.
  2. Under Computer Configuration, expand Windows Settings, expand Security Settings, expand Local Policies, and then expand Security Options.
  3. In the Policy pane, right-click Network access: Do not allow storage of credentials or .NET Passports for network authentication, click Properties, click Disabled, and then click OK.

Monday, September 12, 2016

Freya OS notes

Freya is a modified Ubuntu.  Some notes on changing the desktop and adding tools to make it useful are here.

Chrome:

https://johnsdeveloperblog.wordpress.com/2015/04/22/some-things-to-do-after-installing-elementary-os-freya/

XRDP setup:


sudo apt-get update
sudo apt-get install xfce4

echo xfce4-session >~/.xsession
sudo service xrdp restart

xx

xx

Thursday, September 8, 2016

Output from installing Chrome Browser on Rasbian


Rather than clutter the instructional notes, pasting the mess that came out of the install here.

There are a number of recommended installs called out by the install procedure at the end as the browser is installed.  Need to see if any of them are needed as a followup.



wget -qO - http://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add -
echo "deb http://dl.bintray.com/kusti8/chromium-rpi jessie main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install chromium-browser rpi-youtube -y

pi@raspberrypi:~/work/chrome $ sudo apt-get update
Ign http://dl.bintray.com jessie InRelease
Get:1 http://dl.bintray.com jessie Release.gpg [821 B]                                                
Get:2 http://dl.bintray.com jessie Release [5,186 B]                                                                       
Hit http://mirrordirector.raspbian.org jessie InRelease                                                   
Get:3 http://dl.bintray.com jessie/main armhf Packages [5,182 B]                                          
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages                                                
Hit http://archive.raspberrypi.org jessie InRelease                                 
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages                   
Hit http://archive.raspberrypi.org jessie/main armhf Packages 
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit http://archive.raspberrypi.org jessie/ui armhf Packages       
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages                        
Ign http://dl.bintray.com jessie/main Translation-en_GB                                 
Ign http://dl.bintray.com jessie/main Translation-en              
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB  
Ign http://archive.raspberrypi.org jessie/main Translation-en     
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Ign http://archive.raspberrypi.org jessie/ui Translation-en       
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB                                                    
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en                                                       
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB                                                       
Ign http://mirrordirector.raspbian.org jessie/main Translation-en                                                          
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB                                                   
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en                                                      
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB                                                        
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en                                                           
Fetched 11.2 kB in 14s (756 B/s)                                                                                           
Reading package lists... Done
pi@raspberrypi:~/work/chrome $ sudo apt-get install chromium-browser rpi-youtube -y
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  chromium-browser-l10n chromium-codecs-ffmpeg-extra geoclue-2.0 kweb libjavascriptcoregtk-1.0-0 libmbim-glib4
  libmbim-proxy libmm-glib0 libqmi-glib1 libwebkitgtk-1.0-0 libwebkitgtk-1.0-common menu modemmanager
Suggested packages:
  webaccounts-chromium-extension unity-chromium-extension adobe-flashplugin menu-l10n
The following NEW packages will be installed:
  chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra geoclue-2.0 kweb libjavascriptcoregtk-1.0-0
  libmbim-glib4 libmbim-proxy libmm-glib0 libqmi-glib1 libwebkitgtk-1.0-0 libwebkitgtk-1.0-common menu modemmanager
  rpi-youtube
0 upgraded, 15 newly installed, 0 to remove and 73 not upgraded.
Need to get 74.5 MB of archives.
After this operation, 243 MB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main libjavascriptcoregtk-1.0-0 armhf 2.4.9-1~deb8u1+rpi1 [1,190 kB]
Get:2 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main chromium-codecs-ffmpeg-extra armhf 51.0.2704.79-0ubuntu0.14.04.1.1121 [801 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ jessie/main libmbim-glib4 armhf 1.10.0-2.1 [53.5 kB]
Get:4 http://mirrordirector.raspbian.org/raspbian/ jessie/main libmm-glib0 armhf 1.4.0-1 [135 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ jessie/main libqmi-glib1 armhf 1.10.2-2 [302 kB]
Get:6 http://mirrordirector.raspbian.org/raspbian/ jessie/main libwebkitgtk-1.0-common all 2.4.9-1~deb8u1+rpi1 [451 kB]
Get:7 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main chromium-browser armhf 51.0.2704.79-0ubuntu0.14.04.1.1121 [58.3 MB]
Get:8 http://mirrordirector.raspbian.org/raspbian/ jessie/main libwebkitgtk-1.0-0 armhf 2.4.9-1~deb8u1+rpi1 [6,262 kB]     
Get:9 http://mirrordirector.raspbian.org/raspbian/ jessie/main geoclue-2.0 armhf 2.1.10-2 [61.4 kB]                        
Get:10 http://mirrordirector.raspbian.org/raspbian/ jessie/main libmbim-proxy armhf 1.10.0-2.1 [6,464 B]                   
Get:11 http://mirrordirector.raspbian.org/raspbian/ jessie/main menu armhf 2.1.47 [358 kB]                                 
Get:12 http://mirrordirector.raspbian.org/raspbian/ jessie/main modemmanager armhf 1.4.0-1 [465 kB]                        
Get:13 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main chromium-browser-l10n all 51.0.2704.79-0ubuntu0.14.04.1.1121 [3,246 kB]
Get:14 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main kweb armhf 1.7.4-1 [2,869 kB]                                
Get:15 http://dl.bintray.com/kusti8/chromium-rpi/ jessie/main rpi-youtube armhf 5.1.0-1 [2,562 B]                          
Fetched 74.5 MB in 27s (2,668 kB/s)                                                                                        
Selecting previously unselected package chromium-codecs-ffmpeg-extra.
(Reading database ... 126549 files and directories currently installed.)
Preparing to unpack .../chromium-codecs-ffmpeg-extra_51.0.2704.79-0ubuntu0.14.04.1.1121_armhf.deb ...
Unpacking chromium-codecs-ffmpeg-extra (51.0.2704.79-0ubuntu0.14.04.1.1121) ...
Selecting previously unselected package chromium-browser.
Preparing to unpack .../chromium-browser_51.0.2704.79-0ubuntu0.14.04.1.1121_armhf.deb ...
Unpacking chromium-browser (51.0.2704.79-0ubuntu0.14.04.1.1121) ...
Selecting previously unselected package chromium-browser-l10n.
Preparing to unpack .../chromium-browser-l10n_51.0.2704.79-0ubuntu0.14.04.1.1121_all.deb ...
Unpacking chromium-browser-l10n (51.0.2704.79-0ubuntu0.14.04.1.1121) ...
Selecting previously unselected package libjavascriptcoregtk-1.0-0:armhf.
Preparing to unpack .../libjavascriptcoregtk-1.0-0_2.4.9-1~deb8u1+rpi1_armhf.deb ...
Unpacking libjavascriptcoregtk-1.0-0:armhf (2.4.9-1~deb8u1+rpi1) ...
Selecting previously unselected package libmbim-glib4:armhf.
Preparing to unpack .../libmbim-glib4_1.10.0-2.1_armhf.deb ...
Unpacking libmbim-glib4:armhf (1.10.0-2.1) ...
Selecting previously unselected package libmm-glib0:armhf.
Preparing to unpack .../libmm-glib0_1.4.0-1_armhf.deb ...
Unpacking libmm-glib0:armhf (1.4.0-1) ...
Selecting previously unselected package libqmi-glib1:armhf.
Preparing to unpack .../libqmi-glib1_1.10.2-2_armhf.deb ...
Unpacking libqmi-glib1:armhf (1.10.2-2) ...
Selecting previously unselected package libwebkitgtk-1.0-common.
Preparing to unpack .../libwebkitgtk-1.0-common_2.4.9-1~deb8u1+rpi1_all.deb ...
Unpacking libwebkitgtk-1.0-common (2.4.9-1~deb8u1+rpi1) ...
Selecting previously unselected package libwebkitgtk-1.0-0:armhf.
Preparing to unpack .../libwebkitgtk-1.0-0_2.4.9-1~deb8u1+rpi1_armhf.deb ...
Unpacking libwebkitgtk-1.0-0:armhf (2.4.9-1~deb8u1+rpi1) ...
Selecting previously unselected package geoclue-2.0.
Preparing to unpack .../geoclue-2.0_2.1.10-2_armhf.deb ...
Unpacking geoclue-2.0 (2.1.10-2) ...
Selecting previously unselected package libmbim-proxy.
Preparing to unpack .../libmbim-proxy_1.10.0-2.1_armhf.deb ...
Unpacking libmbim-proxy (1.10.0-2.1) ...
Selecting previously unselected package menu.
Preparing to unpack .../archives/menu_2.1.47_armhf.deb ...
Unpacking menu (2.1.47) ...
Selecting previously unselected package modemmanager.
Preparing to unpack .../modemmanager_1.4.0-1_armhf.deb ...
Unpacking modemmanager (1.4.0-1) ...
Selecting previously unselected package kweb.
Preparing to unpack .../kweb_1.7.4-1_armhf.deb ...
Unpacking kweb (1.7.4-1) ...
Selecting previously unselected package rpi-youtube.
Preparing to unpack .../rpi-youtube_5.1.0-1_armhf.deb ...
Unpacking rpi-youtube (5.1.0-1) ...
Processing triggers for gnome-menus (3.13.3-6) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.58) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for dbus (1.8.20-0+deb8u1) ...
Processing triggers for install-info (5.2.0.dfsg.1-6) ...
Setting up chromium-codecs-ffmpeg-extra (51.0.2704.79-0ubuntu0.14.04.1.1121) ...
Setting up chromium-browser (51.0.2704.79-0ubuntu0.14.04.1.1121) ...
Setting up chromium-browser-l10n (51.0.2704.79-0ubuntu0.14.04.1.1121) ...
Setting up libjavascriptcoregtk-1.0-0:armhf (2.4.9-1~deb8u1+rpi1) ...
Setting up libmbim-glib4:armhf (1.10.0-2.1) ...
Setting up libmm-glib0:armhf (1.4.0-1) ...
Setting up libqmi-glib1:armhf (1.10.2-2) ...
Setting up libwebkitgtk-1.0-common (2.4.9-1~deb8u1+rpi1) ...
Setting up libwebkitgtk-1.0-0:armhf (2.4.9-1~deb8u1+rpi1) ...
Setting up geoclue-2.0 (2.1.10-2) ...
Setting up libmbim-proxy (1.10.0-2.1) ...
Setting up menu (2.1.47) ...
Setting up modemmanager (1.4.0-1) ...
Processing triggers for menu (2.1.47) ...
Setting up kweb (1.7.4-1) ...
Preparing kweb environment ...

... looking for programs needed by or recommended for Minimal Kiosk Browser
found: lxterminal
found: xpdf for better PDF support (recommended: evince!)
found: omxplayer
for use with omxplayerGUI you should always get the latest version
from http://omxplayer.sconde.net/
youtube-dl not found. It is needed for web video support.
you will be asked for automatic installation of the optimal version later on

uget download manager not found. It is highly recommended for downloads.
Install it with:
sudo apt-get install uget

if you want to use Minimal Kiosk Browser without starting the desktop,
you need the light weight task bar tint2. Install it with:
sudo apt-get install tint2

xterm not found. It can be optionally used for playing video full screen without GUI.
If you want to make use of this option, you must install it with:
sudo apt-get install xterm

Some programs needed to use all features of Minimal Kiosk Browser are not installed.
Follow the install recommendations above.

You do not have youtube-dl from github installed.
It is needed for best web video support.
Do you want to install it now? (y)ycloning git version of youtube-dl ...
Cloning into 'youtube-dl'...
remote: Counting objects: 72550, done.
remote: Compressing objects: 100% (68/68), done.
remote: Total 72550 (delta 38), reused 0 (delta 0), pack-reused 72482
Receiving objects: 100% (72550/72550), 39.98 MiB | 4.57 MiB/s, done.
Resolving deltas: 100% (52730/52730), done.
Checking connectivity... done.

creating symbolic link
compiling modules ...
Done. To update youtube-dl run update-ytdl (there are new updates almost daily)
Setting up rpi-youtube (5.1.0-1) ...
Processing triggers for libc-bin (2.19-18+deb8u4) ...
Processing triggers for dbus (1.8.20-0+deb8u1) ...
Processing triggers for menu (2.1.47) ...
pi@raspberrypi:~/work/chrome $

Chrome on Raspberry pi


notes for now to pass links over to the pi session.  rdp doesn't pass links

https://www.raspberrypi.org/forums/viewtopic.php?t=121195

Essence is to pull the binary for chrome from another site:

wget -qO - http://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add -
echo "deb http://dl.bintray.com/kusti8/chromium-rpi jessie main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install chromium-browser rpi-youtube -y


a later version here:
 
http://kusti8.github.io/RPi-chromium/ 

Here is the output of the install included in this post

http://jim-st.blogspot.com/2016/09/output-from-installing-chrome-browser.html

Wednesday, September 7, 2016

Add printer to Raspian / Debian with CUPS

This is handy because it has instructions on how to open up the CUPS management page to your lan.

http://www.howtogeek.com/169679/how-to-add-a-printer-to-your-raspberry-pi-or-other-linux-computer/

Already on one of my pi boxes.

Steps:

sudo apt-get install cups
sudo usermod -a -G lpadmin pi

sudo vi /etc/cups/cupsd.conf

Edit lines to remove localhost,  allow local access, file it.
# Only listen for connections from the local machine
# Listen localhost:631
Port 631

    < Location / >
    # Restrict access to the server...
    Order allow,deny
    Allow @local
    < /Location >

    < Location /admin >
    # Restrict access to the admin pages...
    Order allow,deny
    Allow @local
    < /Location >

    < Location /admin/conf >
    AuthType Default
    Require user @SYSTEM

    # Restrict access to the configuration files...
    Order allow,deny
    Allow @local
    < /Location >



~

Restart cups

sudo /etc/init.d/cups restart

access cups from http://host:631/ from your local lan.



Tuesday, September 6, 2016

Changing search engine on Raspberry pi 3 (from duckduckgo to google)

original info from here:
http://www.lifehacker.com.au/2015/02/how-to-change-the-raspberry-pis-epiphany-browser-to-use-google/

sudo leafpad /usr/share/glib-2.0/schemas/org.gnome.epiphany.gschema.xml
Then locate this block of XML:
  1. <key type="s" name="keyword-search-url">
  2. <default>'https://www.google.com/search?q=%s'</default>
  3. <summary>URL Search</summary>
  4. <description>Search string for keywords entered in the URL bar.</description>
  5. </key>
The line <default>'https://duckduckgo.com/?q=%s&t=raspberrypi'</default> is what you need to change. Replace https://duckduckgo.com/?q=%s&t=raspberrypi withhttps://www.google.com.au/#q=%s
Next compile the xml with this:

sudo glib-compile-schemas /usr/share/glib-2.0/schemas

The original article above has you install what I am guessing is the schema compiler, but that didn't work on the raspian I'm running and the compile-schemas was already there when I ran it.

Monday, September 5, 2016

Raspberry pi 3 Bluetooth

https://www.cnet.com/how-to/how-to-setup-bluetooth-on-a-raspberry-pi-3/

  • From the Raspberry Pi desktop, open a new Terminal window.
  • Type sudo bluetoothctl then press enter and input the administrator password (the default password is raspberry).
  • Next, enter agent on and press enter. Then type default-agent and press enter.
  • Type scan on and press enter one more time. The unique addresses of all the Bluetooth devices around the Raspberry Pi will appear and look something like an alphanumericXX:XX:XX:XX:XX:XX. If you make the device you want to pair discoverable (or put it into pairing mode), the device nickname may appear to the right of the address. If not, you will have to do a little trial and error or waiting to find the correct device.
  • To pair the device, type pair [device Bluetooth address]. The command will look something likepair XX:XX:XX:XX:XX:XX.
If you're pairing a keyboard, you will need to enter a six-digit string of numbers. You will see that the device has been paired, but it may not have connected. To connect the device, type connect XX:XX:XX:XX:XX:XX

Example from local pi:
pi@raspberrypi:~ $ sudo bluetoothctl
[NEW] Controller B8:27:EB:2B:C8:3A raspberrypi [default]
[NEW] Device C6:0A:5E:74:80:9E Flex
[NEW] Device 00:18:AC:38:76:BE Bluetooth Keyboard
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# scan on
Discovery started
[CHG] Controller B8:27:EB:2B:C8:3A Discovering: yes
[NEW] Device FC:58:FA:F7:08:36 AUVIO4000449
[bluetooth]# pair FC:58:FA:F7:08:36
Attempting to pair with FC:58:FA:F7:08:36
[CHG] Device FC:58:FA:F7:08:36 Connected: yes
[CHG] Device FC:58:FA:F7:08:36 Modalias: bluetooth:v0039p13A4d0501
[CHG] Device FC:58:FA:F7:08:36 UUIDs:
        00001108-0000-1000-8000-00805f9b34fb
        0000110b-0000-1000-8000-00805f9b34fb
        0000110c-0000-1000-8000-00805f9b34fb
        0000110e-0000-1000-8000-00805f9b34fb
        0000111e-0000-1000-8000-00805f9b34fb
        0000112e-0000-1000-8000-00805f9b34fb
        00001200-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:F7:08:36 Paired: yes
Pairing successful
[CHG] Device FC:58:FA:F7:08:36 Trusted: yes
[CHG] Device FC:58:FA:F7:08:36 Connected: no