Find the answer to your Linux question:
Results 1 to 6 of 6
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. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie rituraj.goswami's Avatar
    Join Date
    Aug 2008
    Location
    Guwahati
    Posts
    135

    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.

  2. #2
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    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.

  3. #3
    Linux Newbie rituraj.goswami's Avatar
    Join Date
    Aug 2008
    Location
    Guwahati
    Posts
    135
    no i have a static ip.
    There is nothing impossible, for everything is possible; the impossible only takes a bit longer than the possible.

  4. #4
    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

  5. #5
    Linux Newbie rituraj.goswami's Avatar
    Join Date
    Aug 2008
    Location
    Guwahati
    Posts
    135
    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.

  6. #6
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •