__error__
root@server:/home/admin
$ <file>
Invalid MIT-MAGIC-COOKIE-1 key<file>: cannot connect to X server :1.0
admin@server:/home/admin
$ su <file>
Invalid MIT-MAGIC-COOKIE-1 key<file>: cannot connect to X server :1.0
__fix__
the problem is associated with x window forwarding
I was in a vnc session initiated from user admin and the .run file I was trying to execute was not able to forward the window through the terminal to the vncserver I was using
root cause is still unknown
_workaround_
start a vnc session under root (not generally supported) and then execute the file
this correctly opened the GUI
Sunday, December 29, 2013
Thursday, December 26, 2013
error package ... Requires: libstdc++.so.6(GLIBCXX_3.4.15) on CentOS 6
__error__
$ yum install google-chrome-stable
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror-centos.hostingswift.com
* extras: mirrors.xmission.com
* updates: centos.mirrors.hoobly.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.i386 0:31.0.1650.63-1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15) for package: google-chrome-stable-31.0.1650.63-1.i386
--> Finished Dependency Resolution
Error: Package: google-chrome-stable-31.0.1650.63-1.i386 (google-chrome)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
__to fix__
yum install gstreamer-plugins-base-devel
yum -y install glibc-devel.i686 glibc-devel
wget http://ftp.gnu.org/gnu/gcc/gcc-4.6.2/gcc-4.6.2.tar.gz
su
tar xzf gcc-4.6.2.tar.gz
pushd gcc-4.6.2
./contrib/download_prerequisites
popd
mkdir staging
pushd staging
$PWD/../gcc-4.6.2/configure --prefix=/opt/gcc-4.6.2
make
make install
popd
unlink /usr/lib/libstdc++.so.6
cp /opt/gcc-4.6.2/lib/libstdc++.so.6.0.16 /usr/lib
pushd /usr/lib
ln -s libstdc++.so.6.0.16 libstdc++.so.6
popd
$ yum install google-chrome-stable
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror-centos.hostingswift.com
* extras: mirrors.xmission.com
* updates: centos.mirrors.hoobly.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.i386 0:31.0.1650.63-1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15) for package: google-chrome-stable-31.0.1650.63-1.i386
--> Finished Dependency Resolution
Error: Package: google-chrome-stable-31.0.1650.63-1.i386 (google-chrome)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
__to fix__
yum install gstreamer-plugins-base-devel
yum -y install glibc-devel.i686 glibc-devel
wget http://ftp.gnu.org/gnu/gcc/gcc-4.6.2/gcc-4.6.2.tar.gz
su
tar xzf gcc-4.6.2.tar.gz
pushd gcc-4.6.2
./contrib/download_prerequisites
popd
mkdir staging
pushd staging
$PWD/../gcc-4.6.2/configure --prefix=/opt/gcc-4.6.2
make
make install
popd
unlink /usr/lib/libstdc++.so.6
cp /opt/gcc-4.6.2/lib/libstdc++.so.6.0.16 /usr/lib
pushd /usr/lib
ln -s libstdc++.so.6.0.16 libstdc++.so.6
popd
Matahari errors on CentOS 6 when running yum update
__error__
$ yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror-centos.hostingswift.com
* extras: mirrors.xmission.com
* updates: centos.mirrors.hoobly.com
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package qpid-cpp-client.i686 0:0.12-6.el6 will be updated
--> Processing Dependency: libqpidclient.so.5 for package: matahari-service-0.4.4-11.el6.i686
--> Processing Dependency: libqpidclient.so.5 for package: matahari-host-0.4.4-11.el6.i686
--> Processing Dependency: libqpidclient.so.5 for package: matahari-sysconfig-0.4.4-11.el6.i686
--> Processing Dependency: libqpidclient.so.5 for package: matahari-agent-lib-0.4.4-11.el6.i686
--> Processing Dependency: libqpidclient.so.5 for package: matahari-network-0.4.4-11.el6.i686
--> Processing Dependency: libqpidcommon.so.5 for package: matahari-service-0.4.4-11.el6.i686
--> Processing Dependency: libqpidcommon.so.5 for package: matahari-host-0.4.4-11.el6.i686
--> Processing Dependency: libqpidcommon.so.5 for package: matahari-sysconfig-0.4.4-11.el6.i686
--> Processing Dependency: libqpidcommon.so.5 for package: matahari-agent-lib-0.4.4-11.el6.i686
--> Processing Dependency: libqpidcommon.so.5 for package: matahari-network-0.4.4-11.el6.i686
---> Package qpid-cpp-client.i686 0:0.14-22.el6_3 will be an update
---> Package qpid-cpp-client-ssl.i686 0:0.12-6.el6 will be updated
---> Package qpid-cpp-client-ssl.i686 0:0.14-22.el6_3 will be an update
---> Package qpid-cpp-server.i686 0:0.12-6.el6 will be updated
---> Package qpid-cpp-server.i686 0:0.14-22.el6_3 will be an update
---> Package qpid-cpp-server-ssl.i686 0:0.12-6.el6 will be updated
---> Package qpid-cpp-server-ssl.i686 0:0.14-22.el6_3 will be an update
---> Package qpid-qmf.i686 0:0.12-6.el6 will be updated
---> Package qpid-qmf.i686 0:0.14-14.el6_3 will be an update
--> Finished Dependency Resolution
Error: Package: matahari-host-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidclient.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidclient.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-service-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidclient.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidclient.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-agent-lib-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidclient.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidclient.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-host-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidcommon.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidcommon.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-agent-lib-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidcommon.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidcommon.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-service-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidcommon.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidcommon.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-sysconfig-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidclient.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidclient.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-network-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidcommon.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidcommon.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-sysconfig-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidcommon.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidcommon.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-network-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidclient.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidclient.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
__to fix__
Matahari is deprecated, so run:
$ yum remove matahari*
$ yum update
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirror-centos.hostingswift.com
* extras: mirrors.xmission.com
* updates: centos.mirrors.hoobly.com
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package qpid-cpp-client.i686 0:0.12-6.el6 will be updated
--> Processing Dependency: libqpidclient.so.5 for package: matahari-service-0.4.4-11.el6.i686
--> Processing Dependency: libqpidclient.so.5 for package: matahari-host-0.4.4-11.el6.i686
--> Processing Dependency: libqpidclient.so.5 for package: matahari-sysconfig-0.4.4-11.el6.i686
--> Processing Dependency: libqpidclient.so.5 for package: matahari-agent-lib-0.4.4-11.el6.i686
--> Processing Dependency: libqpidclient.so.5 for package: matahari-network-0.4.4-11.el6.i686
--> Processing Dependency: libqpidcommon.so.5 for package: matahari-service-0.4.4-11.el6.i686
--> Processing Dependency: libqpidcommon.so.5 for package: matahari-host-0.4.4-11.el6.i686
--> Processing Dependency: libqpidcommon.so.5 for package: matahari-sysconfig-0.4.4-11.el6.i686
--> Processing Dependency: libqpidcommon.so.5 for package: matahari-agent-lib-0.4.4-11.el6.i686
--> Processing Dependency: libqpidcommon.so.5 for package: matahari-network-0.4.4-11.el6.i686
---> Package qpid-cpp-client.i686 0:0.14-22.el6_3 will be an update
---> Package qpid-cpp-client-ssl.i686 0:0.12-6.el6 will be updated
---> Package qpid-cpp-client-ssl.i686 0:0.14-22.el6_3 will be an update
---> Package qpid-cpp-server.i686 0:0.12-6.el6 will be updated
---> Package qpid-cpp-server.i686 0:0.14-22.el6_3 will be an update
---> Package qpid-cpp-server-ssl.i686 0:0.12-6.el6 will be updated
---> Package qpid-cpp-server-ssl.i686 0:0.14-22.el6_3 will be an update
---> Package qpid-qmf.i686 0:0.12-6.el6 will be updated
---> Package qpid-qmf.i686 0:0.14-14.el6_3 will be an update
--> Finished Dependency Resolution
Error: Package: matahari-host-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidclient.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidclient.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-service-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidclient.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidclient.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-agent-lib-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidclient.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidclient.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-host-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidcommon.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidcommon.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-agent-lib-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidcommon.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidcommon.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-service-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidcommon.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidcommon.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-sysconfig-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidclient.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidclient.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-network-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidcommon.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidcommon.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-sysconfig-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidcommon.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidcommon.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
Error: Package: matahari-network-0.4.4-11.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
Requires: libqpidclient.so.5
Removing: qpid-cpp-client-0.12-6.el6.i686 (@anaconda-CentOS-201112130233.i386/6.2)
libqpidclient.so.5
Updated By: qpid-cpp-client-0.14-22.el6_3.i686 (base)
Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
__to fix__
Matahari is deprecated, so run:
$ yum remove matahari*
Wednesday, December 25, 2013
Setting up VNC on CentOS 6
I prefer to use tigervnc, and you have to open up the firewall.
5800, 5900, and 6000 are for display 0. 5801, 5901, and 6001 are for display 1, etc.
Display 0 is the default desktop, System > Remote Desktop > Allow Vwiew & Control ...
Open Terminal
su
vim /etc/sysconfig/iptables
Alternative:
xauth: (stdin):1: bad display name "myserver:3" in "add" command
vim /etc/hosts
CTRL+O
::1 apollo apollo.localhost
Could not init font path element unix/:-1, removing from list!
Fatal server error:
could not open default font 'fixed'
X would not start. So using my mad lynx skillz, i googled the issue and found a recommendation to add the following lines to my xorg.conf
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/encodings"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/TTF"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
yum install libXfont
yum install xorg-x11-xfs
yum install xorg-x11-xfs-utils
yum install xorg-x11-xinit
yum install xorg-x11-xdm
!!! Remember to use a different user than root for vnc
vncserver
service vncserver restart
Shutting down VNC server: [ OK ]
Starting VNC server: no displays configured [FAILED]
5800, 5900, and 6000 are for display 0. 5801, 5901, and 6001 are for display 1, etc.
Display 0 is the default desktop, System > Remote Desktop > Allow Vwiew & Control ...
Open Terminal
su
vim /etc/sysconfig/iptables
# Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state NEW -m tcp -p tcp --dport 5800:5810 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 5900:5910 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 6000:6010 -j ACCEPT -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT |
Alternative:
iptables -I INPUT 5 -m state --state NEW -m tcp -p tcp -m multiport --dports 5901:5903,6001:6003 -j ACCEPT service iptables save service iptables restart yum groupinstall Desktop yum install tigervnc-server yum install xorg-x11-fonts-Type1 yum install vnc chkconfig vncserver on vncpasswd echo "HOSTNAME=plato" >> /etc/sysconfig/network hostname "plato" |
xauth: (stdin):1: bad display name "myserver:3" in "add" command
vim /etc/hosts
CTRL+O
::1 apollo apollo.localhost
Could not init font path element unix/:-1, removing from list!
Fatal server error:
could not open default font 'fixed'
X would not start. So using my mad lynx skillz, i googled the issue and found a recommendation to add the following lines to my xorg.conf
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/encodings"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo"
FontPath "/usr/X11R6/lib/X11/fonts/TTF"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
yum install libXfont
yum install xorg-x11-xfs
yum install xorg-x11-xfs-utils
yum install xorg-x11-xinit
yum install xorg-x11-xdm
!!! Remember to use a different user than root for vnc
vncserver
service vncserver restart
Shutting down VNC server: [ OK ]
Starting VNC server: no displays configured [FAILED]
Saturday, December 14, 2013
Setting up QT on CentOS 6 32-bit
get the installer - for 64-bit use x86_64
su
wget http://download.qt-project.org/official_releases/online_installers/1.4/qt-linux-opensource-1.4.0-2-x86-online.run
chmod +x qt-linux-opensource-1.4.0-2-x86-online.run
./qt-linux-opensource-1.4.0-2-x86-online.run
for more on Qt5 dependencies:
http://qt-project.org/doc/qt-5.0/qtdoc/requirements-x11.html
if you receive errors about:
Requires: libstdc++.so.6(GLIBCXX_3.4.15)
then see:
http://cpp-dev-talk.blogspot.com/2013/12/error-package-requires.html
Subscribe to:
Posts (Atom)