Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Debian Linux Help > command help required in emergency

Forgot Password?
 Debian Linux Help   Discussions related to Debian GNU/Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-02-2009   #1 (permalink)
Linux Newbie
 
rituraj.goswami's Avatar
 
Join Date: Aug 2008
Location: Guwahati
Posts: 120
Thumbs down command help required in emergency

i need some help in commands.
1.
i want to edit the menu.lst of /boot/grub/ to tell that i need to install the 2rd of the 3 OS i have. and how do i set the Debian 5.0 default grub that i loads to a xmp file that i have.

2.
want to install, find and remove a .deb file.


3.
my /etc/resolv.conf gets rewritten every time i reboot. what to do.
__________________
There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.
rituraj.goswami is offline  



Reply With Quote
Old 06-02-2009   #2 (permalink)
Linux User
 
Join Date: Feb 2006
Posts: 484
Send a message via MSN to iwanabeguru
For 2 and 3

2.
from command line you can use aptitude or apt-get. Aptitude more sophisticated, it registers all the packages and if a package which have installed for dependency resolving purpose and getting unneeded the aptitude removes it automatically.

You can even use synaptic a graphical package manager.

and read "man aptitude"

3.

Ithink the problem isn't a problem.

If you are using dhcp ,the dhclient rewrite /etc/resolv.conf on every network setup with the actual informations which have got from the dhcp server.
iwanabeguru is offline   Reply With Quote
Old 06-04-2009   #3 (permalink)
Linux Newbie
 
rituraj.goswami's Avatar
 
Join Date: Aug 2008
Location: Guwahati
Posts: 120
no i have a static ip.
__________________
There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.
rituraj.goswami is offline   Reply With Quote
Old 06-04-2009   #4 (permalink)
Linux User
 
saivin's Avatar
 
Join Date: Dec 2008
Location: Bengaluru, India
Posts: 305
Quote:
Originally Posted by rituraj.goswami View Post
i need some help in commands.
1. i want to edit the menu.lst of /boot/grub/ to tell that i need to install the 2rd of the 3 OS i have. and how do i set the Debian 5.0 default grub that i loads to a xmp file that i have.
install? do you actually mean to boot? Open /boot/grub/menu.lst and change 'default' to your second OS starting from 0. For eg: If the entries in your menu.lst are as,
Code:
1. Debian
2. Debian single user mode
3. CentOS
4. Windows
and you want to boot CentOS by default instead of Debian, change Default to 2.
Code:
default 2
xmp? or xpm the splash image? Add splashimage entry as follows, assuming your splash image in in /boot/grub and Debian is in first partition of your harddisk
Code:
splashimage (hd0,0)/boot/grub/splash.xpm.gz
Quote:
Originally Posted by rituraj.goswami View Post
2. want to install, find and remove a .deb file.
as suggested above. 'man aptitude' and/or 'man dpkg'
__________________
A candle looses nothing by lighting other candles. - Khalil Zibran.
Registered Linux User #490076
saivin is offline   Reply With Quote
Old 06-04-2009   #5 (permalink)
Linux Newbie
 
rituraj.goswami's Avatar
 
Join Date: Aug 2008
Location: Guwahati
Posts: 120
the grub is given by debian. now i nhave 3 OS.
debian, windows and rhel 5.3. so i can't change this order but i need to defaultly boot to rhgel 5.3.
__________________
There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.
rituraj.goswami is offline   Reply With Quote
Old 06-04-2009   #6 (permalink)
Linux User
 
saivin's Avatar
 
Join Date: Dec 2008
Location: Bengaluru, India
Posts: 305
Thats what I have tried to explain. Boot into Debian, open /boot/grub/menu.lst for editing and edit as above. See which entry is RHEL and change the vaule of 'default' accordingly (starting with 0).
__________________
A candle looses nothing by lighting other candles. - Khalil Zibran.
Registered Linux User #490076
saivin is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 02:22 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1