9a6or
Group: Members
Posts: 43
Joined: Feb. 2005 |
|
Posted: Feb. 16 2005,23:23 |
|
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
|