Log in
يك شنبه,۱۶ بهمن ماه ۱۳۹۰مطابق با
١٣ ربيع الاول ۱۴۳۳هجرى قمرى

Application in chroot
Running X Application inside chroot environment
$ export CHROOT_ENV=/mnt
mount /proc and /sys files for chrooted environment:
$ mount –bind /dev/ $CHROOT_ENV/dev/
$ mount –bind /proc/ $CHROOT_ENV/proc/
$ mount –bind /sys/ $CHROOT_ENV/sys/
$ mount –bind /tmp/ $CHROOT_ENV/tmp/
# Let our host X accept connections from all local clients
$ xhost +
$ cp ~/.Xauthority $CHROOT_ENV/root/
$ cp ~/.ICEauthority $CHROOT_ENV/root/
$ export TERM=”xterm”
$ export SHELL=”/bin/bash”
$ export USER=”root”
$ export USERNAME=”root”
$ export PATH=”/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin”
$ export PWD=”/”
$ export SHLVL=”1″
$ export HOME=”/root”
$ export LOGNAME=”root”
$ export DISPLAY=”:0″
$ export XAUTHORITY=”$HOME/.Xauthority”
$ export COLORTERM=”$TERM”
$ chroot “$CHROOT_ENV” /bin/bash -i
$ firefox &; xmms &
Post your comment
Subpages
- Partition and Format
- Application in chroot
- Realplayer and IE
- SSL & Serverzertifikat
- Debian Package
- Solaris Package
- Linux commands
- Web service
- PHP
- PERL
Archives:
- Mercurial & hg view
- jPortal wordpress theme
- WordPress Careers plugin
- Check For Email pattern
- WordPress ODLinks Plugin
- WordPress Classifieds Plugin
- Clean up the Ubuntu
- Persian philosophs and sciences
- » Learning French
- » Hosting & Service Provider
- » Spiele für Schulkinder
- » LIVE-STREAM
- » Take a free course online.
- » Aktuelle Angebote
- » حاج آقا سيد عباس دوستانى
- » Highlights of Iran's history
- » Persian philosophs and sciences
- » Schule Übungsblätter
- » ایستگاه قطار دورتموند
- » Korea Live TVs
Categories:
Links
- (IE)HTML - اديتور به فارسي و لاتين
- Online Graphic Plotter
- Online scientific calculator
- تقويم ساليانه
- تبديل کُدهای رايج
- تبدیل تاریخ شمسی به میلادی
- فارسی نويس
- تبديل خط فينگليش به فارسى





