- 论坛徽章:
- 0
|
Install KDE 3.1 for Solaris 9
There's an idle Solaris 9 server in my office, so I decide to used it to do some play.
QT based KDE and GTK based Gnome/XFCE desktop envrionmnet are the most popular desktop envrionment on GNU/Linux, and they are quite handy for development and daily use. compared to them, CDE looks a little bit urgly and outdated. It will be a pleasant trip to install them on Solaris for some technology geek like me.
The installation for KDE is quite simple.
1. check the status of the system, especailly harddisk space.
[occdb]:/u01/app/oracle--> df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s0 9.8G 5.7G 4.1G 59% /
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
/dev/dsk/c1t0d0s3 998M 393M 545M 42% /var
swap 2.4G 96K 2.4G 1% /var/run
swap 2.4G 5.6M 2.4G 1% /tmp
/dev/dsk/c1t1d0s6 67G 11G 56G 16% /data2
/dev/dsk/c1t0d0s6 51G 12G 39G 23% /data
/dev/dsk/c1t0d0s4 9.8G 5.7G 4.1G 59% /u01
[occdb]:/u01/app/oracle-->
seems the disk space is sufficient for our expriment.
2. Download the KDE packages from Sun download center for Solaris 9. The url is:
http://www.sun.com/software/solaris/freeware/s9pkgs_download.xml
. Including SFWkde, there're 5 more packages needed to be download thanks to dependecy, SFWgcmn, SFWqt, SFWsdl, SFWgdb, and SFWoggl.
Otherwise, when installing SFWkde, it will complain for missing packages like this:
WARNING:
The package "Common GNU package" is a
prerequisite package and should be installed.
WARNING:
The package "The Qt Library" is a prerequisite
package and should be installed.
WARNING:
The package "Simple DirectMedia Layer library"
is a prerequisite package and should be installed.
WARNING:
The package "GNU source level debugger" is a
prerequisite package and should be installed.
WARNING:
The package "libogg libao libvorbis - Ogg and
Vorbis libraries" is a prerequisite package and should
be installed.
Download the 5 packages, and upload onto a foler on the Solaris server, and then unzip them use gzip,
gzip -d *.gz
and then switch to root user:
su
install package by package
pkgadd -d SFWgcmn
pkgadd -d SFWqt
pkgadd -d SFWsdl
pkgadd -d SFWgdb
pkgadd -d SFWoggl
pkgadd -d SFWkde
OK, the installation is done, and only some configuration steps follows:
1. cd to /opt/sfw/kde/dtlogin/
cd /opt/sfw/kde/dtlogin/
and run the script "install-dtlogin" to add the KDE session to the dtlogin.
2. use something like xmanager to connect to server.
it will prompot, like figure 1.
![]()
And choose KDE in the drop-down menu "options-->session->KDE Desktop". Enter username and password.
![]()
If it prompt for dcopserver cannot start, rm ~/.ICEauth* ~/.Xauth* ~/.DCOPServer* , rm /tmp/.ICE-unix /tmp/.X11-pipe /tmp/.X11-unix and try again(
http://www.freebsdchina.org/forum/viewtopic.php?p=75126&sid=0fcdb3a590e427457b8287c17ebdb6d3
).
If still cannot, save the following as kchmod.c (
http://lists.kde.org/?l=kde-solaris&m=114165388912778&w=2
)
--------------------
/* kchmod.c */
#include
#include
#include
#include
#include
#include
#include
static const char* unixPath = "/tmp/.X11-unix";
static const char* pipePath = "/tmp/.X11-pipe";
static const char* icePath = "/tmp/.ICE-unix";
static const char* fontPath = "/tmp/.font-unix";
extern int errno;
int
main (int argc, char* argv[])
{
mode_t mode = 0;
uid_t uid = 0;
gid_t gid = 0;
mode = (S_IRWXU | S_IRWXG | S_IRWXO | S_ISVTX);
if (setuid (uid) != 0)
{
perror ("setuid"), strerror (errno);
return -1;
}
if (mkdir (unixPath, mode) != 0)
{
if (EEXIST != errno)
{
perror("mkdir"), strerror(errno);
return -2;
}
}
if (chmod (unixPath, mode) != 0)
perror ("chmod"), strerror (errno);
if (chown (unixPath, uid, gid) != 0)
perror ("chown"), strerror (errno);
if (mkdir (pipePath, mode) != 0)
{
if (EEXIST != errno)
{
perror("mkdir"), strerror(errno);
return -2;
}
}
if (chmod (pipePath, mode) != 0)
perror ("chmod"), strerror (errno);
if (chown (pipePath, uid, gid) != 0)
perror ("chown"), strerror (errno);
if (mkdir (icePath, mode) != 0)
{
if (EEXIST != errno)
{
perror("mkdir"), strerror(errno);
return -2;
}
}
if (chmod (icePath, mode) != 0)
perror ("chmod"), strerror (errno);
if (chown (icePath, uid, gid) != 0)
perror ("chown"), strerror (errno);
if (mkdir (fontPath, mode) != 0)
{
if (EEXIST != errno)
{
perror("mkdir"), strerror(errno);
return -2;
}
}
if (chmod (fontPath, mode) != 0)
perror ("chmod"), strerror (errno);
if (chown (fontPath, uid, gid) != 0)
perror ("chown"), strerror (errno);
return 0;
}
// vim: ts=2 sw=2 et
/* kchmod.c */
-----------------
gcc kchmod.c -o kchmod
mv kchmod /opt/sfw/kde/bin
chmod 4755 /opt/sfw/kde/bin/kchmod
vi /opt/sfw/kde/bin/startkde
add /opt/sfw/kde/bin/kchmod to the top of startkde, and close xmanager, and start again.
3. If everything goes well, you will be able to login to KDE and have fun.
![]()
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/44501/showart_351761.html |
|