###Making the tablet useful
####Enabling apt-get and installing normal apps Follow this guide
uname -a
lsb_release -a
lscpu
cat /proc/cpuinfo
mkdir .ssh
ls -all
// This will fail if you haven't installed openssh
scp DESKTOP_USER@DESKTOP_IP:/home/DESKTOP_USER_FOLDER/.ssh/id_rsa.pub .ssh/authorized_keys
chmod 700 .ssh
chmod 600 .ssh/authorized_keys
android-gadget-service enable ssh
ifconfig
//Now copy that IP and ssh from your computer to the tablet
android-gadget-service enable ssh
android-gadget-service enable writable
sudo apt-get update
// Use autocomplete with tab so terminal can complete the version number
sudo nano /var/lib/apparmor/profiles/click_com.ubuntu.terminal_terminal_0.7.198
// EDIT:
Find:
profile "com.ubuntu.terminal_terminal_0.7.190" (attach_disconnected) {
capability,
network,
/ rwkl,
/** rwlkm,
/** pix,
ADD:
/userdata/user-data/phablet/** pix,
sudo service apparmor restart
sudo apt-get install curl build-essential libssl-dev clang python git mercurial
g++ // OK
python // OK
clang++ // OK
...
// Let's install node now, it's a bit harder
[Node guide](https://nodejs.org/en/download/package-manager/)
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
node // OK
npm // OK
[Fixing NPM global](https://docs.npmjs.com/getting-started/fixing-npm-permissions)
npm config get prefix // Returns /usr so we use method 2
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
source ~/.profile
// Install some basics for node dev
npm install -g jshint bower grunt-cli
android-gadget-service disable writable
Some apps like geany I couldn't get to run straight from icon, here a solution, though it looks expensive (resource wise)
cd ~/.local/share/libertine
mv ContainersConfig.json ContainersConfig.bak.json
cp /custom/click/.click/users/@all/com.ubuntu.puritine/libertine-config/libertine/ContainersConfig.json .
# This will take a lot of time, be ready...
libertine-container-manager create -i puritine2 -n "Puritine 2" -t chroot -d vivid --force
libertine-container-manager install-package -i puritine2 -p inkscape
libertine-container-manager install-package -i puritine2 -p geany
# Copy icons from your computer
scp [email protected]:DESKTOP_LOCATION/inkscape.png /usr/share/libertine/demo/icons/inkscape.png
scp [email protected]:DESKTOP_LOCATION/geany.png /usr/share/libertine/demo/icons/geany.png
# Now copy the files to trigger from apps
cd ~/.local/share/applications/
cp /usr/share/applications/puritine_gimp_0.0.desktop puritine2_inkscape_0.0.desktop
cp /usr/share/applications/puritine_gedit_0.0.desktop puritine_geany_0.0.desktop
# Edit the name and icon location ONLY
nano puritine2_geany_0.0.desktop
nano puritine2_inkscape_0.0.desktop
Ready to go, just swype down to refresh the icons.