Other Help Topics :: XFree86.dsl automated script for 2 different pc's



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 :)

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?


original here.