Monthly Archives: November 2013

ajenti on Centos 6.4

I was installing ajenti on the R420 with the following commands

wget http://repo.ajenti.org/ajenti-repo-1.0-1.noarch.rpm
rpm -i ajenti-repo-1.0-1.noarch.rpm

and I got the following errors…

--> Finished Dependency Resolution
Error: Package: python-daemon-1.5.2-1.el6.noarch (ajenti)
Requires: python-lockfile
Error: Package: reconfigure-0.1.36-1.noarch (ajenti)
Requires: python-chardet
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

ssdvirtual

So, looks like that we need EPEL to have it running…
There’s a installation for CentOS 5 and another to CentOS 6… witch is yours?

cat /etc/*-release

CentOS 5.X

wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

 CentOS 6.X (tested with CentOS 6.4)

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

Edit remi.repo

sudo vi /etc/yum.repos.d/remi.repo

In [remi] change enable=0 to enable=1

name=Les RPM de remi pour Enterprise Linux $releasever - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
failovermethod=priority

Hit again! It will work!

yum install ajenti

 

You migth want to open 8000 door on your firewall.

# vi /etc/sysconfig/iptables

Add this two line to the end of the file, and save it.

-A INPUT -p udp -m state --state NEW --dport 8000 -j ACCEPT 
-A INPUT -p tcp -m state --state NEW --dport 8000 -j ACCEPT

Restart iptables

service iptables restart

ssdvirtual

You can run a Centos smoothly in a SSD hosted server for 5usd/month.

 

Ubuntu 12.04.3 LTS root password

I need to access root under my Ubuntu 12.04.3 LTS, to accomplish some in-chain commands,  but I had no idea what is/was the password….

pjrfigueiredo@pornrack:~$ sudo wget http://repo.ajenti.org/debian/key -O- | apt-key add -
[sudo] password for pjrfigueiredo: ERROR: This command can only be used by root.

This is how I easily solved it…

sudo passwd

Voilá!

 

pjrfigueiredo@pornrack:~$ sudo passwd 
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
pjrfigueiredo@pornrack:~$ su
Password: 
root@pornrack:/home/pjrfigueiredo# wget http://repo.ajenti.org/debian/key -O- | apt-key add -
--2013-11-01 23:05:56-- http://repo.ajenti.org/debian/key
Resolving repo.ajenti.org (repo.ajenti.org)... 108.161.187.129
Connecting to repo.ajenti.org (repo.ajenti.org)|108.161.187.129|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1716 (1.7K) [application/octet-stream]
Saving to: `STDOUT'100%[========================================================================================================================================>] 1,716 --.-K/s in 0.002s
2013-11-01 23:05:56 (1.01 MB/s) - written to stdout [1716/1716]
OK