LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-19-2010, 12:11 PM   #1
snow-templar
LQ Newbie
 
Registered: Oct 2009
Location: Mystic, CT
Distribution: Debian and Ubuntu
Posts: 4

Rep: Reputation: 0
Setting up the set up? (Debian VM)


So I have acquired a Debian virtual machine on a Xen cluster to play around with. I want to use it to eventually get into trying to see if I can make some interesting websites using Ruby on Rails with metaprogramming. I have worked in a *nix environment plenty of times but rarely have I had to actually maintain the machine. So I thought playing with a VM would be a great way to start it off.

The odd part is unlike installing Debian right onto a machine where certain installation options are available, I have to use the image provided by the Xen cluster, of which I have none of the details. I don't even know if it is Etch or Lenny! I have been trying to go through tutorials but my main problem is a lot of them assume you are starting from scratch while I really don't know what I already have, and so I've been getting conflicts. So I guess my questions boil down to this...

How do I get my VM to a similar to state to that of a fresh installation?
How do I properly configure my sources file? (Keep getting public key and package not found errors for the Debian secure repository server, and my college hosts a package mirror that I would like to keep in there.)
(Once the first two questions are answered) What other things should I keep in mind and set up other than Apache2, MySQL (or SQLite), SVN, Ruby and Rails?
 
Old 01-19-2010, 01:46 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
Quote:
How do I get my VM to a similar to state to that of a fresh installation?
In all likelihood the VM base install is pretty similar to a clean install.

Code:
dpkg -l
and remove the packages you don't want with a command like (be very careful what you pull):

Code:
apt-get remove --purge packagename
Quote:
How do I properly configure my sources file? (Keep getting public key and package not found errors for the Debian secure repository server, and my college hosts a package mirror that I would like to keep in there.)
(Once the first two questions are answered)
You can find out what distribution you're running by catting out /etc/debian_version. Version 4 is etch, version 5 is lenny.

You need to setup your /etc/apt/sources.list, try something like... (you can put your colleges mirror in place of the debian repositories... but keep in mind for security it'll likely lag a bit behind and they may not mirror ~everything~. Also make sure your distribution name is right-- i do NOT recommend using 'stable' 'unstable' 'testing' 'oldstable' as your distribution name as sometimes this can make a simple upgrade break things horribly. If you're using etch you should be able to use this by opening the file in vi and doing :s/lenny/etch/g :wq)

Code:
# Main Debian Mirror
deb http://ftp.us.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.us.debian.org/debian/ lenny main contrib non-free

# Security Updates Mirror
deb http://security.debian.org/ lenny/updates main contrib non-free
deb-src http://security.debian.org/ lenny/updates main contrib non-free

# Volatile Updates Mirror (SPAM Related Typically)
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free

# Backports from testing/unstable for lenny.
deb http://www.backports.org/debian lenny-backports main contrib non-free
deb-src http://www.backports.org/debian lenny-backports main contrib non-free
(I'll note backports stuff will not be considered for install by default even with it added to the sources list.)

Then do:
Code:
apt-get update
apt-get install debian-keyring debian-archive-keyring debian-backports-keyring
apt-get update && apt-get upgrade
This will update your sources, update your keyrings (or install them if necessary), and then upgrade you to the current release specified.

Quote:
What other things should I keep in mind and set up other than Apache2, MySQL (or SQLite), SVN, Ruby and Rails?
That really about covers it, don't have any services running and listening on ports you don't absolutely need. Might wanna toss php5 on there for completeness sake, any other scripting languages you want to use either system or web level. Maybe basic smtp.

Keep the system updated and upgraded.

Last edited by rweaver; 01-19-2010 at 02:01 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to set a default setting for the terminal? Neo Jettero Linux - Newbie 2 10-22-2009 01:00 AM
Setting up set -o vi as a default custangro Linux - General 3 09-30-2008 02:38 PM
Wireless Rate Setting set to 11Mb bgeddy Slackware 5 03-08-2007 08:08 AM
Permanently Set a Export Setting (LD_LIBRARY_PATH) nistelrooy Linux - General 1 11-25-2004 12:33 PM
Set Default Ethernet Setting Deactive lel800 Red Hat 2 07-02-2004 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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