$ sudo vim /etc/mysql/my.cnf ### edit my.cnf ### set bind address and comment out or remove skip-networking (if exists) [mysqld] ... bind-address=SERVER-EXTERNAL-IP # skip-networking $ /etc/init.d/mysql restart
Now it works.
$ sudo vim /etc/mysql/my.cnf ### edit my.cnf ### set bind address and comment out or remove skip-networking (if exists) [mysqld] ... bind-address=SERVER-EXTERNAL-IP # skip-networking $ /etc/init.d/mysql restart
Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest' failed.it means you don't have mod_wsgi module installed.
sudo apt-get install libapache2-mod-wsgi sudo a2enmod mod-wsgi sudo /etc/init.d/apache2 restart
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").locale-gen en_US.UTF-8 dpkg-reconfigure locales
sudo port install rabbitmq-server
sudo apt-get install rabbitmq-server
rabbitmqctl add_user username password rabbitmqctl add_vhost /vhost rabbitmqctl set_permissions -p /vhost username ".*" ".*" ".*"
$ ./manage.py celeryd -l info
[2012-02-01 01:16:45,779: ERROR/MainProcess] Unrecoverable error: OSError(38, 'Function not implemented')
Traceback (most recent call last):
File "/var/www/th4x/.env/lib/python2.7/site-packages/celery/worker/__init__.py", line 268, in start
component.start()
File "/var/www/th4x/.env/lib/python2.7/site-packages/celery/concurrency/base.py", line 72, in start
self.on_start()
File "/var/www/th4x/.env/lib/python2.7/site-packages/celery/concurrency/processes/__init__.py", line 43, in on_start
self._pool = self.Pool(processes=self.limit, **self.options)
File "/var/www/th4x/.env/lib/python2.7/site-packages/celery/concurrency/processes/pool.py", line 520, in __init__
self._setup_queues()
File "/var/www/th4x/.env/lib/python2.7/site-packages/celery/concurrency/processes/pool.py", line 695, in _setup_queues
self._inqueue = SimpleQueue()
File "/usr/lib/python2.7/multiprocessing/queues.py", line 354, in __init__
self._rlock = Lock()
File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 147, in __init__
SemLock.__init__(self, SEMAPHORE, 1, 1)
File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 75, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 38] Function not implemented
[2012-02-01 01:16:45,780: INFO/MainProcess] process shutting down$ sudo -i # get root $ mkdir /dev/shm
tmpfs /dev/shm tmpfs defaults,noexec,nosuid 0 0
$ mount -aThere should be no errors.
$ ./manage.py celeryd -l info
sudo easy_install pip virtualenv
sudo pip install virtualenvwrapper
mkdir ~/projects/.envs
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python export WORKON_HOME=~/projects/.envs export PROJECT_HOME=~/projects source /usr/local/bin/virtualenvwrapper.sh
source ~/.bashrc
mkvirtualenv test workon testNow you're in the 'test' environment. To install new packages you can use, for instance, pip.
sudo add-apt-repository ppa:fkrull/deadsnakes sudo apt-get update sudo apt-get install python2.5
cd /tmp wget http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c11-py2.5.egg sh setuptools-0.6c11-py2.5.egg
easy_install-2.5 django==1.1.1
echo "#!/bin/bash python2.5 ../google_appengine/dev_appserver.py ./" > run chmod a+x run
cd ~/projects/gae/google_appengine/test/ ./run
$ sudo apt-get install flashplugin-installer $ sudo locate libflashplayer.so /usr/lib/flashplugin-installer/libflashplayer.so /usr/share/ubufox/plugins/npwrapper.libflashplayer.so /var/lib/flashplugin-installer/npwrapper.libflashplayer.so $ ln -s libflashplayer.so /usr/lib/flashplugin-installer/libflashplayer.so
sudo apt-get purge evolution-data-server evolution-couchdb evolution evolution-exchangeThat's all. After this you are avoided such unpleasant behavior.
Some audio and video formats are not included into Ubuntu by default. And to enable them in your system you must do it by your own.
export GDK_NATIVE_WINDOWS=1so, the content in this file become
#!/bin/sh TARGET_OS=linux TARGET_ARCH=i386 export GDK_NATIVE_WINDOWS=1 . /usr/lib/nspluginwrapper/noarch/npviewerRestart browser and that's all.
ubuntu@ubuntu:~$ sudo fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x14311431 Device Boot Start End Blocks Id System /dev/sda1 * 1 29089 233657361 7 HPFS/NTFS /dev/sda2 29090 32129 24418800 83 Linux /dev/sda3 60304 60801 4000185 82 Linux swap / Solaris /dev/sda4 32130 60303 226307655 83 Linux Partition table entries are not in disk order ubuntu@ubuntu:~$ sudo mount /dev/sda2 /mnt ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt/ /dev/sdaInstallation finished. No error reported.
apt-get remove xorg-driver-fglrx fglrx fglrx-amdcccle dpkg-divert --remove /usr/lib/xorg/modules/extensions/libdri.so dpkg-divert --remove /usr/lib/xorg/modules/extensions/libglx.so apt-get install fglrx
### Handy Extract Program
extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*) echo "'$1' cannot be extracted via >extract<" ;;
esac
else
echo "'$1' is not a valid file"
fi
}
Поместить в ~/.bashrc или profilesudo ifconfig eth0:[0-254] 192.168.1.2 up.eth0 you can use any of existing interfaces
To get work Django and Oracle client in Ubuntu:
Download cx_Oracle (choose for your system), Oracle InstantClient and Sql*Plus (in this page you can choose your OS and download the packages (in my case are oracle-instantclient11.2-basic-11.2.0.0.2-1.x86_64.rpm and oracle-instantclient11.2-sqlplus-11.2.0.0.2-1.x86_64.rpm).
Move the files into one directory for simplicity and run
alien -k *.rpm dpkg -i *.debto convert all the downloaded packages to ubuntu deb-format and install them.
Then make symlink to lib, otherwise module won't be found by Django
cd /usr/lib/python2.6 ln -s site-packages/cx_Oracle.so
To avoid
Traceback (most recent call last): File "add to ~/.bashrc (or /etc/bash.bashrc to system-wide apply)", line 1, in ImportError: libclntsh.so.10.1: cannot open shared object file: No such file or directory
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/oracle/11.2/client64/libIf you see the message
Traceback (most recent call last): File "run", line 1, in ImportError: libaio.so.1: cannot open shared object file: No such file or directory
sudo apt-get install -y libaio1
P.S. If you choose more modern (or older) version of Oracle IntstantClient you have to create symlinks for necessary version, e.g. you see the following error:
Traceback (most recent call last): File "but in /usr/lib/oracle/11.2/client64/lib directory exists libclntsh.so.11.1. Just make it symbolic link with", line 1, in ImportError: libclntsh.so.10.1: cannot open shared object file: No such file or directory
ln -s libclntsh.so.11.1 libclntsh.so.10.1
sudo apt-get install alien
alient -k <package-file>.rpm
dpkg -i <package-file>.deb