Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old August 8th, 2007   #1
AegisTalons
A Carafe of Ubuntu
 
AegisTalons's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Beans: 148
Ubuntu 8.04 Hardy Heron
Smile HOWTO: Lightscribe work from Menu with root permission (SCRIPT)

This is my first how-to. I wrote it so you can follow it step by step. Hope everyone enjoys it and finds it useful.

So you got LightScribe working. If you have not check out these threads:

HOWTO: Install Lightscribe Software
How-to: Lightscribe under Feisty Fawn

This has been tested with Ubuntu 7.04 Feisty Fawn x64 bit, but this should work with 32 bit version.

Explanation: This is a how-to to get lightscribe properly launch from the menu with root permission. I wrote this small script because I wanted the menu option and did not want to always have the terminal open while burning the label on the disc.

Required Items: Lightscribe drive working (Use the links above to help you get it working if you have not gotten it working.), Root Access

Uninstalling/Undoing Delete the created menu link and the script

1) Save the following script as lightscribe.sh:
Code:
#!/bin/sh

# Opens 4L-gui under sudo to print

foo=`gksudo -u root -k -m "Enter your password for 4L-gui root access (It needs it to burn the label image.)" /bin/echo "got r00t?"`

sudo 4L-gui
2) I placed this file in a folder called scripts in my home folder: /home/user/scripts

3) Now Right Click on the Applications Menu and select Edit Menus

4) Decide where you want Lightscribe listing to show. I placed it in the Sound and Video folder. Click New Item on the right.

5) A dialog box will appear. Just fill in the following:

Type: Application
Name: Lightscribe (Or whatever you wish)
Command: sh [script location]
Comment: Label a disc (This comment appears when your mouse is hovering over the icon.

In my case:
Command: sh /home/user/scripts/lightscribe.sh

If you want to use an icon, use the following attached image.

Most icons are kept in this folder: /usr/share/pixmaps/

Now hit close

If you want to keep the all your icons in a localized and central place. Follow these steps:

1) Save the attached image to your desktop or somewhere you can easily access.
2) Open a terminal (Applications -> Accessories -> Terminal)
3) cd (Change Directory) into the folder with the downloaded image
4) Type
Code:
sudo cp lightscribe.png /usr/share/pixmaps/
5) That just copied the image to that directory, to be sure
Code:
cd /usr/share/pixmaps/
then type
Code:
ls
6) Type
Code:
exit
Go ahead and give it a test run. If you have any problems/questions/comments, please feel free to post them.
Attached Images
File Type: png lightscribe.png (11.8 KB, 167 views)
AegisTalons is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:17 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry