Main Page: Difference between revisions

From Stormsail
Jump to navigation Jump to search
Admin (talk | contribs)
No edit summary
Admin (talk | contribs)
No edit summary
 
(251 intermediate revisions by the same user not shown)
Line 1: Line 1:
Sunray setup
https://www.proxmox.com/en/proxmox-ve


how to build a SRSS 4
OpenWrt Notes:
Posted on 2008/02/25 by Eric


http://blogs.sun.com/acworkma/entry/how_to_build_a_sun
<nowiki>
root@openwrtac1:/etc# cat smcroute.conf
phyint br-lan enable mrdisc
phyint wlan0 enable mrdisc


Quick and dirty about how to get a Sun Ray server up and running for a proof of concept. Please note that while this will get things up and running, there are many items outside of the scope of this document that need to be taken into consideration for a full production enterprise deployment.
mgroup from wlan0 group 239.255.255.250
mgroup from br-lan group 239.255.255.250


Get the goods
mroute from wlan0 group 239.255.255.250 to br-lan
The first step is to have an available server to install on. You will need a Solaris 10, Redhat or SUSE server. The directions here will be for installing on Solaris 10. Next you will need to download the software.
mroute from br-lan group 239.255.255.250 to wlan0</nowiki>


Install the Sun Ray Server Software
== Proxmox ==
The follow steps need to be executed as the root user of the system.
https://tteck.github.io/Proxmox/
https://forum.proxmox.com/threads/proxmox-6-0-renames-network-card-and-can-not-use-it.56690/


Extract the Zip:
== OpenSense ==
#unzip srss_4.0_solaris.zip
https://nguvu.org/pfsense/pfsense-baseline-setup/
https://medium.com/@CircuitGuy/home-network-virtualized-pfsense-install-f9f3279db446
https://netosec.com/protect-home-network/
https://homenetworkguy.com/how-to/configure-vlans-opnsense/#:~:text=To%20configure%20VLANs%2C%20you%20must,where%20the%20VLAN%20should%20reside.
https://openwrt.org/docs/guide-user/network/wifi/dumbap
https://sahlitech.com/opnsense-setup-unbound-dns/


Install Tomcat:
== Security ==
#cd srss_4.0/Supplemental/Apache_Tomcat/
https://www.kiddle.co/kidssafesearch.php
# gzcat apache-tomcat-5.5.20.tar.gz | /usr/sfw/bin/gtar -xf -
http://blog.dushin.net/2019/08/installing-elk-on-freenas-jail/
# mv apache-tomcat-5.5.20 /opt/
https://blog.barclayhowe.com/your-home-network-is-under-attack-5000-times-a-day/
# ln -s /opt/apache-tomcat-5.5.20/ /opt/apache-tomcat
https://balagetech.com/monitor-network-traffic-openwrt-syslog-ng/
https://chris.scutcher.uk/tips-and-hints-for-setting-up-nfsv4-with-kerberos-with-freeipa-and-freenas.html
https://hakin9.org/dsiem-security-event-correlation-engine-for-elk-stack/


Install Sun Ray Server Software:
== Minecraft ==
# cd srss_4.0
http://www.9minecraft.net/jurassic-world-map/
# ./utinstall
Take all of the defaults
# reboot


Configure the Sun Ray Server Software:
== Coding ==
#/opt/SUNWut/sbin/utconfig
https://codewithchris.com/tools/
Take all of the defaults except for:
Enable remote server administration? (y/[n])? y
Configure Sun Ray Kiosk Mode? (y/[n])? y
#reboot


Configure Parms files:
== ELK ==
# mkdir /tftpboot
https://fritshoogland.wordpress.com/2017/01/21/auditing-oracle-database-stopping-and-starting-using-the-elk-stack/
# vi /tftpboot/srssconfig
http://carlgira.blogspot.com/2017/09/logstash-configuration-for-weblogic.html
The file should look like the following:
https://www.haptik.ai/tech/audit-user-activity/
servers=
https://www.scaleway.com/en/docs/setup-elastic-stack-on-scaleway/
# /opt/SUNWut/sbin/utfwadm -A -a -V -i /tftpboot/srssconfig -f /opt/SUNWut/lib/firmware_gui


Turn on LAN connections:
== Drums ==
# /opt/SUNWut/sbin/utadm -L on
https://www.songsterr.com/a/wsa/faith-no-more-midlife-crisis-drum-tab-s7457t5
# /opt/SUNWut/sbin/utrestart -c
https://www.youtube.com/watch?v=iBbueVjUpJA&list=PLM7Pc_vFBYAkHrtA0o_aE3eH-pqEyBQM3&index=50
https://drumbit.app/
https://www.onlinedrummer.com/drum-lessons/fun-cool-beginner-to-intermediate-drum-beats/
https://www.youtube.com/watch?v=Xeu2qn66v8M
https://www.youtube.com/channel/UC1YNypukkwTKUwugN1Pxpjg
https://www.youtube.com/watch?v=UxaTRLfgsAI
https://www.onlinedrummer.com/shop/rockin-linear-triplet-fills/
https://www.youtube.com/watch?v=NIcBZqsfQfI&feature=emb_rel_pause
https://www.jellynote.com/en/sheet-music/faith-no-more/midlife-crisis
https://www.vdrums.com/forum/advanced/v-expressions-custom-kits/1183446-td-25-your-custom-made-kit/page3
https://www.michaelschackmusic.com/shop.html#!/products/michael-schacks-td-25-artist-kits


At this point you have a basic Sun Ray server up and running. Any Sun Rays on the network should be displaying the Solaris log in and you should be able to log into your Solaris server through a Sun Ray.
WAV file
Sampling frequency 44.1 kHz
Bit rate 8, 16, 24 bits


Windows Terminal Server:
MP3 file
One of the powerful things about the Sun Ray solution is how flexible it is. One of the things the Sun Ray solutions is really good at is displaying Windows Desktops. The following steps address how to modify your existing Sun Ray server to display windows desktops.
Sampling frequency 44.1 kHz
Bit rate 64 kbps - –320 kbps


Install Windows connector:
afconvert -d LEI16 -f 'WAVE' file.mp3


Extract the Zip:
ffmpeg -i file.mp3 -ar 44100 file.wav
#unzip srwc_2.0_solaris.zip


Install the Connector:
for i in *.mp3; do baseFilename=`basename "${i}" .mp3` && afconvert -f WAVE -d LEI16@44100 "${i}" "${baseFilename}.wav"; don
NOTE: There is a version mismatch if you are installing on Nevada instead of Solaris 10. ONLY TAKE THE FOLLOWING 2 STEPS IF YOU are ON Nevada:
# cd /usr/sfw/lib
# ln -s libcrypto.so.0.9.8 libcrypto.so.0.9.7


create a group for it
https://github.com/ritiek/spotify-downloader
# groupadd utsrwc
== Networking ==
# cd srwc_2.0
https://www.opendns.com/setupguide/#familyshield
# ./installer
https://openwrt.org/toh/bt/homehub_v5a
# /opt/SUNWuttsc/sbin/uttscadm -c
https://forum.archive.openwrt.org/viewtopic.php?id=64511
# /opt/SUNWut/sbin/utrestart -c
https://spotlightcybersecurity.com/disable-ipv6-on-openwrt.html
https://www.kali.org/docs/base-images/kali-linux-network-pxe-install/
https://openwrt.org/docs/guide-user/services/nas/nfs_configuration
https://forum.openwrt.org/t/pxe-legacy-efi-co-existence/23856/2
https://docs.openvz.org/openvz_installation_using_pxe_guide.webhelp/_kickstart_file_example_for_installing_on_efi_based_systems.html
https://wiki.xdroop.com/space/RedHat/kickstart/Automatic+Drive+Handling
https://musteresel.github.io/posts/2018/04/install-windows-over-pxe-with-dnsmasq-pxelinux-winpe.html
https://www.centlinux.com/2018/11/configure-centos-7-pxe-server-install-windows-10.html


Configure Kiosk Mode:
== Monitoring ==
We will use the web interface for the Sun Ray server to configure the Sun Ray server to present windows desktops.
https://blog.christophersmart.com/2019/09/09/monitoring-openwrt-with-collectd-influxdb-and-grafana/
https://www.linode.com/docs/uptime/monitoring/install-graphite-and-grafana/
https://medium.com/@cristianpb/system-monitoring-with-grafana-influxdb-et-collectd-7827969e1fe
https://github.com/justlaputa/collectd-influxdb-grafana-docker
https://blog.laputa.io/try-influxdb-and-grafana-by-docker-6b4d50c6a446


Log into your web admin port http://:1660
== RAID PCI Card ==
The username is admin and the password is the one you gave it during set up.
https://www.ibm.com/support/pages/critical-update-serveraid-br10i-sas-controller-bios-and-firmware-v275-microsoft-windows-ibm-system-x
https://www.ibm.com/support/pages/node/811854
https://www.ibm.com/support/pages/node/830752
https://www.broadcom.com/support/download-search?pg=Legacy+Products&pf=Legacy+Host+Bus+Adapters&pn=LSI+SAS+3081E-R&pa=&po=&dk=&pl=


Click on the advanced tab:
== PfSense Thin Client ==
https://forum.netgate.com/topic/122623/video-corruption-during-or-after-install-of-2-4-x-try-this


Loghost - Sun Ray Administration-1
== Christmas Lights Stuff ==
http://doityourselfchristmas.com/forums/showthread.php?45735-How-to-install-GLEDIATOR&s=2f043ed3dd8c1b25d7c4291685e50d68&goto=nextnewest
http://www.doityourselfchristmas.com/wiki/index.php?title=Vixen_How-To%27s
http://www.live-leds.de/user-jinxscripts/
https://create.arduino.cc/projecthub/nenitoshouse/how-to-configure-neopixels-using-vixen-lights-and-arduino-527631
https://github.com/pixelmatix/aurora/wiki/Streaming
https://www.youtube.com/watch?v=nUQ-WkglyE0
http://livinglightshows.com/product/pixel-megaflake-34-snowflake/


Then on the Kiosk Sub tab:
== Docker ==
https://rzymek.github.io/post/docker-prune/
https://www.techrepublic.com/article/5-tips-for-securing-your-docker-containers/
https://hub.docker.com/r/pihole/pihole/
https://github.com/nextcloud/docker
https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion
https://opendistro.github.io/for-elasticsearch/downloads.html
https://opendistro.github.io/for-elasticsearch-docs/docs/install/docker/


Loghost - Sun Ray Administration-2
https://hub.docker.com/r/linuxserver/smokeping/
https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion
https://github.com/evertramos/docker-nextcloud-letsencrypt
https://github.com/kmbulebu/docker-ssh-bastion
https://hub.docker.com/r/chentm/bastion
https://hub.docker.com/r/rastasheep/ubuntu-sshd
https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion


You will see a message about no Kiosk Mode settings. Click the edit button on the right:
== Let's Encrypt ==
https://skarlso.github.io/2017/02/15/how-to-https-with-hugo-letsencrypt-haproxy/
https://www.digitalocean.com/community/tutorials/how-to-secure-haproxy-with-let-s-encrypt-on-ubuntu-14-04
https://certbot.eff.org/lets-encrypt/ubuntubionic-haproxy
https://docs.ramsdenj.com/operatingsystems/bsd/freenas/iocageservicejails/letsencrypt.html


Loghost - Sun Ray Administration-3
== Abel Homework ==
https://scratch.mit.edu/projects/editor/?tutorial=getStarted
https://www.mymaths.co.uk/


Change the session drop down to Sun Ray Connectors for Windows OS
== Ubuntu thin clients ==
In the arguments field add the name of your terminal server
click on OK


Loghost - Sun Ray Administration-4
https://olsonetworks.wordpress.com/2017/01/12/ltsp-setup-ubuntu-16-04-64bit-desktop/
http://www.havetheknowhow.com/Configure-the-server/Install-LTSP.html


At this point you will have a kiosk mode defined and then you will need to tell the server when to use it. I personally run my demo’s with the window connector enabled for card sessions and the Solaris session displayed for non card users. This is accomplished by using the the System Policy to turn Kiosk Mode on for card users. Click on the System Policy Sub Tab on the Advanced Menu and then click on the enabled check box for Kiosk Mode under card users. Then click on the save button.
https://plone.lucidsolutions.co.nz/storage/network/freenas/zfs-freenas-migration-of-data-to-a-new-zpool


Loghost - Sun Ray Administration-5
http://willhaley.com/blog/default-foreign-soft-subtitle-support-in-plex-using-handbrake/


At this point you will get a message saying the changes have been stored and you need to restart the server. Click on the link to switch to the servers tab.
https://www.flickr.com/photos/theperfectmoment/21949146485/in/dateposted/
https://tunnelblick.net/index.htmlhttps://www.tuin.co.uk/Irja-Log-Cabin-with-Gazebo.html
https://www.tuin.co.uk/flow-log-cabin.html
http://greatburrowcottage.co.uk/?utm_source=sawdays_special-places&utm_medium=referral&utm_campaign=sawdays_special_places
http://www.humblebynature.com/stay-on-the-farm
https://www.google.co.uk/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=uk+mattress+sizes&*


Loghost - Sun Ray Administration-6
https://firecore.com/forum/topic/12849
http://www.sodnpoo.com/posts.xml/zoneminder_export_to_directory.xml
http://www.securitycameraking.com/securityinfo/how-to-configure-and-connect-an-onvif-ip-security-camera-our-tp-series/
https://forums.zoneminder.com/viewtopic.php?t=23861
http://androidforums.com/threads/players-wont-find-music-on-sd-card.719655/page-3


Select your server and click on cold restart
== Raspberry Pi ==
Loghost - Sun Ray Administration-7


When the Sun Ray server restarts, you will now display a Solaris desktop with no card inserted, and a windows desktop with a card inserted.
https://www.instructables.com/id/Add-Aux-to-Sonos-Using-Raspberry-Pi/
https://www.raspberrypi.org/forums/viewtopic.php?t=43421


https://www.makeuseof.com/tag/weekend-project-build-giant-led-pixel-display/


Well thanks to your assistance this was really easy. For those who are
http://qlcplus.org/use_case.html
interested this is what I did to get testing the new 'Sun Ray Connector
https://www.doityourselfchristmas.com/wiki/index.php?title=Things_You_Will_Need_To_Get_Started_With_Pixels
for Windows'
http://www.penguintutor.com/worksheets/raspberrypi-neopixels.pdf


First prepare Windows XP (Professional in this case)
https://www.raspberrypi.org/forums/viewtopic.php?t=171540
https://tutorials-raspberrypi.com/how-to-control-a-raspberry-pi-ws2801-rgb-led-strip/


1) Create a new (non-adminstrator) user for your testing purposes (or
https://www.raspberrypi.org/forums/viewtopic.php?t=27346
identify an existing non-administrator user)
https://forum.openframeworks.cc/t/raspberry-pi-3-interactive-led-strip-wall/23241


2) Go to 'Control Panel' and select 'System' then click on the 'Remote' tab
https://cdn-learn.adafruit.com/downloads/pdf/neopixels-on-raspberry-pi.pdf
http://www.instructables.com/id/Disco-pi/
https://learn.adafruit.com/adafruit-neopixel-uberguide/best-practices#


