LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 08:36 PM   #1
anon038
LQ Newbie
 
Registered: Aug 2010
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 anon038; 08-22-2010 at 08:37 PM. Reason: to Add tags
 
Old 08-22-2010, 09:22 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

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, 10:14 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

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

Evo2.
 
Old 08-22-2010, 11:43 PM   #4
anon038
LQ Newbie
 
Registered: Aug 2010
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, 12:32 AM   #5
anon038
LQ Newbie
 
Registered: Aug 2010
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, 12:33 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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, 12:40 AM   #7
anon038
LQ Newbie
 
Registered: Aug 2010
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 anon038; 08-23-2010 at 12:42 AM.
 
Old 08-23-2010, 12:59 AM   #8
anon038
LQ Newbie
 
Registered: Aug 2010
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 anon038; 08-23-2010 at 01:01 AM.
 
Old 08-23-2010, 01:29 AM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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, 01:40 AM   #10
anon038
LQ Newbie
 
Registered: Aug 2010
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 anon038; 08-23-2010 at 01:50 AM.
 
Old 08-23-2010, 02:40 AM   #11
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:38 PM.

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
Open Source Consulting | Domain Registration