Tag Archives: Minimal Install

Fixing adb “no permissions” usb error in Ubuntu

I am running a minimal Ubuntu 11.10 install–as you can see from other posts–inside a virtual box, strictly for development purposes.

I am trying to use my old Droid 1 for dev because my virtual pc has almost no ram. I got adb to detect my Droid 1 but now I’m getting this error:

dev@DevVbox:~/android-sdk-linux/platform-tools$ ./adb devices
List of devices attached
????????????   no permissions

Ok it looks like the problem is solved by creating a file in the /etc/udev/rules.d/ folder.  developer.android.com recommends 51-android.rules thus I will use that name.

In a terminal type:

sudo gedit /etc/udev/rules.d/51-android.rules

Now you need to add your device definition to this file.  My file is looking like:

SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="plugdev"

For your own device change the ATTR{idVendor}==”Your Device Number” to the device you want to use.  Find your vendor id here.

Now I make my file readable:

sudo chmod a+r /etc/udev/rules.d/51-android.rules

Next I restarted udev:

sudo service udev restart

Then I restarted adb:

dev@DevVBox:~/android-sdk-linux/platform-tools$ ./adb kill-server
dev@DevVBox:~/android-sdk-linux/platform-tools$ ./adb start-server

Then I unplugged my phone and plugged it back in. (On virtual box I had to tell it that I wanted my virtual pc to attach that device)

presto now I get:

dev@DevVBox:~/android-sdk-linux/platform-tools$ ./adb devices
List of devices attached 
0403683B0A023017	device

Other links:

http://developer.android.com/guide/developing/device.html#VendorIds  (start here)

http://www.reactivated.net/writing_udev_rules.html

http://ubuntuforums.org/showthread.php?t=168221

http://ptspts.blogspot.com/2011/10/how-to-fix-adb-no-permissions-error-on.html

 

 

 

Leave a Comment

Filed under Android Development, Ubuntu

Ubuntu – Setting up a SSH Server on a Minimal Install

On a minimal install there is no SSH server setup automatically so I’m having to add that.  Here is what I did:

SSH client is installed in the minimal (Ubuntu 11.04), but the SSH Server is not.

From the Terminal type:

sudo apt-get install openssh-server

 

That seems like all you need to do.  If you have connected to the computer previously and it is a fresh install you may run into an error regarding the Key not matching.  To fix this in Ubuntu delete the ~/.ssh/known_hosts file on the client PC.

 

https://help.ubuntu.com/10.04/serverguide/C/openssh-server.html

 

 

Leave a Comment

Filed under Ubuntu

Ubunut Minimal Install – Fixing Locale Error After Removing language-pack-en-base

I read on a low memory install site that I could save some space by removing language-pack-en-base. Great!  I did it but now I’m getting all kinds of errors on locale not configured.

To fix this problem it was rather simple from the terminal I ran:
sudo dpkg-reconfigure locales

It creates errors while reconfiguring but afterwards it seems to fix the problem.

Other links:
https://help.ubuntu.com/community/Installation/LowMemorySystems
http://www.myscienceisbetter.info/repair-perl-locale-errors-on-ubuntu-server.html

Leave a Comment

Filed under Uncategorized

Ubuntu 11.04 Minimal Install Using Openbox as Window Manager

I have been playing with minimal installs and found this to be a pretty good combination. I wanted to write down the packages to download after minimal installation, so here they are.

Make a minimal install, there are many guides on the internet.  Here is one that I found useful:

http://www.psychocats.net/ubuntu/minimal

 

Here is the quick one line command to put in the terminal:

sudo apt-get install xorg openbox obconf openbox-themes lxpanel xfe linux-sound-base alsa-base alsa-utils leafpad gksu synaptic chromium-browser nfs-kernel-server nfs-common portmap flashplugin-installer xdm readahead terminator openssh-server

Packages explained:

xorg – x.org package will install all that you need for xwindows.

openbox, obconf, openbox-themes – These three are for openbox.

lxpanel – a nice panel, task bar for those Windows users out there.  I had to add a lxpanel line to my ~/.config/openbox/autostart.sh file for it to start.  I also noticed it will add programs automatically to the menu, which the default openbox menu system does not.

xfe – a simple file explorer.  I may want to change this but for now I like it.

linux-sound-base alsa-base alsa-utils – sound drivers and utilities

leafpad – simple text editor

gksu – Graphical sudo (for usage with things like synaptic in xwindows)

synaptic – Package installer for xwindows

chromium-browser – Chrome, my browser of choice.  Mainly because I can avoid gnome files this way.

nfs-kernel-server nfs-common portmap – nfs file sharing for Ubuntu.  I’m creating a file server so I want this.  You don’t have to install unless you want it.

flashplugin-install – this is the flash plugin.  For some reason they have three of these packages, this one will download from adobe the current one.

xdm – a simple login manager, it is nice.  I like it better than slim.

readahead – supposed to make booting faster.

terminator – had to find a better terminal this one has copy and paste with right click, game on!

openssh-server – If you want to connect to your computer remotely this is the only way to go.  Creates an ssh server so you can log in, most installs include this but minimal does not.

Since you are using Openbox it is convieniet to copy the menu.xml to you ~/.config/openbox/ directory:

from the terminal:

cp /etc/xdg/openbox/menu.xml ~/.config/openbox/

You also may want to copy the autostart.sh and add anything (like lxpanel) you want to have started upon bootup.

cp /etc/xdg/openbox/autostart.sh ~/.config/openbox/

Good luck!

Other Links:

https://help.ubuntu.com/community/Installation/LowMemorySystems

 

Leave a Comment

Filed under Ubuntu