3) Under 'Remote Desktop' click the box to 'Allow users to connect
== MacosX ==
remotely to this computer'
https://github.com/essandess/macOS-clamAV
http://dosdude1.com/catalina/
https://github.com/iscsi-osx/iSCSIInitiator


4) Next click on the button 'Select Remote Users'
== FreeNAS ==
https://jira.ixsystems.com/browse/NAS-105301
https://www.ixsystems.com/community/threads/why-can-i-not-upgrade-my-plex-jail-using-iocage-upgrade-command.82207/#post-570090


5) Click 'Add'... click 'Advanced'... click 'Find Now' and add your
https://www.reddit.com/r/freenas/comments/8gposa/ubuntu_in_vm_cannot_see_ping_mountnfs_freenas/
newly created user.


6) Get the IP address of your Windows machine
https://forums.freenas.org/index.php?threads/virtualbox-jail-not-running-after-virtualbox-ose-kmod-updated.48619/page-5


Next install the 'Sun Ray Connector for Windows' on your Sun Ray server
== Photography ==
(mine is Sol10U1 on x64 with SRSS3.1)
http://petapixel.com/2014/07/09/simple-tip-getting-tack-sharp-focus-landscape-photos-every-time/#disqus_thread


1) Download from http://www.sun.com/software/products/sr_connector/index.xml
== Misc ==
https://www.davd.eu/byecloud-syncing-photos-with-nextcloud/
https://discussions.apple.com/thread/7022306?page=2
https://all-about-apple.com/import-folders-macos-photos/


2) Follow the installer instructions (which are not much more than
http://www.garth.org/archives/2011,08,27,169,fix-time-machine-sparsebundle-nas-based-backup-errors.html
./installer and a utrestart plus possibly a patch)
http://tonylawrence.com/2012/08/11/fixing-corrupted-time-machine-backups/
https://github.com/emcrisostomo/Time-Machine-Cleanup
https://www.digitalocean.com/community/tutorials/additional-recommended-steps-for-new-ubuntu-14-04-servers
http://www.dangtrinh.com/2015/05/install-openvas-8-in-ubuntu-1404-using.html
https://hackertarget.com/install-openvas-7-ubuntu/
http://thegreyblog.blogspot.co.uk/2014/03/shrink-your-time-machine-backups-and.html


3) Fire up /opt/SUNWuttsc/bin/uttsc <windows IP address>
http://www.apmelton.com/
https://github.com/hopsoft/docker-graphite-statsd
http://xmodulo.com/transparent-https-filtering-proxy-centos.html
  https://www.howtoforge.com/tiny-content-filtering-and-web-acceleration-appliance-ubuntu-squid-apache-vmware


4) Enjoy ;-)
==Karate==
http://hurstbournepriorskarate.co.uk/
https://www.youtube.com/my_videos?o=U
http://cambridgekarateclub.org/dai-and-sho


Well done to the Sun engineers, it works a treat!
== nZEDb ==


Regards, Rob.
https://github.com/nZEDb/nZEDb


Enable ICMP ping
== Zoneminder Stuff ==


--
http://www.potato-people.com/code/zoneminder/zm_arc2video.phps
https://blogs.oracle.com/joergb/entry/using_different_kiosk_sessions_for
--


Using different Kiosk Sessions for different tokens
== Wordpress ==
By JörgB on Jun 26, 2009
https://www.designwall.com/blog/how-to-create-a-regular-static-website-using-wordpress-with-optional-blog/


Original Sun Ray Kiosk Mode or its predecessor CAM only allowed one Kiosk configuration that applied to all kiosk sessions on a server. Since SRSS 4.1 there is a little known feature that allows adding additional kiosk configurations and selecting one them based on the token.
== Abel / Noah Projects ==
http://www.instructables.com/id/Thomas-Train-Bed/


Unfortunately configuring this feature currently requires using the utkiosk and utkioskoverride tools on the command line. This probably is the main reason why add-on solutions to do the same, like Daniel Cifuentes's Meta-Kiosk are still popular.
== Lego ==
http://www.brickowl.com/catalog/lego-ultimate-collector-s-millennium-falcon-set-10179
https://rebrickable.com/home
http://lego.brickinstructions.com/


For those not afraid of the command line, here is a short how-to
== Log Cabins ==


    Create a kiosk session configuration.
http://www.logcabins.co.uk/how-to.asp
http://www.cabinliving.co.uk/garden-offices.asp?action=getoptions&cabin=Berwick%20%E2%84%A2&ident=141&range=&cabinoptions=141
http://crusoedesignandbuild.co.uk/crusoe_gardens.php
== Active Projects ==
https://www.digitalocean.com/community/tutorials/how-to-configure-statsd-to-collect-arbitrary-stats-for-graphite-on-ubuntu-14-04
http://docs.grafana.org/installation/debian/
http://www.garth.org/archives/2011,08,27,169,fix-time-machine-sparsebundle-nas-based-backup-errors.html
https://github.com/chase-miller/time-machine-sparce-bundle-fix


    You first need to create a file (named UserSession.conf here, but you can freely choose a name) containing your kiosk session configuration. Of course you can simply create it as a text file, after reading the session.conf(4) man page. But if you prefer to use the SRSS Web Admin GUI for this step, you can do it as follows:
http://community.spiceworks.com/how_to/110712-install-fail2ban-on-64-bit-ubuntu-14-04-lts
        Configure the session settings on the Edit Kiosk Session page
http://www.wordpress.lonbil.co.uk/2013/08/installing-dnsmasq-on-freenas-9-1/
        If you are using the JDS desktop session, add the applications you want to see in the menu.
        Save your changes
        Get a root shell on one of the servers and use it to save the configuration to a file:


        # cd  # Make sure your are in a reasonable directory to store your configurations
== New Freenas Server
        # PATH=${PATH}:/opt/SUNWut/sbin    # Save yourself (and me) some typing
        # utkiosk -e session -s > UserSession.conf


        If you have configured applications, also save the application list to a file:
Supermicro X9SCL-F -> http://www.supermicro.co.uk/products/motherboard/Xeon/C202_C204/X9SCL-F.cfm
Intel Xeon E3-1240 3.30GHz 8M Socket LGA1155 SR00K Quad Core CPU
DDR3-10600, PC3-1333MHz CL9 240pin ECC unbuffered -> http://www.mrmemory.co.uk/all-products/8gb-240-pin-ddr3-pc3-10600-1333mhz-ecc-unbuffered


        # utkiosk -e session -a > UserSessionApps.list
== VMware ==


    Store your kiosk session configuration in the Sun Ray data store.
http://ipxe.org/howto/vmware


    You now need to store your configuration in SRDS, so it can be used for Sun Ray kiosk sessions. You can store each configuration under a name you choose. This example will use UserSession. Use a name that starts with a capital letter - all-lowercase names are reserved.
== Linux ==
https://www.facebook.com/notes/linux-only/make-a-custom-centos-7-or-rhel-7-cd-with-kicktart-file/1142994982390559
https://oracle-base.com/articles/linux/kickstart
https://www.hiroom2.com/2018/04/30/ubuntu-1804-serial-console-en/
https://forums.freenas.org/index.php?threads/howto-how-to-boot-linux-vms-using-uefi.54039/
https://aaron-kelley.net/blog/2011/12/migrating-an-ubuntu-installation-from-bios-to-uefi/


    If you don't need an application list, you can simply upload your UserSession.conf file like this:
tesseract-ocr


    # utkiosk -i UserSession -f UserSession.conf
http://blog.jdpfu.com/2012/09/14/solution-for-slow-ubuntu-in-virtualbox
https://www.digitalocean.com/community/tutorials/how-to-install-puppet-to-manage-your-server-infrastructure#install-puppet-agent
https://www.digitalocean.com/community/tutorials/how-to-use-foreman-to-manage-puppet-nodes-on-ubuntu-14-04


    If you did create an application list, the command looks like this:
http://www.zoneminder.com/wiki/index.php/Ubuntu_Server_14.04_64-bit_with_Zoneminder_1.28.0_the_easy_way
http://www.zoneminder.com/wiki/index.php/Ubuntu_Server_14.10_64-bit_server_with_Zoneminder_to_use_systemd
http://www.potato-people.com/code/zoneminder/zm_arc2video.phps


    # utkiosk -i UserSession -f UserSession.conf -A UserSessionApps.list
== VPN ==


    Configure individual tokens to use this kiosk session configuration.
https://www.vpnvip.com/setup-l2tp-vpn-in-windows-7.html
https://torguard.net/blog/how-to-configure-vpn-ubuntu/


    You now need to assign this configuration to selected tokens. I'll show this here for the imaginary CleverCard.0123456789 card token. You can assign kiosk setting to selected DTUs (when used without a smart card) in the same way.
== Schools ==
        In order to apply special kiosk setting to the token, it needs to be registered (even if you don't use a "registered" access policy). If the token isn't registered yet, you can do this now without leaving the command line:


        # utuser -a "CleverCard.0123456789,localhost,0,John Doe,"
http://locrating.com/


        Now you can assign the UserSession configuration to the token:
== Freenas Stuff ==


        # utkioskoverride -r CleverCard.0123456789 -s kiosk -c UserSession
=== Freenas 10 ===
https://github.com/freenas/vm-templates


        Note: This will enable Kiosk Mode for this token, even if it isn't enabled globally.
=== How to Setup TimeMachine on Freenas ===
http://trac.biostr.washington.edu/trac/wiki/TimeMachine
http://www.notquitemainstream.com/tech/2014/03/25/how-to-set-up-time-machine-for-multiple-macs-on-freenas-9-2-1-3
http://www.jamesbadger.ca/2013/04/01/time-machine-auto-mount-2013/


        If you have stored multiple session configurations, you can view them using:
http://www.garth.org/archives/2011,08,27,169,fix-time-machine-sparsebundle-nas-based-backup-errors.html
https://github.com/chase-miller/time-machine-sparce-bundle-fix


        # utkiosk -l
https://dekoder.wordpress.com/2014/10/08/fixing-freenas-currently-unreadable-pending-sectors-error/
        session
https://forums.freenas.org/index.php?threads/is-this-a-bad-sign-smartd-1-currently-unreadable-pending-sectors.9824/
        UserSession
http://bogdan.org.ua/2015/02/26/how-to-fix-offline-uncorrectable-sector-outside-of-a-partition.html


        The session configuration is the default kiosk configuration, which is used for all kiosk session that haven't been assigned an override.
Useful commands -> http://doc.freenas.org/index.php/Useful_Command_Line_Utilities


http://joepaetzel.com/2014/03/09/freenas-getting-hacks-to-survive-part-2/


https://blogs.oracle.com/ThinkThin/entry/point_and_shoot_vdi1
=== Howto setup an iscsi lun with Solaris ===


Point and Shoot VDI
bash-3.2#  iscsiadm modify discovery --static enable
By bhlackey on Mar 16, 2008
bash-3.2#  iscsiadm list discovery
Discovery:
        Static: enabled
        Send Targets: disabled
        iSNS: disabled
bash-3.2# iscsiadm add discovery-address 192.168.214.200:3260
bash-3.2# iscsiadm list discovery-address -v;
Discovery Address: 192.168.214.200:3260
        Target name: iqn.2011-03.example.org.istgt:freenas
                Target address: 192.168.214.200:3260, 1
bash-3.2# iscsiadm add static-config iqn.2011-03.example.org.istgt:freenas,192.168.214.200:3260
bash-3.2# format


Certainly the most feature rich method to deliver VDI is through the use of a "broker" like the Sun Virtual Desktop Connector. This broker is then connected to VMWare Virtual Center and the combination of the two gives the environment all sorts of features like Pooling, VM Lifecycle management, one-to-one mapping, Dynamic Resource Scheduling, and VMotion.
=== Workaround for [[https://bugs.freenas.org/issues/4987][Bug #4987]] ===


Not all VDI environments need to have all of these features. Maybe the VM's aren't even hosted in VMWare, or maybe they're not even VM's at all as in the case with blade based PC's. Maybe there is no need for Pooling, just a one-to-one relationship. No need to manage the VM's they're already provisioned through another process.
add 149.255.37.14  cdn.freenas.org in /etc/hosts
mount -uw /
add to /base/conf/etc/hosts (otherwise it'll disappear on reboot


I like to call this the "Point and Shoot" VDI architecture. It should be dead simple and easy to set up. It doesn't matter where the OS images are, just that they exist on the network and that we are going to assign one VM to one user. Here are the steps to do Point and Shoot VDI using Sun Rays.
=== VirtualBox in FreeNAS (now included in 9.2.1.6)


NOTE: These examples are for SRSS 4.0
http://forums.freenas.org/index.php?threads/virtualbox-in-a-jail-in-freenas.20185/


Example 1: VM's assigned to a user. The user is identified by their smart card.
VirtualBox autostart -> http://daemon-notes.com/articles/other/virtualbox/scripts
1) Create the Kiosk Descriptor


    vi /etc/opt/SUNWkio/sessions/simple-vdi.conf
http://forums.freenas.org/index.php?threads/autostart-virtualbox-vm.22116/


    KIOSK_SESSION_EXEC=$KIOSK_SESSION_DIR/start-vdi.sh
http://lists.freebsd.org/pipermail/freebsd-fs/2011-July/011982.html
    KIOSK_SESSION_LABEL="Static Assigned VDI"
http://lists.freebsd.org/pipermail/freebsd-current/2011-October/028232.html
    KIOSK_SESSION_DESCRIPTION="Static VM Assignment"


2) Create the Session exec script
If the gui dies then restart


    mkdir /etc/opt/SUNWkio/sessions/simple-vdi
service django start


    vi /etc/opt/SUNWkio/sessions/simple-vdi/start-vdi.sh
http://blog.brianmoses.net/2014/01/diy-nas-2014-edition.html
http://doc.freenas.org/index.php/Apple_(AFP)_Shares#Using_Time_Machine


    #!/bin/sh
Adding a new disk requires partitioning before it can be attached to an existing mirror
   
    # Check for Card or Non-Card session
    case $SUN_SUNRAY_TOKEN in
        pseudo.\*)
              # Non-Card Session
              zenity --info --text="Please insert your smart card..."
              ;;
        \*)
              # Card Session
              # Read Other Info Field
              REG_OTHER=`/opt/SUNWut/sbin/utuser -o | \\
                  grep $SUN_SUNRAY_TOKEN | awk -F, '{print $5;}'`


              if [ "$REG_OTHER" = "" ]; then
# gpart create -s gpt /dev/ada0
                  zenity --error --text="This card has not been assigned a VM"
# gpart add -a 4096 -i 1 -s 2g -t freebsd-swap /dev/ada0
                  exit 1
# gpart add -a 4096 -i 2 -t freebsd-zfs /dev/ada0
              else
# glabel status
                  # Check for VM Availability
                  /usr/sbin/ping $REG_OTHER 2
                  if [ "$?" != "0" ]; then
                        zenity --error --text="VM $REG_OTHER is not available for connection."
                        exit 1
                  else
                        # Call uttsc Kiosk script with VM name
                        KIOSK_SESSION_DIR=/etc/opt/SUNWkio/sessions/uttsc
                        export KIOSK_SESSION_DIR
                        /etc/opt/SUNWkio/sessions/uttsc/uttsc $REG_OTHER
                  fi
              fi
              ;;
    esac
    #End


    chmod 755 /etc/opt/SUNWkio/sessions/simple-vdi/start-vdi.sh
=== Getting crashplan to work on freeness ===


3) Select Kiosk Mode Configuration
Enabled TCP Forwarding in SSH settings in FreeNAS
Enabled Forwarding in the sshd_config file in the jail
Enabled Root Login in the jail
Created a crashplan user inside the jail and added them to "wheel"
Restarted SEVERAL TIMES, finally getting all java working and expected results in sockstat -4, and netstat.
Created SSH Tunnel from port 4200 to 10.10.1.87:4243 (the jail IP) using Putty, then connected Putty to 10.10.1.87 (jail IP, not the freenas box IP)
Modified ui.properties file inside Crashplan conf folder so that servicePort=4200 and was uncommented(no # in front of it).
killed all crashplan processes and services, restarted the service (on my PC with the UI) and then restarted the desktop app.


    Open SR Admin GUI
http://www.liquidstate.net/blog/technology/how-to-manage-your-crashplan-server-remotely/
https://forums.freenas.org/index.php?threads/crashplan-3-6-3.18416/#post-101205
https://forums.freenas.org/index.php?threads/crashplan-plugin-wont-start.24243/
https://forums.freenas.org/index.php?threads/crashplan-updated-to-4-3-0-now-will-not-connect.35269/


    Select Advanced->Kiosk
=== Enabling sshd in jail


    Click Edit
/etc/rc.conf -> sshd_enable="YES"
service sshd start
enable root in /etc/ssh/sshd_config


    Select Static Assigned VDI from the Session type drop down.
=== Add SMART testing ===


4) Register Cards and assign VM name
http://forums.freenas.org/index.php?threads/scrub-and-smart-testing-schedules.20108/


    Admin GUI - Tokens Tab


    Search for currently used tokens.


    You may then pick the token and Edit that token's registration.
=== Zoneminder ===


    You must assign a User Name. (This may be free form "Brad Lackey")
https://github.com/lbdc/zm-movie


    Place the VMs DNS name in the Other Information Field.
=== Plex stuff ===


https://smyl.es/how-to-move-plex-metadata-and-index-data-to-new-driver-andor-directory-location/


Example 2: VM's assigned to a DTU. Identified by MAC Address
https://support.plex.tv/hc/en-us/articles/201674343-Scanning-Disk-Image-Format-Media


1) Setup exactly like Example 1, only with a different start-vdi.sh
=== Secure SSH ===


    vi /etc/opt/SUNWkio/sessions/simple-vdi/start-vdi.sh
http://forums.freenas.org/index.php?threads/install-denyhosts-within-a-freenas-jail.15906/
http://forums.freenas.org/index.php?threads/install-and-setup-fail2ban-on-owncloud-portsjail.19216/


    #!/bin/sh
=== DR ===
    if [ `uname` = Linux ] ; then
Escape to loader (option 3)
    theFlag="-P"
set vfs.zfs.recover=1
    fi
boot -s


    theMACAddr=`cd $theFlag $UTDEVROOT ; /bin/pwd | sed 's/.\*\\(............\\)/\\1/'`
start /bin/sh
    theVM=`/opt/SUNWut/sbin/utdesktop -o | \\
sh /etc/rc.initdiskless
                grep $theMACAddr | \\
                /usr/bin/awk -F, '{print $2;}'`


    if [ "$theVM" != "" ] ; then
        # Check for VM Availability
        /usr/sbin/ping $theVM 2
        if [ "$?" != "0" ]; then
              zenity --error --text="VM $REG_OTHER is not available for connection."
              exit 1
        fi


        # Call uttsc Kiosk script with VM name
zpool import -f -R /mnt poolname
        KIOSK_SESSION_DIR=/etc/opt/SUNWkio/sessions/uttsc
        export KIOSK_SESSION_DIR
        /etc/opt/SUNWkio/sessions/uttsc/uttsc $theVM
    else
        zenity --error --text="This Sun Ray has not been assigned a VM."
        exit 1
    fi


2) Register Desktop and assign VM name
if that fails


    Admin GUI - Desktops Tab
zpool import -f -o readonly=on -R /mnt poolname


    Search for currently connected Desktops.
zpool recovery (rewinds transactions)
zpool import -f -R /mnt -FX poolname


    You may then pick the Desktop and Edit that it's registration.
> You can try to experiment with zpool hidden flags. Look at this command:
>
> zpool import -N -o readonly=on -f -R /pool <pool>
>
> It will try to import pool in readonly mode so no data would be written
> on it. It also doesn't mount anything on import so if any fs is damaged
> you have less chances triggering a coredump. Also zpool import has a
> hidden -T switch that gives you ability to select transaction that you
> want to try to restore. You'll need a list of available transaction though:
>
> zdb -ul <vdev>
>
> This one when given a vdev lists all uberblocks with their respective
> transaction ids. You can take the highest one (it's not the last one)
> and try to mount pool with:
>
> zpool import -N -o readonly=on -f -R /pool -F -T <transaction_id> <pool>


    Place the VMs DNS name in the Location Field.
I had good luck with ZFS recovery with the following approach:


1) Use zdb to identify a TXG for which the data structures are intact


https://blogs.oracle.com/danielc/entry/meta_kiosk_how_to_run
2) Select recovery mode by loading the ZFS KLD with "vfs.zfs.recover=1"
  set in /boot/loader.conf


Meta Kiosk: How to run multiple different types of kiosk modes on a Sun Ray Server/FOG
3) Import the pool with the above -T option referring to a suitable TXG
By vdiozguy on Feb 06, 2009
  found with the help zdb.


"One Kiosk to Rule Them All"...
The zdb commands to use are:


One of the coolest features of the Sun Ray platform is "Kiosk Mode". Sadly, it typically only gets associated with running a "Library" type locked down session with a web browser, or when a Windows deployment takes advantage of it to deliver Windows based sessions, be it from Terminal Services or VDI.
# zdb -AAA -L -t <TXG> -bcdmu <POOL>


It is very common in demo environments and even in many production environments to have the need of presenting multiple different types of Kiosks served from the same infrastructure, which can be easily achieved by associating the token presented to the Sun Ray to the particular context required for the token. For example, you may want a number of users to get a session from a Windows Terminal Server, some others to get a Linux desktop, some users to leverage a VDI desktop, some Sun Rays in public areas to present a controlled desktop with a web browser for leasurely access and a Sun Ray in the foyer permanently running a presentation to a large LCD display. And of course, the administrator may want access to his Windows Vista desktop on a casual basis without having to rely on the Sun VDI broker. All of this from the Sun Ray Server or FOG.
(Both -AAA and -L reduce the amount of consistency checking performed.
A pool (at TXG) that needs these options to allow zdb to succeed is
damaged, but may still allow recovery of most or all files. Be sure
to only import that pool R/O, or your data will probably be lost!)


In my experience, it has been mighty useful to have a fixed framework I can use at PoCs and demos for a variety of things. The piece of work presented here is an aggregation of some of the work that grew from a requirement at a large PoC in South Australia when Sun VDi wasn't around and also from the current demo environment shown to customers at the Sydney Sun Solution Centre. There is a WOW factor that still grips the imagination of most people when they see the Sun Ray platform in full action. I mean, who's ever seen a handful of different desktops presented on the same screen in less than 10 seconds???
A list of TXGs to try can be retrieved with "zdb -hh <POOL>".


The purpose of this "Meta Kiosk" (or Kiosk Broker) is to provide multiple kiosk capabilities to the Sun Ray platform, which is typically constrained by the use of a single kiosk mode across the board. One day, Engineering may give me a pull down in the Token Administration GUI for me to choose what the token is supposed to do, but for now, this is the next best thing.
You may need to add "-e" to the list of zdb options, since the port is
exported / not currently mounted).


So, how does this "Meta Kiosk" come together? Meta Kiosk leverages the "Other Info" field of any token (a smartcard ora  pseudo token of a Sun Ray) by letting you specify a string to identify what type of session that token is entitled to, for example UTTSC, JDSKIOSK, VDA, VDANOCARD, VNC, etc. Additionally, you can specify a default kiosk mode for non-registered tokens, by changing  the UNREG_TOKEN_ACTION variable in the script. After the script decides what Kiosk the token is entitled to, it actually instantiates that particular kiosk mode, as if it had been called naturally by the Sun Ray kiosk framework. Should the first string in the "Other Info" field not be recognised, the action indicated by the variable DEFAULT_ACTION will be undertaken (which can also modify. DEFAULT_ACTION for registered tokens in the script is to use VDA, which is convenient as the VDA script also makes use of this field as the placeholder for the poolname the token owner is entitled to from the available SOE pools.
== Useful Links ==


The only caveat to this is that typically, the arguments passed to the kiosk session are defined in the Sun Ray Admin GUI setup for the system-wide kiosk mode you choose, but since Meta Kiosk calls upon a large number of kiosks itself, this is no longer useful. To work around this, the script assumes that the parameteres you want for a specific kiosk mode are actually contained in the relevant "kiosk.conf file for that particular kiosk, typically found in /etc/opt/SUNWkio/sessions. For example, if I wanted to enable Full Screen to all the uttsc kiosk sessions, I would simply edit /etc/opt/SUNWkio/sessions/uttsc.conf and type something like KIOSK_SESSION_ARGS="-t 1800 -- -m mywindowsterminalserver".
https://agilebits.com/onepassword
https://bitnami.com/stacks
http://www.cv-library.co.uk/


What options can I enter in the "Other Info" field of a Sun Ray token?
http://forums.freenas.org/index.php?threads/virtualbox-in-a-jail-in-freenas.20185/
Below are the different options available "out of the box" with the present release of Meta Kiosk, along with some of the features, that you can specify in the "Other Info" field of your tokens - and don't forget you can add any of your own easily by editing the script at /etc/opt/SUNWkio/sessions/meta-kiosk/meta-kiosk-session (and if you do and you consider it useful, please share it with me!):
http://doc.freenas.org/index.php/Jails_Configuration
https://www.zufallsheld.de/2013/11/22/freenas-transmission-couchpotato-sickbeard-dlna-server/


JDSKIOSK: for the traditional Solaris based locked down Sun Ray kiosk mode
http://nalle.wordpress.com/using-gmail-as-a-spam-filter/
"Other Info" field specs: JDSKIOSK


UTTSC: to make a call upon a specified Windows (or RDP capable) system, whether it is a physical PC, a VM, a WTS or a session directory server or the console of a VirtualBox VM with VRDP...
search MediaWiki:Sidebar
"Other Info" field specs: UTTSC [username [target system]]
UTTSC can leverage the main system name passed in the uttsc.conf file, presented as the last field of KIOSK_SESSION_ARGS. If username is present, then this name will appear in the login box (where possible). If "target system" is specified this field will be stripped from the uttsc.conf definition and replaced by that found at "Other Info". Note that when you configure the uttsc kiosk mode, it is expected that you enter a system name at the end of the string. As such, Meta Kiosk expects this too.


VDA: In case you need or want to register it. Note that the script will treat this as the default mode for any \*registered\* token anyway.
http://paulgu.com/wiki/How_do_I_allow_only_authorized_users_to_edit_pages
"Other Info" field specs: VDA
the VDA kiosk script will later re-read and interpret this field as a pool name, so typing  any parameters would be useless! If this is used with VDA, then a default pool called VDA can be setup, unless you have already assigned the username a permanent virtual machine.


VDANOCARD: In case you need or want to register an existing token or  pseudo-token to use Dirk Grobler's "Non Card VDI for Sun Ray".
http://www.nettiesexpressions.com/2012/06/02/walk-a-little-slower-daddy-free-printable/
"Other Info" field specs: VDANOCARD


VDM: In case you want to use VMware's broker in your environment separately. You will need to download the Sun Ray connector for VMware Virtual Desktop Manager and install it (guess what - it's a kiosk mode too!)
http://www.iflicksapp.com
"Other Info" field specs: VDM


The next options are not not defined typically as kiosks. Their code is contained within the Meta Kiosk script itself:
Dataguard -> http://www.oracle-base.com/articles/11g/data-guard-setup-11gr2.php#standby_server_setup_man


