Friday, February 12, 2010

howto run a new python script

Paste the script with gedit in a text file, save it with a relevant name that ends with py i.e. script.py, make the script executable with
cd /path/to/script
sudo chmod +x script.py


Then relocate the script to /usr/bin as root.
Now you can activate the script with typing script.py in a terminal or in a launcher.

Make a symbolic link:
ln -s /usr/share/adesk-menu/adesk-menu /usr/bin/adesk-menu

hard link:
ln /usr/share/adesk-menu/adesk-menu /usr/bin/adesk-menu

No comments:

Blog Archive