Alex Klein

#!/bin/bash

# kano-uixinit
#
# Copyright (C) 2014 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
#
# This script is a wrapper on top of LXDE autoinit.
#
# It starts kano-settings if needed and sets the background wallpaper
# It fits well on bootup and logoff-logon transitions.
#

. /usr/share/kano-toolset/logging.sh

LAUNCH_START=0
LAUNCH_WIFI_CONFIG=1
LAUNCH_UPDATER=2
LAUNCH_SETTINGS=3
LAUNCH_PROFILE=5
LAUNCH_SWAG=6

first_boot_file=”$HOME/.kano-settings/first_boot”
second_boot_file=”$HOME/.kano-settings/second_boot”
before_update_file=”$HOME/.kano-settings/before_update”
after_update_file=”$HOME/.kano-settings/after_update”
mkdir -p “$HOME/.kano-settings”

function is_installed
{
if [ -n “`which $1`” ]; then
return 0
else
return 1
fi
}

function set_keyboard
{
# Load Kano Keyboard configuration file for Hotkeys, or a generic one for regular keyboards
keyboard_conf_dir=”/usr/share/kano-desktop/config/keyboard”
if [ “$1” = “True” ]; then
keyboard_conf=”$keyboard_conf_dir/kanokeyboardrc”
else
keyboard_conf=”$keyboard_conf_dir/generickeyboardrc”
fi
logger_info “Launching xbindkeys with configuration: $keyboard_conf”
/usr/bin/xbindkeys -f $keyboard_conf

# Set user keyboard layout
logger_info “Setting the keyboard layout for the user”
sudo /usr/bin/kano-settings-cli set keyboard —load
}

function first_boot_part_2
{
# load background
/usr/bin/kdesk -w &
# loads and sets the keyboard layout
set_keyboard $1
# Launch login screen
logger_info “Playing os_intro.mkv”
kano-video-cli /usr/share/kano-media/videos/os_intro.mkv
}

############ STARTS HERE ############

# Disable XServer screen saver time and screen blanking (The display would become black)
if is_installed xset; then
logger_info “Disabling the screensaver”
xset s off
xset -dpms
xset s noblank
fi

# detect kano-keyboard
kano_keyboard=`python -c “from kano.utils import detect_kano_keyboard; print detect_kano_keyboard()”`

check_for_updates=1

# The following block is related to the first bootflow
if [ ! -f $first_boot_file ] && [ ! -f /boot/skip ]; then
# second boot reboot
logger_info “Launching kano-init-flow second part”
first_boot_part_2 $kano_keyboard
logger_debug “Marking kano-init-flow completed”
sudo kano-init finalise
touch $first_boot_file
check_for_updates=0
# The following is executed in subsequent boots
else
# load background
/usr/bin/kdesk -w &
# loads and sets the keyboard layout
set_keyboard $kano_keyboard
fi

# startmouse
logger_info “Launching startmouse”
/usr/bin/startmouse &

# check for updates and display the update dialog
# restrict server communication to max once a week (168 hours)
if [ $check_for_updates -eq 1 ] && [ is_internet ]; then
logger_info “Checking for update”
sudo /usr/bin/check-for-updates -t 168 -d
else
logger_info “Not checking for update”
fi

# lxpanel
logger_info “Launching LXPanel”
/usr/bin/lxpanel —profile LXDE &

# starting kdesk
logger_info “Launching kdesk”
/usr/bin/kdesk &

# Report a startup event to Kano Tracker
kano-profile-cli increment_app_runtime startup 0

# Remove Homedir “Desktop” folder created by:
# /usr/share/xsessions/lightdm-xsession.desktop
rm -rf ~/Desktop

# starting kano-vnc
startvnc=/usr/share/kano-vnc/startvnc
if [ -e $startvnc ]; then
logger_info “Launching startvnc”
$startvnc
fi

Prepping Review Kits

CHROMIUM

To change the home page from the Chromium icon in the desktop:

1) sudo leafpad /usr/share/kano-desktop/kdesk/kdesktop/Internet.lnk

2) Remove google.com and put kano.me

RESET

1) Open this page (only Kano members have access): https://github.com/KanoComputing/kano-desktop/blob/master/bin/kano-uixinit

2) Copy all the text into this file:

sudo leafpad /usr/bin/kano-uixinit

3) Do a reset:

sudo kano-init reset

SONIC PI

1) sudo leafpad /usr/bin/make-music

2) At the top there are 6 “touch” commands inside a init function. Remove them and add these ones instead:

    # Creating workspaces

    cp /usr/share/make-music/challenges/Challenge1.spi $WORKSPACE_DIR/one/1.spi

    cp /usr/share/make-music/challenges/Challenge2.spi $WORKSPACE_DIR/two/1.spi

    cp /usr/share/make-music/challenges/Challenge3.spi $WORKSPACE_DIR/three/1.spi

    cp /usr/share/make-music/challenges/Challenge4.spi $WORKSPACE_DIR/four/1.spi

    cp /usr/share/make-music/challenges/Challenge5.spi $WORKSPACE_DIR/five/1.spi

    cp /usr/share/make-music/challenges/Challenge6.spi $WORKSPACE_DIR/six/1.spi

1) Open this page (only Kano members have access): https://github.com/KanoComputing/kano-desktop/blob/master/bin/kano-uixinit

2) Copy all the text into this file:

sudo leafpad /usr/bin/kano-uixinit

3) Do a reset:

sudo kano-init reset

"Fortunately for the NSA, the Syrians were apparently more focused on restoring the nation’s Internet than on tracking down the cause of the outage. Back at TAO’s operations center, the tension was broken with a joke that contained more than a little truth: “If we get caught, we can always point the finger at Israel.”

This raises a question: if merely reading a genome differently can change organisms so wildly, why bother rewriting the genome to evolve? How vital, really, are actual changes in the genetic code? Do we always need DNA changes to adapt to new environments? Are there other ways to get the job done? Is the importance of the gene as the driver of evolution being overplayed?
Love him or show your age: He’s making some of the most forward-thinking pop around.

Below the surface of the machine, the program moves. Without effort, it expands and contracts. In great harmony, electrons scatter and regroup. The forms on the monitor are but ripples on the water. The essence stays invisibly below.

Master Yuan-Ma, The Book of Programming

The true Minecraft is the books. Scholastic publishes these concise, child-friendly guides to the game. Two of them are among the best-selling books of 2014 so far, on a short list with titles like The Fault in Our Stars and The Goldfinch. To me, they are the most salient symbol of the game’s success.
Our system of elite education manufactures young people who are smart and talented and driven, yes, but also anxious, timid, and lost, with little intellectual curiosity and a stunted sense of purpose: trapped in a bubble of privilege, heading meekly in the same direction, great at what they’re doing but with no idea why they’re doing it.
The real competition is program against program,” he told me during one early phone interview. “When my opponent is a programmer, we are doing the same thing. We can talk to each other. But when I play against a professional and he explains the moves to me, it is too high level. I can’t understand, and he can’t understand what I am doing. The Densei-sen — it is good for publicity. I am not so interested in that.
Woolf often conceives of life this way: as a gift that you’ve been given, which you must hold onto and treasure but never open. Opening it would dispel the atmosphere, ruin the radiance—and the radiance of life is what makes it worth living. It’s hard to say just what holding onto life without looking at it might mean; that’s one of the puzzles of her books. But it has something to do with preserving life’s mystery; with leaving certain things undescribed, unspecified, and unknown; with savoring certain emotions, such as curiosity, surprise, desire, and anticipation. It depends on an intensified sense of life’s preciousness and fragility, and on a Heisenberg-like notion that, when it comes to our most abstract and spiritual intuitions, looking too closely changes what we feel. It has to do, in other words, with a kind of inner privacy, by means of which you shield yourself not just from others’ prying eyes, but from your own. Call it an artist’s sense of privacy.
We need a space to start fresh—building applications that are decentralized and encrypted from the get-go so they allow us a greater degree of privacy. We need a new terrain. That’s the Darknet.
Google has become a second reality inside touch-screen devices—complete with its own rules of logic and physics—and if Google has its way, it will eventually break free of touch screens to quite literally reshape the world around us.
It just bothers me,” he said finally. “I don’t want to be something that just comes and goes.

https://www.youtube.com/watch?v=sGeZxgatmRs