Newbie Linux questions

drag

Elite Member
Jul 4, 2002
8,708
0
0
Originally posted by: fyleow
Quick questions for the Linux gurus here.

1) Is there a way to run Nautilus with elevated privileges temporarily? Right now I need to run terminal and sudo if I need to move/rename/delete files that my local account doesn't have permissions to.

Don't think so.

Mostly it's this for text editing I support, suppose. Gnome has good drag and drop support so you can open sudo gedit or sudo gvim or whatever and then drag the file from nautilus to the editor.

2) How do I change the default programs used to open file types? I'd like to make mplayer open automatically when I double click a media file instead of totem.

Right click the file, go to properties, hit the open-with tab, select mplayer. It will change it for all files of that type.

Otherwise you can go into ~/.local/share/applications/defaults.list and edit that file if you want to do this stuff directly. There are *.desktop files that describe what application you want to use and how to launch them. Occasionally you can point Gnome to use a paticular program, but it doesn't realy work. Usually if it fails it will launch the application, but not have the application open the file. You can fix this by editing the applications *.desktop file.

Also through nautilus you can add your own applications and it will make a new .desktop file in ~/.local/share/applications/



3) Some programs like mplayer (at least with the default install options) don't like playing files that are on the network. The solution is to mount the samba share. Is there a way to get around this issue without mounting?

Thanks.

I donno. What do you mean by 'files that are on the network'? You are trying to stream media files or something?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Alright well it's no big deal I guess. It's just annoying that the directories on my file servers are owned by root for some odd reason. I'll just chown it back to my local user.

You can probably run 'gksu nautilus', I'm not sure if there's an icon for that setup by default. But in general it's a much better idea to just make sure that the files have the correct ownership.

Yeah when streaming files over the network mplayer will give an error saying that it couldn't be found. This happens if I just double click on a media file while it's on the network. If I mount it first then it's no problem. It works with totem though, and Kaffeine in Kubuntu.

Network paths aren't standardised like they are on Windows with UNC paths, most Gnome apps understand smb://blah (or ssh:// or whatever else the gnome vfs supports) paths but normal unix utilities don't and I guess that mplayer is one that doesn't.
 

firefly2442

Junior Member
Mar 23, 2007
3
0
0
Originally posted by: fyleow
Quick questions for the Linux gurus here.

1) Is there a way to run Nautilus with elevated privileges temporarily? Right now I need to run terminal and sudo if I need to move/rename/delete files that my local account doesn't have permissions to.

sudo nautilus

from the terminal? That's what I do sometimes.
 

Alone

Diamond Member
Nov 19, 2006
7,490
0
0
Originally posted by: firefly2442
Originally posted by: fyleow
Quick questions for the Linux gurus here.

1) Is there a way to run Nautilus with elevated privileges temporarily? Right now I need to run terminal and sudo if I need to move/rename/delete files that my local account doesn't have permissions to.

sudo nautilus

from the terminal? That's what I do sometimes.

It's good practice to use gksu/gksudo (graphical sudo) for GUI based commands (nautilus, gedit) as mentioned above.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |