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

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

 
Thread Tools Display Modes
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, 172 views)
AegisTalons is offline   Reply With Quote
Old December 17th, 2007   #2
AegisTalons
A Carafe of Ubuntu
 
AegisTalons's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Beans: 148
Ubuntu 8.04 Hardy Heron
Re: HOWTO: Lightscribe work from Menu with root permission (SCRIPT)

A simpler method I found out recently instead of using a script is just calling the command within the shortcut.

Type: Application
Name: Lightscribe (Or whatever you wish)
Command: sudo 4L-gui
Comment: Label a disc (This comment appears when your mouse is hovering over the icon.
__________________
HOWTO: Lightscribe work from Menu (SCRIPT)
Howto: Make Conky display information on different parts of screen
Specs:Intel Core 2 Duo 2.13 @ 3.2 GHz | Nvidia GeForce 7900 GT | 2 GBs Ram | 640 GB - HDD
All watercooled and overclocked!!!
AegisTalons is offline   Reply With Quote
Old April 2nd, 2008   #3
j_dog
A Carafe of Ubuntu
 
Join Date: Apr 2007
Beans: 114
Re: HOWTO: Lightscribe work from Menu with root permission (SCRIPT)

Help !!! I am not understanding this ! I have it in the menu. it opens up. but I can not use it because I can't get the root thing right.
j_dog is offline   Reply With Quote
Old April 5th, 2008   #4
AegisTalons
A Carafe of Ubuntu
 
AegisTalons's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Beans: 148
Ubuntu 8.04 Hardy Heron
Re: HOWTO: Lightscribe work from Menu with root permission (SCRIPT)

I don't understand what you mean by "can't get the root thing right". You have to edit the Lightscribe application from the menu. So, right click on applications and click "Edit Menus". For your Lightscribe link, under the command option, use either "sudo 4L-gui" or "gksudo 4L-gui". Either of these options, when you click on the newly created link, it will ask for your password so 4L-gui can run as root and thus fully access the Lightscribe drive and burn your label.
__________________
HOWTO: Lightscribe work from Menu (SCRIPT)
Howto: Make Conky display information on different parts of screen
Specs:Intel Core 2 Duo 2.13 @ 3.2 GHz | Nvidia GeForce 7900 GT | 2 GBs Ram | 640 GB - HDD
All watercooled and overclocked!!!
AegisTalons is offline   Reply With Quote
Old April 5th, 2008   #5
j_dog
A Carafe of Ubuntu
 
Join Date: Apr 2007
Beans: 114
Re: HOWTO: Lightscribe work from Menu with root permission (SCRIPT)

I see...... It was not working with sudo. It works with gksudo. Why is that , I always use sudo in the terminal ?


Thank you for your Help !!
j_dog is offline   Reply With Quote
Old April 5th, 2008   #6
AegisTalons
A Carafe of Ubuntu
 
AegisTalons's Avatar
 
Join Date: Mar 2007
Location: Pittsburgh, PA
Beans: 148
Ubuntu 8.04 Hardy Heron
Re: HOWTO: Lightscribe work from Menu with root permission (SCRIPT)

So sudo is designed for terminal and gksudo is the graphical sudo for use with gnome.
__________________
HOWTO: Lightscribe work from Menu (SCRIPT)
Howto: Make Conky display information on different parts of screen
Specs:Intel Core 2 Duo 2.13 @ 3.2 GHz | Nvidia GeForce 7900 GT | 2 GBs Ram | 640 GB - HDD
All watercooled and overclocked!!!
AegisTalons is offline   Reply With Quote
Old July 9th, 2009   #7
vijaym
5 Cups of Ubuntu
 
Join Date: Aug 2005
Location: East London, South Africa
Beans: 39
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO: Lightscribe work from Menu with root permission (SCRIPT)

Hey AegisTalons

Thanks for the instructions..

Works well.
__________________
vijay
vijaym is offline   Reply With Quote
Old July 9th, 2009   #8
fballem
Dipped in Ubuntu
 
fballem's Avatar
 
Join Date: May 2008
Location: Toronto, Ontario, Canada
Beans: 592
Ubuntu Karmic Koala (testing)
Send a message via ICQ to fballem
Re: HOWTO: Lightscribe work from Menu with root permission (SCRIPT)

I must be missing something. Why do you need to run LightScribe as root? I have used the following instructions to successfully setup the LightScribe Simple Labeler software.

LightScribe is used to label LightScribe discs.

- obtain the software from: LightScribe website. Both the System Software and the Simple Labeler software are required. These should be saved to your desktop.

32-bit Linux
- install the software. There are two components. The core software must be installed first, then the Application.

64-bit Linux (This needs to be installed using the following commands in a Terminal). The version numbers will need to be changed to match the actual download files. The first two commands will install the LightScribe software. The remaining commands will resolve issues with referencing a required library.
Code:
sudo dpkg -i --force architecture lightscribe-1.18.6.1-linux-2.6-intel.deb
sudo dpkg -i --force architecture lightscribeApplications-1.10.19.1-linux-2.6-intel.deb
sudo ln -s /usr/lib/liblightscribe.so.1 /usr/lib32/
sudo ln -s /usr/lib/liblightscribe.so /usr/lib32/
sudo ldconfig
For both 32-bit and 64-bit installations, set the label so that it will print darker:
Code:
 
sudo /usr/lib/lightscribe/elcu.sh
Once installed, then a menu option can be created to use the software.

1. Right-click on Applications and select Edit Menu from the context menu.
2. Click on Accessories, which is where the lightscribe menu item will be placed.
3. Click the New Item button, and enter the following information into the fields:
a. Ensure that Type is set to Application.
b. Name may be anything. I use LightScribe Labeller.
c. Command is: /opt/lightscribeApplications/SimpleLabeler/SimpleLabeler (the browse button may be used to locate the application, which is in the /opt/lightscribeApplciations/SimpleLabeler folder.
d. Comment may be anything. I use Writes a label on Lightscribe-enabled discs
e. Click on the icon and browse to /opt/lightscribeApplications/SimpleLabeler/content/images folder. Once browsed, a list of suitable icons appears. Select one.
f. Click on the Close button, which will complete the application.

I am attaching a screenshot showing the final setup of the Application Launcher Panel.

To use, select the launcher from Applications > Accessories > LightScribe Labeller (or whatever was put in the Name field.

Hope this helps,
Attached Images
File Type: png Screenshot-Launcher Properties.png (24.1 KB, 13 views)
__________________
"Always take the high road! That way, nothing will hit you when the brown, gooey stuff hits the fan."
fballem 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 05:36 PM.


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