воскресенье, 9 февраля 2014 г.

Install nginx on Ubuntu 12.04 LTS

List of actions (taken from nginx: Linux packages):
  • wget http://nginx.org/keys/nginx_signing.key
  • sudo apt-key add nginx_signing.key
  • Add following lines to the file /etc/apt/sources.list:
    deb http://nginx.org/packages/ubuntu/ codename nginx
    deb-src http://nginx.org/packages/ubuntu/ codename nginx
  • sudo apt-get update
  • sudo apt-get install nginx

вторник, 19 ноября 2013 г.

How to change Ubuntu Server timezone

Here is a link to fine post How to set the timezone on Ubuntu Server. Here I just briefly repeat main steps:
  • Check you local timezone with command more
    /etc/timezone
  • If timezone is incorrect the type command
    sudo dpkg-reconfigure tzdata
    and follow screen instructions.
  • If necessary restart cron (if any cron jobs are scheduled)
    /etc/init.d/cron stop
    /etc/init.d/cron start
    

понедельник, 18 ноября 2013 г.

Install python-software-properties pn Hetzner

wget http://mirror.hetzner.de/ubuntu/packages/pool/main/s/software-properties/python-software-properties_0.82.7.7_all.deb


sudo dpkg -i python-software-properties_0.82.7.7_all.deb

понедельник, 30 сентября 2013 г.

Quick tip: Create MySQL database, add user and access rights

Quick tip: Create MySQL database, add user and access rights
 
  CREATE DATABASE `mydb` CHARSET utf8 COLLATE utf8_general_ci;
  GRANT USAGE ON *.* TO 'webapp'@'localhost' IDENTIFIED BY 'SecretP@ssw0rd';
  GRANT ALL PRIVILEGES ON `mydb`.* TO 'webapp'@'localhost';
  flush privileges;
  SHOW GRANTS FOR webapp@localhost;

вторник, 24 сентября 2013 г.

Install Java7 on Ubuntu 12.04 LTS

Install Java7 on Ubuntu 12.04 LTS.

Just console commands:

  sudo aptitude install python-software-properties

  sudo apt-add-repository ppa:webupd8team/java

  sudo apt-get update

  sudo apt-get install oracle-java7-installer
See more: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html