WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Starting X at boot  (Read 10914 times)

Offline Vilkata

  • Newbie
  • *
  • Posts: 12
Starting X at boot
« on: January 20, 2014, 07:01:15 PM »
I apologize if this is the wrong forum to post this in, but as it is a small question related to more or less the first step from microcore to full tinycore.

As the computer I am on is incredibly dated, I installed microcore(5.1) with persistent home and opt. I then installed Xorg-7.7.tcz( with -wi options,) as with Xlibs, chromium-browser, and the intel video drivers(needed for this computer). I then added an entry for chromium to .X.d, and when i use startx, it works as I intend.

But, I cannot get x to start at boot. I tried adding it to bootlocal.sh, but it didnt work, and figured I would ask. Ideas?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Starting X at boot
« Reply #1 on: January 20, 2014, 07:06:21 PM »
Unless you have a 'text' boot code, you should automatically be logged in as tc withan X desktop.
Show us the output of 'showbootcodes' and 'ls -l /etc/sysconfig'

Offline Vilkata

  • Newbie
  • *
  • Posts: 12
Re: Starting X at boot
« Reply #2 on: January 24, 2014, 03:51:09 PM »
Code: [Select]
tc@box:~$ showbootcodes
initrd=/tce/boot/core.gz quiet home=sda1 opt=sda1 norestore waitusb=5:UUID="591190b2-75a0-438b-8145-76cd507401d7" tce=UUID="591190b2-75a0-438b-8145-76cd507401d7" BOOT_IMAGE=/tce/boot/vmlinuz

Code: [Select]
tc@box:~$ ls -l /etc/sysconfig
total 36
-rw-r--r--    1 root     root             5 Jan 24 20:37 Xserver
-rw-r--r--    1 root     root             2 Jan 24 20:37 backup
-rw-rw-r--    1 root     staff            0 Nov 26 10:16 backup_device
-rw-r--r--    1 root     root             9 Jan 24 20:37 cdroms
-rw-r--r--    1 root     root            13 Jan 24 20:37 desktop
-rw-r--r--    1 root     root             5 Jan 24 20:37 icons
-rw-r--r--    1 root     root            10 Jan 24 20:37 keymap
-rw-r--r--    1 root     root             7 Jan 24 20:37 language
-rw-r--r--    1 root     root             7 Jan 24 20:37 mydata
-rw-r--r--    1 root     root             0 Jan 24 20:37 newmodules
lrwxrwxrwx    1 root     root            13 Jan 24 20:37 tcedir -> /mnt/sda1/tce/
-rw-r--r--    1 root     root             3 Jan 24 20:37 tcuser

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Starting X at boot
« Reply #3 on: January 24, 2014, 04:18:35 PM »
Did you also install Xprogs and a windows manager?
What is the output of 'version' ?
Did you modify /home/tc/.profile?

Offline Vilkata

  • Newbie
  • *
  • Posts: 12
Re: Starting X at boot
« Reply #4 on: January 24, 2014, 04:27:23 PM »
yes, at this point I have full TC, but the same problem, all works fine when I use startx, but it is still not autostarting.

version is 5.1, and I have not modified .profle, but will post it so you can check for any errors:
Code: [Select]
# ~/.profile: Executed by Bourne-compatible login SHells.
#
# Path to personal scripts and executables (~/.local/bin).
[ -d "$HOME/.local/bin" ] || mkdir -p "$HOME/.local/bin"
export PATH=$HOME/.local/bin:$PATH

ONDEMAND=/etc/sysconfig/tcedir/ondemand
[ -d "$ONDEMAND" ] && export PATH=$PATH:"$ONDEMAND"

# Environment variables and prompt for Ash SHell
# or Bash. Default is a classic prompt.
#
PS1='\u@\h:\w\$ '
PAGER='less -EM'
MANPAGER='less -isR'

EDITOR=vi

export PS1 PAGER FILEMGR EDITOR MANPAGER

export BACKUP=1
[ "`id -un`" = "`cat /etc/sysconfig/tcuser`" ] && echo "$BACKUP" | sudo tee /etc/sysconfig/backup >/dev/null 2>&1
export FLWM_TITLEBAR_COLOR="58:7D:AA"

if [ -f "$HOME/.ashrc" ]; then
   export ENV="$HOME/.ashrc"
   . "$HOME/.ashrc"
fi

