LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2005, 11:51 PM   #1
Weiznit
LQ Newbie
 
Registered: Jan 2005
Location: new jersey
Distribution: Dabien Linux
Posts: 18

Rep: Reputation: 0
how to?: adding to my menu in fluxbox


i want to add realplayer to fluxbox-apps-viewers-Realplayer

but i dont know how to do this.. i dont just want to know how to add RealPlayer, i would like to know how to do it in general.. or where i can find the info to learn how to..

i would also like to write a script that will mount my cdrom, even tho that isnt so much typing,. im all about getting people to switch over to linux by showing them how easy it is. and i would also want to get that script activated by my menu.. just to make the kiddies feel at home in xwindows
 
Old 12-10-2005, 12:01 AM   #2
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
To add something to your Fluxbox menu, edit the file ~/.fluxbox/menu. It should be pretty straightforward what to add/change once you read through the file.

For documentation on Fluxbox (including menu syntax), go here.

It depends how your /etc/fstab is set up, but I can mount my cdrom just by typing "mount /mnt/cdrom". You could make a script like the following with whatever command you need to run:

Code:
#!/bin/bash
mount /mnt/cdrom
Save that to a file, and do "chmod 755 <filename>" to make it executable. Put it in a directory somewhere, and add a line to your menu to execute "/path/to/script".
 
Old 12-10-2005, 12:09 AM   #3
Weiznit
LQ Newbie
 
Registered: Jan 2005
Location: new jersey
Distribution: Dabien Linux
Posts: 18

Original Poster
Rep: Reputation: 0
thx a lot.. you even did the programming part.. that would have taken me hours!.. its sad.. but its no joke.. im a technophobe that is trying really hard to fit in
 
Old 12-10-2005, 12:15 AM   #4
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
No problem, and feel free to post here whenever you have a problem you can't figure out yourself... there are plenty of people willing to help.

There are quite a few sites on learning Linux out there, but one I've found pretty helpful in understanding how the system itself works (not just whatever GUI is on top of it), is http://www.slackbook.org/. It's written for Slackware but should be mostly appropriate for whatever distribution you use.

As for the bash script, a quick search on http://www.google.com/linux for "bash script" will give you more resources than you'll have time to read. Basically, to make a script like that, you make the first line "#!/bin/bash" which tells the system to use the bash interpreter to process whatever you write below. At that point, you can type whatever lines you want executed after that in the file, exactly the same as you'd type them on the command line. Then you just have to make the file executable so you can run it.

One more thing: you usually have to be root to mount filesystems. Take a look at "sudo" if you want to let any user be able to do that without changing to root just to mount the cdrom.
 
Old 12-10-2005, 12:25 AM   #5
Weiznit
LQ Newbie
 
Registered: Jan 2005
Location: new jersey
Distribution: Dabien Linux
Posts: 18

Original Poster
Rep: Reputation: 0
this all helps a lot.. im still not able to mount my cdrom using the command line:
mount -t iso9660 /dev/cdrom /media/cdrom
which is what i thought i was supposed to do.. i made the mistake of taking a 4 month break in linux which has really made me a forget a lot of what i had learned..
once i figure out the filesystem name then that will help.. its telling me it doesnt know iso9660.. i think dvd is udf in its place and mounting floppy should be:
mount -t vfat /dev/fd0 /media/floppy

most of the stuff i have is written on napkins, maybe this is the real problem
 
Old 12-10-2005, 02:22 PM   #6
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Can you post the contents of the file "/etc/fstab"?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem adding programs to fluxbox menu in Slack 10 apc Slackware 2 07-28-2004 07:14 AM
Problem adding programs to fluxbox menu apc Linux - Software 1 07-28-2004 06:07 AM
Adding a KDE menu to gnome menu Projekt2 Slackware 3 10-25-2003 02:47 PM
adding items to fluxbox menu..... calvinchan2 Linux - Newbie 3 08-23-2003 02:37 AM
Adding fluxbox to 'xwmconfig' menu cav Linux - General 4 04-14-2003 06:12 PM


All times are GMT -5. The time now is 08:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration