免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1175 | 回复: 0
打印 上一主题 下一主题

Install KDE 3.1 for Solaris 9 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-01 15:22 |只看该作者 |倒序浏览

                                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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP