Make sure you have latest SDK platform tools installed and have downloaded and unpack correct image fot your tablet.

These proceed with these steps:

ron@ron-ubuntu:~/Android/Sdk/platform-tools$ ./fastboot devices
08554881    fastboot
ron@ron-ubuntu:~/Android/Sdk/platform-tools$ ./fastboot erase boot
erasing 'boot'...
OKAY [  0.034s]
finished. total time: 0.034s

ron@ron-ubuntu:~/Android/Sdk/platform-tools$ ./fastboot erase cache
******** Did you mean to fastboot format this partition?
erasing 'cache'...
OKAY [  0.359s]
finished. total time: 0.359s

ron@ron-ubuntu:~/Android ...

Read More

Steps on how to remove Razberry bloated/unneeded files:

Cloud connect stuff:

# /etc/init.d/zbw_connect stop
# rm -rf /etc/zbw
# rm -rf /var/webif


# /etc/init.d/mongoose stop
# rm /etc/init.d/mongoose
# rm -rf /etc/mongoose
# rm /usr/sbin/mongoose

Read More


Install xgamma-gui:

$ git clone
$ cd xgamma-gui

Add to Makefile:

CONFIG += qt
QT += gui

$ qmake && make && make install
$ ./XgammaGui

Read More

Some notes regarding exposing a PCI card inside a Virtualbox VM

Determine PCI ID on host:

vbox@vbox:~$ lspci|grep Ethernet
01:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)

Determine name VM:

vbox@vbox:~$ VBoxManage list runningvms
"node-server" {881f529e-5876-4f95-8784-ec7d8d8c8bf4}

Inside VM, take note of used ID’s:

user@node-server:~$ lspci
00:00.0 Host bridge: Intel Corporation 440F ...

Read More

We need to create a wrapper script and associate the file type with it.

$ sudo vi /usr/bin/

# opens Windows .URL files in your default browser
# requires: xdg-open sed grep xargs
sed 's/^BASEURL=/URL=/' "$1" | grep -m 1 '^URL=' | sed 's/^URL=//' | sed 's/\r//' | xargs xdg-open
$ sudo chmod +x /usr/bin/

Now we can associate .URL files with the script. This might be the hard part.

$ cp /usr/share/applications/chromium-browser.desktop ...

Read More

Startup MySQL tool

# mysql -u root -p redmine

Maybe first use below queries with SELECT to see what matches there are, before running with DELETE.
These will show records with state register from 7 days or older.

DELETE FROM tokens WHERE action='register' and created_on < now() - INTERVAL 7 DAY;

DELETE FROM users WHERE status=2 and created_on < now() - INTERVAL 7 DAY;

DELETE FROM tokens WHERE action='register';
DELETE FROM users WHERE status=2;

Read More

On current server:

# service apache2 stop
# cd /opt/redmine/files
# scp -r * root@:/opt/redmine/files

Make MySQL backup

# mysqldump -u root -p redmine >/root/dump.sql
# scp /root/dump.sql root@1:/root

On new server:

# cd /opt/redmine/files
# chown -R www-data:www-data *

Delete test database (is needed) and reload new database

# mysqladmin -u root -p drop redmine
# mysqladmin -u root -p create redmine
# mysql -u root -p redmine 
Reload/migrate redmine data and plugins

# rake db:migrate ...

Read More

I run several machines on top of Virtual Box on Debian (headless).
Here some notes I made…

Install latest version from virtualbox site

The one in Ubuntu’s repo is old

$ sudo vi /etc/apt/sources.list

add this line:
deb trusty contrib

$ wget -q\_vbox.asc -O- | sudo apt-key add -  
$ sudo apt-get update  
$ sudo apt-get install virtualbox-4.3


Before upgrading the virtualbox package make ...

Read More

Chromium on Ubuntu 14.04 doesn’t use Netscape plugin API anymore, it simply not there.
The Chrome browser has support for Flash, so the following steps download Chrome, extract it’s Flashplayer and install it for Chromium.

You need to reboot your computer after installing to activate it, or kill all running chromium-browser processes.
We need to install the Pepper Flash player installer.

sudo apt-get install pepperflashplugin-nonfree
sudo update-pepperflashplugin-nonfree --install

If you want to uninstall it for some reason ...

Read More