Reply
Thread Tools
Posts: 57 | Thanked: 9 times | Joined on Nov 2009 @ Glasgow, Scotland
#1
Hi all its been a while.

Possible noob problem here, but im taking the risk, I don't want to break anything!

I'm fairly new at linux, I had been using MADDE very successfully when i was running ubuntu 9.10 straight from HD on my PC

I was just running through some simple things using Qt and sending them to the device, familiarizing myself as I've not used C++ for about a million years.

I have upgraded my PC however, and as I'm a game-a-holic, have windows running now, with VMware running Ubuntu.

Code:
neil@neil-desktop:~$ mad-admin create fin -a 192.168.2.100
mkdir: cannot create directory `/home/neil/.madde/0.5/runtimes': Permission denied
Creating runtime fin with address 192.168.2.100 failed

I checked permissions and apparrently owner of "/home/neil/.madde/" (amongst other things madde needs) has been created by root, thus root is owner and i'm guessing the mad-admin command can't access it.

I've tried:
Code:
neil@neil-desktop:~$ sudo mad-admin create fin -a 192.168.2.100
[sudo] password for neil: 
sudo: mad-admin: command not found
This of course is my fault (i cant remember using sudo to install it )

So I guess the question is, how do I fix this?

Delete everything MADDE related and reinstall?

Or would i be able to just reinstall madde over the top of everything? I'm guessing i need root permission to overwrite the dirs/files and the same thing would happen..

possibly chown everything to myself?

Any helps appreciated.

Last edited by finlaybob; 2010-01-07 at 19:58.
 
Posts: 434 | Thanked: 325 times | Joined on Sep 2009
#2
Originally Posted by finlaybob View Post
I have upgraded my PC however, and as I'm a game-a-holic, have windows running now, with VMware running Ubuntu.
If I understood correctly, you are running a Windows PC now. If this is the case, why don't you run MADDE straight from Windows?
 

The Following User Says Thank You to Sasler For This Useful Post:
Posts: 57 | Thanked: 9 times | Joined on Nov 2009 @ Glasgow, Scotland
#3
Originally Posted by Sasler View Post
If I understood correctly, you are running a Windows PC now. If this is the case, why don't you run MADDE straight in Windows?
I couldnt get it working as seamlessly as linux while using windows last time around, also the SDK itself wont run

However, that is an awesome plan! Dunno why i didnt think of that

Gonna download now
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#4
Code:
sudo chown -R neil: /home/neil/.madde
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 

The Following User Says Thank You to fatalsaint For This Useful Post:
Posts: 10 | Thanked: 2 times | Joined on Jan 2010
#5
The command not found looks like a PATH issue when your sudo gets its root shell. Updating the root profile /root/.bash_profile to set the PATH variable would fix that. Also, giving an absolute path to mad-admin in the sudo command would work as well.

PATH=/home/neil/bin:$PATH;export PATH

My vote would be to fix the permissions. You can do that with a recurisve chown(chown -R neil /home/neil)
 

The Following User Says Thank You to ansoni For This Useful Post:
Posts: 57 | Thanked: 9 times | Joined on Nov 2009 @ Glasgow, Scotland
#6
Thanks guys, i love the fact its taken just over half an hour to fix this

i did

Code:
sudo chown -R neil /home/neil/.madde
Code:
neil@neil-desktop:~$ mad-admin create fin -a 192.168.2.100
Device runtime 'fin' initialized!


it appears to be working fine now

As I said i wasnt sure if i could do that without breaking anything etc., it seems to be okay thus far.

Thanks again!
 

The Following User Says Thank You to finlaybob For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:24.