WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Disabeling xserver  (Read 2439 times)

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Disabeling xserver
« on: February 26, 2013, 08:02:34 AM »
What would be the best way to temporally setup Tiny to boot to console and not startx?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Disabeling xserver
« Reply #1 on: February 26, 2013, 08:04:10 AM »
Use the 'text' boot code.

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Disabeling xserver
« Reply #2 on: February 26, 2013, 08:12:31 AM »
Thanks

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Disabeling xserver
« Reply #3 on: February 26, 2013, 08:50:00 AM »
Ok, now that x is not running I want to run a none x application on startup. I gather that "~/.X.d" is for x only?
So where would be the right place to run my app at boot. I just try to test some thing without x but with out uninstalling x

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10965
Re: Disabeling xserver
« Reply #4 on: February 26, 2013, 09:22:25 AM »
Either bootsync or bootlocal in /opt, depending on whether your apps needs user input or not.
The only barriers that can stop you are the ones you create yourself.

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Disabeling xserver
« Reply #5 on: February 26, 2013, 10:00:06 AM »
Yes I just saw this thanks.

Offline CentralWare

  • Administrator
  • Hero Member
  • *****
  • Posts: 1652
Re: Disabeling xserver
« Reply #6 on: March 12, 2013, 04:48:07 AM »
Yes I just saw this thanks.

If you want to leave the system "as is" and do this yourself, you can shut down X (assuming you need the memory/resources for your script) or if you have ample resources, simply press <CTRL> + <ALT> + <F1> to jump over to a non-x shell and CTRL+ALT+F2 to return to the desktop.

To shut down X, here's a crude script I put together to do so for Tiny:

#!/bin/sh
sudo killall wbar
sudo killall flwm
sudo killall Xvesa
sleep 1
sudo umount /tmp/tcloop/flwm
sudo umount /tmp/tcloop/wbar
sudo umount /tmp/tcloop/fltk-1.1.10
sudo umount /tmp/tcloop/Xvesa
sudo umount /tmp/tcloop/Xprogs
sudo umount /tmp/tcloop/Xlibs

Odds are I haven't covered all the bases as there's probably a cleaner way to do this, but for the need I have it works well.
Hope it helps!
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair