安装xfce-4.6.1

1.设置相关环境变量
install -v -m755 -d /opt/xfce
在/etc/profile中添加
export XFCE_PREFIX=/opt/xfce

if [ $EUID -eq 0 ]; then
export PATH="${PATH}:${XFCE_PREFIX}/sbin"
fi
export PATH="${PATH}:${XFCE_PREFIX}/bin"
export PKG_CONFIG_PATH="/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11R7/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/X11R7/share/pkgconfig"

export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}${PKG_CONFIG_PATH+:}${XFCE_PREFIX}/lib/pkgconfig"

export XDG_DATA_DIRS="${XDG_DATA_DIRS}${XDG_DATA_DIRS+:}${XFCE_PREFIX}/share"
export XDG_CONFIG_DIRS="${XDG_CONFIG_DIRS}${XDG_CONFIG_DIRS+:}/etc/xfce/xdg"

source /etc/profile

在/etc/ld.so.conf中加入
/opt/xfce/lib
2.安装D-BUS-1.2.20
groupadd -g 18 messagebus &&
useradd -c "D-BUS Message Daemon User" -d /dev/null \
-u 18 -g messagebus -s /bin/false messagebus

./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/dbus-1.0 \
--localstatedir=/var &&
make &&
make install
cat > /etc/dbus-1/session-local.conf << "EOF"
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- Search for .service files in /usr/local -->
<servicedir>/usr/local/share/dbus-1/services</servicedir>
<servicedir>/opt/xfce/share/dbus-1/services</servicedir>
</busconfig>
EOF
3.安装xfce4-dev-tools
./configure --prefix=${XFCE_PREFIX} &&
make &&
make install
4.安装PCRE-8.01
./configure --prefix=/usr \
--docdir=/usr/share/doc/pcre-8.01 \
--enable-utf8 --enable-unicode-properties \
--enable-pcregrep-libz \
--enable-pcregrep-libbz2 &&
make &&
make install
5.安装glib-2.23.2
./configure --prefix=/usr --with-pcre=system &&
make &&
make install &&
chmod -v 755 /usr/bin/gtester-report
cat > /etc/profile.d/glib2-locale.sh << "EOF"
# Use the current locale charset for filenames
# in applications using GLib
export G_FILENAME_ENCODING=@locale
EOF
6.安装libxfce4util
./configure --prefix=${XFCE_PREFIX} &&
make &&
make install
7.安装cairo-1.8.8
./configure --prefix=/usr &&
make &&
make install
8.安装pango-1.26.2
./configure --prefix=/usr --sysconfdir=/etc &&
make &&
make install
9.安装atk-1.29.4
./configure --prefix=/usr &&
make &&
make install
10.安装tiff-3.8.2
./configure --prefix=/usr &&
make &&
make install
11.安装jpeg-8
./configure --prefix=/usr --enable-static --enable-shared &&
make &&
make install
12.安装jasper-1.900.1
./configure --prefix=/usr --enable-shared &&
make &&
make install
13.安装gtk+-2.19.4
./configure --prefix=/usr --sysconfdir=/etc &&
make &&
make install
14.安装dbus-glib-0.84
./configure --prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/dbus-1.0/dbus-1 &&
make &&
make install
15.安装xfconf
./configure --prefix=${XFCE_PREFIX} &&
make &&
make install
16.安装libglade-2.6.4
./configure --prefix=/usr &&
make &&
make install
17.安装libxfcegui4
./configure --prefix=${XFCE_PREFIX} &&
make &&
make install
18.安装libxfce4menu
./configure --prefix=${XFCE_PREFIX} &&
make &&
make install
19.安装URI-1.52
perl Makefile.PL &&
make &&
make test &&
make install
20.安装exo-0.3.101
./configure --prefix=${XFCE_PREFIX} --sysconfdir=/etc/xfce \
--libexecdir=${XFCE_PREFIX}/lib/xfce4 &&
make &&
make install
21.安装libwnck-2.29.6
./configure --prefix=/usr &&
make &&
make install
22.安装xfce4-panel
./configure --prefix=${XFCE_PREFIX} --sysconfdir=/etc/xfce &&
make &&
make install
23.安装Thunar
./configure --prefix=${XFCE_PREFIX} --sysconfdir=/etc/xfce \
--disable-gnome-thumbnailers \
--enable-xml2po \
--libexecdir=${XFCE_PREFIX}/lib/thunar &&
make &&
make install
24.xfce4-settings
./configure --prefix=${XFCE_PREFIX} --sysconfdir=/etc/xfce \
--libexecdir=${XFCE_PREFIX}/lib/xfce4 &&
make &&
make install
25.安装xfce4-session
./configure --prefix=${XFCE_PREFIX} --sysconfdir=/etc/xfce \
--libexecdir=${XFCE_PREFIX}/lib/xfce4 &&
make &&
make install
26.安装xfwm4
./configure --prefix=${XFCE_PREFIX} &&
make &&
make install
27.安装xfdesktop
./configure --prefix=${XFCE_PREFIX} \
--sysconfdir=/etc/xfce \
--libexecdir=${XFCE_PREFIX}/lib/xfdesktop &&
make &&
make install
28.安装xfce-utils
./configure --prefix=${XFCE_PREFIX} --sysconfdir=/etc/xfce &&
make &&
make install
29.安装gtk-xfce-engine
./configure --prefix=/usr --sysconfdir=/etc &&
make &&
make install
30.安装xfwm4-themes
./configure --prefix=${XFCE_PREFIX} &&
make &&
make install
cat >> $HOME/gtkrc-2.0test << "EOF"
style "titlebar" { font_name = "Sans 10" } widget "xfwm" style "titlebar"
EOF
cat > $HOME/.xfwm4rc << "EOF" theme=${XFCE_PREFIX}/share/xfwm4/themes/xfce button_layout=OT|SHMC theme=kde
EOF
31.安装orage
./configure --prefix=${XFCE_PREFIX} \
--libexecdir=${XFCE_PREFIX}/lib/orage &&
make &&
make install
32.安装vte-0.23.5
sed -i 's%\\177:%&kh=\\EOH:@7=\\EOF:%' termcaps/xterm &&
./configure --prefix=/usr --libexecdir=/usr/lib/vte &&
make &&
make install
33.安装Terminal
./configure --prefix=${XFCE_PREFIX} \
--libexecdir=${XFCE_PREFIX}/lib/terminal &&
make &&
make install
34.安装xarchiver-0.5.2
./configure --prefix=${XFCE_PREFIX} \
--libexecdir=${XFCE_PREFIX}/lib/xfarchiver &&
make &&
make install
最后执行ldconfig,要不然startx时会提示找不到库文件。
35.安装XML-Simple-2.18
perl Makefile.PL &&
make &&
make test &&
make install
36.安装icon-naming-utils-0.8.90
./configure --prefix=/usr \
--libexecdir=/usr/lib/icon-naming-utils &&
make &&
make install
37.安装gnome-icon-theme-2.28.0
./configure --prefix=${XFCE_PREFIX} &&
make &&
make install
35-37可以解决xfce没有图标的问题
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值