gdm error after while…..

ns2 ~ # /usr/bin/gdm

/usr/bin/gdm: error while loading shared libraries: libdirectfb-0.9.so.25: cannot open shared object file: No such file or directory

Revdep-rebuild should find out the problem for you, the most obvious reason whyit might not is if a previous run of revdep-rebuild did not complete and thetemporary files were still present.  Please try running “revdep-rebuild -i” toensure that the temporary files are cleaned out.  If you do this before trying to re-emerge totem-pl-parser, you can test whether it spots, it and then againwhether totem-pl-parser fixes the problem.

If after you’ve got the results the problem hasn’t been fixed, orrevdep-rebuild wasn’t correctly finding the issue, then please feel free to reopen this bug…  5:)

Install Proftpd on gentoo

1, add “ftp” use flag to /etc/make.conf

ns2 ~ # emerge proftpd
ns2 ~ # cd /etc/proftpd
ns2 proftpd # cp proftpd.conf.distrib proftpd.conf
ns2 proftpd # vim proftpd.conf
ServerName “ProFTPD Default Installation” -> ServerName “ftp.ns2.example.local”
#DefaultRoot ~ -> comment out
if you like to enable root login: add
RootLogin on
change Server Identification: add
ServerIndent on  ” Ftp Server at …..”
ns2 proftpd # /etc/init.d/proftpd start && rc-update add proftpd default
ns2 etc # vim ftpusers
Comment out root 

install Apache2 + php5 + mysql on gentoo

Install apache2 with php, mysql and ssl

1, Modify /etc/make.conf
add those use flag : apache2 ssl pam xml xml2 pcre session unicode php mysql innodb berkdb

ns2 ~ # emerge apache mysql php
……… when it done
ns2 ~ # /usr/bin/mysql_install_db
ns2 ~ # /etc/init.d/apache restart && rc-update add apache default

Vmware Server2 shutdown guest when shutdown/reboot host on gentoo

1, Setup vmware to suspend or shutdown from Edit virtual machine startup/shutdown settings

2. add “/etc/init.d/vmware stop” into /etc/conf.d/local.stop

 

Refrence : http://www.wiredrevolution.com/gentoo/run-a-command-at-boot-with-gentoo

Normally in Gentoo you would want to create an init script via rc-update to start a service at boot. However if there are a few miscellaneous commands you would like to run you can add them to local.start.

The local.start init script is similar to rc.local in other distributions. It is the last init script to be run after all other services have been started at the end of the boot process.

Add your commands to local.start file located here.
/etc/conf.d/local.start

You can also make commands run when the system is shutdown. These commands should be placed in local.stop located here.
/etc/conf.d/local.stop

Vmware Server2 console not popup on gentoo

When Vmware server2 console not popup with those error

ns2 ~ # firefox
No running windows found
/root/.mozilla/firefox/t0qxjlxh.default/extensions/VMwareVMRC@vmware.com/plugins/bin/
vmware-vmrc: symbol lookup error
/root/.mozilla/firefox/t0qxjlxh.default/extensions/VMwareVMRC@vmware.com/plugins/lib/
libvmwareui.so.0/libvmwareui.so.0: undefined symbol: _ZThn16_N3Gtk5TableD1Ev

try

ns2 ~ # VMWARE_USE_SHIPPED_GTK=yes firefox

updating kernel on gentoo

ns2 ~ # emerge –sync
ns2 ~ # emerge –update –deep -p world

to check?

ns2 ~ # emerge –update –deep world

if no prob
or

ns2 ~ # emerge kernel-source

change symbolic link
Eg., /usr/src/linux -> linux-2.6.26-gentoo-r4/ must point latest kernel source

make config for kernel
Eg., copy old .config to new kernel and run

ns2 linux # make oldconfig

compile kernel, set grub

if using nvidia for graphic must re-compile nvidia modules else X not startup.
Eg., run “module-rebuild rebuild”. Need sys-kernel/module-rebuild or

ns2 ~ # emerge ndivia-drivers
ns2 ~ # ldmod | grep nvidia && rmmod nvidia
ns2 ~ # modprobe nvidia
ns2 ~ # update-modules

gentoo emerge note

ns2 ~ # emerge –sync
ns2 ~ # emerge –update –deep world

Blocked Packages

Code Listing 4.1: Portage warning about blocked packages (with –pretend)
[blocks B     ] mail-mta/ssmtp (is blocking mail-mta/postfix-2.2.2-r1)

Code Listing 4.2: Portage warning about blocked packages (without –pretend)
!!! Error: the mail-mta/postfix package conflicts with another package.
!!!        both can’t be installed on the same system together.
!!!        Please use ’emerge –pretend’ to determine blockers.

Ebuilds contain specific fields that inform Portage about its dependencies. There are two possible dependencies: build dependencies, declared in DEPEND and run-time dependencies, declared in RDEPEND. When one of these dependencies explicitly marks a package or virtual as being not compatible, it triggers a blockage.
To fix a blockage, you can choose to not install the package or unmerge the conflicting package first. In the given example, you can opt not to install postfix or to remove ssmtp first.

xdm and gdm on gentoo

startx will call .xinitrc and then, whatever it is configured in it, i. e. if you have in your .xinitrc startgnome, then, by typing startx, you’re calling .xinitrc and startgnome.

.xinitrc doesn’t have anything to do with DMs, since to run startx you’ve to be already logged in, so, when you used startx, gnome came up because .xinitrc was configured to do that.

From conf.d, you configure xdm to call any DM you want using the DISPLAYMANAGER variable, when it’s installed for the first time (xdm), it’s configured like this:

Code:
DISPLAYMANAGER="xdm"

So, if you want to use gdm instead, you change that line to:

Code:
DISPLAYMANAGER="gdm"

However, if you read the comments about DMs in /etc/conf.d/xdm, you’ll see:

Code:
# What display manager do you use ?  [ xdm | gdm | kdm | entrance ]
# NOTE: If this is set in /etc/rc.conf, that setting will override this one.

And that’s what happen when you edit your rc.conf, setting XSESSION=”Gnome”, the system is instructed to call Gnome the same way you did using .xinitrc regardless the configuration of xdm daemon, if the systems has to use XSESSION=”Gnome”, and nobody has logged in (which wasn’t the case when you used .xinitrc), then, it has to call some DM to ask for login credentials, in this case, called GDM.

Install Vmware Server2 on Gentoo

ns2 vmware-server-distrib # ./vmware-install.pl
Creating a new VMware Server installer database using the tar4 format.

Installing VMware Server.

In which directory do you want to install the binary files?
[/usr/bin]

What is the directory that contains the init directories (rc0.d/ to
rc6.d/)?

The path “” is not an existing directory.

What is the directory that contains the init directories (rc0.d/ to
rc6.d/)? /etc

The path “/etc” is a directory which does not contain a rc0.d directory.

What is the directory that contains the init directories (rc0.d/ to
rc6.d/)? /etc/rc.d

The path “/etc/rc.d” is not an existing directory.

What is the directory that contains the init directories (rc0.d/ to
rc6.d/)? /etc/runlevels

The path “/etc/runlevels” is a directory which does not contain a rc0.d
directory.

What is the directory that contains the init directories (rc0.d/ to
rc6.d/)? /etc/rc.d

What is the directory that contains the init scripts?
[/etc/rc.d] /etc/init.d/

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware]

The path “/usr/lib/vmware” does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the manual files?
[/usr/share/man]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware]

The path “/usr/share/doc/vmware” does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

The installation of VMware Server 2.0.0 build-122956 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: “/usr/bin/vmware-uninstall.pl”.

Before running VMware Server for the first time, you need to configure it by
invoking the following command: “/usr/bin/vmware-config.pl”. Do you want this
program to invoke the command for you now? [yes]

Making sure services for VMware Server are stopped.

Stopping VMware autostart virtual machines:
Virtual machines                                                   failed
Stopping VMware management services:
VMware Virtual Infrastructure Web Access
VMware Server Host Agent                                           failed
Stopping VMware services:
VMware Authentication Daemon                                        done
Virtual machine monitor                                             done

You must read and accept the End User License Agreement to continue.
Press enter to display it.

You must read and accept the End User License Agreement to continue.
Press enter to display it.

NOTICE:  BY DOWNLOADING AND INSTALLING, COPYING OR OTHERWISE USING THE
SOFTWARE, YOU AGREE TO BE BOUND BY THE TERMS OF THIS VMWARE MASTER END
USER LICENSE AGREEMENT (“EULA”).  IF YOU DO NOT AGREE TO THE TERMS OF
THIS EULA, YOU MAY NOT DOWNLOAD, INSTALL, COPY OR USE THE SOFTWARE, AND
YOU MAY RETURN THE UNUSED SOFTWARE TO THE VENDOR FROM WHICH YOU ACQUIRED
IT WITHIN THIRTY (30) DAYS AND REQUEST A REFUND OF THE LICENSE FEE, IF
ANY, ALREADY PAID UPON SHOWING PROOF OF PAYMENT.  “YOU” MEANS THE
NATURAL PERSON OR THE ENTITY THAT IS AGREEING TO BE BOUND BY THIS EULA,
THEIR EMPLOYEES AND THIRD PARTY CONTRACTORS THAT PROVIDE SERVICES TO
YOU.  YOU SHALL BE LIABLE FOR ANY FAILURE BY SUCH EMPLOYEES AND THIRD
PARTY CONTRACTORS TO COMPLY WITH THE TERMS OF THIS AGREEMENT.

1.      DEFINITIONS

1.1     “Designated Administrative Access” means that access to the
standard user interfaces of a given instance of the Software
(designated in this section) that you may grant to a designated
third party (a) for which you have provided advance written notice
to VMware that you are providing outsourced services and (b) for
whose dedicated benefit you have licensed such instance of the
Software.  Designated Administrative Access is applicable only
where you are 1) an IT outsourcing company that is providing
outsourced IT services to a client company and 2) applicable only
to the following Software: ESX Server, VMware Server and
VirtualCenter.

1.2     “GPL Software” means GPL software licensed to you under the GNU
General Public License as published by the Free Software Foundation
(GPL).  A copy of the GPL is included on the media on which you
received the Software or included in the files you downloaded, if
you acquired the Software by electronic download.

1.3     “Guest Operating Systems” means instances of third-party operating
systems licensed by you and installed in a Virtual Machine and run
using the Software.

1.4     “Licensed Additional Module” means additional modules that may be
provided with and/or used in conjunction with the Software for
which you have paid the applicable license fee and accepted any
applicable additional license terms.

1.5     “Open Source Software” means various open source software
components licensed under the terms of applicable open source
license agreements included in the materials relating to such

Do you accept? (yes/no) yes

Thank you.

None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler “/usr/bin/gcc”. Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.25-gentoo-r7/build/include]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmmon-only’
make -C /lib/modules/2.6.25-gentoo-r7/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.25-gentoo-r7′
CC [M]  /tmp/vmware-config0/vmmon-only/linux/driver.o
CC [M]  /tmp/vmware-config0/vmmon-only/linux/driverLog.o
CC [M]  /tmp/vmware-config0/vmmon-only/linux/hostif.o
CC [M]  /tmp/vmware-config0/vmmon-only/common/comport.o
CC [M]  /tmp/vmware-config0/vmmon-only/common/cpuid.o
CC [M]  /tmp/vmware-config0/vmmon-only/common/hashFunc.o
CC [M]  /tmp/vmware-config0/vmmon-only/common/memtrack.o
CC [M]  /tmp/vmware-config0/vmmon-only/common/phystrack.o
CC [M]  /tmp/vmware-config0/vmmon-only/common/task.o
CC [M]  /tmp/vmware-config0/vmmon-only/common/vmx86.o
CC [M]  /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o
LD [M]  /tmp/vmware-config0/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST 1 modules
CC      /tmp/vmware-config0/vmmon-only/vmmon.mod.o
LD [M]  /tmp/vmware-config0/vmmon-only/vmmon.ko
make[1]: Leaving directory `/usr/src/linux-2.6.25-gentoo-r7′
cp -f vmmon.ko ./../vmmon.o
make: Leaving directory `/tmp/vmware-config0/vmmon-only’
The vmmon module loads perfectly into the running kernel.

None of the pre-built vmci modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vmci module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmci module.

Building the vmci module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmci-only’
make -C /lib/modules/2.6.25-gentoo-r7/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.25-gentoo-r7′
CC [M]  /tmp/vmware-config0/vmci-only/linux/driver.o
CC [M]  /tmp/vmware-config0/vmci-only/linux/driverLog.o
CC [M]  /tmp/vmware-config0/vmci-only/linux/vmciKernelIf.o
CC [M]  /tmp/vmware-config0/vmci-only/common/vmciContext.o
CC [M]  /tmp/vmware-config0/vmci-only/common/vmciDatagram.o
CC [M]  /tmp/vmware-config0/vmci-only/common/vmciDriver.o
CC [M]  /tmp/vmware-config0/vmci-only/common/vmciDs.o
CC [M]  /tmp/vmware-config0/vmci-only/common/vmciEvent.o
CC [M]  /tmp/vmware-config0/vmci-only/common/vmciGroup.o
CC [M]  /tmp/vmware-config0/vmci-only/common/vmciHashtable.o
CC [M]  /tmp/vmware-config0/vmci-only/common/vmciProcess.o
CC [M]  /tmp/vmware-config0/vmci-only/common/vmciQueuePair.o
CC [M]  /tmp/vmware-config0/vmci-only/common/vmciResource.o
LD [M]  /tmp/vmware-config0/vmci-only/vmci.o
Building modules, stage 2.
MODPOST 1 modules
CC      /tmp/vmware-config0/vmci-only/vmci.mod.o
LD [M]  /tmp/vmware-config0/vmci-only/vmci.ko
make[1]: Leaving directory `/usr/src/linux-2.6.25-gentoo-r7′
cp -f vmci.ko ./../vmci.o
make: Leaving directory `/tmp/vmware-config0/vmci-only’
The vmci module loads perfectly into the running kernel.

None of the pre-built vsock modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vsock module for
your system (you need to have a C compiler installed on your system)? [yes]

None of the pre-built vsock modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vsock module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vsock module.

