LinuxMCE Forums
June 19, 2013, 08:15:42 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: attempted wiimote install, Could not open lock file  (Read 940 times)
Todd
Regular Poster
**
Posts: 35


View Profile
« on: August 20, 2008, 03:37:59 am »

I am attempting to install the wiimote.  I have used Putty on my windows machine that is connected directly to my hybrid/core to use ssh.  When I try to do the first step I get the following:

login as: linuxmce
linuxmce@192.168.80.1's password:
Linux dcerouter 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Last login: Tue Aug 19 06:05:00 2008 from 192.168.0.199
linuxmce@dcerouter:~$ apt-get install libcwiid0
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
linuxmce@dcerouter:~$

I thought linuxmce was root but the error message indicates maybe not?
What do I need to do to correct the above?
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #1 on: August 20, 2008, 05:49:53 am »

No, you have to enable root level access by using an su command of some kind. There are many variations depending on what you want to do, however for a single command like this, you would use sudo, so:

sudo apt-get install libcwiid0

then type in the linxumce password
Logged
Todd
Regular Poster
**
Posts: 35


View Profile
« Reply #2 on: August 20, 2008, 12:24:48 pm »

Thanks colinjones, I can get sudo to take me a ways in the install, but I get a permission denied when I try:

Quote
linuxmce@dcerouter:~$ sudo echo "uinput" >>/etc/modules
-bash: /etc/modules: Permission denied
linuxmce@dcerouter:~$

I tried to use su, but I couldn't get the password to work.  I tried my linuxmce password, blank, "linuxmce", and my first user password, but it always came back:
Quote
Authentication failure
Sorry.
linuxmce@dcerouter:~$

I don't remember putting in any other passwords.

What should the password be to get su access?
I assume I need it to get the above echo command to work, if not what do I need to do to get the echo command to work?

Sorry for all these linux newbie questions..
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #3 on: August 20, 2008, 02:01:50 pm »

Sorry, can't really help you - you need someone who knows the Wii. What you have posted seems to suggest that it is trying to append some text, but it looks like it is trying to append it to a directory rather than a file, so no idea what's going on there!
Logged
Zaerc
Alumni
LinuxMCE God
*
Posts: 2256


Department of Redundancy Department.


View Profile
« Reply #4 on: August 20, 2008, 02:59:22 pm »

Try becoming root with
Code:
sudo su -
first, then execute the commands without sudo in front of them.
Logged

"Change is inevitable. Progress is optional."
-- Anonymous

Todd
Regular Poster
**
Posts: 35


View Profile
« Reply #5 on: August 20, 2008, 04:11:37 pm »

Thanks Zaerc, that worked. Grin
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!