Ubuntu :: /etc/hosts Is Restored To Default Every Time Go Offline
Oct 16, 2010
After I upgraded to Ubuntu 10.10, my /etc/hosts, which had been previously edited by me, restored to default. I configured it again and was able to work for a while - untill I went offline. Each time I go offline since the upgrade, Ubuntu restores this file to default deleting my domains from it.
View 5 Replies
ADVERTISEMENT
Jun 30, 2011
I'm new to linux and I've been trying things out with the new GNOME 3 (my first linux desktop/laptop OS). I was installing and changing some settings yesterday which did not show any significant changes to my desktop environment. However, today when I restarted my desktop the applications in the favorites panel have been set back to default. I replaced the evolution mail client with thunderbird already but every time I replace it and restart it reverts back to evolution. My network icon, bluetooth icon, volume control, and universal access buttons at the top right corner are invisible. When I hover over them I can manipulate them but otherwise its as if they are not there. My guess right now is that it might be that my software update was canceled halfway through because of the loss of internet connection. My battery icon was also changed.
FYI - its been fun, while sometime frustrating, to be able to tweak and configure so much stuff! Using linux made me understand more my laptop!
View 2 Replies
View Related
Jul 13, 2010
Is there anyway that I can prevent access to the hosts file, or any file for that matter, for a time that I can specify, so that within that time no one will be able to open and edit the said file?
View 4 Replies
View Related
Jan 29, 2009
I'm running FFx 3.0.5 on Debian Lenny and like many people before me, I am annoyed with the Work Offline setting being the default setting. I have perused the previous threads on this topic and found two solutions:
1. shut off the Network Manager daemon
2. change the settings in prefs.js
I have shut down the Network manager but to no effect The relevant setting in prefs.js is:
user_pref("browser.offline", false);
how I can change this setting to default to Work Online?
View 10 Replies
View Related
Oct 16, 2009
How to make firefox online by default. It always starts in offlin mode.
View 2 Replies
View Related
May 18, 2010
Below is data taken from my dedicated server:
[Code]...
I need a script that I can run on an hourly basis that will:
1. Calculate the total downtime since the first date
2. The overall downtime percentage
3. Store this data in a file at /home/bla/file.txt, in the following format: TotalDowntime=03:02:02 Average=0.01%
View 2 Replies
View Related
May 16, 2011
I just set up denyhosts and it worked properly the first time adding lots of ips to the hosts.deny.I then set it to run every 12 hours noon and midnight.I wanted to see if ran properly and I got all this.Does it look like its working?
Code:
May 15 12:00:01 hyrule CRON[14286]: (root) CMD (python /usr/share/denyhosts/denyhosts_ctl.py -c /usr/share/denyhosts/denyhosts.cfg )
[code]...
View 4 Replies
View Related
Aug 17, 2011
Well, as many proxy applications, GNOME Network Proxy Preferences only allow to ignore hosts. What I want to do is exactly the opposite. I only want to use the proxy for few sites. Is it possible to define only the allowed hosts in any way?
PS: I know FoxyProxy add-on for Firefox does this, but 1)I don't use Firefox and 2)I want the proxy settings system wide not only for browser.
View 9 Replies
View Related
May 2, 2011
I'm trying to use ssh-keyscan to get some known_host file population going on, but I have a ton of hosts I want to scan, all with multiple aliases in /etc/hosts. Is there a way to use my current /etc/hosts file to do an ssh-keyscan instead of making a special list of hosts that (from what I've read) ssh-keyscan needs?
View 2 Replies
View Related
Jan 26, 2011
Probably an easy (which means stoopid) question...I am trying to reroute a website using my hosts file so that it matches my servers certificate file for testing without effect dns and the live site.When I went to edit my /etc/hosts file it is non-existent. I have, I am assuming in it's place, hosts.allow and hosts.deny. Can anyone explain why I do not have a hosts file?
View 1 Replies
View Related
Jan 17, 2011
[Code]....
What I want: multiple virtual hosts with ssl and only 1 ip address: In my example: server = 192.168.227.129
[Code]....
View 9 Replies
View Related
Aug 1, 2011
Title says it. I tend to be a pretty zealous tweaker, but I'm not sure what caused this to happen.
View 1 Replies
View Related
Jan 10, 2010
Since the Clonezilla mailing list doesn't seem very active, I figured I should ask in a Linux forum to see if someone else has experienced this issue and knows if something can be done. On a test host, using the PartedMagic live CD, I created two partitions: One to hold an OS I wish to use for testing (/sda1), and a second partition to hold images (/sda2). Unless I overlooked it, when saving /sda1 into an image file in /sda2 (ie. /dev/partimage), I was not prompted whether to include the MBR.
After trying out Windows7, I used Clonezilla to restore an XPSP3 image, and GParted to set /sda1 as Boot (ie. active, I guess). FWIW, Gparted tells me that /sda1 starts at Sector 63. When rebooting the PC, the screen remains blank, with no error message. Could it be that Clonezilla didn't save/restore the MBR? Does it mean that the images I made so far are all unusable? :-/
View 9 Replies
View Related
Sep 9, 2010
I want to remove the default boot time from grub, I created /boot/grub/menu.lst, but I'm unsure what I can put in here to remove the countdown.
View 9 Replies
View Related
Apr 28, 2011
I have Chromium on 11.04 and I can't set it to be default. If I go into preferences and select it, nothing happens. If I open Chromium, it asks every single time if I want it to be my default browser. Regardless of what I say, it asks me each time.
View 9 Replies
View Related
May 6, 2011
I'm trying to create test system on which I can load saved images of a number of different distributions / versions from saved images. I'm using Acronis in Windows to manage the partitions and the images. This works fine for a while but every now and then I do something (typically install a new distro / version) and subsequent restores of the previously working images fail. After restoring the image I get a "grub rescue" prompt and thereafter I'm stuck. Typical advice in this situation seems to revolve around repairing the installation using a bootable dvd, but that's not really relevant in my case - I'm trying to find a way to reliably load these images. My configuration is
HD 1
Partition 1 -> Windows 15GB used to manage the system with Acronis.
Partition 2 -> 20GB partition, used to mount linux ext3/4 image (or other operating systems)
Partition 3 -> 20GB partition, used to mount linux swap partition
remainder unformatted
HD2 1 big partition to hold saved images
When ever I install an image I mount "/" and swap on partition 1 and 2. Whenever I save an image I save the MBR of HD1 and partitions 2 and 3 and of course the reverse to recover. So yesterday I recovered my Ubuntu 10.10 image and booted (selecting the OS in Acronis OS selector (boot manager)) which then shows me GRUB and then boots Linux. I then performed an Ubuntu upgrade to 11.4 and saved the image as usual. I then restored the 10.10 image and where I would normally see the grub menu I get "grub rescue>". So clearly the upgrade has messed with something grub related, but my question is where? It can't be in the MBR of HD1 or either of the partitions 2 / 3 as these get restored. Can anyone shed some light on what I might be doing wrong, or at least explain where these grub files actually are? I have always assumed that anything grub related is in my active partition (with the MBR "pointing to" this), clearly this is not correct.
View 2 Replies
View Related
May 2, 2010
I have recently installed ubuntu as my main operating system, everything has been working great except every time I re-boot the resolution resets back to a default. How can I get it to default to 1440x900?
View 3 Replies
View Related
Mar 29, 2011
How do I set ls so that when I type ls it actually runs ls -l. This Sounds minor but I'm trying to save keystrokes wherever I can. This is on Ubuntu 10.10.
View 4 Replies
View Related
Jan 12, 2010
I was trying to do a yum update from F10 to F11, which I screwed up early, but decided to try to fix along the way. I eventually gave up, and decided to restore the system from backup and restart the process.Thing is, however I try to do this, the HAL daemon fails on bootup, which prevents the system from properly going into runlevel 5. It actually does boot to the KDE login screen, but then refuses mouse or keyboard input.
The file systems look right after restore, and I have used this backup and restore procedure many times successfully. It's just a simple tar copy of the individual file systems: boot, root, usr and var. I also backup /home, but had no reason to restore it. tmp is also a mounted fs.At first, I simply overwrote the existing filesystems with the backup data, but thinking this is what was causing the problem, I recreated the file systems and restored to bare metal. Same problem.After that, i thought that perhaps the problem was that I'd only restored boot, root and usr (not var) not realizing that var is important to HAL, so I then erased and restored var. Same problem.The next logical move would be to erase and restore all four file systems simultaneously, but in addition to being very time consuming, I'm not sure it will do any good. Plus, the problem itself has become interesting.I also know that any sane person would have done a fresh install from the F11 disks by now, but what fun would that be? I can't help but feel there's a simple solution I'm overlooking. Any Ideas?Special bonus question: Due to some hardware changes, the default network device (eth0) no longer actually exists on this box. The actual network device is now eth1. Any idea how I can bring this up in runlevel 3 so I can at least get the damn thing back on the network?
View 2 Replies
View Related
Dec 2, 2010
With the --backup and --backup-dir= options on rsync, I can tell it another tree where to put files that are deleted or replaced. I'm hoping it fills out the tree with a replica of the original directory paths (at least for the files put there) or else it's a show stopper. What I'm wanting to find out applies when I'm restoring files. Assuming each time I run rsync (once a day) I make a new directory tree (named by the date) for the backup directory. For each file name/path in the tree, I would start with whatever is in the main tree (the rsync target) and work through the incremental trees going backwards until I reach the date of interest to restore to. If along the way I encounter a file in an incremental, I would replace the previous file at that path with this next one. So by the time I get back to a given date, I should have the version of the file which was present at that date. Do this for each file in the tree and it should be a full restore.
But ... and this is the hard part, it seems. What about files that did not exist at the intended restore date, but do exist (were created) on a date after the intended restore date. What I'd want for a correct restore would be for such files to be absent in the restored tree (just as they were absent in the source tree on that date). How can such a restore be done to correctly exclude these files? Wouldn't rsync have to store some kind of sentinel that indicates that on dates prior, the file did not exist. I suspect someone might suggest I just make a complete hard linked replica tree for each date, and this way absent files will clearly be absent. I can assure you this is completely impractical because I have actually done this before. I ended up with backup filesystems that have so many directories and nodes that it could take over a day, maybe even days, to just do something like "du -s" on it. I'm intending to keep daily changes for at least a couple years, if not more. So that means the 40 million plus files would be multiplied by over 700, making programs like "du -s" have to check over 28 BILLION file names (and that's assuming the number of files does not grow over the next two years).
View 2 Replies
View Related
Jul 6, 2010
How do I change the default OS on grub, and adding more time to make my choice?
View 3 Replies
View Related
Dec 20, 2010
How do you change the default runlevel in Ubuntu 10.10? I need a solution that I can execute by editing text files; right now I'm accessing the Ubuntu filesystem by mounting it to another OS on a different hard drive.
The long and the short of it is that I'm getting a blank screen at login time. I suspect it's a driver issue (I have an Nvidia card) and it shouldn't be hard to fix... but I need a console. And no, I can't get in via Grub... my main OS is Slackware and Lilo is controlling the bootloader. So I need to be able to change the runlevel, and thus far a Google search has proved unenlightening.
View 5 Replies
View Related
Mar 23, 2011
I was struggling how to phrase the question (in the subject) so let me clarify... I wish to install Windows 2000 and then do Ubuntu, on the same PC. I never had a dual boot before but I understand that it goes automatically (after a short time) to default Windows if Ubuntu is not chosen (on the boot up screen), correct? If so, if there's a "countdown" of sorts, is there a way to disable it? I wish to have control over that aspect, have unlimited time during that boot "choose one" screen.
View 7 Replies
View Related
Jun 7, 2011
I accidentally set the grub startup manager's time to 0 secs and windows xp as the default OS. (I have windows xp and ubuntu on this laptop.)
Now when I turn on or restart my computer, it boots up straight to windows, I can no longer access the grub boot selection screen or my ubuntu OS.
View 9 Replies
View Related
May 28, 2010
I'm having some trouble using sudo - it did work fine, but now when I try to use it, I have the following error:
I understand that I have to modify /etc/sudoers but need to have root access to do this. I am using a bootable USB (lucid) with persistent changes and am unable to login as root, because I don't know the default root password, and am unable to use sudo to change it.
The problem occurred after I had some corruption to the casper file system, so I booted into Windows, moved the casper-rw file to another location on my flashdrive, and used a 1GB backup filesystem to repair the corrupt one using fsck.
After booting up from the restored filesystem, sudo would no longer work.
View 9 Replies
View Related
Oct 16, 2010
Before the update my computer was named "joe-laptop", (i think it was the host name is what its called, that was named "joe-laptop". Along with that, on my KDE session/desktop (I installed Ubuntu, but later got the kubuntu desktop packages) I had the gnomes network manager used instead of KDEs (kdes network manager was giving me problems, I would type the password in for my wifi router, then it would stall, then ask again as if its ignoring the password. but thats not important so im not gonna get into that whole part (at least yet)).
When i upgraded from ubuntu 10.04 to 10.10 the login screen said "localhost.localdomain" rather than "joe-laptop", and in the terminal it says "joe@localhost", rather than "joe@joe-laptop", along with that it kicked KDEs network manager back into use on the kde desktop, which means I can't access the internet on kde now.
I'm trying to fix the network manager part myself, but if I can't get that Ill post in this thread or edit this post. I was able to previously get gnomes network manager to load over it so I'm sure I'll hit it again.
I figured out the problem, it turns out that the name problem was that it deleted the /etc/hosts file, so i just copied the older hosts I backed up a month or so ago and slapped it in there and it worked perfect.
As for getting the gnome network manager, it must not be compatible with the qtcurve gtk theme, cause I switched it the gtk theme to a newer one, then loaded back up nm-applet and bam it came up there!
View 1 Replies
View Related
Mar 10, 2011
I am using Nautilus To re-create the problem:
Make a new user
Delete the "$HOME/Templates" folder
Create a "$HOME/Templates" folder
Now, no new templates will be recognized in the right-click menu.
problems: Files created in the Templates folder are not found in the menu of <Right-Click> -> New Document.
In Nautilus, Go -> Templates sends me to /home/$USER/.
Non-solutions:
Restarting the computer does not solve this. I have done about an hour of searching on the internet and I have searched through the Nautilus source code.. I an not good enough with Linux to be able to understand the Nautilus source.
View 3 Replies
View Related
Sep 25, 2010
I had a minor problem with my ubuntu install, and a person said to go to startup manager and select reset to original settings. I did this and when I restarted It asked me to boot ubuntu 9.10, which would not work as I upgraded long ago. Now all I get is the option to boot 9.10, and I really want to get back into my computer. Running ubuntu 10.04 with latest updates as if 25 september New Zealand Time.
View 2 Replies
View Related
May 20, 2010
I have squid3 proxy and I want to define a default start web site that will be opened force only one time. Is something like it possible?
View 4 Replies
View Related
Feb 18, 2011
I wonder if its any easy way to configure grub2...I dont want to change fonts, background or anything special. Just to change default operating system time to shown menu etc.
Is there anythink like known from KDE? graphical tool to tick what I wont, choose time from list or type it in, click OK to finish and job done... without any manual typing, terminal use etc.
View 5 Replies
View Related