Download Eclipse Juno from http://www.eclipse.org/downloads/
After Downloading extract file.
make one Directory with any name mine is EclipseAndroid
Copy and Paste Extracted eclipse directory to it.
Open Eclipse
go to Help -> Install New Software
Click on Add
in Name give any Name
in site paste this url : "http://dl-ssl.google.com/android/eclipse" and click ok
it will download the ADT Plug-ins and install it.
it will ask for restarting Eclipse press No and exit Eclipse.
Now download Android SDK from
http://developer.android.com/sdk/index.html
extract the file and paste it to EclipseAndroid Directory.
Start Eclipse and go to Windows -> Prefrences and set the path of Android Sdk
it will start downloading and installing all the required plug-ins and tools for android development.
After doing all these need to set the PATH in .profile
PATH="$PATH:/path/android-sdk-linux/tools/:/path/android-sdk-linux/platform-tools"
configure android sdk,android sdk eclipse,android sdk eclipse juno,eclipse juno,configure sdk in juno in ubuntu,eclipse juno ubuntu
Tuesday, December 11, 2012
Tuesday, November 27, 2012
Generate Google Map API for ANDROID in Ubuntu
get the android default debug keystore
eclipse->windows->preferences->->Android ->Build
copy the default debug keystore value
Now go to the terminal
-- cd /
-- cd /usr/lib/jvm/java-6-openjdk/bin
-- keytool -list -alias androiddebugkey \-keystore /paste debug keystore which has been copied
after doing this you will get result like below :
androiddebugkey, 11 Jun, 2012, PrivateKeyEntry,
Certificate fingerprint (MD5): 65:13:5E:81:B6:F4:99:12:8C:0C:4A:DF:60:3B:48:B8
Wednesday, November 21, 2012
Install GIT on CentOS/RedHat
first need to login as root and need to install dependencies
yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel
now
cd /usr/local/src
download the source of git using :
wget http://git-core.googlecode.com/files/git-1.7.9.tar.gz
extact file :
tar xvzf git-1.7.9.tar.gz
now into source direcotry
cd git-1.7.9
now configure a makefile using below command
./configure
compile the code using below command
make
now start installation using below
make install
after completion of installation make one directory which you want to make a git repository
for eg.
mkdir /opt/test
cd /opt/test
git init
if all will be done properly and git has been installed properly you will get message like below
Initialized empty Git repository in /opt/test/.test/
Monday, November 19, 2012
Install Subversion on CentOS/RedHat
Installation
yum install mod_dav_svn subversion
service httpd start/restart
chkconfig httpd on
Configure
Open Terminal
cd /etc/httpd/conf.d/
vi subversion.conf
uncomment the following if they are commented out
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
# Add the following to allow a basic authentication and point Apache to where the actual repository resides.
DAV svn
SVNPath /var/www/svn/repos
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
Create/Configure repository
path which you have configured in subversion.conf file.
cd /var/www/svn/
svnadmin create repos
chown -R apache.apache repos
/etc/init.d/httpd restart
For Import
svn import /test/temp file:///var/www/svn/repos/temp -m "description"
For Delete
svn delete -m --F http://192.168.1.1/svn/repos/temp/
Creat User
htpasswd -cm /etc/svn-auth-conf username
Adding password for user yourusername
htpasswd -m /etc/svn-auth-conf anotherusername
subversion,svn,svn server,svn server on cent os,svn server on redhat,subversion on centos,subversion on redhat,install subversion on redhat,install subversion on centos
yum install mod_dav_svn subversion
service httpd start/restart
chkconfig httpd on
Configure
Open Terminal
cd /etc/httpd/conf.d/
vi subversion.conf
uncomment the following if they are commented out
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
# Add the following to allow a basic authentication and point Apache to where the actual repository resides.
DAV svn
SVNPath /var/www/svn/repos
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
Create/Configure repository
path which you have configured in subversion.conf file.
cd /var/www/svn/
svnadmin create repos
chown -R apache.apache repos
/etc/init.d/httpd restart
For Import
svn import /test/temp file:///var/www/svn/repos/temp -m "description"
For Delete
svn delete -m --F http://192.168.1.1/svn/repos/temp/
Creat User
htpasswd -cm /etc/svn-auth-conf username
Adding password for user yourusername
htpasswd -m /etc/svn-auth-conf anotherusername
Friday, November 9, 2012
samba access log
first configure samba server and create samba share directory and samba users.
Now open the file /etc/samba/smb.conf
find the [global] and add below lines
# Audit settings
full_audit:prefix = %u|%I|%S
full_audit:failure = connect
full_audit:success = connect disconnect opendir mkdir rmdir closedir open close read pread write pwrite sendfile rename unlink chmod
fchmod chown fchown chdir ftruncate lock symlink readlink link mknod realpath
full_audit:facility = local7
full_audit:priority = notice
after adding lines, i have created samba user 'test',find [test] in smb.conf and add below lines:
vfs objects = full_audit
full_audit:prefix = %u|%I|%m|%s
full_audit:success = mkdir rename unlink rmdir open pwrite
full_audit:failure = none
now save the file smb.conf and open file /etc/syslog.conf and add below lines at the end of the file
filter f_local5 {facility(local7);};
destination m_samba_audit { file("/var/log/samba/audit.log"); };
log { source(src); filter(f_local7);destination(m_samba_audit); flags(final); };
and save it.
now restart the services:
/etc/init.d/smb restart
/etc/init.d/syslog restart
Now access samba directory from client machine and make some changes in that directory like creating new directory,change the name of directory etc.
after doing this open the file /var/log/samba/log.audit
it will contain all the activity logs done by the user with username, ip address of client machine and what activities user has done.
[NOTE]
if you don'f find /var/log/samba/log.audit file than once create a log.audit file manually.
samba logs,samba,samba access,samba access logs
Now open the file /etc/samba/smb.conf
find the [global] and add below lines
# Audit settings
full_audit:prefix = %u|%I|%S
full_audit:failure = connect
full_audit:success = connect disconnect opendir mkdir rmdir closedir open close read pread write pwrite sendfile rename unlink chmod
fchmod chown fchown chdir ftruncate lock symlink readlink link mknod realpath
full_audit:facility = local7
full_audit:priority = notice
after adding lines, i have created samba user 'test',find [test] in smb.conf and add below lines:
vfs objects = full_audit
full_audit:prefix = %u|%I|%m|%s
full_audit:success = mkdir rename unlink rmdir open pwrite
full_audit:failure = none
now save the file smb.conf and open file /etc/syslog.conf and add below lines at the end of the file
filter f_local5 {facility(local7);};
destination m_samba_audit { file("/var/log/samba/audit.log"); };
log { source(src); filter(f_local7);destination(m_samba_audit); flags(final); };
and save it.
now restart the services:
/etc/init.d/smb restart
/etc/init.d/syslog restart
Now access samba directory from client machine and make some changes in that directory like creating new directory,change the name of directory etc.
after doing this open the file /var/log/samba/log.audit
it will contain all the activity logs done by the user with username, ip address of client machine and what activities user has done.
[NOTE]
if you don'f find /var/log/samba/log.audit file than once create a log.audit file manually.
Thursday, November 8, 2012
Install Ruby and Rails on CentOS
Download Ruby from http://www.ruby-lang.org/en/downloads/
extract it :
tar xzvf ruby-1.9.2-p0.tar.gz
install dependacies using :
yum install zlib zlib-devel
Now Install Ruby:
cd ruby-1.9.2-p0
./configure
make install
Install Rails :
gem install rails
install ror,install ror centos,install ror redhat,ror,ruby on rails,install ruby on rails,install ruby on rails centos,install ruby on rails redhat,configure ruby on rails,configure ruby on rails centos,configure ruby on rails redhat
extract it :
tar xzvf ruby-1.9.2-p0.tar.gz
install dependacies using :
yum install zlib zlib-devel
Now Install Ruby:
cd ruby-1.9.2-p0
./configure
make install
Install Rails :
gem install rails
Tuesday, November 6, 2012
How to upgrade MySQL 5.* to 5.5 in CentOS & RedHat
For RedHat/CentOS 5
## Remi Dependency on CentOS 5 and Red Hat (RHEL) 5 ##
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
## CentOS 5 and Red Hat (RHEL) 5 ##
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
For RedHat/CentOS 6
## Remi Dependency on CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
## CentOS 6 and Red Hat (RHEL) 6 ##
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Enable Repository
yum --enablerepo=remi,remi-test list mysql mysql-server
Install/Update
yum --enablerepo=remi,remi-test install mysql mysql-server
Subscribe to:
Posts (Atom)