apt-get install postfixnano /etc/postfix/main.cnf
change the following
mydestination = mydomain.com, localhost.mydomain.com, localhost
to
mydestination = localhost.mydomain.com, localhostReboot the server. Done!
Thanks Gyaan Sutra
apt-get install postfixnano /etc/postfix/main.cnf
mydestination = mydomain.com, localhost.mydomain.com, localhost
to
mydestination = localhost.mydomain.com, localhostReboot the server. Done!
There you have it! Python 2.5.5 is installed. Now if you want to run it, you can type python2.5 from the terminal.sudo apt-get install build-essential gcc cd Downloads wget http://www.python.org/ftp/python/2.5.5/Python-2.5.5.tgz tar -xvzf Python-2.5.5.tgz cd Python-2.5.5 ./configure --prefix=/usr/local/python2.5 make make test sudo make install sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5
sudo apt-get install python-setuptools
We need to use sudo here because it has to install to a global location. Don’t worry, this is the last time we’ll need to do something as root.sudo easy_install virtualenv
In this instance I’ve chosen venv as the name for my virtual environment. The —no-site-packages command tells virtualenv not to symlink the global site packages into my local environment, just take the Python standard library. This is important, because it helps us avoid the dependency difficulties mentioned above.virtualenv --no-site-packages venv
echo "venv" >> .gitignore
And it’s done. easy. You might also want to install the MySQL bindings and IPython for ease of use:./venv/bin/easy_install django
To start a new Django project, you’ll note that a django-admin.py file will have been installed for you in the environment:./venv/bin/easy_install ipython python-mysql
Obviously you can skip this step if you have an existing Django project../venv/bin/django-admin.py startproject myapp
cd myapp
../venv/bin/python manage.py runserver 0.0.0.0:8000And you’re away!
adduser usrer1assign a passwd to user1. and then add it to sudoers. But first need to install sudo:
apt-get install sudoadd this line inside to
user1 ALL=(ALL) ALL
nano /etc/ssh/sshd_configFind this section in the file, containing the line with “PermitRootLogin” in it.
#LoginGraceTime 2mMake the line look like this to disable logging in through ssh as root.
#PermitRootLogin no
#StrictModes yes
#MaxAuthTries 6
PermitRootLogin noNow you’ll need to restart the sshd service:
/etc/init.d/ssh restartNow nobody can brute force your root login, at least.
sudo su - echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu lucid main" >> /etc/apt/sources.list apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C apt-get update apt-get install nginx
aptitude updateand install the package update-manager-core:
aptitude install update-manager-core
do-release-upgrade
add-apt-repository isn't installed by default. You have to install the python-software-properties package first.sudo apt-get install python-software-properties
Modify the config file to allow local connections:sudo apt-get install postgresql-8.4 postgresql-client-8.4 python-psycopg2
Add the line:sudo nano /etc/postgresql/8.4/main/pg_hba.conf
Save the changes to the file and restart the server.local all all md5
Set the password for the postgres user:sudo /etc/init.d/postgresql restart
Change to the postgres user:sudo passwd postgres
Create a new Database:su - postgres
Login to the postgres shell and point to our new database:createdb mydb
Now from the postgress shell create a user and give him access to the database:psql mydb
Done!mydb=> CREATE USER myuser WITH PASSWORD 'myPassword'; mydb=> GRANT ALL PRIVILEGES ON DATABASE mydb TO myuser; mydb=\q
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
wget http://www.inetbase.com/scripts/ddos/install.sh
chmod 0700 install.sh
./install.sh
nano /usr/local/ddos/ignore.ip.list
nano /usr/local/ddos/ddos.conf
iptables -L INPUT -n --line-numbers
iptables -D INPUT ((line number here))