LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
Search this Thread
Old 08-22-2010, 09:36 PM   #1
murenti
LQ Newbie
 
Registered: Aug 2010
Location: Adelaide, South Australia
Distribution: Fedora
Posts: 14

Rep: Reputation: 0
Smile Debian 5.05 setup, HELP?


Hi I downloaded the first CD Image as instructed at http://www.debian.org/releases/stable/debian-installer/ and installed it on my laptop. I would like some help to install the "Synaptic Package Manager" and a mirror repository so that my system can update.
I have apparently installed " apt-cdrom add" and then typed "apt-get update" and I tried to install the mirror when the system was installed but as the wireless was not connected it apparently did not add the correct details.
I am sorry if my information is incorrect or misguided but I really want to try Debian and just need a little help to get me going.
Your Help is Much Appreciated, thank you

Last edited by murenti; 08-22-2010 at 09:37 PM. Reason: to Add tags
 
Old 08-22-2010, 10:22 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,684

Rep: Reputation: 124Reputation: 124
Copy/paste the following to the file /etc/apt/sources.list (as root)
Code:
deb http://ftp.au.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.au.debian.org/debian/ lenny main contrib non-free

deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib

deb ftp://ftp.debian-multimedia.org lenny main
Save the file, close the editor. Next, issue these commands, still as root:
Code:
apt-get update && apt-get dist-upgrade && apt-get install synaptic
The && dictates that each command is only executed if the previous one has finished successfully. The sequence: updating the package cache, completely upgrading your system to the latest versions of the installed software and install Synaptic. Let the machine finish.

It is wise to have a wired connection to the internet, at least until you've managed to get wireless working...
 
1 members found this post helpful.
Old 08-22-2010, 11:14 PM   #3
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,591

Rep: Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244
You said that wireless was not connected. Do you now have a working network connection (either wireless or wired)?

Evo2.
 
Old 08-23-2010, 12:43 AM   #4
murenti
LQ Newbie
 
Registered: Aug 2010
Location: Adelaide, South Australia
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
I have a wired connection, but I dont know how to change the file as a root user
I did this "Alt+F2" and typed "gedit /etc/apt/sources.list"
This didnt allow editing at the root level.
 
Old 08-23-2010, 01:32 AM   #5
murenti
LQ Newbie
 
Registered: Aug 2010
Location: Adelaide, South Australia
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
I also tried changing my user to a root privledge but it still rejected my attempts at root level file changing.
 
Old 08-23-2010, 01:33 AM   #6
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,591

Rep: Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244
to become root, open a terminal and enter the following command:
Code:
su -l
You should then be prompted for the root password: type it and press enter.

Then, from the same terminal you can launch a text editor and edit and save the file.

Evo2.
 
1 members found this post helpful.
Old 08-23-2010, 01:40 AM   #7
murenti
LQ Newbie
 
Registered: Aug 2010
Location: Adelaide, South Australia
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
I entered su -l in root terminal and then root password
then entered gedit /etc/apt/sources.list
it says the following
"cannot open display:
Run 'gedit --help' to see a full list of available command line options."

Last edited by murenti; 08-23-2010 at 01:42 AM.
 
Old 08-23-2010, 01:59 AM   #8
murenti
LQ Newbie
 
Registered: Aug 2010
Location: Adelaide, South Australia
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
I also opened a terminal typed "su -l"-Entered Root password-then tried "gedit /etc/apt/sources.list" in the terminal, and it said "cannot open display: Run 'gedit --help' to see a full list of available command line options." I then tried "Alt+F2"-"gedit /etc/apt/sources.list" to see if the editor was root accesable but unfortunately it wasnt. Your patience and help is very much appreciate and I am open to further help please.
gedit --help options are not very helpful, just for your info

Last edited by murenti; 08-23-2010 at 02:01 AM.
 
Old 08-23-2010, 02:29 AM   #9
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,591

Rep: Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244
If you are already in "root terminal" then you don't need to run "su -l" (switch user).

Quote:
cannot open display:
Use an editor that does not need to open a new window: Eg "nano"

Code:
nano /etc/apt/sources.list
Evo2.
 
1 members found this post helpful.
Old 08-23-2010, 02:40 AM   #10
murenti
LQ Newbie
 
Registered: Aug 2010
Location: Adelaide, South Australia
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
I am only new to Linux and still learning, but with NANO how do I save it please

Also, thanks for your help but I have learned that gksudo gedit solves the problem, thank you very much for your help

Last edited by murenti; 08-23-2010 at 02:50 AM.
 
Old 08-23-2010, 03:40 AM   #11
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,591

Rep: Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244
Nano has instructions at the bottom of the screen. ^x (Ctrl x ) to quit and then you will be asked if you want to save: press y. Then I think you will be prompted for the file name: the default name is the original name so press enter.

Evo2.
 
  


Reply

Tags
help, programs, repository


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
setup debian as a router cccc Debian 3 07-31-2009 06:23 AM
Keyboard setup debian Armane Debian 2 04-12-2007 09:51 AM
LXer: The Perfect Setup - Debian Etch (Debian 4.0) LXer Syndicated Linux News 0 04-10-2007 02:16 PM
debian fonts setup r.stiltskin Debian 15 02-15-2006 12:05 AM
How to setup NVIDIA at Debian? Mathsniper Linux - Software 2 09-18-2004 12:17 PM


All times are GMT -5. The time now is 08:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration