LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 08-31-2006, 03:16 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,435

Rep: Reputation: 38
open files without an extension


hi

I have sarge stable with gnome but cannot open files without an extension, like: /etc/network/interfaces
with gedit.
I get the following error:
Code:
Could not add application to the application database
where can I change it ?
 
Old 09-01-2006, 07:57 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,534

Rep: Reputation: 70
What does
Code:
ls -al /etc/network/interfaces
tell you? Mind you, this file is only accessible by root! Become root first, then invoke gedit with
Code:
gedit /etc/network/interfaces
If it fails again you might rename the file with a .txt extension (although I normally wouldn't recommend it, it might help solve your problem)
 
Old 09-01-2006, 08:33 AM   #3
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 581

Rep: Reputation: 32
on my debian systems (8 in all) a normal user can open gedit
etc/network/interfaces simply by double clicking it. However it opens as read only.
 
Old 09-01-2006, 09:22 AM   #4
makyo
Member
 
Registered: Aug 2006
Location: Saint Paul, MN, USA
Distribution: {Free,Open}BSD, CentOS, Debian, Fedora, Solaris, SuSE
Posts: 706

Rep: Reputation: 68
Hi, cccc.

You didn't mention what file browser you are using. I use the FM that comes with Xandros (Debian-based), and that allows me to navigate to the appropriate place, then to choose the application by right-clicking on the file icon, and open-with-other -- however, I previously had added gedit to the list of applications in the master menu. The Xandros system also allows association of an extension with an application via the use of Control Center, but I don't know how htat is done in a standard Debian system.

That may not work for you, but as Dutch Master has implicitly mentioned, you could run gedit from the command line with the pathname to the file interfaces.

Another method is to run gedit, from the command line or desktop, and then click the open icon at the top, and use the navigation to get to the right place and file.

You almost certainly should not change the name of files in /etc or places other than the ones under your direct control -- system programs, scripts, processes rely on specific names, and if you change them, it may be difficult to reverse the action.

I installed gedit to see how it looks and works. It seems to be very large, but editors are as personal a choice as other things in computing.

Keep us posted, best wishes ... cheers, makyo
 
Old 09-01-2006, 10:51 AM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,435

Original Poster
Rep: Reputation: 38
I'm using nautilus and try to open directly from nautilus.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How open files with rar extension? sarajevo Debian 6 08-31-2005 08:34 AM
files with extension rar ankscorek Linux - Software 5 07-25-2005 09:41 PM
Extension files BC1 Linux - Software 5 12-20-2004 03:41 AM
What to do about these files with .new extension? Slovak Slackware 1 11-23-2004 04:50 PM
How program to read files with extension .dat y .cfg files COMTRADE in fedora 1? ivonne Linux - Software 0 11-22-2004 11:42 AM


All times are GMT -5. The time now is 05:07 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration