Ubuntu Installation :: Change /etc/hosts In Order To Upgrade?
Aug 8, 2011
I am trying to upgrade my system from 7.04 to a current version. I now face the known problem that my machine tries to download everything from archives.ubuntu.com although it has all been moved to old-releases."If you have this problem, you could change your /etc/host file to point archive.ubuntu.com to old-releases. Do this by running host old-releases.
ubuntu.com | grep address | awk '{print $NF" archive.ubuntu.com"}' | sudo tee -a /etc/hosts."
I have tried typing that information into the command line, with no success. I opened the /etc/hosts file in emacs (using sudo) but did not see an obvious place to impliment the fix.
I have 4 drives in my system. Two are SATA and configured in a RAID 1. This is my main drive for the system. The other two drives are IDE drives used to bulk temp storage. Before the upgrade my RAID drives were:
/dev/sda /dev/sdb
I'm not sure what the IDE drives were. Now after the upgrade the IDE drives are:
/dev/sda /dev/sdb
and the RAID SATA drives are:
/dev/sdc /dev/sdd
Needless to say on reboot the raid blow up and the system would not boot. I was able to get it working for now by removing the IDE drives. My current mdadm.conf file is as follows:
Now I assume that I could change the devices to the new devices names. However I was hoping for a better way to do this. The IDE drives are only semi permanent. Is there a way to configure mdadm with partition labels like you can in fstab?
Why does ping see audit.median.hu as 127.0.0.0, and why does host -t a audit.median.hu see it as 193.68.35.149? audit.median.hu is just an example site [hosts ads, etc.]
I just have a caching nameserver on my Fedora PC:
I configured my DNS server addresses in the Network-Manager Applet: 127.0.0.1, 8.8.8.8
Even with Wireshark, I can see it:
So the big question: Why don't the host command or my web browser recognize that I have modified audit.median.hus IP address?
1. I had Win XP, I've installed Ubuntu on another Partition, now Ubuntu starts first, can I change XP to be the first one to load ? And how to do it ?
2. When I have to choose from 2 installed systems on the screen I see, Ubuntu, Testmem and Windows XP, can I rename Windows XP title to something else ? And how to do it ?
Using StartupManager (as Quackers had suggested) I do indeed have Windows as my default boot, although it appears at the bottom of the menu. See Dilemma 1 below for that detail.
Dilemma 1:Grub2 has set up the boot menu so that Windows is the last item on the menu. This is because the Menuitem entries for the Ubuntu kernels are generated by script 10_linux, while the Windows Menuitem entry is generated by script 30_os-prober. Of course, in generating /boot/grub/grub.cfg, the 10_linux script is executed before 30_os-prober, dictating the order of their appearance on the menu.
I'd like to see Windows as the top menu item. Under grub, I would edit /boot/grub/menu.lst, pull the Windows menu item out of the "Automagical" section and voila! It stays on top no matter how many times I upgrade the kernel. While I could possibly do the same with /boot/grub/grub.cfg (see thread "how can I change the order of the boot menu?" for the suggestion) we should all know by now that the next time I update the kernel, my changes will all go away, because we are not supposed to edit that file by hand.
Dilemma 2: As I download and install kernel updates, all the old kernels still show up on my boot menu. My concern is that eventually the sheer number of Linux kernels will render the boot menu unreadable. This is especially of concern if I cannot get Windows to the top of the boot menu. Under grub, I used to edit the menu.lst and comment out the listing of any kernels more than 2 versions old. Now, how do I arrange this omission? A manual edit of 10_linux will be acceptable, provided it still displays the 2 or 3 most recent Linux kernels and their corresponding memtests.
I am installing Ubuntu Server 10.04 LTS on a new server that has 21 hard drives. My OS/boot drive is plugged into a SATA port on the motherboard, and the other 20 drives are plugged into cheap 4 port SATA adapter cards plugged into the PCIe slots on the motherboard.
When I first get to the part of the installer where I set up partitions and such, it is enumerating my disks in a somewhat weird order. The first 4 disks sda, sdb, sdc and sdd are disks connected to one of the SATA controllers, then sde is my smaller OS disk. Is there any way to force the small OS disk to be sda before I continue setting up my RAID? It's not a huge deal, but I'd like to have the system drive be sda, as it is in all my other systems. This is the 3rd system I've built like this, but it's the first time I've run into this issue (newer motherboard than the last one).
If possible I'd like to use the menu system in the installer to setup the RAID, as typing all those disk names manually into an mdadm config manually is going to be a huge pain. That precludes me from just unplugging the extra drives until after I get the base OS installed and working.
I have a dual boot system w7 and ubunutu. When i had version 10.10 (i think) everything was working fine, the grub would select w7 as boot preference. I have, however just updated to 11.04 and i cant get the grub to change its order. I have tried using startupmanager and selecting the second to last one, as per tips and i have also tried all the options. I have also tried editing the grub file, i think its /etc/default/grub. i have also tried grub-customizer but again, this doesnt work.
I have noticed however that the options shown arent the same as the options when i boot my system. Im not sure whether i have got two GRUBS installed or something like that. I have also tried using boot-repair, however this just states that there is no GRUB installed, however as i mentioned, i can read the grub, and so can the programs.
I have ubuntu 11.04 and windows vista installed on my pc. I have already set windows vista as my default os, but I'd like to put it at the top of the boot menu (currently it's in 4th).
I want to give access to a student to a server in order to make repeated trials of traceroute to different hosts. We have realized that it is preferable to use the -T option, as it sends TCP packets that are less commonly blocked by firewalls. However, this option is only available to superusers, and I don't want to grant the student such privileges.
How do you change the order of the list? I have Xubuntu 9.10 installed on a 5 gig partition. I only use it for Skype as the mic does not work in 10.04 at the moment for me.Anyway, I would like 10.04 to default to the top of the list. How do I change the order when grub loads.
I have a new machine arriving tomorrow and plan on installing ubuntu 10.04 x64 and windows 7 professional. I've only ever had a single HDD before, but now I have 2 * 640GB drives.Does it matter what OS I install first?Will I have to change anything relating to the HDDs boot order in the BIOS?I only got 2 HDDs so in the event of needing to reinstall one of the OS's they're on completely different drives. Also, in the eventuality I need to reinstall one of the OSs is it simply a normal reinstall procedure, or because they're on two seperate drives will I need to do anything different?
Dual booting Windows 7 and Fedora 15. What I would like to know is if I can change the boot order to boot Windows 7 first and Fedora 15 as other or second.
Ever since I upgraded from Ubuntu 9.10 to 10.04 beta, my local .php urls are acting funny esp at virtual hosts. Sometimes it works, but mostly it gives a blank page and at other times it asks for downloading the php file. This is really random - I keep hitting F5 and any one of the above can occur. Worst part is, its not consistent. It doesnt happen for custom scripts at localhost. Mainly WordPress and Magento. Im guessing something to do with htaccess directives. Its like as if AddHandler / SetHandler is going on and off.
Code: $ apache2ctl -l Compiled in modules: core.c mod_log_config.c
Is it possible to have different /etc/hosts file for different network connections without having to go in and change it every time? The why: I have dyndns and port forwarding to get to my desktop. My laptop is sometimes on the same network, and sometimes not. Also, sometimes the dyndns doesn't update properly, or the outside connection is down, but I want to get to my desktop (and I'm too lazy to walk up the stairs). I'd like to be able to keep one set of bookmarks, ssh command aliases, etc. that would always get to it the fastest and most reliable way possible.
I am a new Ubuntu user in Hungary, where we use reverse name orders (perhaps called the "eastern name order"). I mean Hasselhoff David instead of David Hasselhoff. Its quite a big problem for me, especially during syncing with my phone (which finally works now, after a few days of reading and searching...).Is it possible to change that in Ubuntu?
I have a dual boot linux system with Mint 10 and Ubuntu 11. Currently Mint is the first OS in the boot order. How difficult is it to change that config so that Ubuntu is first (or default) and Mint second ?
I am using centOS 5.0. After I change from DHCP to static IP address, I cannot ping hosts on the same subnet. The error message says destination host unreachable. Before I made the changes I was able to ping and now even I change it back to DHCP I still cannot ping with the same destination host unreachable message. The centOS is running on VMware on a Windows host.
After pinging 192.168.0.106 (106 is on and other host can ping it), arp -a shows ? (192.168.0.106) at <incomplete> on eth0 I tried different ways by disabling the firewall and and disabling SE protection. No Luck.
I have noticed a few problems when some screenlets are loaded before some others. I think that "Startup Applications Preferences" should have an option to arrange the order of their execution.
I'm currently using an NFS server to share data on our small business network. It works a bit faster than SAMBA, but I do have a problem. NFS takes group id from the first 16 groups a member belongs to when mounted - let's not get into how that doesn't make huge amount of sense
Since I assigned about 6 different groups to our users internally to control directory access, some internal groups do not pass when mounting the server's files (as ubuntu has at least 8 or so groups that are system dependent). Is there a way to change the ORDER of the groups a user belongs to? I see that what gets passed to NFS mount follows exactly the order given when I type "group" when logged in. The groups do not come in alphabetical order or group ID number. I did try changing the order of entries in /etc/group and that also doesn't do anything. Essentially they seem completely random.
I am using Ubuntu 10.04 x64 in a three-boot configuration; the first boot choice screen (the one I would like to change) gives the options of booting to Ubuntu, 3 options I don't understand, and booting to Windows 7. Unfortunately, at least for me, Ubuntu is at the top and is the default. [The third choice is Win XP x32 - but it appears on a separate screen]
My question: How can I make the boot to Windows 7 the default choice?
I want to change the default boot from Ubuntu to windows xp. What file do I need to edit to make that change? In other distros the file is grub.lst but I can not locate that file name in Ubuntu.
I can find the file /boot/grub/grub.cfg that looks like what I need but has a warning "DO NOT EDIT",
My Ubuntu file server sits under a desk and shares files with the network without a hitch, and in a perfect world I wouldn't ever need to shut it down (I reached 6 months uptime once). However, since it occasionally needs service, or additions and needs to be moved, I need to shut down.
The trouble is, the power management system is borked, so whenever I issue "sudo powerff now", the system halts, but the PSU stays on. I usually wait a few minutes after and flip the PSU switch, but I'm never sure if the system is already down.
Is there a way to reorder the way services shut down so that I put SSH last, and therefore know when the system is down when my session is disconnected? Is defaults.rc or whatever responsible for that?
how to change the order of GRUB. I found someone who asked in '06 but I believe the method has changed. I want windows (The bottom on the list) to start without me having to select it.
I am trying to change the default gnu grub boot order to first go to windows 7. I entered gksudo gedit /boot/grub/menu.lst and it opened up the file but the file was blank.It didn't show me the 5 or 6 possible choices.
I installed Ubuntu 11.04 as a dual boot system. I am given 5 choices with XP choice 5. Unless I highlight it I will boot into Ubuntu. I used the startup manager, and indicated that XP should be the default OS. Nothing changed. I tried the PySDM storage device manager which lists the partitions, but does not allow me to make changes.