The current system used to automatically start the terminal and run scripts or commands in Ubuntu is: Ubuntu 10.04 1. assume that the default directory of the current terminal is:/root; 2. go to the/home/wilson/directory and create the bash file. sh: Date Pwd> aaaa with executable permissions: chmod + x aaaa; 3. in the terminal/root directory, run:/home/wilson/. sh, successful; 4. (gnome) Main Menu-> application-à attachment-> terminal, right-click-> Add to desktop, and get a terminal starter on the desktop. Right-click and choose Properties> basic> command, and modify it to gnome-terminal-x/home/wilson/. sh (must be an absolute path) double-click it to test whether it is successful or not. If the file aaaa is generated in the/root directory, the execution is successful. 5. (gnome) Main Menu-> system-> preference-> startup application-> Create (add)-> copy gnome-terminal-x/home/wilson/. sh to three boxes, OK. After completing the preceding operations, restart reboot to automatically open the terminal and run script a. sh.