VNC: Experimental at this point, useful mostly for MACs (not that you couldn't use with Solaris/Linux or even Windows), by way of leveraging  a VNC server or similar (the builtin ARD server does NOT work with standard VMC clients)
http://confoundedtech.blogspot.co.uk/2012/06/logitech-squeezebox-touch-ubuntu-1204.html
"Other Info" field specs: VNC [system-name [password]]
Both parameters are optional, although you can't specify password if you don't  specify a system name. Password will get written to a file and then the argument  passed through, and although this is not dramatically secure, it allows for a  quick demo of a MAC on a Sun Ray. A good VNC server to use is Vine. You may need to pass the port to the VNC service on the server as part of the system name, e.g. mymac:5901 


APPLICATION: Let's you run a specified Solaris app, but take heed, there will be no Window manager for it. Otherwise, simply use JDSKIOSK and specify the app there.
http://www.seatweavingsupplies.co.uk/other%20seating%20cords%20price%20list.htm
"Other Info" field specs: APPLICATION command-name <parameters>
For example, you could run a full screen presentation on a dedicated Sun Ray like this, like we do at the foyer of the Sydney Sun Solution Centre:
APPLICATION /usr/bin/staroffice -invisible - nologo -show /presentations/sunray-presso.od


UTSWITCH: Need a token to get redirected without AMHG? This is it!
http://www.imdb.com/media/rm3474831104/nm0648164
"Other Info" field specs: UTSWITCH sunray-server-hostname
Beware that the Sun Ray will remain attached to that other Sun Ray server when you pull the smartcard or disconnect the session, so it's important to remember to STOP-A the Sun Ray at the end of the session.


X11: An Xsession. This will run Xnest within the Sun Ray X session canvas.
  * shower stuff -> http://www.showerdoc.co.uk/forum/phpBB3/
"Other Info" field specs: X11 servername [geometry]
  * extending wireless network -> http://www.unix.ms/netgear/
NOTE: On your Sun Ray server, you may have to execute this: chmod 04755 /usr/openwin/bin/Xnest ulness Xephyr is available.
  * veggie box recipes -> http://www.vegbox-recipes.co.uk


XTERM: An X term (xterm) on the Sun Ray server. Good for testing!
Chilli oil recipe -> http://www.thechilliking.com/chilli-oil-recipe/
"Other Info" field specs: XTERM
It also starts twm as the window manager. Just good to have...


Meta Kiosk Workflow - how does a kiosk mode get chosen?
Living life to the full -> https://www.llttf.com/index.php?section=page&page_seq=12
The following diagram depicts the default actions chosen by the script based on the token conditions, i.e. Token registered or not and "Other Info" field contents:


Mencoder command line stuff -> https://wiki.archlinux.org/index.php/MEncoder


Putting it all into action
Samsung warrant checker -> http://www.samsunghddvalue.com/WebRMA/WarrantyCheck/endUserWarrantychecker.aspx
The requirements are quite simple:


  * http://jake-tm.co.uk/?page_id=259 - DGTeam Mirror
  * [[http://righthook.us.oracle.com:10000/en/catalog.shtml?action=Refresh][Righthook IPS repository (OWAN)]]
  * [[http://paperjammed.com/2011/03/01/export-itunes-playlists-to-a-non-itunes-world/][Exporting iTunes playlists to a non-itunes world]]
  * [[http://forums.slimdevices.com/showthread.php?p=625874][One iTunes/Slimserver playlist won't work]]
  * [[http://www.logiqwest.com/dataCenter/Demos/RunBooks/DNS/DNSsetup.html][Setting up a DNS server]]
  * [[http://www.unix.ms/netgear/][Extending the netgear wireless network]]
  * [[http://www.youtube.com/watch?v=QbikRPz0FkA][Kata Practice - 2011-05-10 ]]
  * [[http://extricate.org/2009/04/10/transparent-web-proxying-ubuntu-dg834g-squid/][Transparent Web Proxying Ubuntu DG834G]]
  * [[http://www.skyuser.co.uk/forum/technical-discussion/20727-community-updates-dg834gt-6.html][Community Sky DG834GT Updates]]
  * [[http://forums.digitalspy.co.uk/showthread.php?t=508793][Netgear DG834GT Router Tweak]]
  * [[http://www.kitz.co.uk/routers/dg834GT_targetsnr.htm][Netgear DG834GT & DG834 v4- Override Target SNR]]
  * [[http://www.siteguru.co.uk/be/netgear/][Netgear Router Firmware Downloads]]
  * [[http://wiki.genunix.org:8080/wiki/index.php/Implementing_vscan_service_with_ClamAV_on_ZFS][Implementing vscan service with ClamAV on ZFS]]
  * [[http://www.sunwfrk.com/2009/04/19/zfs-with-on-access-virus-scan/][OpenSolaris 2008.11 ZFS with ‘on access’ virus scan]]
  * [[http://www.redwoodsproperty.co.uk/propinfo.asp?Pid=55181&content=Terraced%20SOUTH%20VIEW%20BASINGSTOKE%20HAMPSHIRE%20Bedrooms:2%20Situated%20close%20to%20Main%20Line%20Railway%20Station%20and%20Town%20Centre%20making%20this%20property%20ideal%20for%20commuting][Phoenix Park Terrace Property for Sale]]
  * [[http://www.norfolk-greenhouses.co.uk/shop/shop-infopage.php?longref=82~0][Greenhouse we would like]]


    DOWNLOAD "Meta Kiosk" (TAR file)
== Flashing DVD drives ==


    Unpack the downloaded file on a Solaris Sun Ray server: the files are created from the root directory, straight into /etc/opt/SUNWkio/sessions.
http://xvi.rpc1.org
http://forum.rpc1.org/viewtopic.php?f=2&t=46137
http://forum.rpc1.org/viewtopic.php?f=12&t=48624


    Under the Sun Ray Web Admin go to Advanced -> Kiosk Mode.
== Ubuntu Installation Instructions ==


    Choose "Meta Kiosk Broker Session" from the kiosk options pull down.
Manually installing logitechmediaserver


    Pick any Solaris apps you desire to run under the JDS kiosk mode (if at all) as part of the Meta Kiosk, instead of JDS.
wget http://downloads.slimdevices.com/LogitechMediaServer_v7.8.0/logitechmediaserver_7.8.0_all.deb
sudo dpkg --install logitechmediaserver_7.8.0_all.deb


    For EACH and ALL kiosk modes you will be employing that requires it, make sure you edit the associated ".conf" file in /etc/opt/SUNWkio/sessions and include the parameters you want to regularly use: simply type them in for that kiosk mode under KIOSK_SESSION_ARGS (see example above for UTTSC.)
/etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.0.0.100
netmask 255.255.255.0
gateway 10.0.0.1
dns-nameservers 10.0.0.1


    Pick the default action you desire for unregistered tokens (if your policy allows) by editing /etc/opt/SUNWkio/sessions/meta-kiosk/meta-kiosk-session and assigning it to UNREG_TOKEN_ACTION (see Flow Chart above.)
https://sites.google.com/site/easylinuxtipsproject/first#TOC-Install-gnome-session-flashback-and-consider-disabling-the-visual-effects
    NOTE: By default the script assumes that unregistered tokens get JDSKIOSK as the default, and if this is what you want, make sure you specify something like Firefox as a Critical app under the Meta Kiosk app pane.


    Pick the default action you desire for registered tokens that do not present an identifiable string in "Other Info" by editing /etc/opt/SUNWkio/sessions/meta-kiosk/meta-kiosk-session and assigning it to DEFAULT_ACTION (see Flow Chart above.)
[[Setting up a VPN proxy server]]
    NOTE: By default the script assumes this to be VDA, the Sun VDI broker


    Don't forget you need to have the token registered AND set as a Kiosk token for any of this to work.
[[Setting up Collectd Collection3 on Ubuntu Lucid 10.04]]


    If you want to assign a kiosk mode to a Sun Ray without using  a smartcard, simply register the pseudo token of the Sun Ray through the Web Admin GUI. The token is always "pseudo.<MAC address>" of the Sun Ray you need. This is often done under VDA to present the same Windows VM to the same person at the same desk all the time (much like ... your PC.)
[[Setting up iscsi on MacOSX]]


[[Installing HandBrakeCLI on ubuntu 12.04]]


http://www.eecis.udel.edu/~bmiller/blog/2010/04/05/windows-connector-and-grub-like-menu-for-sun-rays/
[[Setting up zoneminder on Ubuntu 12.04]]


[[Installing daapd on Ubuntu 12.04]]


Windows connector and Grub-like menu for Sun Rays
[[Setting up PLEX on Ubuntu]]


I recently investigated setting up Sun Rays using kiosk mode using the Windows Sun Ray connector.  Using the connector from Solaris is pretty easy as the client program utssc is basically an RDP client.  Actually, rdesktop could also be used from Solaris in the same way.  However, I had to set up kiosk mode so the Sun Ray would go directly to a Windows server.  I followed the docs on setting up kiosk mode (utconfig -k, it kept failing until I ran it under truss then it succeeded…).  Most of the docs talk about using a GUI, which I do not use and setting up kiosk for smart cards or non smart card users, etc.  What I need to do was set up one specific Sun Ray to use kiosk mode, which was a little harder to find.  To do that I ran the following:
[[Installating HandBrakeCLI on Ubuntu]]


/opt/SUNWut/sbin/utkioskoverride -s kiosk -r pseudo.TOKEN -c uttsc
Ubuntu 11.10 webserver - choose OpenSSH + LAMP and then install webalizer + awstats + phpmyadmin


Where TOKEN is the mac address for the specific Sun Ray. I also had to run ‘utkiosk -i uttsc -f uttsc.conf’  In uttsc.conf I had to add KIOSK_SESSION=uttsc and of course change KIOSK_SESSION_ARGS to set the Windows server to connect to.  This took me a little while to get used to, but it worked well.  I found this web site useful.
http://www.howtoforge.com/perfect-server-ubuntu-11.10-ispconfig-3-p6


Then I was tasked to come up with a grub-like menu so users could select Solaris (or Linux) or Windows. This was a bit more work. Most of the solutions seem to talk about using the GUI and having the Sun Ray admin put things in to change what the Sun Ray does for different tokens. I ended up taking ideas from two implementations to come up with a solution that provides a grub-like menu for Sun Rays.
http://www.howtoforge.com/the-perfect-media-server-ubuntu-11.10-sabnzbd-sickbeard-couch-potato-headphones-serviio-p3


One site that is recommended is http://blogs.sun.com/danielc/entry/meta_kiosk_how_to_run on “Meta Kiosk”  which I looked at and it gave me the idea of using Xephyr.  I also found http://blogs.sun.com/mplona/entry/customized_sun_ray_kiosk_sessions which gave me the idea of using zenity and gave some code to follow (I looked at menu2).  Neither solution did what I wanted so I wrote my own kiosk session script.  My proof-of-concept so far is much smaller than those solutions, but seems to work for me.  Here is my script:
http://blog.sudobits.com/2011/10/30/best-applications-and-tweaks-for-ubuntu-11-10/
 
#!/bin/sh
# install this as /etc/opt/SUNWkio/sessions/menu/menu
 
# Add a line to set the background image, then display the menu
choice=`/usr/bin/zenity  --width=200 --height=200 --list --column  "Select  Operating System" "Solaris" "Windows"`
 
case "${choice}" in
    "Solaris")
    # This part was inspired by meta-kiosk-session's run-X11-session
    # set servername of course
    display=0
    while [ $display -ne 256 ]
    do
      display=`expr $display + 1`
      /usr/X11/bin/Xephyr :${display} -once -query ${servername} -fullscreen
      if [ $? -ne 1 ]
      then
        exit
      fi
    done
    ;;
    "Windows")
    # Need KIOSK_SESSION_ARGS set correctly for server to connect to
    . /etc/opt/SUNWkio/sessions/uttsc/uttsc
    exit
    ;;
esac
 
This can be used to connect to any Solaris or Linux system that would accept the X11 connection.  So instead of listing Operating systems maybe you would want to list several hosts for example.
 
I called this the menu config and then changed the Sun Ray from using uttsc to menu with  utkioskoverride.  The script goes in  /etc/opt/SUNWkio/sessions/menu/ and the following goes in /etc/opt/SUNWkio/sessions/menu.conf
 
KIOSK_SESSION=menu
 
KIOSK_SESSION_LIMIT_VMSIZE=2000000
 
KIOSK_SESSION_ARGS=-t 1800 -- -r sound:low SERVERNAME
 
KIOSK_SESSION_EXEC=$KIOSK_SESSION_DIR/menu
 
I also loaded that file with ‘utkiosk -i menu -f menu.conf’.  And it works.  It presents a little menu where you can select and then what is put in the case statement runs.  I then specified some other Sun Rays to run in kiosk mode using this session config and they are being tested.  One bug found so far is that sound doesn’t work.  Also, USB devices do not really work using this approach.  For example, plugging in a USB key drive the drive gets mounted by the random untrusted kiosk user and the user that logs on through Xephyr doesn’t have permission to it (maybe a work around exists for that?).  But if those things are not important and you and have the need for a grub-like menu to select the OS on a Sun Ray it seems to do the job.
 
I tested this on a Sun Ray server runing SXCE b111 with version 4.1 of the SunRay server software and version 2.1 of the windows connector (SRWC).
 
http://monkey:10000/
 
https://monkey:9090/
 
http://monkey:8081/home/
 
http://www.trainrage.com/home/how-to-complain/
 
http://stormsail.com/cpanel


http://paulgu.com/wiki/How_do_I_allow_only_authorized_users_to_edit_pages
Creating audio from mkv:


http://www.apple.com/aperture/iphoto-to-aperture/how.html
First we need to create a WAV with mplayer.


mplayer -vc dummy -vo null -ao pcm:file=output.wav video.mkv


Woodworking
If you find that mplayer is taking its sweet time in outputting the WAV you may have to append the fast option like so:


http://www.woodworkingcentreshop.co.uk/acatalog/Triton_Spares_Workcentre_Series_2000.html
mplayer -vc dummy -vo null -ao pcm:file=output.wav,fast video.mkv


House
Then we create an MP3 from the WAV.


http://www.bricksandbrass.co.uk/diy_by_element/internal_wall/party_wall_act.php
lame -h -b128 output.wav output.mp3


http://idostuff.co.uk/blogs/
https://help.ubuntu.com/community/AutofsLDAP
http://roomuptop.blogspot.co.uk/


Plex
https://help.ubuntu.com/11.04/serverguide/openldap-server.html
 
http://192.9.200.122:32400/manage/index.html


http://forums.plexapp.com/index.php/forum/76-apple-tv-2nd-gen/
http://forums.plexapp.com/index.php/forum/76-apple-tv-2nd-gen/


[[Henry]]
To install linux guest additions on Ubuntu, you need to add:


https://monkey:1661
sudo apt-get install dkms


Ubuntu 11.10 webserver - choose OpenSSH + LAMP and then install webalizer + awstats + phpmyadmin
to manually build the vb module:


http://www.howtoforge.com/perfect-server-ubuntu-11.10-ispconfig-3-p6
/etc/init.d/vboxadd setup


http://www.howtoforge.com/the-perfect-media-server-ubuntu-11.10-sabnzbd-sickbeard-couch-potato-headphones-serviio-p3
* Joining multiple avis together


http://ubuntuportal.com/how-to-get-an-canon-canoscan-lide-100-scanner-to-work-in-ubuntu-11-10linux-mint-12/
sudo apt-get install mencoder mplayer
cat b1.avi b2.avi b3.avi b4.avi b5.avi b6.avi b7.avi > bloodspell.avi
mencoder -forceidx -oac copy -ovc copy bloodspell.avi.avi -o bloodspell_final.avi


http://forums.plexapp.com/index.php/forum/76-apple-tv-2nd-gen/
Mplayer doesn't like the default video out mode (I suspect due to my Nvidia card) but seems to work ok for -vo gl2. I've therefore added the following to my .mplayer/config:


http://code.google.com/edu/languages/google-python-class/strings.html
hippy@monkey:~$ more .mplayer/config
 
# Write your default config options here!
 
vo=gl2
SunRay


http://wiki.sun-rays.org/index.php/How_To_Section#Solaris_11
imapsyncing


http://www.eecis.udel.edu/~bmiller/blog/2010/04/05/windows-connector-and-grub-like-menu-for-sun-rays/
hippy@ubuntu:~$ imapsync --host1 mail-emea.sun.com --user1 andharr --authmech1 LOGIN --passfile1 sun_pass --ssl1 --host2 stbeehive.oracle.com --user2 andy.harrison@oracle.com --authmech2 
LOGIN --passfile2 oracle_pass --ssl2 --folder ZFS --sep2 / --prefix2 "" --useheader 'Message-ID' --skipsize --regexflag 's/NonJunk//g'


https://blogs.oracle.com/mplona/entry/customized_sun_ray_kiosk_sessions
  * Force upgrade to next release -> sudo do-release-upgrade -d


# First check the current policy on the server
  * fstab entry for vbox mount -> zoneminder /var/cache/zoneminder vboxsf auto,exec,rw,uid=33,gid=33 0 0
root@vdiserver:# /opt/SUNWut/sbin/utpolicy
# Current Policy:
-a -z both -k both -m -u pseudo


# Change the policy (-u both) to accept card and non-card OVDC sessions
  * fix zoneminder -> http://francisfisher.me.uk/problem/2012/zoneminder-bareword-zm_path_logs-not-allowed-while-strict-subs-in-use/
root@vdiserver:# /opt/SUNWut/sbin/utpolicy -a -z both -k both -m -u both
  * zoneminder stuff -> http://cybt.com/linux/325-shared-memory-settings-for-zoneminder.html


# Restart authentication manager (needed for policy change)
== Solaris Installation Instructions ==
root@vdiserver:# /opt/SUNWut/sbin/utrestart -c


NZB Downloaders
[[SunRay Setup Instructions]]


  * https://192.9.200.123:9090/sabnzbd/ -> SABNZBD Monkey
[[Compiling applications on Solaris]]
  * http://192.9.200.123:8081/home/ -> SICKBEARD Monkey
  * Couch Potato -> http://couchpota.to/
  * Sick Beard -> http://www.sickbeard.com/


  * Crash Plan - online backup -> https://www.crashplan.com
== Solaris Tips ==


  * compiler detective -> http://blogs.oracle.com/timc/entry/the_compiler_detective_what_compiler
Solaris 11 ipfilter -> http://kb.vorboss.net/display/kb/Enable+IPFilter+Firewalling+on+Solaris+11
http://blog.ls-al.com/solaris-11-firewall/


  * BMW OEM Parts Catalog -> http://www.realoem.com/bmw/showparts.do?model=HG82&mospid=47396&btnr=17_0108&hg=17&fg=05&lang=en
SMF autoscrub -> https://blogs.oracle.com/constantin/entry/new_opensolaris_zfs_auto_scrub
  * Bimmerforums -> http://www.bimmerforums.co.uk/forum/f19/
  * BMW 5 Series Owners Forum -> http://forum.bmw5.co.uk/


Creating rawdisk access to VBox guests


  * shower stuff -> http://www.showerdoc.co.uk/forum/phpBB3/
VBoxManage internalcommands createrawvmdk -filename /export/virtualbox/sol-11_2-40-vbox/c16t3d0.vmdk -rawdisk /dev/rdsk/c16t3d0s0
  * extending wireless network -> http://www.unix.ms/netgear/
  * veggie box recipes -> http://www.vegbox-recipes.co.uk


Sigma 50-500 review -> http://www.bobatkins.com/photography/reviews/sigma_50-500_os_hsm_review.html


turning off macosx indexing
  su - hippy -c "/usr/bin/screen -dmS newznab /usr/local/newznab/newznab_screen.sh"
 
Example: to stop and prohibit indexing on a volume named Backup Drive you would issue one of the following commands:
  sudo mdutil -i off /Volumes/Backup\ Drive
sudo mdutil -i off "/Volumes/Backup Drive"
 
 
Chilli oil recipe -> http://www.thechilliking.com/chilli-oil-recipe/
 
Living life to the full -> https://www.llttf.com/index.php?section=page&page_seq=12
 
Mencoder command line stuff -> https://wiki.archlinux.org/index.php/MEncoder
 
Samsung warrant checker -> http://www.samsunghddvalue.com/WebRMA/WarrantyCheck/endUserWarrantychecker.aspx
 
http://blog.sudobits.com/2011/10/30/best-applications-and-tweaks-for-ubuntu-11-10/
 
https://trac.handbrake.fr/wiki/CLIGuide
 
 
 
todo
 
[[Setting up PLEX on Ubuntu]]


To create and send snapshots via zfs use:
To create and send snapshots via zfs use:
Line 612: Line 649:
  zfs send -R rpool@today | zfs receive -F -d rpool2
  zfs send -R rpool@today | zfs receive -F -d rpool2


Adding a zone


  * Sort out squeezebox for itunes.
root@monkey:~# zonecfg -z dev
Use 'create' to begin configuring a new zone.
zonecfg:dev> create
create: Using system default template 'SYSdefault'
zonecfg:dev> set zonepath=/zones/dev
zonecfg:dev> set autoboot=true
zonecfg:dev> verify
zonecfg:dev> commit


  * http://jake-tm.co.uk/?page_id=259 - DGTeam Mirror
root@monkey:~# zoneadm -z dev install
  * [[http://righthook.us.oracle.com:10000/en/catalog.shtml?action=Refresh][Righthook IPS repository (OWAN)]]
  * [[http://paperjammed.com/2011/03/01/export-itunes-playlists-to-a-non-itunes-world/][Exporting iTunes playlists to a non-itunes world]]
  * [[http://forums.slimdevices.com/showthread.php?p=625874][One iTunes/Slimserver playlist won't work]]
  * [[http://www.logiqwest.com/dataCenter/Demos/RunBooks/DNS/DNSsetup.html][Setting up a DNS server]]
  * [[http://www.unix.ms/netgear/][Extending the netgear wireless network]]
  * [[http://www.youtube.com/watch?v=QbikRPz0FkA][Kata Practice - 2011-05-10 ]]
  * [[http://extricate.org/2009/04/10/transparent-web-proxying-ubuntu-dg834g-squid/][Transparent Web Proxying Ubuntu DG834G]]
  * [[http://www.skyuser.co.uk/forum/technical-discussion/20727-community-updates-dg834gt-6.html][Community Sky DG834GT Updates]]
  * [[http://forums.digitalspy.co.uk/showthread.php?t=508793][Netgear DG834GT Router Tweak]]
  * [[http://www.kitz.co.uk/routers/dg834GT_targetsnr.htm][Netgear DG834GT & DG834 v4- Override Target SNR]]
  * [[http://www.siteguru.co.uk/be/netgear/][Netgear Router Firmware Downloads]]
  * [[http://wiki.genunix.org:8080/wiki/index.php/Implementing_vscan_service_with_ClamAV_on_ZFS][Implementing vscan service with ClamAV on ZFS]]
  * [[http://www.sunwfrk.com/2009/04/19/zfs-with-on-access-virus-scan/][OpenSolaris 2008.11 ZFS with ‘on access’ virus scan]]
  * [[http://www.redwoodsproperty.co.uk/propinfo.asp?Pid=55181&content=Terraced%20SOUTH%20VIEW%20BASINGSTOKE%20HAMPSHIRE%20Bedrooms:2%20Situated%20close%20to%20Main%20Line%20Railway%20Station%20and%20Town%20Centre%20making%20this%20property%20ideal%20for%20commuting][Phoenix Park Terrace Property for Sale]]
  * [[http://www.norfolk-greenhouses.co.uk/shop/shop-infopage.php?longref=82~0][Greenhouse we would like]]


For fixing zones issues


  * Installing HandBrakeCLI
chmod 666 /dev/ptmx


https://trac.handbrake.fr/browser/trunk/doc/BUILD-Linux
For Solaris zone webserver


  ./configure --prefix=/opt/hand --disable-gtk --force --launch --launch-jobs=0
  pkg install amp
pkg install webalizer
/usr/mysql/5.1/bin/mysql_install_db
/usr/mysql/5.1/bin/mysqladmin -u root password 'new-password'
/usr/mysql/5.1/bin/mysqladmin -u root -h dev password 'new-password'


vi $SRC/contrib/fontconfig/module.defs
Adding a ZFS filesystem to a zone (no deligation)


  change:
  # zonecfg -z zion
zonecfg:zion> add dataset
zonecfg:zion:dataset> set name=tank/volumes/vol1
zonecfg:zion:dataset> end


#
For deligation add
# Under MinGW:
#
# - A 'i386-ming32-gcc' $(FONTCONFIG.GCC.gcc) command will be available,
#  and the '-arch <arch>' argument should be omitted, as it will confuse this compiler.
#
# - The $(FONTCONFIG.GCC.archs) variable is not set.
#  Therefore statically guess the target arch to be i386.
#
ifeq ($(BUILD.system),mingw)
    FONTCONFIG.cc_archoption      =
    FONTCONFIG.config_archoption  = --with-arch=i386
else ifeq ($(BUILD.system),linux)
    FONTCONFIG.cc_archoption      =
else
    FONTCONFIG.cc_archoption      =
    FONTCONFIG.config_archoption  = --with-arch=i386
endif


  cd $SRC/contrib/x264/
  zonecfg:zion:dataset> set alias=tank
mv P01-solaris.patch P01-solaris


For hot plugging a drive


  ./configure --prefix=/opt/hand --disable-gtk
  /usr/sbin/cfgadm -cunconfigure sata2/0
/usr/sbin/cfgadm -cconfigure sata2/0


make contrib.fetch
Setting noexec on the fly
make contrib.extract
make contrib.patch


  libass-0.9.13.tar.gz
  echo "noexec_user_stack/W 0x0" | mdb -kw
libiconv-1.13.1.tar.gz


download build autoconf & automake
Correcting quarantined zfs files


  vi /jack/HandBrake-0.9.6/contrib/x264/module.defs
  hippy@monkey:~$ /usr/bin/ls -/ v  .bashrc
-rw-r--r--  1 hippy    staff      1064 May 10 09:25 .bashrc
                {archive,nohidden,noreadonly,nosystem,noappendonly,nonodump,noimmutable,av_modified,av_quarantined,nonounlink,nooffline,nosparse}
hippy@monkey:~$ pfexec /usr/bin/chmod S-a .bashrc
hippy@monkey:~$ /usr/bin/ls -/ v .bashrc
-rw-r--r--  1 hippy    staff      1064 May 10 09:25 .bashrc
                {noarchive,nohidden,noreadonly,nosystem,noappendonly,nonodump,noimmutable,noav_modified,noav_quarantined,nonounlink,nooffline,nosparse}


add --disable-asm:
Autostarting Virtualbox Machines


  X264.CONFIGURE.extra += --disable-gpac --disable-avs --disable-lavf --disable-ffms --disable-swscale --disable-asm
  sudo mkdir /etc/vbox
svccfg -s svc:/application/virtualbox/autostart:default setprop config/config=/etc/vbox/autostart.cfg
svcadm enable svc:/application/virtualbox/autostart:default
VBoxManage modifyvm <yourvirtualmachinename> --autostart-enabled on
#You can also set a delayed start for the vm using the command: VBoxManage modifyvm <yourvirtualmachinename> --autostart-delay <delayinseconds>
[--autostop-type disabled|savestate|poweroff|acpishutdown]
root@monkey:/etc/vbox# more autostart.cfg
default_policy = allow


vbox = {
        allow = true
        startup_delay = 10
}


  cp libiconv-1.13.1.tar.gz /jack/HandBrake-0.9.6/build/contrib/libiconv
  * https://forums.virtualbox.org/viewtopic.php?f=11&t=33249


cp libass-0.9.13.tar.gz /jack/HandBrake-0.9.6/build/contrib/libass
sphinx requires libinconv


  libavcodec
  pkg install libiconv


vi /jack/HandBrake-0.9.6/contrib/ffmpeg/module.defs
== Photography ==


  FFMPEG.CONFIGURE.extra = \
  https://iso.500px.com/amazing-macro-photos-shot-by-a-16-year-old-in-his-backyard/?utm_campaign=june182015digest&utm_content=TextLink_amazing-macro-photos-shot-by-a-16-year-old-in-his-backyard&utm_medium=email&utm_source=500px


  add
  http://digital-photography-school.com/reverse-lens-macro-close-up-photography-lesson-3/


  --disable-ssse3
  http://www.joseramos.com/


http://www.digitalcameraworld.com/2014/07/25/24-of-our-most-popular-photography-cheat-sheets/


  For others looking at the same issue:
  http://www.digitalcameraworld.com/tag/photography-cheat-sheet/


  We hashed this issue out off-list, using
  http://paintbylight.blogspot.co.uk/2012/04/how-to-setup-canon-7d-to-take-hdr-shots.html
configure CC='gcc -m64'


  works, just
  http://www.photoventure.com/2014/04/15/7-daily-exercises-that-will-make-you-a-better-photographer/4/
configure CFLAGS=-m64


http://digital-photography-school.com/how-to-control-multiple-flashes-wirelessly-with-a-canon-7d/


http://trickphotographybook.com/


  ln -s /usr/bin/libtool .
  http://www.digitalcameraworld.com/2013/04/27/blown-highlights-how-to-rescue-blown-skies-using-simple-photoshop-effects/


  For some packages, you seem to also run into trouble where libtool can't figure out what you're doing:
  http://blog.photoshopcreative.co.uk/tutorials/how-to-transform-dull-sky-in-photoshop/
http://www.digitalcameraworld.com/2013/11/04/lightroom-tutorials-how-to-reveal-hidden-detail-in-skies-with-lightrooms-graduated-filter/


    $ libtool --mode=compile target-gcc -g -O2 -c foo.c
http://www.dofmaster.com/dofjs.html
    libtool: compile: unable to infer tagged configuration
    libtool: compile: specify a tag with `--tag'


  OK, so it couldn't figure out that we're compiling C code. No problem, just add the tag --tag=CC. Works when we compile:
  http://shutterexperiments.com/


  * [[http://stupidpupil.co.uk/opensolaris/handbrake/compile/][Compiling HandBrake on OpenSolaris]]
http://www.martinbaileyphotography.com/podcasts/
  * [[http://www.nexenta.org/boards/1/topics/1340][Compiling Handbrake CLI on Nexenta]]
  * [[https://riebart.ca/w/index.php?title=User:Mike&oldid=411#Compiling_and_installing_ffmpeg_on_Solaris_.28git_.29][Compiling and installing ffmpeg on Solaris]]


make install fails with strange "cycle detected" errors from find and a "libavdevice.a was not found anywhere!"
== House Stuff ==


    * This is because it is trying to use /usr/sbin/install which appears to be broken, or at least incompatible with GNU install.
http://www.cbpropertysearch.co.uk/
    * Solve this by symlinking /usr/bin/ginstall to /use/bin/install (if /usr/bin is before /usr/sbin in the PATH). Essentially, get it to use ginstall instead and it works dandy.
http://floorplanner.com/projects/31244485-new-floorplan/edit#assets
http://hoa.org.uk/advice/guides-for-homeowners/i-am-buying/how-do-i-know-im-not-paying-too-much/


To install linux guest additions on Ubuntu, you need to add:
[[Kitchen]]


  sudo apt-get install dkms
  http://www.brackenwood.com/ - replacement seals and handles?
http://www.secondsandco.co.uk/ - cheaper selex insulation


before hand.
== Woodworking ==


to manually build the vb module:
http://www.woodworkingcentreshop.co.uk/acatalog/Triton_Spares_Workcentre_Series_2000.html


/etc/init.d/vboxadd setup
== MaxOSX Tips ==


  * Getting plex server installed in ubuntu
https://github.com/iscsi-osx/iSCSIInitiator


apt-get install ia32-libs
turning off macosx indexing
sudo apt-get install portmap nfs-common


Example: to stop and prohibit indexing on a volume named Backup Drive you would issue one of the following commands:
sudo mdutil -i off /Volumes/Backup\ Drive
sudo mdutil -i off "/Volumes/Backup Drive"


http://forums.plexapp.com/index.php/forum/85-plex-media-server-for-linux/
http://www.tonymacx86.com/yosemite-desktop-guides/143976-unibeast-install-os-x-yosemite-any-supported-intel-based-pc.html
 
http://192.9.200.145:32400/manage/index.html
 
http://www.plexapp.com/linux/linux-pms-download.php
 
Instructions
 
    • Uncompress and untar the package.
    • Enter the directory that is created.
    • Run the start.sh script.
    • For Bonjour discoverability, install and run Avahi.
    • Fire up a web browser and point it to http://localhost:32400/manage
 
  * HandBrakeCLI ubuntu
 
Install restricted software:
 
sudo apt-get install ubuntu-restricted-extras
sudo apt-get install libdvdread4
sudo /usr/share/doc/libdvdread4/install-css.sh
 


root@ubuntu:~# apt-get install python-software-properties
== NZB server ==
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following NEW packages will be installed
  python-software-properties
0 upgraded, 1 newly installed, 0 to remove and 48 not upgraded.
Need to get 19.7 kB of archives.
After this operation, 221 kB of additional disk space will be used.
Get:1 http://gb.archive.ubuntu.com/ubuntu/ natty/main python-software-properties all 0.80.9 [19.7 kB]
Fetched 19.7 kB in 0s (128 kB/s)               
Selecting previously deselected package python-software-properties.
(Reading database ... 47715 files and directories currently installed.)
Unpacking python-software-properties (from .../python-software-properties_0.80.9_all.deb) ...
Processing triggers for man-db ...
Setting up python-software-properties (0.80.9) ...
Processing triggers for python-central ...


root@ubuntu:~# add-apt-repository ppa:stebbins/handbrake-releases
http://www.tiag.me/how-to-backfill-newznab-safely-without-bloating-your-database/
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv 43D3A9F60C58A7169778E6FB8771ADB0816950D8
gpg: requesting key 816950D8 from hkp server keyserver.ubuntu.com
gpg: key 816950D8: public key "Launchpad HandBrake Snapshots" imported
gpg: Total number processed: 1
gpg:              imported: 1  (RSA: 1)


http://forums.redflagdeals.com/newznab-personal-usenet-indexer-help-thread-1274939/


https://edge.launchpad.net/~stebbins/+archive/handbrake-releases
http://mikepugh.blogspot.co.uk/2012/12/definitive-guide-to-setup-newznab-plus.html


* Joining multiple avis together
https://github.com/kevinlekiller/Newznab-Blacklist


  sudo apt-get install mencoder mplayer
  <nowiki>select name from releases where name regexp '^[a-zA-Z0-9]{20}$';</nowiki>
  cat b1.avi b2.avi b3.avi b4.avi b5.avi b6.avi b7.avi > bloodspell.avi
  <nowiki>delete from releases where name regexp '^[a-zA-Z0-9]{20}$';</nowiki>
mencoder -forceidx -oac copy -ovc copy bloodspell.avi.avi -o bloodspell_final.avi


http://www.neuhalfen.name/2011/10/15/MPlayer_On_Solaris11/
http://blog.cone.be/2012/12/16/newznab/


mplayer rebuild for Solaris 11:
binary logs getting too big


http://www.neuhalfen.name/2011/10/15/MPlayer_On_Solaris11/
PURGE BINARY LOGS TO 'mysql-bin.00003';


build 32bits otherwise mplayer vd_codec will complain.
http://t4nkw4rt.blogspot.co.uk/


libmad
http://f.redflagdeals.com/showthread.php?t=1274939&mobile_type=basic
a52dec
libdca
xvidcore
faac
x264 ./configure --enable-pic --disable-asm --enable-shared --prefix=/opt/x264
lame


http://sudobash.net/usenet-newznab-backfilling/


depend fmri=pkg:/developer/gcc/gcc-runtime-432@4.3.2 type=require
mysqldump -u root -p newznab | bzip2 > backup_newznab.sql.bz2
depend fmri=pkg:/[email protected] type=require
depend fmri=pkg:/[email protected] type=require
depend fmri=pkg:/[email protected] type=require
depend fmri=pkg:/[email protected] type=require
depend fmri=pkg:/[email protected] type=require
depend fmri=pkg:/MBLx264@20100125 type=require
depend fmri=pkg:/[email protected] type=require


remote


a52dec-0.7.4
mysqldump -u root -h newznab -p newznab | bzip2 > backup_newznab.sql.bz2
faac-1.28
faad2-2.7
lame-3.99
libdca-0.0.5
libmad-0.15.1b
x264
xvidcore


http://endpoint.co/technology/enable-remote-access-mysql


libmad:
== Usenet ==


remove -fforce-mem from CFLAGS
http://www.ngprovider.com/isp-newsservers.php#UK


http://usenetreviewz.com/best-usenet-providers/


MPlayer-1.0rc2
tweaknews


xvid fix -> http://seriouswebapps.com/installing-xvid-122-on-opensolaris
== Windoze Stuff ==


  cd /src
  https://www.centlinux.com/2018/11/configure-centos-7-pxe-server-install-windows-10.html
tar xzf xvidcore-1.2.2.tar.gz && cd xvidcore/build/generic
https://www.youtube.com/watch?v=R6XPff38iSc
CFLAGS=$( find -L /my -type d -name include -exec echo "-I{} " \; | grep -v "[.][0-9]" | grep -v "pth" | tr -d '\n' ) \
  https://www.cygwin.com/install.html
  CPPFLAGS=$( find -L /my -type d -name include -exec echo "-I{} " \; | grep -v "[.][0-9]" | grep -v "pth" | tr -d '\n' ) \
  http://joegardiner.co.uk/cloning-a-hard-drive-in-windows-7/
  LDFLAGS=$( find -L /my -type d -name lib -exec echo "-L{} -R{} " \; | grep -v "[.][0-9]" | tr -d '\n' ) \
  CC=gcc \
  ./configure --prefix=/my/xvidcore-1.2.2 >>mylog.txt
  # modify line 133 in Makefile, replace "$(CC)" with "/bin/ld"
vi Makefile
# modify line 48 in platform.inc, to read
SPECIFIC_LDFLAGS=-h libxvidcore.$(SHARED_EXTENSION).$(API_MAJOR) -B dynamic -shared -M libxvidcore.ld -lc -lm -lpthread
vi platform.inc
gmake all >>mylog.txt && su
gmake install >>mylog.txt
  ln -s /my/xvidcore-1.2.2 /my/xvidcore
ln -s libxvidcore.so.4.2 /my/xvidcore-1.2.2/lib/libxvidcore.so
ln -s /my/xvidcore/lib/* /usr/lib/
ln -s /my/xvidcore/include/* /usr/include/
exit


Package Building
== Mining ==


pkgsend generate root > MANIFEST.files
http://www.amazon.co.uk/gp/product/B00IJBV9UW/ref=s9_simh_gw_p147_d2_i5?pf_rd_m=A3P5ROKL5A1OLE&pf_rd_s=center-3&pf_rd_r=14B980MQEC1BT6QMEXT2&pf_rd_t=101&pf_rd_p=455333147&pf_rd_i=468294


root@monkey:/opt/package/a52dec# more MANIFEST.files
http://litecoinexchangerate.org/c/GBP/678
# [email protected], client release 5.11
set name=pkg.description value="ATSC A/52 stream decoder"
set name=pkg.fmri value="pkg:/[email protected],0.5.11-0.0.0"
set name=pkg.name value="ATSC A/52 stream decoder"
set name=description value="ATSC A/52 stream decoder"
set name=info.maintainer value="Andy Harrison ([email protected])"
dir group=bin mode=0755 owner=root path=usr
<snip>


http://www.litecoinminingcalculator.com/index.php?khs=32000&diff=21219.9751975&cdiff=21219.9751975&fee=0


pkgsend publish -s /export/repo/misc/stormsail -d root test
http://www.techspot.com/article/777-litecoin-mining-project/page4.html


root@monkey:/opt/package/libdca# more trans
http://www.bitcoinx.com/profit/
<transform file dir -> default owner root>
<transform file dir -> default group bin>
<transform file -> default mode 0644>
<transform dir -> default mode 0755>
 
root@monkey:/opt/package/libdca# pkgmogrify -I . -O test MANIFEST.files trans
 
 
root@monkey:/export/build/MPlayer-1.0rc4#./configure --prefix=/opt/test --extra-ldflags="-lm"
root@monkey:/export/build/MPlayer-1.0rc4#
 
There is a bug in the latest SVN source as you end up with an error like this:
 
gcc -MD -MP -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign  -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -I. -Iffmpeg  -I/usr/X11/include  -I/usr/include/freetype2  -c -o libao2/ao_sun.o libao2/ao_sun.c
libao2/ao_sun.c: In function 'realtime_samplecounter_available':
libao2/ao_sun.c:161:35: error: 'MSGTR_AO_SUN_RtscWriteFailed' undeclared (first use in this function)
libao2/ao_sun.c:161:35: note: each undeclared identifier is reported only once for each function it appears in
gmake: *** [libao2/ao_sun.o] Error 1
 
Essentially MSGTR_AO_SUN_RtscWriteFailed hasn't been defined...... so let's find in out of an older release and add the following to help_mp.h:
 
#define MSGTR_AO_SUN_RtscWriteFailed "[AO SUN] rtsc: write failed.\n"
 
Mplayer doesn't like the default video out mode (I suspect due to my Nvidia card) but seems to work ok for -vo gl2. I've therefore added the following to my .mplayer/config:
 
hippy@monkey:~$ more .mplayer/config
# Write your default config options here!
vo=gl2


http://www.coindesk.com/information/how-to-set-up-a-miner/


http://www.coindesk.com/information/how-to-mine-litecoin/


  * http://mailman.videolan.org/pipermail/x264-devel/2012-January/008959.html -> Patch for x264 using Solaris Compilers
https://litecoin.org/

Latest revision as of 08:25, 5 August 2022

https://www.proxmox.com/en/proxmox-ve

OpenWrt Notes:

root@openwrtac1:/etc# cat smcroute.conf phyint br-lan enable mrdisc phyint wlan0 enable mrdisc mgroup from wlan0 group 239.255.255.250 mgroup from br-lan group 239.255.255.250 mroute from wlan0 group 239.255.255.250 to br-lan mroute from br-lan group 239.255.255.250 to wlan0

Proxmox

https://tteck.github.io/Proxmox/
https://forum.proxmox.com/threads/proxmox-6-0-renames-network-card-and-can-not-use-it.56690/

OpenSense

https://nguvu.org/pfsense/pfsense-baseline-setup/
https://medium.com/@CircuitGuy/home-network-virtualized-pfsense-install-f9f3279db446
https://netosec.com/protect-home-network/
https://homenetworkguy.com/how-to/configure-vlans-opnsense/#:~:text=To%20configure%20VLANs%2C%20you%20must,where%20the%20VLAN%20should%20reside.
https://openwrt.org/docs/guide-user/network/wifi/dumbap
https://sahlitech.com/opnsense-setup-unbound-dns/

Security

https://www.kiddle.co/kidssafesearch.php
http://blog.dushin.net/2019/08/installing-elk-on-freenas-jail/
https://blog.barclayhowe.com/your-home-network-is-under-attack-5000-times-a-day/
https://balagetech.com/monitor-network-traffic-openwrt-syslog-ng/
https://chris.scutcher.uk/tips-and-hints-for-setting-up-nfsv4-with-kerberos-with-freeipa-and-freenas.html
https://hakin9.org/dsiem-security-event-correlation-engine-for-elk-stack/

Minecraft

http://www.9minecraft.net/jurassic-world-map/

Coding

https://codewithchris.com/tools/

ELK

https://fritshoogland.wordpress.com/2017/01/21/auditing-oracle-database-stopping-and-starting-using-the-elk-stack/
http://carlgira.blogspot.com/2017/09/logstash-configuration-for-weblogic.html
https://www.haptik.ai/tech/audit-user-activity/
https://www.scaleway.com/en/docs/setup-elastic-stack-on-scaleway/

Drums

https://www.songsterr.com/a/wsa/faith-no-more-midlife-crisis-drum-tab-s7457t5
https://www.youtube.com/watch?v=iBbueVjUpJA&list=PLM7Pc_vFBYAkHrtA0o_aE3eH-pqEyBQM3&index=50
https://drumbit.app/
https://www.onlinedrummer.com/drum-lessons/fun-cool-beginner-to-intermediate-drum-beats/
https://www.youtube.com/watch?v=Xeu2qn66v8M
https://www.youtube.com/channel/UC1YNypukkwTKUwugN1Pxpjg
https://www.youtube.com/watch?v=UxaTRLfgsAI
https://www.onlinedrummer.com/shop/rockin-linear-triplet-fills/
https://www.youtube.com/watch?v=NIcBZqsfQfI&feature=emb_rel_pause
https://www.jellynote.com/en/sheet-music/faith-no-more/midlife-crisis
https://www.vdrums.com/forum/advanced/v-expressions-custom-kits/1183446-td-25-your-custom-made-kit/page3
https://www.michaelschackmusic.com/shop.html#!/products/michael-schacks-td-25-artist-kits

WAV file Sampling frequency 44.1 kHz Bit rate 8, 16, 24 bits

MP3 file Sampling frequency 44.1 kHz Bit rate 64 kbps - –320 kbps

afconvert -d LEI16 -f 'WAVE' file.mp3

ffmpeg -i file.mp3 -ar 44100 file.wav

for i in *.mp3; do baseFilename=`basename "${i}" .mp3` && afconvert -f WAVE -d LEI16@44100 "${i}" "${baseFilename}.wav"; don

https://github.com/ritiek/spotify-downloader

Networking

https://www.opendns.com/setupguide/#familyshield
https://openwrt.org/toh/bt/homehub_v5a
https://forum.archive.openwrt.org/viewtopic.php?id=64511
https://spotlightcybersecurity.com/disable-ipv6-on-openwrt.html
https://www.kali.org/docs/base-images/kali-linux-network-pxe-install/
https://openwrt.org/docs/guide-user/services/nas/nfs_configuration
https://forum.openwrt.org/t/pxe-legacy-efi-co-existence/23856/2
https://docs.openvz.org/openvz_installation_using_pxe_guide.webhelp/_kickstart_file_example_for_installing_on_efi_based_systems.html
https://wiki.xdroop.com/space/RedHat/kickstart/Automatic+Drive+Handling
https://musteresel.github.io/posts/2018/04/install-windows-over-pxe-with-dnsmasq-pxelinux-winpe.html
https://www.centlinux.com/2018/11/configure-centos-7-pxe-server-install-windows-10.html

Monitoring

https://blog.christophersmart.com/2019/09/09/monitoring-openwrt-with-collectd-influxdb-and-grafana/
https://www.linode.com/docs/uptime/monitoring/install-graphite-and-grafana/
https://medium.com/@cristianpb/system-monitoring-with-grafana-influxdb-et-collectd-7827969e1fe
https://github.com/justlaputa/collectd-influxdb-grafana-docker
https://blog.laputa.io/try-influxdb-and-grafana-by-docker-6b4d50c6a446

RAID PCI Card

https://www.ibm.com/support/pages/critical-update-serveraid-br10i-sas-controller-bios-and-firmware-v275-microsoft-windows-ibm-system-x
https://www.ibm.com/support/pages/node/811854
https://www.ibm.com/support/pages/node/830752
https://www.broadcom.com/support/download-search?pg=Legacy+Products&pf=Legacy+Host+Bus+Adapters&pn=LSI+SAS+3081E-R&pa=&po=&dk=&pl= 

PfSense Thin Client

https://forum.netgate.com/topic/122623/video-corruption-during-or-after-install-of-2-4-x-try-this

Christmas Lights Stuff

http://doityourselfchristmas.com/forums/showthread.php?45735-How-to-install-GLEDIATOR&s=2f043ed3dd8c1b25d7c4291685e50d68&goto=nextnewest
http://www.doityourselfchristmas.com/wiki/index.php?title=Vixen_How-To%27s
http://www.live-leds.de/user-jinxscripts/
https://create.arduino.cc/projecthub/nenitoshouse/how-to-configure-neopixels-using-vixen-lights-and-arduino-527631
https://github.com/pixelmatix/aurora/wiki/Streaming
https://www.youtube.com/watch?v=nUQ-WkglyE0
http://livinglightshows.com/product/pixel-megaflake-34-snowflake/

Docker

https://rzymek.github.io/post/docker-prune/
https://www.techrepublic.com/article/5-tips-for-securing-your-docker-containers/
https://hub.docker.com/r/pihole/pihole/
https://github.com/nextcloud/docker
https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion

https://opendistro.github.io/for-elasticsearch/downloads.html
https://opendistro.github.io/for-elasticsearch-docs/docs/install/docker/
https://hub.docker.com/r/linuxserver/smokeping/
https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion
https://github.com/evertramos/docker-nextcloud-letsencrypt
https://github.com/kmbulebu/docker-ssh-bastion
https://hub.docker.com/r/chentm/bastion
https://hub.docker.com/r/rastasheep/ubuntu-sshd
https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion

Let's Encrypt

https://skarlso.github.io/2017/02/15/how-to-https-with-hugo-letsencrypt-haproxy/
https://www.digitalocean.com/community/tutorials/how-to-secure-haproxy-with-let-s-encrypt-on-ubuntu-14-04
https://certbot.eff.org/lets-encrypt/ubuntubionic-haproxy

https://docs.ramsdenj.com/operatingsystems/bsd/freenas/iocageservicejails/letsencrypt.html

Abel Homework

https://scratch.mit.edu/projects/editor/?tutorial=getStarted
https://www.mymaths.co.uk/ 

Ubuntu thin clients

https://olsonetworks.wordpress.com/2017/01/12/ltsp-setup-ubuntu-16-04-64bit-desktop/
http://www.havetheknowhow.com/Configure-the-server/Install-LTSP.html
https://plone.lucidsolutions.co.nz/storage/network/freenas/zfs-freenas-migration-of-data-to-a-new-zpool
http://willhaley.com/blog/default-foreign-soft-subtitle-support-in-plex-using-handbrake/ 
https://www.flickr.com/photos/theperfectmoment/21949146485/in/dateposted/
https://tunnelblick.net/index.htmlhttps://www.tuin.co.uk/Irja-Log-Cabin-with-Gazebo.html
https://www.tuin.co.uk/flow-log-cabin.html
http://greatburrowcottage.co.uk/?utm_source=sawdays_special-places&utm_medium=referral&utm_campaign=sawdays_special_places
http://www.humblebynature.com/stay-on-the-farm
https://www.google.co.uk/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=uk+mattress+sizes&*
https://firecore.com/forum/topic/12849
http://www.sodnpoo.com/posts.xml/zoneminder_export_to_directory.xml
http://www.securitycameraking.com/securityinfo/how-to-configure-and-connect-an-onvif-ip-security-camera-our-tp-series/
https://forums.zoneminder.com/viewtopic.php?t=23861 
http://androidforums.com/threads/players-wont-find-music-on-sd-card.719655/page-3

Raspberry Pi

https://www.instructables.com/id/Add-Aux-to-Sonos-Using-Raspberry-Pi/
https://www.raspberrypi.org/forums/viewtopic.php?t=43421
https://www.makeuseof.com/tag/weekend-project-build-giant-led-pixel-display/
http://qlcplus.org/use_case.html
https://www.doityourselfchristmas.com/wiki/index.php?title=Things_You_Will_Need_To_Get_Started_With_Pixels
http://www.penguintutor.com/worksheets/raspberrypi-neopixels.pdf
https://www.raspberrypi.org/forums/viewtopic.php?t=171540
https://tutorials-raspberrypi.com/how-to-control-a-raspberry-pi-ws2801-rgb-led-strip/
https://www.raspberrypi.org/forums/viewtopic.php?t=27346
https://forum.openframeworks.cc/t/raspberry-pi-3-interactive-led-strip-wall/23241
https://cdn-learn.adafruit.com/downloads/pdf/neopixels-on-raspberry-pi.pdf
http://www.instructables.com/id/Disco-pi/
https://learn.adafruit.com/adafruit-neopixel-uberguide/best-practices#

MacosX

https://github.com/essandess/macOS-clamAV
http://dosdude1.com/catalina/
https://github.com/iscsi-osx/iSCSIInitiator

FreeNAS

https://jira.ixsystems.com/browse/NAS-105301
https://www.ixsystems.com/community/threads/why-can-i-not-upgrade-my-plex-jail-using-iocage-upgrade-command.82207/#post-570090
https://www.reddit.com/r/freenas/comments/8gposa/ubuntu_in_vm_cannot_see_ping_mountnfs_freenas/
https://forums.freenas.org/index.php?threads/virtualbox-jail-not-running-after-virtualbox-ose-kmod-updated.48619/page-5

Photography

http://petapixel.com/2014/07/09/simple-tip-getting-tack-sharp-focus-landscape-photos-every-time/#disqus_thread

Misc

https://www.davd.eu/byecloud-syncing-photos-with-nextcloud/
https://discussions.apple.com/thread/7022306?page=2
https://all-about-apple.com/import-folders-macos-photos/
http://www.garth.org/archives/2011,08,27,169,fix-time-machine-sparsebundle-nas-based-backup-errors.html
http://tonylawrence.com/2012/08/11/fixing-corrupted-time-machine-backups/
https://github.com/emcrisostomo/Time-Machine-Cleanup
https://www.digitalocean.com/community/tutorials/additional-recommended-steps-for-new-ubuntu-14-04-servers
http://www.dangtrinh.com/2015/05/install-openvas-8-in-ubuntu-1404-using.html
https://hackertarget.com/install-openvas-7-ubuntu/
http://thegreyblog.blogspot.co.uk/2014/03/shrink-your-time-machine-backups-and.html
http://www.apmelton.com/
https://github.com/hopsoft/docker-graphite-statsd
http://xmodulo.com/transparent-https-filtering-proxy-centos.html
https://www.howtoforge.com/tiny-content-filtering-and-web-acceleration-appliance-ubuntu-squid-apache-vmware

Karate

http://hurstbournepriorskarate.co.uk/
https://www.youtube.com/my_videos?o=U
http://cambridgekarateclub.org/dai-and-sho

nZEDb

https://github.com/nZEDb/nZEDb

Zoneminder Stuff

http://www.potato-people.com/code/zoneminder/zm_arc2video.phps

Wordpress

https://www.designwall.com/blog/how-to-create-a-regular-static-website-using-wordpress-with-optional-blog/

Abel / Noah Projects

http://www.instructables.com/id/Thomas-Train-Bed/

Lego

http://www.brickowl.com/catalog/lego-ultimate-collector-s-millennium-falcon-set-10179
https://rebrickable.com/home
http://lego.brickinstructions.com/

Log Cabins

http://www.logcabins.co.uk/how-to.asp
http://www.cabinliving.co.uk/garden-offices.asp?action=getoptions&cabin=Berwick%20%E2%84%A2&ident=141&range=&cabinoptions=141
http://crusoedesignandbuild.co.uk/crusoe_gardens.php

Active Projects

https://www.digitalocean.com/community/tutorials/how-to-configure-statsd-to-collect-arbitrary-stats-for-graphite-on-ubuntu-14-04
http://docs.grafana.org/installation/debian/
http://www.garth.org/archives/2011,08,27,169,fix-time-machine-sparsebundle-nas-based-backup-errors.html
https://github.com/chase-miller/time-machine-sparce-bundle-fix
http://community.spiceworks.com/how_to/110712-install-fail2ban-on-64-bit-ubuntu-14-04-lts
http://www.wordpress.lonbil.co.uk/2013/08/installing-dnsmasq-on-freenas-9-1/

== New Freenas Server

Supermicro X9SCL-F -> http://www.supermicro.co.uk/products/motherboard/Xeon/C202_C204/X9SCL-F.cfm
Intel Xeon E3-1240 3.30GHz 8M Socket LGA1155 SR00K Quad Core CPU
DDR3-10600, PC3-1333MHz CL9 240pin ECC unbuffered -> http://www.mrmemory.co.uk/all-products/8gb-240-pin-ddr3-pc3-10600-1333mhz-ecc-unbuffered

VMware

http://ipxe.org/howto/vmware

Linux

https://www.facebook.com/notes/linux-only/make-a-custom-centos-7-or-rhel-7-cd-with-kicktart-file/1142994982390559
https://oracle-base.com/articles/linux/kickstart
https://www.hiroom2.com/2018/04/30/ubuntu-1804-serial-console-en/
https://forums.freenas.org/index.php?threads/howto-how-to-boot-linux-vms-using-uefi.54039/
https://aaron-kelley.net/blog/2011/12/migrating-an-ubuntu-installation-from-bios-to-uefi/
tesseract-ocr
http://blog.jdpfu.com/2012/09/14/solution-for-slow-ubuntu-in-virtualbox

https://www.digitalocean.com/community/tutorials/how-to-install-puppet-to-manage-your-server-infrastructure#install-puppet-agent
https://www.digitalocean.com/community/tutorials/how-to-use-foreman-to-manage-puppet-nodes-on-ubuntu-14-04
http://www.zoneminder.com/wiki/index.php/Ubuntu_Server_14.04_64-bit_with_Zoneminder_1.28.0_the_easy_way
http://www.zoneminder.com/wiki/index.php/Ubuntu_Server_14.10_64-bit_server_with_Zoneminder_to_use_systemd
http://www.potato-people.com/code/zoneminder/zm_arc2video.phps

VPN

https://www.vpnvip.com/setup-l2tp-vpn-in-windows-7.html https://torguard.net/blog/how-to-configure-vpn-ubuntu/

Schools

http://locrating.com/

Freenas Stuff

Freenas 10

https://github.com/freenas/vm-templates

How to Setup TimeMachine on Freenas

http://trac.biostr.washington.edu/trac/wiki/TimeMachine
http://www.notquitemainstream.com/tech/2014/03/25/how-to-set-up-time-machine-for-multiple-macs-on-freenas-9-2-1-3
http://www.jamesbadger.ca/2013/04/01/time-machine-auto-mount-2013/
http://www.garth.org/archives/2011,08,27,169,fix-time-machine-sparsebundle-nas-based-backup-errors.html
https://github.com/chase-miller/time-machine-sparce-bundle-fix
https://dekoder.wordpress.com/2014/10/08/fixing-freenas-currently-unreadable-pending-sectors-error/
https://forums.freenas.org/index.php?threads/is-this-a-bad-sign-smartd-1-currently-unreadable-pending-sectors.9824/
http://bogdan.org.ua/2015/02/26/how-to-fix-offline-uncorrectable-sector-outside-of-a-partition.html 

Useful commands -> http://doc.freenas.org/index.php/Useful_Command_Line_Utilities

http://joepaetzel.com/2014/03/09/freenas-getting-hacks-to-survive-part-2/

Howto setup an iscsi lun with Solaris

bash-3.2#  iscsiadm modify discovery --static enable
bash-3.2#  iscsiadm list discovery
Discovery:
       Static: enabled
       Send Targets: disabled
       iSNS: disabled
bash-3.2# iscsiadm add discovery-address 192.168.214.200:3260
bash-3.2# iscsiadm list discovery-address -v;
Discovery Address: 192.168.214.200:3260
       Target name: iqn.2011-03.example.org.istgt:freenas
               Target address: 192.168.214.200:3260, 1
bash-3.2# iscsiadm add static-config iqn.2011-03.example.org.istgt:freenas,192.168.214.200:3260
bash-3.2# format

Workaround for [[1][Bug #4987]]

add 149.255.37.14  cdn.freenas.org in /etc/hosts

mount -uw /
add to /base/conf/etc/hosts (otherwise it'll disappear on reboot

=== VirtualBox in FreeNAS (now included in 9.2.1.6)

http://forums.freenas.org/index.php?threads/virtualbox-in-a-jail-in-freenas.20185/
VirtualBox autostart -> http://daemon-notes.com/articles/other/virtualbox/scripts
http://forums.freenas.org/index.php?threads/autostart-virtualbox-vm.22116/
http://lists.freebsd.org/pipermail/freebsd-fs/2011-July/011982.html
http://lists.freebsd.org/pipermail/freebsd-current/2011-October/028232.html

If the gui dies then restart

service django start
http://blog.brianmoses.net/2014/01/diy-nas-2014-edition.html
http://doc.freenas.org/index.php/Apple_(AFP)_Shares#Using_Time_Machine

Adding a new disk requires partitioning before it can be attached to an existing mirror

  1. gpart create -s gpt /dev/ada0
  2. gpart add -a 4096 -i 1 -s 2g -t freebsd-swap /dev/ada0
  3. gpart add -a 4096 -i 2 -t freebsd-zfs /dev/ada0
  4. glabel status

Getting crashplan to work on freeness

Enabled TCP Forwarding in SSH settings in FreeNAS
Enabled Forwarding in the sshd_config file in the jail
Enabled Root Login in the jail
Created a crashplan user inside the jail and added them to "wheel"
Restarted SEVERAL TIMES, finally getting all java working and expected results in sockstat -4, and netstat.
Created SSH Tunnel from port 4200 to 10.10.1.87:4243 (the jail IP) using Putty, then connected Putty to 10.10.1.87 (jail IP, not the freenas box IP)
Modified ui.properties file inside Crashplan conf folder so that servicePort=4200 and was uncommented(no # in front of it).
killed all crashplan processes and services, restarted the service (on my PC with the UI) and then restarted the desktop app.
http://www.liquidstate.net/blog/technology/how-to-manage-your-crashplan-server-remotely/
https://forums.freenas.org/index.php?threads/crashplan-3-6-3.18416/#post-101205
https://forums.freenas.org/index.php?threads/crashplan-plugin-wont-start.24243/
https://forums.freenas.org/index.php?threads/crashplan-updated-to-4-3-0-now-will-not-connect.35269/

=== Enabling sshd in jail

/etc/rc.conf -> sshd_enable="YES"
service sshd start
enable root in /etc/ssh/sshd_config

Add SMART testing

http://forums.freenas.org/index.php?threads/scrub-and-smart-testing-schedules.20108/


Zoneminder

https://github.com/lbdc/zm-movie

Plex stuff

https://smyl.es/how-to-move-plex-metadata-and-index-data-to-new-driver-andor-directory-location/
https://support.plex.tv/hc/en-us/articles/201674343-Scanning-Disk-Image-Format-Media

Secure SSH

http://forums.freenas.org/index.php?threads/install-denyhosts-within-a-freenas-jail.15906/
http://forums.freenas.org/index.php?threads/install-and-setup-fail2ban-on-owncloud-portsjail.19216/

DR

Escape to loader (option 3)
set vfs.zfs.recover=1
boot -s
start /bin/sh
sh /etc/rc.initdiskless


zpool import -f -R /mnt poolname

if that fails

zpool import -f -o readonly=on -R /mnt poolname

zpool recovery (rewinds transactions)

zpool import -f -R /mnt -FX poolname

> You can try to experiment with zpool hidden flags. Look at this command: > > zpool import -N -o readonly=on -f -R /pool <pool> > > It will try to import pool in readonly mode so no data would be written > on it. It also doesn't mount anything on import so if any fs is damaged > you have less chances triggering a coredump. Also zpool import has a > hidden -T switch that gives you ability to select transaction that you > want to try to restore. You'll need a list of available transaction though: > > zdb -ul <vdev> > > This one when given a vdev lists all uberblocks with their respective > transaction ids. You can take the highest one (it's not the last one) > and try to mount pool with: > > zpool import -N -o readonly=on -f -R /pool -F -T <transaction_id> <pool>

I had good luck with ZFS recovery with the following approach:

1) Use zdb to identify a TXG for which the data structures are intact

2) Select recovery mode by loading the ZFS KLD with "vfs.zfs.recover=1"

  set in /boot/loader.conf

3) Import the pool with the above -T option referring to a suitable TXG

  found with the help zdb.

The zdb commands to use are:

  1. zdb -AAA -L -t <TXG> -bcdmu <POOL>

(Both -AAA and -L reduce the amount of consistency checking performed. A pool (at TXG) that needs these options to allow zdb to succeed is damaged, but may still allow recovery of most or all files. Be sure to only import that pool R/O, or your data will probably be lost!)

A list of TXGs to try can be retrieved with "zdb -hh <POOL>".

You may need to add "-e" to the list of zdb options, since the port is exported / not currently mounted).

Useful Links

https://agilebits.com/onepassword https://bitnami.com/stacks http://www.cv-library.co.uk/

http://forums.freenas.org/index.php?threads/virtualbox-in-a-jail-in-freenas.20185/ http://doc.freenas.org/index.php/Jails_Configuration https://www.zufallsheld.de/2013/11/22/freenas-transmission-couchpotato-sickbeard-dlna-server/

http://nalle.wordpress.com/using-gmail-as-a-spam-filter/

search MediaWiki:Sidebar

http://paulgu.com/wiki/How_do_I_allow_only_authorized_users_to_edit_pages

http://www.nettiesexpressions.com/2012/06/02/walk-a-little-slower-daddy-free-printable/

http://www.iflicksapp.com

Dataguard -> http://www.oracle-base.com/articles/11g/data-guard-setup-11gr2.php#standby_server_setup_man

http://confoundedtech.blogspot.co.uk/2012/06/logitech-squeezebox-touch-ubuntu-1204.html

http://www.seatweavingsupplies.co.uk/other%20seating%20cords%20price%20list.htm

http://www.imdb.com/media/rm3474831104/nm0648164

 * shower stuff -> http://www.showerdoc.co.uk/forum/phpBB3/
 * extending wireless network -> http://www.unix.ms/netgear/
 * veggie box recipes -> http://www.vegbox-recipes.co.uk

Chilli oil recipe -> http://www.thechilliking.com/chilli-oil-recipe/

Living life to the full -> https://www.llttf.com/index.php?section=page&page_seq=12

Mencoder command line stuff -> https://wiki.archlinux.org/index.php/MEncoder

Samsung warrant checker -> http://www.samsunghddvalue.com/WebRMA/WarrantyCheck/endUserWarrantychecker.aspx

  * http://jake-tm.co.uk/?page_id=259 - DGTeam Mirror
  * [[2][Righthook IPS repository (OWAN)]]
  * [[3][Exporting iTunes playlists to a non-itunes world]]
  * [[4][One iTunes/Slimserver playlist won't work]]
  * [[5][Setting up a DNS server]]
  * [[6][Extending the netgear wireless network]]
  * [[7][Kata Practice - 2011-05-10 ]]
  * [[8][Transparent Web Proxying Ubuntu DG834G]]
  * [[9][Community Sky DG834GT Updates]]
  * [[10][Netgear DG834GT Router Tweak]]
  * [[11][Netgear DG834GT & DG834 v4- Override Target SNR]]
  * [[12][Netgear Router Firmware Downloads]]
  * [[13][Implementing vscan service with ClamAV on ZFS]]
  * [[14][OpenSolaris 2008.11 ZFS with ‘on access’ virus scan]]
  * [[15][Phoenix Park Terrace Property for Sale]]
  * [[16][Greenhouse we would like]]

Flashing DVD drives

http://xvi.rpc1.org http://forum.rpc1.org/viewtopic.php?f=2&t=46137 http://forum.rpc1.org/viewtopic.php?f=12&t=48624

Ubuntu Installation Instructions

Manually installing logitechmediaserver

wget http://downloads.slimdevices.com/LogitechMediaServer_v7.8.0/logitechmediaserver_7.8.0_all.deb
sudo dpkg --install logitechmediaserver_7.8.0_all.deb
/etc/network/interfaces
auto eth0
iface eth0 inet static
address 10.0.0.100
netmask 255.255.255.0
gateway 10.0.0.1
dns-nameservers 10.0.0.1

https://sites.google.com/site/easylinuxtipsproject/first#TOC-Install-gnome-session-flashback-and-consider-disabling-the-visual-effects

Setting up a VPN proxy server

Setting up Collectd Collection3 on Ubuntu Lucid 10.04

Setting up iscsi on MacOSX

Installing HandBrakeCLI on ubuntu 12.04

Setting up zoneminder on Ubuntu 12.04

Installing daapd on Ubuntu 12.04

Setting up PLEX on Ubuntu

Installating HandBrakeCLI on Ubuntu

Ubuntu 11.10 webserver - choose OpenSSH + LAMP and then install webalizer + awstats + phpmyadmin

http://www.howtoforge.com/perfect-server-ubuntu-11.10-ispconfig-3-p6

http://www.howtoforge.com/the-perfect-media-server-ubuntu-11.10-sabnzbd-sickbeard-couch-potato-headphones-serviio-p3

http://blog.sudobits.com/2011/10/30/best-applications-and-tweaks-for-ubuntu-11-10/

Creating audio from mkv:

First we need to create a WAV with mplayer.

mplayer -vc dummy -vo null -ao pcm:file=output.wav video.mkv

If you find that mplayer is taking its sweet time in outputting the WAV you may have to append the fast option like so:

mplayer -vc dummy -vo null -ao pcm:file=output.wav,fast video.mkv

Then we create an MP3 from the WAV.

lame -h -b128 output.wav output.mp3

https://help.ubuntu.com/community/AutofsLDAP

https://help.ubuntu.com/11.04/serverguide/openldap-server.html

http://forums.plexapp.com/index.php/forum/76-apple-tv-2nd-gen/

To install linux guest additions on Ubuntu, you need to add:

sudo apt-get install dkms

to manually build the vb module:

/etc/init.d/vboxadd setup
  • Joining multiple avis together
sudo apt-get install mencoder mplayer
cat b1.avi b2.avi b3.avi b4.avi b5.avi b6.avi b7.avi > bloodspell.avi
mencoder -forceidx -oac copy -ovc copy bloodspell.avi.avi -o bloodspell_final.avi

Mplayer doesn't like the default video out mode (I suspect due to my Nvidia card) but seems to work ok for -vo gl2. I've therefore added the following to my .mplayer/config:

hippy@monkey:~$ more .mplayer/config 
# Write your default config options here!
vo=gl2

imapsyncing

hippy@ubuntu:~$ imapsync --host1 mail-emea.sun.com --user1 andharr --authmech1 LOGIN --passfile1 sun_pass --ssl1 --host2 stbeehive.oracle.com --user2 [email protected] --authmech2  
LOGIN --passfile2 oracle_pass --ssl2 --folder ZFS --sep2 / --prefix2 "" --useheader 'Message-ID' --skipsize --regexflag 's/NonJunk//g'
  * Force upgrade to next release -> sudo do-release-upgrade -d
  * fstab entry for vbox mount -> zoneminder /var/cache/zoneminder vboxsf auto,exec,rw,uid=33,gid=33 0 0
  * fix zoneminder -> http://francisfisher.me.uk/problem/2012/zoneminder-bareword-zm_path_logs-not-allowed-while-strict-subs-in-use/
  * zoneminder stuff -> http://cybt.com/linux/325-shared-memory-settings-for-zoneminder.html

Solaris Installation Instructions

SunRay Setup Instructions

Compiling applications on Solaris

Solaris Tips

Solaris 11 ipfilter -> http://kb.vorboss.net/display/kb/Enable+IPFilter+Firewalling+on+Solaris+11 http://blog.ls-al.com/solaris-11-firewall/

SMF autoscrub -> https://blogs.oracle.com/constantin/entry/new_opensolaris_zfs_auto_scrub

Creating rawdisk access to VBox guests

VBoxManage internalcommands createrawvmdk -filename /export/virtualbox/sol-11_2-40-vbox/c16t3d0.vmdk -rawdisk /dev/rdsk/c16t3d0s0


su - hippy -c "/usr/bin/screen -dmS newznab /usr/local/newznab/newznab_screen.sh"

To create and send snapshots via zfs use:

zfs snapshot -r rpool@today
zfs send -R rpool@today | zfs receive -F -d rpool2

Adding a zone

root@monkey:~# zonecfg -z dev
Use 'create' to begin configuring a new zone.
zonecfg:dev> create
create: Using system default template 'SYSdefault'
zonecfg:dev> set zonepath=/zones/dev
zonecfg:dev> set autoboot=true
zonecfg:dev> verify
zonecfg:dev> commit
root@monkey:~# zoneadm -z dev install

For fixing zones issues

chmod 666 /dev/ptmx

For Solaris zone webserver

pkg install amp
pkg install webalizer
/usr/mysql/5.1/bin/mysql_install_db
/usr/mysql/5.1/bin/mysqladmin -u root password 'new-password'
/usr/mysql/5.1/bin/mysqladmin -u root -h dev password 'new-password'

Adding a ZFS filesystem to a zone (no deligation)

# zonecfg -z zion
zonecfg:zion> add dataset
zonecfg:zion:dataset> set name=tank/volumes/vol1
zonecfg:zion:dataset> end

For deligation add

zonecfg:zion:dataset> set alias=tank

For hot plugging a drive

/usr/sbin/cfgadm -cunconfigure sata2/0
/usr/sbin/cfgadm -cconfigure sata2/0

Setting noexec on the fly

echo "noexec_user_stack/W 0x0" | mdb -kw

Correcting quarantined zfs files

hippy@monkey:~$ /usr/bin/ls -/ v  .bashrc
-rw-r--r--   1 hippy    staff       1064 May 10 09:25 .bashrc
               {archive,nohidden,noreadonly,nosystem,noappendonly,nonodump,noimmutable,av_modified,av_quarantined,nonounlink,nooffline,nosparse}
hippy@monkey:~$ pfexec /usr/bin/chmod S-a .bashrc
hippy@monkey:~$ /usr/bin/ls -/ v .bashrc
-rw-r--r--   1 hippy    staff       1064 May 10 09:25 .bashrc
               {noarchive,nohidden,noreadonly,nosystem,noappendonly,nonodump,noimmutable,noav_modified,noav_quarantined,nonounlink,nooffline,nosparse}

Autostarting Virtualbox Machines

sudo mkdir /etc/vbox
svccfg -s svc:/application/virtualbox/autostart:default setprop config/config=/etc/vbox/autostart.cfg
svcadm enable svc:/application/virtualbox/autostart:default
VBoxManage modifyvm <yourvirtualmachinename> --autostart-enabled on
#You can also set a delayed start for the vm using the command: VBoxManage modifyvm <yourvirtualmachinename> --autostart-delay <delayinseconds>
[--autostop-type disabled|savestate|poweroff|acpishutdown]
root@monkey:/etc/vbox# more autostart.cfg

default_policy = allow

vbox = {

       allow = true
       startup_delay = 10

}

* https://forums.virtualbox.org/viewtopic.php?f=11&t=33249

sphinx requires libinconv

pkg install libiconv

Photography

https://iso.500px.com/amazing-macro-photos-shot-by-a-16-year-old-in-his-backyard/?utm_campaign=june182015digest&utm_content=TextLink_amazing-macro-photos-shot-by-a-16-year-old-in-his-backyard&utm_medium=email&utm_source=500px
http://digital-photography-school.com/reverse-lens-macro-close-up-photography-lesson-3/
http://www.joseramos.com/
http://www.digitalcameraworld.com/2014/07/25/24-of-our-most-popular-photography-cheat-sheets/
http://www.digitalcameraworld.com/tag/photography-cheat-sheet/
http://paintbylight.blogspot.co.uk/2012/04/how-to-setup-canon-7d-to-take-hdr-shots.html
http://www.photoventure.com/2014/04/15/7-daily-exercises-that-will-make-you-a-better-photographer/4/
http://digital-photography-school.com/how-to-control-multiple-flashes-wirelessly-with-a-canon-7d/
http://trickphotographybook.com/
http://www.digitalcameraworld.com/2013/04/27/blown-highlights-how-to-rescue-blown-skies-using-simple-photoshop-effects/
http://blog.photoshopcreative.co.uk/tutorials/how-to-transform-dull-sky-in-photoshop/

http://www.digitalcameraworld.com/2013/11/04/lightroom-tutorials-how-to-reveal-hidden-detail-in-skies-with-lightrooms-graduated-filter/
http://www.dofmaster.com/dofjs.html
http://shutterexperiments.com/
http://www.martinbaileyphotography.com/podcasts/

House Stuff

http://www.cbpropertysearch.co.uk/
http://floorplanner.com/projects/31244485-new-floorplan/edit#assets
http://hoa.org.uk/advice/guides-for-homeowners/i-am-buying/how-do-i-know-im-not-paying-too-much/

Kitchen

http://www.brackenwood.com/ - replacement seals and handles?
http://www.secondsandco.co.uk/ - cheaper selex insulation

Woodworking

http://www.woodworkingcentreshop.co.uk/acatalog/Triton_Spares_Workcentre_Series_2000.html

MaxOSX Tips

https://github.com/iscsi-osx/iSCSIInitiator

turning off macosx indexing

Example: to stop and prohibit indexing on a volume named Backup Drive you would issue one of the following commands:

sudo mdutil -i off /Volumes/Backup\ Drive
sudo mdutil -i off "/Volumes/Backup Drive"

http://www.tonymacx86.com/yosemite-desktop-guides/143976-unibeast-install-os-x-yosemite-any-supported-intel-based-pc.html

NZB server

http://www.tiag.me/how-to-backfill-newznab-safely-without-bloating-your-database/

http://forums.redflagdeals.com/newznab-personal-usenet-indexer-help-thread-1274939/

http://mikepugh.blogspot.co.uk/2012/12/definitive-guide-to-setup-newznab-plus.html

https://github.com/kevinlekiller/Newznab-Blacklist

select name from releases where name regexp '^[a-zA-Z0-9]{20}$';
delete from releases where name regexp '^[a-zA-Z0-9]{20}$';

http://blog.cone.be/2012/12/16/newznab/

binary logs getting too big

PURGE BINARY LOGS TO 'mysql-bin.00003';

http://t4nkw4rt.blogspot.co.uk/

http://f.redflagdeals.com/showthread.php?t=1274939&mobile_type=basic

http://sudobash.net/usenet-newznab-backfilling/

mysqldump -u root -p newznab | bzip2 > backup_newznab.sql.bz2

remote

mysqldump -u root -h newznab -p newznab | bzip2 > backup_newznab.sql.bz2

http://endpoint.co/technology/enable-remote-access-mysql

Usenet

http://www.ngprovider.com/isp-newsservers.php#UK

http://usenetreviewz.com/best-usenet-providers/

tweaknews

Windoze Stuff

https://www.centlinux.com/2018/11/configure-centos-7-pxe-server-install-windows-10.html
https://www.youtube.com/watch?v=R6XPff38iSc
https://www.cygwin.com/install.html
http://joegardiner.co.uk/cloning-a-hard-drive-in-windows-7/

Mining

http://www.amazon.co.uk/gp/product/B00IJBV9UW/ref=s9_simh_gw_p147_d2_i5?pf_rd_m=A3P5ROKL5A1OLE&pf_rd_s=center-3&pf_rd_r=14B980MQEC1BT6QMEXT2&pf_rd_t=101&pf_rd_p=455333147&pf_rd_i=468294

http://litecoinexchangerate.org/c/GBP/678

http://www.litecoinminingcalculator.com/index.php?khs=32000&diff=21219.9751975&cdiff=21219.9751975&fee=0

http://www.techspot.com/article/777-litecoin-mining-project/page4.html

http://www.bitcoinx.com/profit/

http://www.coindesk.com/information/how-to-set-up-a-miner/

http://www.coindesk.com/information/how-to-mine-litecoin/

https://litecoin.org/