Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 2 [3] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: XFree86.dsl automated script for 2 different pc's, cp .xserverrcGforce ~/.xserverrc< Next Oldest | Next Newest >
9a6or Offline





Group: Members
Posts: 43
Joined: Feb. 2005
Posted: Feb. 16 2005,23:23 QUOTE

Following on from Patrick's script, below is how I did it:

I created a script with Beaver (DSL text editor) which I saved as "home" to home/dsl
Code Sample

mydsl-load /mnt/sda1/optional/XFree86.dsl
cp -f ~/XFree86_config_files/.xserverrc_for_XF86 ~/.xserverrc
sudo cp -f ~/XFree86_config_files/XF86Config-4_radeon_9600pro /etc/X11/XF86Config-4
startx


(XFree86.dsl was downloaded first to the optional folder on the USB flashdisk ie. /mnt/sda1. As it is run by the script, XFree86 is set up and the XFree86_config_files folder is created. The relevant files are copied to their places and the X is started.)

I made "home" executable by
chmod 755 home

Also, I changed ".bash_profile" in home/dsl (it is a hidden file, click H in emelFM to see it):
Code Sample

#!/bin/bash
export IRCNICK=DSL
SSH=`env | grep SSH_CONNECTION`
# if [ -z "$SSH" ]; then startx; fi
clear
echo "startx ----- start Xvesa GUI"
echo "home   ----- start XFree86 GUI on ATI Radeon"


I added both home/dsl/home and home/dsl/.bash_profile to filetool.lst

Now when I type home DSL starts with XFree86 on my PC with 85Hz refresh rate, and startx runs the default Xvesa on other PCs. The next step is to work out the correct settings for the other PCs I am using and writing similar scripts for them.

To make DSL really portable this was an essential step to take. There must be more elegant ways of doing this but it works and certainly makes me happy :)
Back to top
Profile PM 
9a6or Offline





Group: Members
Posts: 43
Joined: Feb. 2005
Posted: Feb. 17 2005,01:49 QUOTE

Loading multiple extensions leaves sda1 mounted...


I am making a script for running DSL on PCs with NVidia cards including acceleration. For this I have to call
mydsl-load /mnt/sda1/optional/XFree86.dsl  and
mydsl-load /mnt/sda1/optional/nvidia.dsl

Both extensions are read from a USB flashdisk which can run at slow speed only on this PC (USB 1.1). The message I get is:
umount: /mnt/sda1: device is busy

and when X runs sda1 is mounted.

How can I load two extensions so that sda1 remains unmounted afterwards?
Back to top
Profile PM 
11 replies since Dec. 25 2004,18:25 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 2 [3] >/
reply to topic new topic new poll
Quick Reply: XFree86.dsl automated script for 2 different pc's

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code