config linux start up with only one app - firefox

本文介绍如何通过修改X11配置文件启动Firefox浏览器,并设置默认显示页面及浏览器的一些基本配置选项。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

修改/etc/X11/xinit/Xclients 启动Firefox桌面
# now if we can reach here, either no desktop file was present,
# or the desktop requested is not installed.

#if [ -n "$GSESSION" ]; then
# by default, we run GNOME.
#exec "$GSESSION"
#elif [ -n "$STARTKDE" ]; then
# if GNOME isn't installed, try KDE.
#exec "$STARTKDE"
#fi

# Failsafe.

# these files are left sitting around by TheNextLevel.
rm -f $HOME/Xrootenv.0

# Argh! Nothing good is installed. Fall back to twm
{
# gosh, neither fvwm95 nor fvwm2 is available;
# fall back to failsafe settings
[ -x /usr/bin/xsetroot ] && /usr/bin/xsetroot -solid '#222E45'

# if [ -x /usr/bin/xclock ] ; then
# /usr/bin/xclock -geometry 100x100-5+5 &
# elif [ -x /usr/bin/xclock ] ; then
# /usr/bin/xclock -geometry 100x100-5+5 &
# fi
# if [ -x /usr/bin/xterm ] ; then
# /usr/bin/xterm -geometry 1024x768-0+0 &
# fi
if [ -x /usr/bin/firefox -a -f /usr/share/doc/HTML/index.html ]; then
/usr/bin/firefox -chrome http://192.168.0.113:5791 -width 1024 -height 768
fi
#if [ -x /usr/bin/twm ] ; then
# exec /usr/bin/twm
# fi
}

Firefox 的设置
RestoreSession / StartNewSession
url: about:config
false browser.sessionstore.enabled
install flash-plugin.rpm for firefox

可以修改/etc/X11/xorg.conf 禁用ctrl+alt+backspace
Section "ServerFlags"
Option "DontZap" "1"
EndSection
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值