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

Sunday, July 31, 2016

setting up linux system for handling outbound email



http://askubuntu.com/questions/158957/how-to-set-the-fully-qualified-domain-name-in-12-04

Set fqdn
change hostname in /etc/hostname

add fqdn in /etc/hosts

say for host foo and domain pri /etc/hosts entry is:
127.0.1.1  foo.pri foo

set up exim for mail handling (from Linode example)

https://www.linode.com/docs/email/exim/sendonly-mail-server-with-exim-on-debian-6-squeeze

reconfigure exim4 script

dpkg-reconfigure exim4-config

xx

Installation of Chrome on Ubuntu

How to install real chrome broswer on Ubuntu.  Useful for automating local cloud printing to local printers.

http://www.ubuntumaniac.com/2015/10/install-google-chrome-46-on-ubuntu-1510.html


Configuring exim to handle emails


starting some notes for configuring outbound email thru a host, to allow for sending internally to a local host (single one) and have it email thru the isp email host, or whatever

https://debian-administration.org/article/140/Handling_mail_for_multiple_virtual_domains_with_exim4

http://blog.bigsmoke.us/2008/08/03/configuring-a-debian-satellite-exim-server

Tidbit about dc_other_hostnames:

BTW, ‘dc_other_hostnames’ is colon (;) seperated.

Friday, July 29, 2016

A couple of good vnc setup pages for Linux Ubuntu


For VNC remote desktop access via vnc server.  Most times now use xvnc and microsoft remote desktop client everywhere with windows desktop.

And remmina for remotes on ubuntu / linux desktops.  Remmina will access these desktops.  microsoft rdp will not.

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04

https://www.howtoforge.com/how-to-install-vnc-server-on-ubuntu-14.04


Tuesday, July 26, 2016

Change Workgroup or system name windows 10, with original dialog


The new cute control panel doesn't include the original dialog which could edit the workgroup if you are not a member of a Domain.

The default WORKGROUP is not great to leave a system in if you are using home type sharing and security, so it is handy to change it.

It is possible in Windows 10 without much effort to change the hostname or rather the computer name on the Windows 10 operating system.

Please start the advanced system settings in Windows 10. The quickest way is via Run in Windows 10, open this keyboard shortcut Windows logo key + R.

In Windows 10 Run just type the command sysdm.cpl!

Tuesday, July 19, 2016

Extracting images from a PDF

This example worked well for an example created by the Android Cam Scanner app, which I use to document and scan quite a lot.

convert -verbose -density 150 -trim -sharpen 0x1.0  -quality 100 ../1103-front-panel-card-ba11.pdf 1103.jpg

http://stackoverflow.com/questions/6605006/convert-pdf-to-image-with-high-resolution



from recommended solution from above link saved to make sure it doesn't vanish

173 vote

It appears that the following works:
convert           \
   -verbose       \
   -density 150   \
   -trim          \
    test.pdf      \
   -quality 100   \
   -sharpen 0x1.0 \
    24-18.jpg
It results in the top image Compare this to the result of my original command (image on the bottom):

 
(To really see and appreciate the differences between the two, right-click on each and select "Open Image in New Tab...".)
Also keep the following facts in mind:
  • The worse, blurry image on the right has a file size of 1.941.702 Bytes (1.85 MByte). Its resolution is 3060x3960 pixels, using 16-bit RGB color space.
  • The better, sharp image on the left has a file size of 337.879 Bytes (330 kByte). Its resolution is 758x996 pixels, using 8-bit Gray color space.
So, no need to resize; add the -density flag. The density value 150 is weird -- trying a range of values results in a worse looking image in both directions!

x