After migrating my VMs onto new hosts. failed to restart VM box
“on the Network: Adapter 1 page , no host-only network adapter is selected”
Solved:
–>”You can add new adapter at File – Preferences – Network.”
Quote:
Beyond The Data
After migrating my VMs onto new hosts. failed to restart VM box
“on the Network: Adapter 1 page , no host-only network adapter is selected”
Solved:
–>”You can add new adapter at File – Preferences – Network.”
Quote:
OS: Fedora 15.
Well this os is currently out of support and, which was shipped as experimental on systemd.
I can see following messages in /var/log/message and system cannot access X.
1 2 3 4 5 6 7 8 9 10 11 12 |
Jan 6 10:37:54 suse dbus-daemon: [system] Activating via systemd: service name='org.freedesktop.ConsoleKit' unit='console-kit-daemon.service' Jan 6 10:37:54 suse dbus-daemon: [system] Activation via systemd failed for unit 'console-kit-daemon.service': Unit console-kit-daemon.service failed to load: Not a directory. See system logs and 'systemctl status console-kit-daemon.service' for details. Jan 6 10:37:54 suse pulseaudio[1560]: module-console-kit.c: GetSessionsForUnixUser() call failed: org.freedesktop.systemd1.LoadFailed: Unit console-kit-daemon.service failed to load: Not a directory. See system logs and 'systemctl status console-kit-daemon.service' for details. Jan 6 10:37:54 suse pulseaudio[1560]: module.c: Failed to load module "module-console-kit" (argument: ""): initialization failed. Jan 6 10:37:54 suse pulseaudio[1560]: main.c: Module load failed. Jan 6 10:37:54 suse pulseaudio[1560]: main.c: 后台程序初始化失败。 Jan 6 10:37:54 suse pulseaudio[1558]: main.c: 后台程序启动失败。 Jan 6 10:37:54 suse gnome-session[1540]: WARNING: Failed to start app: Unable to start application: 执行子进程“gnome-power-manager”失败(权限不够) Jan 6 10:37:54 suse dbus-daemon: [system] Activating via systemd: service name='org.freedesktop.ConsoleKit' unit='console-kit-daemon.service' Jan 6 10:37:54 suse dbus-daemon: [system] Activation via systemd failed for unit 'console-kit-daemon.service': Unit console-kit-daemon.service failed to load: Not a directory. See system logs and 'systemctl status console-kit-daemon.service' for details. Jan 6 10:37:54 suse dbus-daemon: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' Jan 6 10:37:54 suse dbus-daemon: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Unit rtkit-daemon.service failed to load: Not a directory. See system logs and 'systemctl status rtkit-daemon.service' for details. |
Actually nothing helpful is found. but the msg:”Not a directory”
after a few checks… I found the path “/usr/lib/systemd/system/” is removed, just a file “/usr/lib/systemd/system” there.
the fix is to change the file backto an empty folder.
###
well about F15, this folder itself is empty but, it should not be removed
otherwise, you cannot see the login session/window.
Following is a step to install Mongo-php-driver and rockmongo on EL5.6 box.
steps please find the reference.
My working configure:
php-devel-5.1.6-39.el5_8
mongo-php-driver: mongo-1.2.0
rockmongo-1.1.5
httpd-2.2.3-65.0.1.el5_8.3
1. install the pkgs.
1 |
yum install php-devel git gcc make |
on my yum-server, I dont have git prepared. so have to manually inst…
1 2 3 4 |
$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.6 (Tikanga) $ uname -a Linux 2.6.18-238.0.0.0.1.el5 #1 SMP Tue Jan 4 09:29:38 EST 2011 x86_64 |
find related packages here, and install
ftp://fr2.rpmfind.net/linux/epel/5/x86_64
1 2 3 4 5 |
$ ls *rpm git-1.8.2.1-1.el5.x86_64.rpm perl-Git-1.8.2.1-1.el5.x86_64.rpm perl-Error-0.17010-1.el5.noarch.rpm perl-TermReadKey-2.30-4.el5.x86_64.rpm |
2. git install mongo-php-driver. as the git repo is up2date and the box is old.
I choose to pickup the driver pkg here:
http://pecl.php.net/get/mongo-1.2.0.tgz
install the mongo.so library.
3. edit php.conf and enable the mongo.so as extension.
4. during httpd start. hit bug#669963
httpd server cannot startup and report error in /var/log/httpd/error_log
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
[Fri Nov 15 06:57:21 2013] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias. [Fri Nov 15 06:57:21 2013] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED [Fri Nov 15 06:57:21 2013] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias. [Fri Nov 15 06:57:21 2013] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED [Fri Nov 15 06:57:21 2013] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias. [Fri Nov 15 06:57:21 2013] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED [Fri Nov 15 06:57:21 2013] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias. [Fri Nov 15 06:57:21 2013] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED [Fri Nov 15 06:57:21 2013] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias. [Fri Nov 15 06:57:21 2013] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED [Fri Nov 15 06:57:21 2013] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias. [Fri Nov 15 06:57:21 2013] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED [Fri Nov 15 06:57:22 2013] [notice] child pid 5169 exit signal Segmentation fault (11) [Fri Nov 15 06:57:22 2013] [notice] child pid 5171 exit signal Segmentation fault (11) [Fri Nov 15 06:57:22 2013] [notice] child pid 5172 exit signal Segmentation fault (11) [Fri Nov 15 06:57:22 2013] [notice] child pid 5173 exit signal Segmentation fault (11) [Fri Nov 15 06:57:22 2013] [notice] child pid 5174 exit signal Segmentation fault (11) [Fri Nov 15 06:57:22 2013] [notice] child pid 5175 exit signal Segmentation fault (11) |
bug content as described here :
w/r:
1 2 |
# chmod 640 /etc/httpd/alias/*.db # chgrp apache /etc/httpd/alias/*.db |
5. download rockmongo and unzip in http html folder. works
Reference:
1 |
<a href="http://jmchung.github.io/blog/2013/05/22/install-rockmongo-for-mongodb-on-centos/" target="_blank">Install RockMongo for Mongodb on CentOS</a> |
1 |
<a href="http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.6#head-60758eb5ab66c94f98fda0383fa8c7a8b97b9c53" target="_blank">CentOS 5.6 Release Notes</a> |
先写几个中文字, 主题无关,本来没必要迁的项目, 主要是被赶得只好换了服务器. 就多做了这么多的事.
Currently Bluehost doesnt support Django officially.
to support Django.
1. Using self-packaged python/Django.
Download and unzip Python in:
/home/zip/Django/Python-2.8.5
using ez_setup.py/pip to install flup/Django/MySQL-python …
2. Using existing Project: RACBDM. edit .htaccess
1 2 3 4 5 6 7 8 9 10 |
> cat .htaccess #AddHandler fastcgi-script .fcgi AddHandler fcgid-script .fcgi # For security reasons, Option followsymlinks cannot be overridden. #options +FollowSymLinks options +SymLinksIfOwnerMatch RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} !(mysite.fcgi) RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L] |
3. prepare mysite.fcgi
1 2 3 4 5 6 7 8 9 10 11 12 |
> cat mysite.fcgi #!/home/zip/Django/Python-2.8.5/bin/python #coding:utf-8 import sys, os from os.path import abspath,dirname import sys sys.path.insert(0,"/home/zip/Django/Python-2.8.5") sys.path.insert(0,"/home/zip/www/RACBDM") os.environ['DJANGO_SETTINGS_MODULE'] = "RACBDM.settings" from django.core.servers.fastcgi import runfastcgi runfastcgi(method="threaded", daemonize="false") |
4. ensure the mysql related configuration: <RACBDM.settings>
1 2 3 4 5 6 7 8 9 10 11 |
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'testjob_365', # The following settings are not used with sqlite3: 'USER': 'testjob_365', 'PASSWORD': '456sZfscc.98', 'HOST': '', 'PORT': '', } } |
5. confirm the template_dirs setting:
1 2 3 |
TEMPLATE_DIRS = ( '/home/zip/www/RACBDM/templates9', ) |
6. While migrating, it’s a good practice to enable DEBUG mode:
1 |
DEBUG = True |
7. Mysql related:
1 2 3 4 5 |
#on old node: > mysqldump -u asmcanet_racbdm -p asmcanet_RACBDM >~/zip0/racbdm.sql #on new node: > mysql -u testjob_365 -D asmcanet_RACBDM -p <~/backup/racbdm.sql |
8. mention that the dump script will not take care the View create status, if you have tables/views. please double check.
Im still using Fedora 15 for my workstation.
It’s totally out of support since …ago. Yum always fail.
Im trying to install gdal:
1 2 3 4 5 6 7 |
[root@suse suse]# yum provides */ogr2ogr ... ... gdal-1.7.3-14.fc15.i686 : GIS file format library Repo : updates 匹配来自于: Filename : /usr/bin/ogr2ogr |
but installation is not so smoothly togo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
[root@suse suse]# yum install gdal ... ... 依赖关系解决 ================================================================================ 软件包 架构 版本 仓库 大小 ================================================================================ 正在安装: gdal i686 1.7.3-14.fc15 updates 3.0 M 为依赖而安装: cfitsio i686 3.250-6.fc15 fedora 525 k geos i686 3.2.1-3.fc14 fedora 468 k hdf5 i686 1.8.5.patch1-10.fc15 updates 1.2 M libdap i686 3.11.0-3.fc15 updates 396 k libgeotiff i686 1.2.5-6.fc15 fedora 536 k librx i686 1.5-15.fc15 fedora 31 k netcdf i686 4.1.1-6.fc15 updates 4.4 M ogdi i686 3.2.0-0.15.beta2.fc15 fedora 230 k proj i686 4.7.0-4.fc15 fedora 151 k xerces-c i686 3.0.1-21.fc15 fedora 883 k 事务概要 ================================================================================ Install 11 Package(s) ... 下载软件包: Setting up and reading Presto delta metadata Processing delta metadata Package(s) data still to download: 8.9 M http://download.fedoraproject.org/pub/fedora/linux/updates/15/i386/gdal-1.7.3-14.fc15.i686.rpm: [Errno 14] HTTP Error 404 - Not Found : http://ftp.riken.jp/Linux/fedora/updates/15/i386/gdal-1.7.3-14.fc15.i686.rpm 尝试其他镜像。 http://download.fedoraproject.org/pub/fedora/linux/updates/15/i386/hdf5-1.8.5.patch1-10.fc15.i686.rpm: [Errno 14] HTTP Error 404 - Not Found : http://ftp.riken.jp/Linux/fedora/updates/15/i386/hdf5-1.8.5.patch1-10.fc15.i686.rpm ... ... 下载软件包出错: netcdf-4.1.1-6.fc15.i686: failure: netcdf-4.1.1-6.fc15.i686.rpm from updates: [Errno 256] No more mirrors to try. gdal-1.7.3-14.fc15.i686: failure: gdal-1.7.3-14.fc15.i686.rpm from updates: [Errno 256] No more mirrors to try. libdap-3.11.0-3.fc15.i686: failure: libdap-3.11.0-3.fc15.i686.rpm from updates: [Errno 256] No more mirrors to try. hdf5-1.8.5.patch1-10.fc15.i686: failure: hdf5-1.8.5.patch1-10.fc15.i686.rpm from updates: [Errno 256] No more mirrors to try. |
An easy workaround is google/rpmpbone
google “netcdf-4.1.1-6.fc15.i686”, it will direct to page:
http://rpm.pbone.net/index.php3/stat/4/idpl/16958906/dir/fedora_15/com/netcdf-4.1.1-6.fc15.i686.rpm.html
same options on the rest RPMs.
# finally.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
[root@suse Download]# ls hdf5-1.8.5.patch1-10.fc15.i686.rpm libdap-3.11.0-3.fc15.i686.rpm gdal-1.7.3-14.fc15.i686.rpm netcdf-4.1.1-6.fc15.i686.rpm gdal-1.7.3-14.fc15.i686.rpm libdap-3.11.0-3.fc15.i686.rpm hdf5-1.8.5.patch1-10.fc15.i686.rpm netcdf-4.1.1-6.fc15.i686.rpm # following cmd will use the previous yum cache, those downloaded RPMs for the dependancies. [root@suse Download]# yum localinstall hdf5-1.8.5.patch1-10.fc15.i686.rpm libdap-3.11.0-3.fc15.i686.rpm gdal-1.7.3-14.fc15.i686.rpm netcdf-4.1.1-6.fc15.i686.rpm -y ... ... 依赖关系解决 ================================================================================ 软件包 架构 版本 仓库 大小 ================================================================================ 正在安装: gdal i686 1.7.3-14.fc15 /gdal-1.7.3-14.fc15.i686 9.5 M hdf5 i686 1.8.5.patch1-10.fc15 /hdf5-1.8.5.patch1-10.fc15.i686 6.4 M libdap i686 3.11.0-3.fc15 /libdap-3.11.0-3.fc15.i686 1.2 M netcdf i686 4.1.1-6.fc15 /netcdf-4.1.1-6.fc15.i686 14 M 为依赖而安装: cfitsio i686 3.250-6.fc15 fedora 525 k geos i686 3.2.1-3.fc14 fedora 468 k libgeotiff i686 1.2.5-6.fc15 fedora 536 k librx i686 1.5-15.fc15 fedora 31 k ogdi i686 3.2.0-0.15.beta2.fc15 fedora 230 k proj i686 4.7.0-4.fc15 fedora 151 k xerces-c i686 3.0.1-21.fc15 fedora 883 k 事务概要 ================================================================================ Install 11 Package(s) 总文件大小:34 M Installed size: 43 M 下载软件包: 运行 rpm_check_debug 执行事务测试 事务测试成功 执行事务 正在安装 : hdf5-1.8.5.patch1-10.fc15.i686 1/11 正在安装 : proj-4.7.0-4.fc15.i686 2/11 正在安装 : ogdi-3.2.0-0.15.beta2.fc15.i686 3/11 正在安装 : libgeotiff-1.2.5-6.fc15.i686 4/11 正在安装 : netcdf-4.1.1-6.fc15.i686 5/11 正在安装 : libdap-3.11.0-3.fc15.i686 6/11 正在安装 : geos-3.2.1-3.fc14.i686 7/11 正在安装 : librx-1.5-15.fc15.i686 8/11 正在安装 : cfitsio-3.250-6.fc15.i686 9/11 正在安装 : xerces-c-3.0.1-21.fc15.i686 10/11 正在安装 : gdal-1.7.3-14.fc15.i686 11/11 已安装: gdal.i686 0:1.7.3-14.fc15 hdf5.i686 0:1.8.5.patch1-10.fc15 libdap.i686 0:3.11.0-3.fc15 netcdf.i686 0:4.1.1-6.fc15 作为依赖被安装: cfitsio.i686 0:3.250-6.fc15 geos.i686 0:3.2.1-3.fc14 libgeotiff.i686 0:1.2.5-6.fc15 librx.i686 0:1.5-15.fc15 ogdi.i686 0:3.2.0-0.15.beta2.fc15 proj.i686 0:4.7.0-4.fc15 xerces-c.i686 0:3.0.1-21.fc15 完毕! |