Tuesday, June 21, 2016
Setting up Pi Raspian on 7" Pi screen
The Pi screen can be used in any orientation. I bought a backshell which mounts it in a nice case upside down, however, requiring a 180 degree rotation to work correctly.
do the following:
edit /boot/config.txt
add line:
display_rotate=2
value 1=90
value 2=180
value 3=270
https://www.raspberrypi.org/forums/viewtopic.php?f=108&t=120793
The default keyboard in Raspian is British english. To reconfigure do the following:
in a bash screen:
rerun the configuration for the keyboard package with dpkg-reconfigure
sudo dpkg-reconfigure keyboard-configuration
reload the configuration with:
invoke-rc.d keyboard-setup start
Monday, June 13, 2016
Ten things to turn off in Windows 10 as of 2016
Summary from article at end of this post. To get to various options, follow the tabs / screens. Some links explain more detail as a reference. This is a quick summary to make it more handy to run thru the settings for a new install, or a system which has not been adjusted.
Update sharing outside your house
Settings > Update & security > Advanced options > Choose how updates are delivered
stop-windows-10-from-using-your-pc-for-file-sharing
Advertising ID
You can turn this off by going to Settings > Privacy > General > Let my apps use my advertising ID for experiences across apps (turning this off will reset your ID).
Start menu ads:
Settings > Personalization > Start > Occasionally show suggestions in Start.
get-rid-of-ads-in-your-windows-10-start-menu
Notifications (select and turn some off)
Settings > System > Notifications & actions and turning off things like Show me tips about Windows
Cortana "getting to know you". another privacy leak to the mothership.
Settings > Privacy > Speech, inking, & typing and clicking Stop getting to know me.
Review Background Apps:
Settings > Privacy > Background apps
Disable Lock screen (where prudent)
Lock Screen
how-to-disable-the-windows-10-lock-screen
Select which syncing you want
Settings > Accounts > Sync your settings. You can turn off all settings syncing
Visual effects in interface:
System > Advanced system settings. Under the Advanced tab, go to Performance and click Settings
Select update policy:
Settings->Updates and Security->Advanced Options Automatic Updates
Original article 2016
http://www.cnet.com/how-to/10-things-to-disable-in-windows-10/
Update sharing outside your house
Settings > Update & security > Advanced options > Choose how updates are delivered
stop-windows-10-from-using-your-pc-for-file-sharing
Advertising ID
You can turn this off by going to Settings > Privacy > General > Let my apps use my advertising ID for experiences across apps (turning this off will reset your ID).
Start menu ads:
Settings > Personalization > Start > Occasionally show suggestions in Start.
get-rid-of-ads-in-your-windows-10-start-menu
Notifications (select and turn some off)
Settings > System > Notifications & actions and turning off things like Show me tips about Windows
Cortana "getting to know you". another privacy leak to the mothership.
Settings > Privacy > Speech, inking, & typing and clicking Stop getting to know me.
Review Background Apps:
Settings > Privacy > Background apps
Disable Lock screen (where prudent)
Lock Screen
how-to-disable-the-windows-10-lock-screen
Select which syncing you want
Settings > Accounts > Sync your settings. You can turn off all settings syncing
Visual effects in interface:
System > Advanced system settings. Under the Advanced tab, go to Performance and click Settings
Select update policy:
Settings->Updates and Security->Advanced Options Automatic Updates
Original article 2016
http://www.cnet.com/how-to/10-things-to-disable-in-windows-10/
Sunday, May 22, 2016
Transfering SQL database between two linux servers
Process for moving a database between two linux servers running mysql.
Target server may or may not have the database created. example used uses phpmydmin create database to create the empty database.
Use mysqldump to create an ".sql" file with the data from the database. Example here is for an RSS reader application, and keeps track of the rss feeds for doing deltas for the read presentation.
Note for sql the password and user id are for the mysql users and the password on the mysql server. They are not linux account passwords. The commands can be performed from any userid with access to the mysql commands, since the database is worked via the mysqldump command to the mysql socket. Access to the actual files is not required, since the work is done on those files by the mysql server.
backup:
mysqldump --password=<some-password> -u <userid> rss > 2016-0522-rss-mysqldump.sql
create database in phpmyadmin:
Databases->Create new Database [enter rss in name field] (Create)
restore:
mysql -u <userid> --password=<password> rss < 2016-0522-rss-mysqldump.sql
Target server may or may not have the database created. example used uses phpmydmin create database to create the empty database.
Use mysqldump to create an ".sql" file with the data from the database. Example here is for an RSS reader application, and keeps track of the rss feeds for doing deltas for the read presentation.
Note for sql the password and user id are for the mysql users and the password on the mysql server. They are not linux account passwords. The commands can be performed from any userid with access to the mysql commands, since the database is worked via the mysqldump command to the mysql socket. Access to the actual files is not required, since the work is done on those files by the mysql server.
backup:
mysqldump --password=<some-password> -u <userid> rss > 2016-0522-rss-mysqldump.sql
create database in phpmyadmin:
Databases->Create new Database [enter rss in name field] (Create)
restore:
mysql -u <userid> --password=<password> rss < 2016-0522-rss-mysqldump.sql
Thursday, May 12, 2016
using ssl purchased cert with ipfire
This posting covers a problem with installing a cert and verifying it on ipfire, since the port 80 and 444 ports are used for the firewall. The service this guy used needed those ports open to do the cert install.
However it is useful to note that it names the method used for moving those ports out of the way as well from other posts here.
Also the site letsencrypt has free certs. Looks like possibly only one cert for a server is required to convert to using https regardless of how many servers one has on a site. need to investigate.
https://gpcn.org/?tag=ipfire-certificate
IPFire versus SSLCerts
so I decided to purchase a ‘real’ SSL certificate for my IPFire
installation and as it was the cheapest one I could find I went with
ssls.com… so far so good.
But, if you follow the instructions, one problem remains: if you chose to upload the verification file any confirmation will fail as IPFire uses ports 81 and 444 for the webinterface. To resolve that issue, at least temporarily we will excute the following steps:
(1) if you contact the firewall from the ‘outside world’ make sure you add exceptions for ports 80 and 443
(2) upload the provided file to /srv/web/ipfire/html/
now the fun starts…
modify the ports in
/etc/httpd/conf.d/vhosts.d/ipfire-interface.conf and ipfire-interface-ssl.conf
now our apache would not know, which ports it is configured for, however, unless you change the
/etc/httpd/conf/listen.conf
as well nothing will happen…
Now execute a /etc/init.d/apache restart
once your certificate is ready, replace the certs in /etc/httpd, change back the ports and reload the service… your purchased cert should now be used.
Update: IPfire seems to replace der server.crt sometimes when being updated… in that case you might have to overwrite the certificate again and restart apache.
But, if you follow the instructions, one problem remains: if you chose to upload the verification file any confirmation will fail as IPFire uses ports 81 and 444 for the webinterface. To resolve that issue, at least temporarily we will excute the following steps:
(1) if you contact the firewall from the ‘outside world’ make sure you add exceptions for ports 80 and 443
(2) upload the provided file to /srv/web/ipfire/html/
now the fun starts…
modify the ports in
/etc/httpd/conf.d/vhosts.d/ipfire-interface.conf and ipfire-interface-ssl.conf
now our apache would not know, which ports it is configured for, however, unless you change the
/etc/httpd/conf/listen.conf
as well nothing will happen…
Now execute a /etc/init.d/apache restart
once your certificate is ready, replace the certs in /etc/httpd, change back the ports and reload the service… your purchased cert should now be used.
Update: IPfire seems to replace der server.crt sometimes when being updated… in that case you might have to overwrite the certificate again and restart apache.
adding webcam string to ipfire
This is useful as it contains examples useful in bringing up a webcam server, as well as uploading info to dropbox.
Also demonstrates adding to pakfire (ipfire module)
https://ict.ken.be/add-webcam-stream-to-ipfire
Also demonstrates adding to pakfire (ipfire module)
https://ict.ken.be/add-webcam-stream-to-ipfire
Things to remember
/etc/motion.conf
/etc/motion.conf
sync.sh
- Ipfire default web interface is on http port 81 or https port 444
- Add .1 to version in /opt/pakfire/etc/pakfire.conf and do pakfire update --force so you can install addons from testing branch
- Use pakfire to install motion
- Motion by default streams on port 2500, but you can set this in /etc/motion.conf
- Needed to add a video user and video group
- The boot file /etc/init.d/motion needs some adjustments to allow starting motion at boot time
- Set firewall rule correct to forward the port: From any to firewall red for tcp on port 2500 for webcam
- http://www.chriswpage.com/tag/motion-detection/
- http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionGuide
- http://wiki.ipfire.org/en/configuration/ipfire/pakfire/testing
- https://github.com/andreafabrizi/Dropbox-Uploader
/etc/motion.conf
mkdir -p /var/motion/cam1 chown -R video: /var/motion/cam1 mkdir -p /var/run/motion/ chown video:video /var/run/motion/ chmod 755 /var/run/motion/ loadproc sudo -u video /usr/bin/motionMove snapshots to dropbox
/etc/motion.conf
on_picture_save /etc/init.d/dropbox/up-snapshot.sh %f %Y%m%d %H%M%Sup-snapshot.sh
/etc/init.d/dropbox/du.sh upload $1 cam1/$2/$2-$3-snapshot.jpg && rm -f $1Sync dropbox to main website on ipfire
sync.sh
rm -rf /srv/web/localhost/html/ /etc/init.d/dropbox/du.sh download html/ /src/web/localhost/ find /srv/web/localhost/html -type f -exec chmod 644 {} \; find /srv/web/localhost/html -type d -exec chmod 755 {} \;
Monday, April 4, 2016
addons to firefox quick reference
get rid of newtab screen, which is a huge bandwidth waster
about:addons
new tab override
https://addons.mozilla.org/en-US/firefox/addon/new-tab-override/
get rid of ads
google for and install adblock plus
https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/
download scraper for html pages with content.
downloadthemall
https://addons.mozilla.org/en-US/firefox/addon/downthemall/
google for and load
Apk downloader extension
https://addons.mozilla.org/en-US/firefox/addon/apk-downloader/
For some incomprehensible reason, the default action on a page in Mozilla Firefox on Linux isn't to go back a to the prior page.
This is fixed with the following to work as it does everywhere else.
The browser.backspace_action is defaulted to 2 on Ubuntu, and perhaps on the Iceweasel version on generic Debian.
1. Open Firefox and type about:config in the addressbar and press Enter. It'll confirm, click on I'll be careful, I promise! button.
2. Now type backspace in the Filter box and look for following key:
browser.backspace_action3. The entry "browser.backspace_action" would be set to 0. You can change its value to any of following based upon your requirements:
1 - To change its action to scroll up in a page. You can use "Shift+Backspace" to scroll down.
2 - To disable it.
New tab override
older versions are available here, when it is necessary to downgrade the browser.
https://addons.mozilla.org/en-US/firefox/addon/new-tab-override/versions/
Download as mp4 replacement
https://addons.mozilla.org/en-US/firefox/addon/easy-youtube-video-download/
Wednesday, March 30, 2016
Securing Webmin with SSL
This discusses after the fact addition of SSL to webmin. Installation and support may already be present.
http://hints.macworld.com/article.php?story=20020226235050467
Subscribe to:
Posts (Atom)