Building the vsock module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vsock-only’
make -C /lib/modules/2.6.25-gentoo-r7/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.25-gentoo-r7′
CC [M]  /tmp/vmware-config0/vsock-only/linux/af_vsock.o
CC [M]  /tmp/vmware-config0/vsock-only/linux/driverLog.o
CC [M]  /tmp/vmware-config0/vsock-only/linux/util.o
CC [M]  /tmp/vmware-config0/vsock-only/linux/vsockAddr.o
LD [M]  /tmp/vmware-config0/vsock-only/vsock.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: “VMCIDatagram_CreateHnd” [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
WARNING: “VMCIDatagram_DestroyHnd” [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
WARNING: “VMCI_GetContextID” [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
WARNING: “VMCIDatagram_Send” [/tmp/vmware-config0/vsock-only/vsock.ko] undefined!
CC      /tmp/vmware-config0/vsock-only/vsock.mod.o
LD [M]  /tmp/vmware-config0/vsock-only/vsock.ko
make[1]: Leaving directory `/usr/src/linux-2.6.25-gentoo-r7′
cp -f vsock.ko ./../vsock.o
make: Leaving directory `/tmp/vmware-config0/vsock-only’
The vsock module loads perfectly into the running kernel.

Do you want networking for your virtual machines? (yes/no/help) [yes]

Configuring a bridged network for vmnet0.

Please specify a name for this network.
[Bridged] eth0

Your computer has multiple ethernet network interfaces available: eth0, eth1.
Which one do you want to bridge to vmnet0? [eth0] eth0

The following bridged networks have been defined:

. vmnet0 is bridged to eth0

Do you wish to configure another bridged network? (yes/no) [no] yes

Configuring a bridged network for vmnet2.

Please specify a name for this network.
[Bridged] eth2

The following bridged networks have been defined:

. vmnet0 is bridged to eth0
. vmnet2 is bridged to eth1

All your ethernet interfaces are already bridged.

Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes] no

Do you want to be able to use host-only networking in your virtual machines?
[no] no

None of the pre-built vmnet modules for VMware Server is suitable for your
running kernel.  Do you want this program to try to build the vmnet module for
your system (you need to have a C compiler installed on your system)? [yes]

Extracting the sources of the vmnet module.

Building the vmnet module.

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmnet-only’
make -C /lib/modules/2.6.25-gentoo-r7/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: Entering directory `/usr/src/linux-2.6.25-gentoo-r7′
CC [M]  /tmp/vmware-config0/vmnet-only/driver.o
CC [M]  /tmp/vmware-config0/vmnet-only/hub.o
CC [M]  /tmp/vmware-config0/vmnet-only/userif.o
CC [M]  /tmp/vmware-config0/vmnet-only/netif.o
CC [M]  /tmp/vmware-config0/vmnet-only/bridge.o
CC [M]  /tmp/vmware-config0/vmnet-only/filter.o
CC [M]  /tmp/vmware-config0/vmnet-only/procfs.o
CC [M]  /tmp/vmware-config0/vmnet-only/smac_compat.o
CC [M]  /tmp/vmware-config0/vmnet-only/smac.o
CC [M]  /tmp/vmware-config0/vmnet-only/vnetEvent.o
CC [M]  /tmp/vmware-config0/vmnet-only/vnetUserListener.o
LD [M]  /tmp/vmware-config0/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST 1 modules
CC      /tmp/vmware-config0/vmnet-only/vmnet.mod.o
LD [M]  /tmp/vmware-config0/vmnet-only/vmnet.ko
make[1]: Leaving directory `/usr/src/linux-2.6.25-gentoo-r7′
cp -f vmnet.ko ./../vmnet.o
make: Leaving directory `/tmp/vmware-config0/vmnet-only’
The vmnet module loads perfectly into the running kernel.

Please specify a port for remote connections to use [902]

Please specify a port for standard http connections to use [8222]

Please specify a port for secure http (https) connections to use [8333]

The current administrative user for VMware Server  is ”.  Would you like to
specify a different administrator? [no] yes

Please specify the user whom you wish to be the VMware Server administrator
root

Using root as the VMware Server administrator.

In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines] /virtual

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or ‘Enter’ to cancel:  A812M-FH12U-xxxxx-xxxxx

Creating a new VMware VIX API installer database using the tar4 format.

Installing VMware VIX API.

In which directory do you want to install the VMware VIX API binary files?
[/usr/bin]

In which directory do you want to install the VMware VIX API library files?
[/usr/lib/vmware-vix/lib]

The path “/usr/lib/vmware-vix/lib” does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the VMware VIX API document pages?
[/usr/share/doc/vmware-vix]

The path “/usr/share/doc/vmware-vix” does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

The installation of VMware VIX API 1.6.0 build-122956 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: “/usr/bin/vmware-uninstall-vix.pl”.

Enjoy,

–the VMware team

Starting VMware services:
Virtual machine monitor                                             done
Virtual machine communication interface                             done
VM communication interface socket family:                           done
Virtual ethernet                                                    done
Bridged networking on /dev/vmnet0                                   done
Bridged networking on /dev/vmnet2                                   done
VMware Server Authentication Daemon (background)                    done
Shared Memory Available                                             done
Starting VMware management services:
VMware Server Host Agent (background)                               done
VMware Virtual Infrastructure Web Access
Starting VMware autostart virtual machines:
Virtual machines                                                    done

The configuration of VMware Server 2.0.0 build-122956 for Linux for this
running kernel completed successfully.

And Recompile your kernel and restart.