installation of openemm

Asked by Raghu natrajan

I am trying to install openemm in ubuntu10.10, but find some difficulties.
1]u@ubuntu:~$ apt-get install sendmail mysql-server python-mysqldb
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?
raghu@ubuntu:~$

2]raghu@ubuntu:~$ groupadd openemm
groupadd: cannot lock /etc/group; try again later.
raghu@ubuntu:~$
3]raghu@ubuntu:~$ apt-get install sun-java6-jdk
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?
raghu@ubuntu:~$
4]What will be my "localhost:8080" and "hostname" name and how to find it?
5]How to copy the downloaded file into /temp directory?

Let me know how to overcome these.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu wine Edit question
Assignee:
No assignee Edit question
Solved by:
Christian Dannie Storgaard
Solved:
Last query:
Last reply:
Revision history for this message
Best Christian Dannie Storgaard (cybolic) said :
#1

As the error message says: "Are you root?"

In order to edit system files or install software, you need to have root (also known as administrator in other systems) access.
To get this, prepend your commands with "sudo", so your given commands become:

sudo apt-get install sendmail mysql-server python-mysqldb
sudo groupadd openemm
sudo apt-get install sun-java6-jdk

Your hostname is the name you set for the machine during installation. To see it again, type:
cat /etc/hostname

There is no /temp directory, but there is a /tmp directory. To copy files in to it, simply do this:
cp -r WHATEVER/YOU/WANT/TO/COPY /tmp/
The -r means recursively, that is, copying directories as well.

If you want to know more about how a command works, you can type:
man COMMAND
e.g.
man cp

Also, in the future please restrict yourself to one question at a time

Revision history for this message
Raghu natrajan (swathisnr) said :
#2

Thanks Christian Dannie Storgaard, that solved my question.