+ -
当前位置:首页 → 问答吧 → 用FC3的朋友,看进来~~

用FC3的朋友,看进来~~

时间:2004-11-25

来源:互联网

能发一下 /etc/X11/xinit/xinitrc 文件的内容出来吗??
我的FC3刚刚重装,想要知道里面的内容~~

作者: YellowWee   发布时间: 2004-11-25

[yuan@jackycom ~]$ cat /etc/X11/xinit/xinitrc-common
#!/bin/bash
# Copyright (C) 1999 - 2004 Red Hat, Inc. All rights reserved. This
# copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the
# GNU General Public License version 2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# xinitrc-common
#
# This is common code shared by both Xsession and xinitrc scripts. Be sure
# to take this into account when fixing bugs or adding new functionality.

[ -x /usr/X11R6/bin/xsetroot ] && /usr/X11R6/bin/xsetroot -solid '#222E45'

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
userxkbmap=$HOME/.Xkbmap

sysresources=/etc/X11/Xresources
sysmodmap=/etc/X11/Xmodmap
sysxkbmap=/etc/X11/Xkbmap

# merge in defaults
[ -r "$sysresources" ] && xrdb -merge "$sysresources"
[ -r "$userresources" ] && xrdb -merge "$userresources"

# merge in keymaps
if [ -r "$sysxkbmap" ]; then
setxkbmap $(cat "$sysxkbmap")
XKB_IN_USE=yes
fi

if [ -r "$userxkbmap" ]; then
setxkbmap $(cat "$userxkbmap")
XKB_IN_USE=yes
fi

# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
[ -r "$sysmodmap" ] && xmodmap "$sysmodmap"
[ -r "$usermodmap" ] && xmodmap "$usermodmap"
fi

unset XKB_IN_USE

# run all system xinitrc shell scripts.
for file in /etc/X11/xinit/xinitrc.d/* ; do
if echo $file | grep -q "\.sh$" ; then
. $file
else
echo "warning: $file does not end in .sh extension, ignoring"
fi
done

# Start up ssh-agent if available and not already running.
[ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ] && eval $(/usr/bin/ssh-agent -s)

DBUS_LAUNCH=
[ -x /usr/bin/dbus-launch -a -z "$DBUS_SESSION_BUS_ADDRESS" ] && DBUS_LAUNCH="/usr/bin/dbus-launch --exit-with-session"




[yuan@jackycom ~]$ cat /etc/X11/xinit/xinitrc
#!/bin/sh
# Copyright (C) 1999 - 2004 Red Hat, Inc. All rights reserved. This
# copyrighted material is made available to anyone wishing to use, modify,
# copy, or redistribute it subject to the terms and conditions of the
# GNU General Public License version 2.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# Mandatorily source xinitrc-common, which is common code shared between the
# Xsession and xinitrc scripts which has been factored out to avoid duplication
. /etc/X11/xinit/xinitrc-common

# The user may have their own clients they want to run. If they don't,
# fall back to system defaults.
if [ -f $HOME/.Xclients ]; then
exec $DBUS_LAUNCH $HOME/.Xclients || \
exec $HOME/.Xclients
elif [ -f /etc/X11/xinit/Xclients ]; then
exec $DBUS_LAUNCH /etc/X11/xinit/Xclients || \
exec /etc/X11/xinit/Xclients
else
# failsafe settings. Although we should never get here
# (we provide fallbacks in Xclients as well) it can't hurt.
xclock -geometry 100x100-5+5 &
xterm -geometry 80x50-50+150 &

if [ -x /usr/X11R6/bin/twm ]; then
exec /usr/X11R6/bin/twm
fi
fi

作者: bbbush   发布时间: 2004-11-25

谢谢~

fc3有个samba管理器,谁能配置一下,配置出个共享出来
然后把/etc/samba/smb.conf文件贴出来我看看怎么配,好吗??

只要你设置这个共享目录的那部分就行了~~

作者: YellowWee   发布时间: 2004-11-25

fc3有个samba管理器,谁能配置一下,配置出个共享出来
然后把/etc/samba/smb.conf文件贴出来我看看怎么配,好吗??

只要你设置这个共享目录的那部分就行了~~

作者: YellowWee   发布时间: 2004-11-26

fc3挂载磁盘怎么不显示中文文件夹
我有了iocharest=cp936了!
怎么不显示啊!

作者: shenjie117   发布时间: 2004-11-26

FC的话试试

mount -o iocharset=utf8 /src /dest

rh9的话试试

mount -o cppage=936 /src /dest

作者: YellowWee   发布时间: 2004-11-26