jqdkf@zju.edu.cn wrote:
I do this under shell: $ bash $ sx but nothing happens, then $ startx > /dev/null 2>&1 & and I get into X, any ideas?
Ah. Are you in the same directory as the sx script? If so, try "./sh".If that works, your path no longer has the current directory in it (which is a good thing). You can either add the current directory back to your path (security risk), or get in the habit of typing "./" in front of your command, or move the script to a ~/bin directory, and uncomment the lines in .bashrc/.bash_profile dealing with the ~/bin directory (assuming you're using bash).
If that doesn't work, try adding a line like "echo script is running" to your script to see if that gets printed to the screen when you run the script.
-- Kent West (westk@acu.edu)