TERMTYPE=`/usr/bin/tty`
[ ${TERMTYPE:5:3} == "tty" ] && (
[ ! -f /etc/sysconfig/Xserver ] ||
[ -f /etc/sysconfig/text ] ||
[ -e /tmp/.X11-unix/X0 ] ||
startx
)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Starting X at boot
« Reply #5 on: January 24, 2014, 04:43:12 PM »
Have you modified .ashrc ?

Offline Vilkata

  • Newbie
  • *
  • Posts: 12
Re: Starting X at boot
« Reply #6 on: January 24, 2014, 04:49:10 PM »
Once again, nope, posted for verification.
Code: [Select]
# ~/.ashrc: Executed by SHells.
#
. /etc/init.d/tc-functions
if [ -n "$DISPLAY" ]
then
`which editor >/dev/null` && EDITOR=editor || EDITOR=vi
else
EDITOR=vi
fi
export EDITOR

# Alias definitions.
#
alias df='df -h'
alias du='du -h'

alias ls='ls -p'
alias ll='ls -l'
alias la='ls -la'

# Avoid errors... use -f to skip confirmation.
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'

alias d='dmenu_run &'
alias ce='cd /etc/sysconfig/tcedir'

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Starting X at boot
« Reply #7 on: January 24, 2014, 05:19:28 PM »
Please post /mnt/sda1/tce/onboot.lst and your bootloader config.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Vilkata

  • Newbie
  • *
  • Posts: 12
Re: Starting X at boot
« Reply #8 on: January 24, 2014, 05:27:21 PM »
onboot.lst:

Code: [Select]
Xprogs.tcz
aterm.tcz
flwm_topside.tcz
libXau.tcz
libXdmcp.tcz
libXt.tcz
libfontenc.tcz
libXft.tcz
libXinerama.tcz
libXcursor.tcz
wbar.tcz
flwm_topside.tcz
Xorg-7.7.tcz
xf86-video-intel.tcz
cups.tcz
libasound.tcz
dbus-glib.tcz
gtk2.tcz
conky.tcz

and extlinux.conf:

Code: [Select]
DEFAULT core
LABEL core
KERNEL /tce/boot/vmlinuz
APPEND initrd=/tce/boot/core.gz quiet  home=sda1 opt=sda1 norestore waitusb=5:UUID="591190b2-75a0-438b-8145-76cd507401d7" tce=UUID="591190b2-75a0-438b-8145-76cd507401d7"

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Starting X at boot
« Reply #9 on: January 24, 2014, 06:09:23 PM »
Try with removing "quiet  home=sda1 opt=sda1" from boot config and changing "waitusb=" value to 20, and see what happens then.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Vilkata

  • Newbie
  • *
  • Posts: 12
Re: Starting X at boot
« Reply #10 on: January 24, 2014, 07:10:22 PM »
Except for the obvious(my wallpaper didnt restore, for example,) there was no difference; still booted to prompt, startx worked fine.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Starting X at boot
« Reply #11 on: January 24, 2014, 07:43:05 PM »
show us 'ls -l /home/tc/.profile'

Offline Vilkata

  • Newbie
  • *
  • Posts: 12
Re: Starting X at boot
« Reply #12 on: January 24, 2014, 08:01:21 PM »
Code: [Select]
tc@box:~$ ll /home/tc/.profile
-rw-r--r--    1 tc       staff          920 Nov 26 10:16 /home/tc/.profile

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Starting X at boot
« Reply #13 on: January 24, 2014, 08:06:06 PM »
startx is run from .profile.
I guess it is up to you to find out why .profile is not being sourced, or the startx is not being reached.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Starting X at boot
« Reply #14 on: January 25, 2014, 12:51:25 AM »
It won't help with your problem, but:
onboot.lst:

Code: [Select]
Xprogs.tcz
aterm.tcz
flwm_topside.tcz
libXau.tcz
libXdmcp.tcz
libXt.tcz
libfontenc.tcz
libXft.tcz
libXinerama.tcz
libXcursor.tcz
wbar.tcz
flwm_topside.tcz
Xorg-7.7.tcz
xf86-video-intel.tcz
cups.tcz
libasound.tcz
dbus-glib.tcz
gtk2.tcz
conky.tcz

..can be reduced to:
Code: [Select]
Xprogs.tcz
aterm.tcz
flwm_topside.tcz
wbar.tcz
Xorg-7.7.tcz
xf86-video-intel.tcz
cups.tcz
libasound.tcz
dbus-glib.tcz
gtk2.tcz
conky.tcz

I'm also wondering what purpose libasound serves loaded "onboot"?