LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-08-2008, 07:48 AM   #1
andrias
LQ Newbie
 
Registered: Apr 2008
Posts: 17

Rep: Reputation: 0
xwin can't start automatically


i've been install puppy on trancend flash 256mb with 1 partition but every load after powerdown my puppy just show prompth without gui
any body to help me ?
 
Old 04-08-2008, 08:27 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Please post your /etc/inittab file.
 
Old 04-08-2008, 09:34 AM   #3
andrias
LQ Newbie
 
Registered: Apr 2008
Posts: 17

Original Poster
Rep: Reputation: 0
content /etc/inittab

::sysinit:/etc/rc.d/rc.sysinit
tty1::respawn:/sbin/getty -n -l /bin/autologinroot 38400 tty1
tty2::respawn:/sbin/getty 38400 tty2
::ctrlaltdel:/sbin/reboot
 
Old 04-08-2008, 12:54 PM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
does 'startx' launch the GUI?
 
Old 04-08-2008, 06:08 PM   #5
andrias
LQ Newbie
 
Registered: Apr 2008
Posts: 17

Original Poster
Rep: Reputation: 0
yes it does but not automatically when computer on,can u tell me how ?
 
Old 04-09-2008, 01:33 AM   #6
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Edit your inittab file like this:
Quote:
id:1:initdefault:
::sysinit:/etc/rc.d/rc.sysinit
tty1::respawn:/sbin/getty -n -l /bin/autologinroot 38400 tty1
tty2::respawn:/sbin/getty 38400 tty2
1:1:wait:/usr/bin/startx
::ctrlaltdel:/sbin/reboot
(assuming the startx command is located at /usr/bin/startx: 'which startx' will tell you where it is)
For more informations, you can do:
man inittab
(assuming the man pages are installed)

Last edited by Agrouf; 04-09-2008 at 01:35 AM.
 
Old 04-11-2008, 11:41 AM   #7
andrias
LQ Newbie
 
Registered: Apr 2008
Posts: 17

Original Poster
Rep: Reputation: 0
tks for your answer, but i have condition like this =>in bios setting i put AC power loss auto start enable so when pc going to power down/power fail and up again i hope puppy back to desktop/gui again but it doesn't,puppy just show prompt....
can you help me to solve the problem so i get puppy desktop whatever condition ?tks any way
 
Old 04-11-2008, 01:32 PM   #8
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Editing the inittab doesn't solve your problem?
 
Old 04-11-2008, 04:38 PM   #9
andrias
LQ Newbie
 
Registered: Apr 2008
Posts: 17

Original Poster
Rep: Reputation: 0
no it doesn't, in line 7 when reboot after i plug-in the power cord mention about bad inittab entry and prompt again,honestly puppy was insttaled on flash ide 256mb and the pc always run 24 hour a day and if power fail and up again the puppy must be run with desktop/xwin. any suggestion ?
 
Old 04-11-2008, 05:18 PM   #10
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
According to this link:
http://www.murga-linux.com/puppy/viewtopic.php?t=15839
puppy is not using regular runlevels but /etc/profile to start xwin:
Quote:
In Puppy, Barry has devised a method to determine if this is the first login since bootup and if so, it automatically runs xwin. So this is how we are able to go straight into the desktop when the boot process completes.
Can you please post your /etc/profile?
Oh and put back your old inittab since this is not going to solve your problem.
 
Old 04-11-2008, 06:00 PM   #11
andrias
LQ Newbie
 
Registered: Apr 2008
Posts: 17

Original Poster
Rep: Reputation: 0
herewith your request sir....tks again

PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R7/bin:/root/my-applications/bin"
ulimit -c 0
if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
umask 002
else
umask 022
fi
USER=`id -un`
PS1="# "
LOGNAME=$USER
HISTSIZE=1000
HISTFILE="$HOME/.history"
EDITOR=mp
INPUTRC=/etc/inputrc
#TERM=linux
#v2.13...
if [ -f /usr/bin/urxvt ];then
#now using urxvt...
TERM="rxvt-unicode"
else
TERM="xterm"
fi

# used by XRN, change to your news server...
# NNTPSERVER="news.dodo.com.au"
# GS_FONTPATH="/usr/X11R7/lib/X11/fonts/Type1"
export PS1 USER LOGNAME HISTSIZE INPUTRC EDITOR TERM
XFINANSDIR="/root/.xfinans"
export XFINANSDIR
MOZILLA_FIVE_HOME="/usr/lib/mozilla"
# MOZ_PLUGIN_PATH="/root/plugins"
export MOZILLA_FIVE_HOME #MOZ_PLUGIN_PATH
KDEDIR="/usr/local/kde"
#v2.13 konqueror-embedded in /opt/kde...
[ -d /opt/kde ] && KDEDIR="/opt/kde:/usr/local/kde"
export KDEDIR

#v2.10 MU: rox crashes with DRI modules. solution:
export XLIB_SKIP_ARGB_VISUALS=1

LD_LIBRARY_PATH="/lib:/usr/lib:/usr/X11R7/lib:/root/my-applications/lib"

if [ -e /usr/lib/mozilla ];then
LD_LIBRARY_PATH="/usr/lib/mozilla:$LD_LIBRARY_PATH"
fi

if [ -e /usr/lib/qt ];then #do not use -d as qt may be link?
QTDIR=/usr/lib/qt
export QTDIR
PATH=$QTDIR/bin:$PATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
fi
if [ -d /usr/local/kde/bin ];then
PATH="/usr/local/kde/bin:$PATH"
LD_LIBRARY_PATH="/usr/local/kde/lib:$LD_LIBRARY_PATH"
fi
export QT_XFT=true #v2.12

