Tuesday, June 14, 2016

Fixing dropbox 100% CPU starting Ubuntu 2016

Uninstalled and reinstalled dropbox using followed instructions here:

https://www.dropbox.com/en/help/246

Specifically:

Add the following line to /etc/apt/sources.list.d/dropbox.list
(Replace trusty with your build's name below.)

deb http://linux.dropbox.com/ubuntu trusty main 
 
To import our GPG keys into your apt repository, perform the following command from your terminal shell:

$ sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E


"Removed" user installed dropboxd using followed instructions here:

mv ~/.dropbox-dist ~/.dropbox-dist_old

Ask dropbox to reinstall the dropboxd in the userspace

dropbox start -i


Now things are working!

Saturday, December 15, 2012

QEMU User-Mode ARM for Raspbian chroot

The other day I forgot my password for my raspberrypi running raspbian. If this were a amd64 system, I would chroot the system and use passwd to reset my password, but the raspberrypi is an arm system, and the passwd binary of the guest system cannot be executed on my amd64 host system. Enter QEMU user-mode emulation.

Following loosely these intructions here:

http://wiki.debian.org/QemuUserEmulation


  This is what I did: Install qemu, binfmt-support, and qemu-user:
# apt-get install qemu binfmt-support qemu-user
The step involving dpkg-cross I did slightly differently, as I noticed the necessary packages were available in synaptic for Ubuntu 12.04. This is what I installed
# sudo apt-get install libc6-armel-cross libc6-dev-armel-cross
"Point QEMU to the target linux loader For example, for the arm(el) architecture." Add this line to the /etc/qemu-binfmt.conf:
EXTRA_OPTS="-L /usr/arm-linux-gnueabi"
This is needed for chroot user-mode (no dynamic loading is possible because paths would be frubbed):
# sudo apt-get install qemu-user-static
Then I removed the raspbian sdcard from the raspberrypi, and mounted it using my laptop sdcard reader @ /media/disk. It is necessary to copy this file to the /usr/bin of the tree to be chrooted:
# cp /usr/bin/qemu-arm-static /media/disk/usr/bin
Then
# chroot /media/disk
I was able to reset my password successfully, and I notice I can also use the chroot to build (e.g. xbmc) for arm using my laptop, which, even if its user-mode emulated arm, should still be faster per core, and I can build multi-core. That was easier than I thought it would be!

Monday, March 26, 2012

Install XBMC PPA on Ubuntu

The XBMC version 11.0 is released and available from the team-xbmc PPA for Ubuntu (tested for Ubuntu 11.10)

sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt-get update
sudo apt-get install xbmc

After install, here's how I got my environment set up:

  • Setup -> Skin -> Subtitles Addon -> Install XBMC Subtitles Addon

Tuesday, February 14, 2012

Kubuntu OpenConnect VPN (AnyConnect) with GNOME nm-applet

The network manager in Kubuntu 11.10 still does not support OpenConnect

Basically I followed this BLOG post.

But with slight variation for Kubuntu 11.10

I used synaptic to simultaneously uninstall  plasma-widget-networkmanager
and install "network-manager-gnome openconnect network-manager-openconnect network-manager-openconnect-gnome" packages.

Then added nm-applet to Autostart as follows:

$ grep -v NotShowIn /etc/xdg/autostart/nm-applet.desktop > ~/.config/autostart/nm-applet.desktop

K->search-> "Autostart" ... enable "nm-applet"

Wireless was strangely not connecting after selecting a SSID.  It turns out one also needs to install the "gnome-keyring" package ...

Wednesday, November 30, 2011

Webbrowser privacy notes

AdBlock plus -> can be built from source

Current version I'm using:
hg up -r 1.3.10
http://adblockplus.org/en/source

Lists:

General settings:

  • Flash block
  • Disable password saving

Tuesday, September 13, 2011

find & grep

Find all files which have the name "BlueConfig" and contain "AllCompartments"

find . -name BlueConfig -exec grep -Hn AllCompartments {} \;

Sunday, August 14, 2011

Firewall testing for Linux

Evaluated two GUI to nmap: Zenmap and Knmap.

Nmap ("Network Mapper") is a utility for network exploration or security auditing. It supports ping scanning (determine which hosts are up), many port scanning techniques, version detection, and TCP/IP fingerprinting.

Zenmap (this was my favourite)

Zenmap is an Nmap frontend. It is meant to be useful for advanced users and to make Nmap easy to use by beginners. It was originally derived from Umit, an Nmap GUI created as part of the Google Summer of Code.

Install:

$ sudo apt-get install zenmap

Knmap

Knmap is a KDE-based interface to the 'nmap' facility available at http://www.insecure.org/nmap.

The main Knmap window provides for the entry of nmap options and the display of nmap-generated output.

$ sudo apt-get install knmap