Skip to main content

Posts

Chromeos containers and vms - Ubuntu, Debian

VM commands - basic gentoo VM compiled by google to be small and fastvsh dev - get a console for that vm
vmc start dev - also gets you a console and starts a vm
vmc stop dev - stop a vm (does not do much)
vmc destroy dev - (only works sometimes)
vmc list
Inside the VM - in a vm you can create multiple containersrun_container.sh --container_name=devCon --user=lafaspot lxc list - list all VMs
lxc image list - list all VM images on the box
Create a debian stable vm, using chromeos utility shell file, that provides better integration with chromeos. run_container.sh --container_name=devCon --user=USERID
Ubuntu setup lxc image copy ubuntu:18.10 local: --alias ubuntu1810
lxc launch ubuntu1810 cosmic
lxc exec cosmic -- bash

Goto to my github project to setup chromeos integration with your new ubuntu container

https://github.com/lafaspot/chromeOSUbuntu

Recent posts

Ubuntu how to setup a vpn connection, tsocks, corporate wifi with openconnect and openvpn or socks

These are just notes.
Cisco vpn setup with CSD support [corporate setup]
# install
sudo apt-get install openconnect network-manager-openconnect-gnome gconf2 lib32z1 lib32ncurses5 libpangox-1.0-0

#restart network-manager or reboot the laptop

Create ~/.cisco folder

mkdir ~/.cisco 

Download the csd-wrapper-sh from github

https://gist.github.com/l0ki000/56845c00fd2a0e76d688#file-csd-wrapper-sh

copy the csd-wrapper.sh to that folder

Edit the file and set the CSD_HOSTNAME

CSD_HOSTNAME=vpn-1-gci.yourcompany.com

Run the script to download the resources, one time, and make sure the resources are downloaded.

bash ~/.cisco/csd-wrapper.sh

On gnome shell, settings->network add a vpn connection


Command line with CSD support:# open a connection with csd support, use --background to run as daemon
sudo openconnect --user=lafa --csd-user=lafa --csd-wrapper=/home/lafa/.cisco/csd-wrapper.sh --background --pid-file=${HOME}/vpn.pid vpn-1-gci.yourcompany.com:443/GeneralHybrid
Without CSD support# select dynamic upd…

Ubuntu 17.10 running on Lenovo Yoga 920 with HiDPI and touch screen support

I resized the windows partiton to the minimun necessary (100G), disabled secure boot and I also remove bitlocker key encryption on windows drive, this allows Ubuntu to see that partition and allow windows to boot with secure boot disabled, without complaning.

This makes everything go easier if you want to keep windows arround on the same disk and dual boot with Ubuntu, you should do this it helps a lot. Even after you disable this, you can re-enable it back, both secure boot and bitlocker key encryption.

Before installing on windows updates resize your windows partition, installing all windows updates will not alow you to gain as much space as possible. After resizing the windows partition to the minimium size you want, install all windows updates, bios and driver updates.

I upgraded all windows updates to the latest version and all drivers to the latest version and upgraded the bios on windows to the latest version before installing Ubuntu, I don't think this makes much differenc…

How to resize a Windows VM image with virt-resize qcow2

Notes

apt install libguestfs-tools virt-manager gnome-boxes

Check for snapshots and delete them:

qemu-img info win10.qcow2
qemu-img snapshot -l win10.qcow2
qemu-img snapshot -d 4  win10.qcow2

 Resize:

qemu-img info win10.qcow2
qemu-img resize win10.qcow2 +23G

List partitions, select partition to get the new size, resize that partition

sudo virt-filesystems -hl -a win10.qcow2
Name       Type        VFS   Label            Size  Parent
/dev/sda1  filesystem  ntfs  System Reserved  500M  -
/dev/sda2  filesystem  ntfs  -                39G   -
/dev/sda3  filesystem  ntfs  -                843M  -
qemu-img create -f qcow2 win10_63G.qcow2 63G
sudo virt-resize --expand /dev/sda2 win10.qcow2  win10_63G.qcow2


References:

https://mike42.me/blog/how-to-resize-a-windows-vm-image-with-virt-resize

Ubuntu 17.10 review. Running with hidpi, touch screen and wayland support

Ubuntu GNOME 17.10

I think Ubuntu GNOME is the best flavor of Ubuntu if you are running in HiDPI mode 3200x1800 with a touchscreen. All screen captured images are at HiDPI resolution.

Since I prefer the standard gnome-session experience, I installed the "gnome-session" package and rebooted the system. And on the cog icon next to the sign in button, select the "GNOME" instead of ''Ubuntu" option before clicking the sign in button.

sudo apt install gnome-session

Touchpad
I increased the speed, enabled "tap to click", "two finger scrooling". and on gnome-tweak enabled click method to "fingers".
Touch support Ubuntu gnome support for touchscreen is pretty good on the desktop.
Chromium browser supports touch screen very well and much better than Firefox without any plug-ins.
In my Yoga pro 2, the windows key on the screen panel works as the windows key on the keyboard.
Screen rotation is supported on the new gnome and disables …

Asus Chromebook C302 with Android Apps

I got an Asus Chromebook 302 that comes with an Intel core m3, 64Gb, 4Gb of memory.

Some problems I got on my device:

After I enabled the android app store the laptop started to reboot randomly. I tried removing the apps and switching chrome os channels, but it did not fix the problem.

So I decided to create a recovery SDCard using chrome recovery utility. I re-imaged the laptop with the SD card, using the instructions from the chrome recovery utility.

After that the laptop booted in stable channel, I update the laptop to the latest stable image.


List of Applications I am running:
Pandora, Yahoo Mail, Yahoo Messenger, Hangouts, Play Newsstand, Hangouts Dialer, Calendar, Photos, Npr One, Voxer, Twilight, Firefox, Youtube, Google wifi, Hipchat, 3Dmark.
Here is a screenshot running 23 Android applications at same time.

This is screen shot running twilight, for those of us missing a blue light filter.

3DMark and Octane
The score below is running in the ChromeOS dev channel. I only able t…

Chrome OS advanced commands, settings, expert features

Chrome OS advanced commands, settings, expert features All features described here where tested on a Asus C302 Chromebook, but should work on all Chromebooks, screenshots are from the Asus C302.
Recovery Install new factory image for your chrome book
https://support.google.com/chromebook/answer/1080595?hl=en

Perform a Hard Reset Go to settings select the reset section, you can do a reset or a powerwash.

Force-Boot Into Recovery Mode If you’d like to reinstall Chrome OS and you don’t see the “Chrome OS is missing or damaged” message on your screen, you can force your Chromebook to boot into recovery mode.

First, turn off your Chromebook. Next, press Esc + Refresh on the keyboard and hold down the Power button. Your Chromebook will boot straight to recovery mode.

Enable Canary First, turn off your Chromebook. Press Esc+Refresh+Power and, when the recovery prompt appears, press Ctrl+D and accept the prompt that appears to disable boot verification. When the Chromebook reboots, press Ctrl…

Ubuntu GNOME 17.04 running with HiDPI and touch screen support

Ubuntu GNOME 17.04 running with HiDPI and touch screen support








See my previous post on how to install Ubuntu on Yoga Pro 2 for Ubuntu GNOME 16.10.

I think Ubuntu GNOME is the best flavor of Ubuntu if you are running in HiDPI mode 3200x1800. All screen captured images are at HiDPI resolution.
Touch support Ubuntu gnome support for touch screen is pretty good on the desktop shell.
Chrome browser supports touch screen very well and much better than Firefox without any plug-ins.
The windows key on the screen panel works as the windows key on the keyboard.
Screen rotation is supported on the new gnome and disables the keyboard when the yoga is used as a tablet, side lock rotation button works to lock the screen in a certain rotation.



 What works Almost everything works great out of the box, there isn't many changes you need to do.
UbuntuGnome ships with gnome 3.24 and will boot with full resolution HiDPI and touch screen support enabled
Screen HiDPI supportBrightness, resolution keys, o…

How to install Cura 2.X on Ubuntu 17.04

How to install Cura 2.X on Ubuntu

Cura is not available on ubuntu Repositories on version 17.10.

The resolution: To fix this issue you will need to install a PPA repository.

How to get this archive working properly is found here https://launchpad.net/~thopiekar/+archive/ubuntu/cura

rm -f ~/.config/cura/*
rm -f ~/.local/cura/*
sudo add-apt-repository ppa:thopiekar/cura
sudo apt-get update
sudo apt install cura cura-plugins-all cura-extra-plugins-all


Running Windows 10 on Ubuntu with support for 2D accelerated video, disk, network and touch support

How to run windows with acceleration support on Ubuntu 17.10
This works on 17.10, 17.04, 16.10, 16,04.

This setup will accelerate the virtual VM for disk, network, video, random device and memory, it also adds support for touch screen for windows 10 running inside Ubuntu.

Download the iso for windows 10 from Microsoft web site, install the image using regular gnome-boxes interface.
Goto to https://www.spice-space.org/download.html and download the Spice Windows guest tools, to allow copy paste and resize when running under boxes, and install it.
I also installed the guest-agent available inside the virtio-win-XXX.iso cd image under the guest agent folder. Then download the virtio-win-XXX.iso from here, pick the latest version. https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio Goto the device manager browser on windows 10 and click on all devices with problems, and point these to the where the cdrom is and select update.

Do the same for the display driver…