To get my wireless to work I would have to run four commands in terminal each time I rebooted and this was unacceptable. So I decided to create a little script so I could just click once and it would automatically run each command for me, so I didn't have to type them in each time.
To create a script to run multiple commands in order just right click anywhere on your Ubuntu desktop and select create Document>Empty File then enter in a name for the file. Once it is created double click it to open and edit it. Once inside type in your commands to be run in a terminal, by putting each command on a separate line. Now save it and close it.
Once this is done we need to make the script executable. What does that mean? To make the script executable means to make it able to run as a script and not just be a document of boring text. You can do this via the terminal but its much easier to right click the document you just created and click properties then go to the "permissions" tab and click the check box next to the thing that says, "Allow executing file as program" then pick close.
Now we need to make your script run on boot up automatically. To do this wee need to move your script to this path; /etc/init.d/ to do that let first move your script from your desktop into your home folder.
We initially created your script on your desktop so move your mouse to your gnome panel and select places>home folder. A file browser will open looking into your home folder so now just drag your script from your desktop into this new window and now it is in your home folder.
Now we will move it into /etc/init.d/ by using the terminal because we need sudo root privileges to do this. So open up a terminal and type:
sudo mv script-name /etc/init.d
with the script-name being the name of your script and yes Linux is case sensitive so if you used upper or lowercase letters they have to match. Next we need to get it all to update so run:
sudo update-rc.d script-name defaults
Now your script should be added to the start up and you can reboot your computer and watch it work!
Published by Courant
A college student who love technology and minimal running. I have run in everything from Newtons down to Luna Sandals and love to share my minimal running knowledge View profile
- Install and Configure GLFTPd (Linux)In this tutorial, we'll see how to install and configure what is certainly the most powerful ftp server for unix / linux / bsd.
- Split FLAC Image Files Using Some Simple Commands in GNU LinuxHave you found yourself with a great music album you desperately wanted for some time, only to find that it's in a single image like FLAC, APE, or WV? Linux can split these images.
- Introduction to PHP for BeginnersLearn how to setup a web server with PHP support, along with the basics of the PHP scripting language.
- Introduction to PHPPHP is one of the most popular programming languages of the Internet. PHP has come to enjoy widespread use among web developers and is probably the most common language used for open source web applications today.
Installing and Using VMware Workstation on Ubuntu Linux (Hardy), Mark IIIt's not fair to make you think you are getting a guide only to end up just hearing about how pissed I am at AC, so here is the rest of the guide. Jesus I don't feel like writin...
- Creating an Easy Lookup Table in a UNIX or Linux Shell Script
- Ubuntu Storms Linux Community
- Automating Ubuntu Backups with TAR and Cron
- How to Install Linux on a Nintendo Wii Gaming Console
- How to Configure a Linux Mail Server
- How to Build a Home Server
- How to Install Lotus Symphony on Ubuntu 8.10



