maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Newbie (https://talk.maemo.org/forumdisplay.php?f=26)
-   -   How do you edit sources.list? (https://talk.maemo.org/showthread.php?t=20730)

gerrymoth 2008-06-05 14:13

How do you edit sources.list?
 
Okay in Ubuntu I would just open a xterm and type

Code:

sudo gedit /etc/apt/sources.list
So how do I do this on the N800, I've tried searching here and google, so its driving me nuts.

HEEEELLLLPPPPP!

GeneralAntilles 2008-06-05 14:52

Re: How do you edit sources.list?
 
/etc/apt/sources.list.d/hildon-application-manager.list

gerrymoth 2008-06-05 16:28

Re: How do you edit sources.list?
 
Quote:

Originally Posted by GeneralAntilles (Post 189001)
/etc/apt/sources.list.d/hildon-application-manager.list

Please treat me like an idiot, what do I do with this?

qwerty12 2008-06-05 16:29

Re: How do you edit sources.list?
 
Edit it?

(with your favourite text editor)

gerrymoth 2008-06-05 17:13

Re: How do you edit sources.list?
 
using emelFM2 to edit /etc/apt/sources.list.d/hildon-application-manager.list and I get permission denied?

qwerty12 2008-06-05 17:14

Re: How do you edit sources.list?
 
Do it as root.

gerrymoth 2008-06-05 17:18

Re: How do you edit sources.list?
 
Okay, please I'm going round in circle and ready to throw my N800 at the wall.

Can you please do a step by step instructions for editing this file? What to open, what to type, etc..

Benson 2008-06-05 17:21

Re: How do you edit sources.list?
 
sudo gainroot gets you a root shell; if it doesn't you need to either hook up to a Linux machine and use flasher-3.0 to enable R&D mode (which has other effects, too), or install the becomeroot package, which kills the test for R&D mode so gainroot works.

Once you've got a root shell, if you want it like Ubuntu's default, you need to use visudo to add a line with ALL, nopasswd, ALL....

EDIT: OK, here's the actual line to add:
Code:

user ALL = NOPASSWD: ALL

gerrymoth 2008-06-05 17:25

Re: How do you edit sources.list?
 
I've got becomeroot already installed and I can sudo gainroot.

Its what do I type next? If I edit with emelFM2 I get permission denied.

Benson 2008-06-05 17:38

Re: How do you edit sources.list?
 
Well, you can try using whatever editor you like; some GUI editors will have session-related issues from running root, and won't work; if you can't get your favorite, go with your favorite screen editor (I use JOE (with stylus support) for almost all editing on the N800), or maybe even sed...

(Sorry if the non-specificity is annoying, but while all the respondents so far are probably arrogant enough to tell you which editor is best ;), I think none are sufficiently presumptious to tell you which to use. If you want to use that piece-of-<insert rival editor>, I'm not gonna stop you...)


All times are GMT. The time now is 03:37.

vBulletin® Version 3.8.8