#v2.10 T2 firefox, nvu, thunderbird install into /opt...
if [ -d /opt/mozilla.org/bin ];then
PATH="/opt/mozilla.org/bin:$PATH"
fi

export PATH LD_LIBRARY_PATH

#this line gets edited by chooselocale script...
LANG=en_US
export LANG
TZ="`cat /etc/TZ | tr -d "\n"`"
export TZ
#this is for antialiased fonts in gtk1 apps...
#LD_PRELOAD=/usr/lib/libgdkxft.so
#export LD_PRELOAD
#WISH mini-console needs this...
HOSTNAME="`cat /etc/hostname | tr -d "\n"`"
export HOSTNAME
#Quisp database needs this...
SHSQL_DB="/root/ghttpd/quisp"
export SHSQL_DB

#SHELL="/bin/bash"
#export SHELL
#...this causes a problem with characters in text-mode apps running in rxvt. for example, in mp
#a vertical line character displays as a 3. so leave the default shell as Busybox sh.
#...no, have a fix, from alienX. added TERM=xterm to /root/.bashrc.
#v2.0.0 additional note: now have /bin/sh a symlink to /bin/bash, so above not used.

#v1.0.5
#Sylpheed 2.0.1 requires this (also some other gtk2 apps)...
export G_FILENAME_ENCODING=@locale

#v1.0.6
#sylpheed uses metamail which requires this...
export MM_RUNASROOT=1

#v1.0.6
DEFAULTBROWSER="`cat /usr/local/bin/defaultbrowser | tail -n 1 | tr -s " " | cut -f 2 -d " "`"
DEFAULTDRAW="`cat /usr/local/bin/defaultdraw | tail -n 1 | tr -s " " | cut -f 2 -d " "`"
DEFAULTHTMLEDITOR="`cat /usr/local/bin/defaulthtmleditor | tail -n 1 | tr -s " " | cut -f 2 -d " "`"
DEFAULTMEDIAPLAYER="`cat /usr/local/bin/defaultmediaplayer | tail -n 1 | tr -s " " | cut -f 2 -d " "`"
DEFAULTPAINT="`cat /usr/local/bin/defaultpaint | tail -n 1 | tr -s " " | cut -f 2 -d " "`"
DEFAULTSPREADSHEET="`cat /usr/local/bin/defaultspreadsheet | tail -n 1 | tr -s " " | cut -f 2 -d " "`"
DEFAULTTEXTEDITOR="`cat /usr/local/bin/defaulttexteditor | tail -n 1 | tr -s " " | cut -f 2 -d " "`"
DEFAULTWORDPROCESSOR="`cat /usr/local/bin/defaultwordprocessor | tail -n 1 | tr -s " " | cut -f 2 -d " "`"
export DEFAULTBROWSER DEFAULTDRAW DEFAULTHTMLEDITOR DEFAULTMEDIAPLAYER DEFAULTPAINT DEFAULTSPREADSHEET DEFAULTTEXTEDITOR DEFAULTWORDPROCESSOR

#v2.02 rarsa provided this...
#freedesktop base directory spec: standards.freedesktop.org/basedir-spec/latest/
export XDG_DATA_HOME=$HOME/.local/share
export XDG_CONFIG_HOME=$HOME/.config
export XDG_DATA_DIRS=/usr/share:/usr/local/share #v2.14 dropped trailing /
export XDG_CONFIG_DIRS=/etc/xdg #v2.14 changed from /usr/etc
export XDG_CACHE_HOME=$HOME/.cache

#v2.10 needed for pkg-config app to work properly...
export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/X11R7/lib/pkgconfig"

#v2.13...
export HISTFILESIZE=2000
export HISTCONTROL=ignoredups

#v1.0.5
#personal customisation file...
[ -r /etc/profile.local ] && . /etc/profile.local

#v2.12
#xorgwizard creates this file, run once only...
if [ ! -f /tmp/bootcnt.txt ];then
[ -f /etc/resolutionfix ] && eval `cat /etc/resolutionfix`
fi

if [ ! -f /usr/X11R7/bin/X ];then
#v2.00r1 now support a text-mode-only puppy...
if [ -f /usr/local/bin/elinks ];then
if [ ! -f /tmp/bootcnt.txt ];then
touch /tmp/bootcnt.txt
exec /usr/local/bin/elinks file:///usr/share/doc/index.html
fi
else
echo
echo "\\033[1;31mSorry, cannot start X. Link /usr/X11R7/bin/X missing."
echo -n "(suggestion: type 'xorgwizard' to run the Xorg Video Wizard)"
echo -e "\\033[0;39m"
fi
else
#want to go straight into X on bootup only...
if [ ! -f /tmp/bootcnt.txt ];then
touch /tmp/bootcnt.txt
# aplay -N /usr/share/audio/bark.au
dmesg > /tmp/bootkernel.log
exec xwin
fi
fi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I automatically start a program at start up? victordh Linux - General 7 10-27-2013 07:02 AM
How to start bash commands automatically every time I start the computer brgsousa Linux - Software 2 10-18-2007 12:26 PM
start apps automatically on start up? chunlee Linux - Newbie 3 09-04-2004 01:58 PM
Xwin wont start!! =( Th3_J3st3R Linux - Newbie 1 04-01-2003 02:55 PM
script at xwin start to kill old process(es) butthead Programming 3 02-01-2002 09:39 AM


All times are GMT -5. The time now is 05:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration