aptitude updateand install the package update-manager-core:
aptitude install update-manager-core
do-release-upgrade
More details in howtoforge
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))
cat access.log | awk '{print $1}' | sort | uniq -c | sort -n
tar -cvjf site.tar.bz2 /path/to/site
tar -xjvf site.tar.bz2
mysqldump -u username -p databasename > /path/to/dumpfile.sql
tar -xjvf dumpfile.sql.tar.bz2 /path/to/dumpfile.sql
mysql -u username -p databasename < /path/to/dumpfile.sql
easy_install virtualenv
mkdir ~/djenv
virtualenv ~/djenv/env1
source ~/djenv/env1/bin/activate
pip install Django
mkdir -p ~/sites
cd ~/sites
django-admin.py startproject proj1
deactivate env1
ffmpeg -i input.flv -ss hh:mm:ss -t hh:mm:ss output.flv
#! /bin/bash
cd /var/www/drupal
chown -R drupmin:www-data .
find . -type d -exec chmod u=rwx,g=rx,o= {} \;
find . -type f -exec chmod u=rw,g=r,o= {} \;
cd sites
find . -type d -name files -exec chmod ug=rwx,o= '{}' \;
find . -name files -type d -exec find '{}' -type f \; | while read FILE; do chm$
find . -name files -type d -exec find '{}' -type d \; | while read DIR; do chmo$
echo "Permission rebuildng is done!"