WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: xorg.conf like file  (Read 3677 times)

Offline sonu

  • Newbie
  • *
  • Posts: 12
xorg.conf like file
« on: September 24, 2009, 05:02:34 AM »
hi,

i am using tc-2.0, (for some reason i wish not to use newer versions), on an windows vista machine using qemu.

at boot time i give the command: tinycore vga=786 (to set screen size 800x600), as the system is loading it stays in a 800x600 window, however when the desktop is about to load the window changes size and is actually bigger than my display monitor.

i think perhaps there is some xvesa conf file that tells it to do that but i am having trouble finding  such a file.

so my question is how can i make the screen size stay the same?

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: xorg.conf like file
« Reply #1 on: September 24, 2009, 08:53:57 AM »
The vga boot codes are for console. Using the boot code of xsetup will prompt you to select your Xvesa resolution. Use backup/restore to persist this setting. The setting is in the file .xsession in your home directory.
10+ Years Contributing to Linux Open Source Projects.

Offline sonu

  • Newbie
  • *
  • Posts: 12
Re: xorg.conf like file
« Reply #2 on: September 28, 2009, 02:03:43 AM »
that works great!

just a quick question....how can i start a GUI application automatically at startup. I added the line "/home/tc/gui_app" to the /opt/bootlocal.sh file but that didn't work....so i added the same line to to /home/tc/.xsession file and that did not work either...!!

perhaps I need to write "exec /home/tc/gui_app"....?!?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10960
Re: xorg.conf like file
« Reply #3 on: September 28, 2009, 02:18:50 AM »
It should go in .xsession as "/home/tc/gui_app &", backgrounded. After waitforX.
The only barriers that can stop you are the ones you create yourself.

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: xorg.conf like file
« Reply #4 on: September 28, 2009, 05:40:41 AM »
hi,

i am using tc-2.0, (for some reason i wish not to use newer versions).........
which reasons? 4 not becoming an upgrade dependent?
dCore user

Offline sonu

  • Newbie
  • *
  • Posts: 12
Re: xorg.conf like file
« Reply #5 on: September 29, 2009, 12:24:50 AM »
which reasons? 4 not becoming an upgrade dependent?

there is a remaster script that only works with tc-2.0, i tried the script on tc-1.x and tc-2.x and it didn't work - only works on tc-2.0!

heres the script:
Code: [Select]
#remaster  --  Tiny Core Linux tinycore file
#
# TC Community script -- credits at bottom
cd /

echo -n Deleting the old tinycore ...
sudo rm -rf /home/tc/boot/tinycore
sudo rm -rf /home/tc/test.iso

echo Remastering ...

#echo -n creating windows folder ...
#sudo mkdir /mnt/windows

#echo -n mnt windows share to folder ...
#sudo mount -t cifs //192.168.1.101/gurbani /mnt/windows -o user=pavitar,pass=guru

#echo -n copying boot files ...
#sudo cp -Rp /mnt/windows/test/tmp/* /home/tc/

echo -n Local hacks:\
  echo -n Change X defaults
  sudo cp ~/.xsession /etc/skel/
  sudo cp ~/.setbackground /etc/skel/

  #if we do not clean /var/log the boot will crash
  echo -n , Empty /var/log
  sudo rm /var/log/* 2> /dev/null

  #to avoid error msg during boot if using xorg (file is being recreated during boot)
  if [ -e /usr/local/bin/xterm ] ; then
    echo , Obliterate xterm
    sudo rm /usr/local/bin/xterm 2> /dev/null
  fi
echo \ ... Done.

# Create empty stubs for system and tmp directories
echo /init >  /tmp/filelist
echo /proc >> /tmp/filelist
echo /sys >> /tmp/filelist
echo /tmp >> /tmp/filelist
echo /dev >> /tmp/filelist

# Create basic dev structure
# Warning: Missing devices make big trouble,
# and this list may not be complete!
echo /dev/console >> /tmp/filelist
echo /dev/input >> /tmp/filelist
echo /dev/mem >> /tmp/filelist
echo /dev/net >> /tmp/filelist
echo /dev/null >> /tmp/filelist
echo /dev/pts >> /tmp/filelist
echo /dev/random >> /tmp/filelist
echo /dev/rtc >> /tmp/filelist
echo /dev/shm >> /tmp/filelist
echo /dev/usb >> /tmp/filelist
echo /dev/tty >> /tmp/filelist
echo /dev/tty0 >> /tmp/filelist
echo /dev/tty1 >> /tmp/filelist
echo /dev/tty2 >> /tmp/filelist
echo /dev/tty3 >> /tmp/filelist
echo /dev/tty4 >> /tmp/filelist
echo /dev/tty5 >> /tmp/filelist
echo /dev/tty6 >> /tmp/filelist
echo /dev/tty7 >> /tmp/filelist

# For /mnt we are only interested in the mount points and not in the mounted data
find /mnt -maxdepth 1 >> /tmp/filelist

# Build list of files to save
find /bin /etc /home /lib /opt /root /sbin /usr /var >> /tmp/filelist

echo -n Building new master ~/tinycore ...
cat /tmp/filelist | sudo cpio -o -H newc > /home/tc/boot/tinycore
#cat /tmp/filelist | sudo cpio -o -H newc | gzip -2 > ~/tinycore.gz

#echo -n compressing tinycore.gz ...
#advdef -z4 tinycore.gz

#echo -n moving tinycore.gz to boot dir ...
#sudo cp tinycore.gz /home/tc/boot/

echo -n making the iso ...
sudo mkisofs -l -J -V custom -no-emul-boot -boot-load-size 4 -boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -o /home/tc/test.iso /home/tc
 
echo \ Done!
exit 0

# History
#  2009-05-08: u54749 posts original
#  2009-06-27: philip posts this edit

i modified the script with mounting windows and making the iso file, but i don't that has anything to do with it.

 
THANK you curaga, that worked very nicely...if I wanted to stop JWM from loading and only display my app I would keep the
Code: [Select]
/usr/bin/Xvesa -br .... line and comment out the rest, right?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10960
Re: xorg.conf like file
« Reply #6 on: October 02, 2009, 01:13:41 PM »
If you only want to stop jwm/flwm, comment out the lines with DESKTOP. The last command might need then to be un-backgrounded.
The only barriers that can stop you are the ones you create yourself.