Programming :: Changing Home Page Url For Firefox Using Script
Mar 15, 2010
My Debian Lenny's Firefox prefs.js file looks like this:
Code:
Now I am trying to set the home page i.e. browser.startup.homepage variable (in red color) with my own URL using a script. Here is what I am trying to do but it is not working:
Code:
Note that the in the original file (prefs.js), the URL could be set to *anything* and not necessarily www.abc.com. So I need to search for the variable user_pref("browser.startup.homepage" and then set the entire line with my own supplied line (with the desired URL).
I want to set my preferred homepage for the firefox, but the linux version is different from Window version. I could not locate the option tab under the 'tools' in firefox.
I just upgraded my home machine to 11.2 and am running the regular Firefox 3.6.10 for openSUSE-11.2 (why can I still not cut and paste that infor from the dialog box, grr).
My home page is set to - file:///home/dhoworth/public_html/localstart.html
But when Firefox starts it shows instead a directory listing of - file:///home/dhoworth/
If I then press the home button, it shows my home page. If I start a new window from an existing one, it shows my home page.
(I am new to Ubuntu though have experimented with various Linux flavors in the past.) I have been struggling with this issue with Firefox 3.6.17 on Ubuntu 10.10. When I start Firefox it always loads the previous session's tabs, though I have the option set to load home page, not restore tabs. Where would it be picking this up from ?
I have xfce on my machine, running lucid lynx. For some weird reason, I can't change my firefox home page. I've changed it to the same one time and again in preferences, but every time I open firefox, it shows all the files in my home directory, including hidden ones. I uncheck the "show hidden files box", change it again in "preferences", but it still does this. And the home page in "preferences" is set to the right page I want; firefox just won't go there when I start it up. I really don't want my home directory in plain view like that; how do I make firefox recognize my settings?
On FC11 64 bit with Adobe flash plugin for Linux installed, I see segfault errors from "npviewer" in /var/log/messages. The only browser I have tried yet, Firefox, has glitches every now and then. Sometimes it shows the title of a page in a tab, but the page is blank. This can even happen when I try the Google main page. Is it true that npviewer has something to do with Adobe flash? Is there a way to fix the problem? If it is caused by Adobe flash, is there a different plugin that will replace Adobe flash player?
10.04; 64 bit In Firefox, the size of the fonts varies greatly from site to site. Some are too small to read, others huge. Some headings and menus overlap.Screen size: 1152 x 864
My settings are: Proportional: serif 14 Serif: Times New Roman Sans serif: Arial Monospace: Courier New 14
wanted to know if i can execute commands on linux console through a web page and redirect it back to my web page !For example :if i send a query "ls"it should execute this command on my linux console and also redirect the list of the files to the web page from which i give the command !
I just installed firefox and flash-plugin.The version of firefox is 3.0.10, package is firefox-3.0.10-1.el5.centos.The version of flash-plugin is 10.0.22.87, package is flash-plugin-10.0.22.87-1.el5.rf.But firefox crashes when there is flash in web page, unless disable flash plugin in firefox.
When using gt5 in various directories on my system (including my home directory) I get blank results.
If I limit the max-depth enough, I get results. For example, in my home directory 'gt5 --max-depth 2' produces a listing, while 'gt5 --max-depth 3' produces a blank page.
I've noticed that the temporary html file that gets created in tmp (such as '/tmp/gt5.9035.kJVM08Y9/gt5.html' is a zero-byte file.
I can successfully do a du in the same directory (which is what I thought gt5 was using), so I'm not sure what to check?
Where can I find the wallpaper that is similar to the image in the Debian home page. Not the one in the smaller windows (in the image), but the part of the image which has "The universal operating system" written.
Been a very long time since I have played with Linux.Now in a new position and have setup a Nagios server running on Centos 5,5 for a NMS.How do I set apache that when I visit: whatever.org it starts Nagios.. Currently I have to go to whatever.org/nagios.
I am now using CentOS5 as the server providing Apache services. I have managed to setup the web page under /home/user1/public_html, now I wish to change the default web page of our server to /home/user1/public_html. i tried to modify httpd.conf, in which i changed the "/var/www/" to the above user directory, but didnot work. Please kindly suggest.
im trying to properly change the name of my home folder and conf files to make sure my menus and shortcuts work. what happened when i tried was this error msg appears:
"Service '/home/user/.kde3.5/share/apps/kicker/mozilla-firefox.desktop' is malformatted."
then when i try to do anything the menus dissappear. i since redid what i done and it works
I am using ubuntu 8.10 and firefox 3.0.png and for some reason I cant minimise the firefox page and it is taking up most of the screen. None of the top bar with Applications Places and System or date volume in fact no top bar. I cant remember everything I have tried. When I go to custom the top bar briefly appearers and then goes off.
People usually suggest workarounds to do this, as it's not possible with usermod while the user is logged in. Did I overlook anything or is this method not preferable over creating a new account, setting the user permissions, then moving the files and messing with the file permissions? Using the right tool for the job would seem to be less error-prone to me. 1. Activate the root account by setting a password.
Code: sudo passwd 2. Log out and log into the root account. 3. Change the username and home directory from user1 to user2. This will also move the files to the new home directory and rename the group to user2. Code: usermod -l user2 -d /home/user2 -m user1
I have a dual-boot win7 and Ubuntu 10.10 and I want Ubuntu to use my windows user folder as home. I edited fstab to give me ownership and mount it to /mnt/Windows at startup but whenever I change the location of home in the Users and Groups it acts like it is changing it but it never does. I close the settings and when I re-open it, it is set back to /home/me.
I had to do a hard shut down on my linux computer. Every since then it is not working properly and I get an invalid certificate on every page.I have never upgraded Debian since I installed it two years ago. With my experience with Gentoo I have found that upgrades can be a problem and it worked fine so I never messed with it.
With the last several updates to Firefox, loading pages from several different sites slows down to (slower than) a crawl - taking sometimes minutes. Most of the time, this occurs loading ads.
I don't remember what release this started with, but I didn't have problems before, and I don't have any problems loading the same web pages on IE8 (running on XP). This is the same on F12 and F11.
I have tried changing some of the securty choices, even tried blocking certain sites, but no luck.
Also, several times after a download, firefox freezes, although the rest of the desktop is okay.
On my system Firefox 4 seemed to be taking its sweet time "looking up" addresses, but when it found the page it blazed on the render. I poked around on the net and found a few suggestions to speed up the "look up". So I thought I would share... I aimed for the fewest changes, so not to break too many things or make a big mess. (Warning moving and changing things that you don't know about, in the about:config can goof up Firefox so double check your settings) place about:config in the address bar and hit enter
You should get a really long list of things
In the search bar put network.dns.disableIPv6
My default value was set to false, go ahead and set it to true. Right click and Toggle. Clear out the search bar where network.dns.disableIPv6 was, and put in network.http.pipelining You should have three listings Right click on network.http.pipelining and Toggle so "true" shows for the value. Next, right click on network.http.pipelining.maxrequests and Modify, a box will pop up, replace the default 4 with 8. Close the about:config
Now test your Forefox performance. These three small changes, made a world of difference for me. Its now comparably fast as chromium. If you disagree with what I did, or want to let me know of any other "safe" speedups let me know. PS. If you don't see any improvements performance-wise or your from the future and do use IPv6, it would be best to go and take these settings back to the default Firefox settings.
When I open 'firefox' from the app panel at the top of the screen, it opens on the last web site visited.
I've looked every place I can think to tell it to open in a blank screen. My preferences are set to blank. Right click on the icon > properties shows 'firefox %u'.
Is there something in 'about:config' that would control this and what do I search for?
When I start firefox the home google page will load and all is well. When I go to any other page (ex. cnn.com, gmail, etc) the page will load graphically, but then continue to load forever. At this point I cannot click on anything in firefox including the drop-down menus.I must force quit at this point.
I updated last night even though I was already using firefox 3.6. I had a problem with flash last time I updated. I reinstalled firefox and went back to firefox 3.5 without any success.This makes me think that the problem is something other than firefox.I am on a Toshiba Satellite L505-S5965 running ubuntu 9.10. I'd give you more information but when I click on system and go down to "About Ubuntu" it loads forever - this is another problem I need to fix. Ugh. I should never have updated
I like text and graphics large so i've used about:config in Firefox to set both the min and max zoom level at 120%, but want to firefox start using these settings. Once opened i can press ctrl and + to jump to 120% zoom and once i'm there my settings make me stay there no matter what. What i want is for Firefox to open at these settings.
I have installed a CLI ubuntu system and then installed gnome-session and all the applications I needed. Yesterday I have installed Firefox 6. Addons added are :flashblock, adblock + and noscript addons. Now the weird thing is that today while navigating on this site: [URL]. I get Godaddy Page.
Is there a way to configure Apache so that if a user tries to access a webpage that doesn't exist under mydomain.com, that it redirects that user to the index.php?
i just installed the new vision of Ubuntu 11.04 , i created 3 partitions 1 for swap, the other one for / and the last one for /home, but by mistake instead of selecting /home i chose /boot, and i want to change it now, i already tried changing my FSTAB and i ended up with a corrupted Desktop when i restarted. i had to change my FSTAB using VI command here you have a copy of my fstab:
# /etc/fstab: static file system information. # # Use 'blkid -o value -s UUID' to print the universally unique identifier
Trying to open Firefox, and find that I cannot. It crashes. So, have opened Seamonkey, and am writing this from there. F11 updated to the latest on an ThinkPad R51. If I try my terminal, it opens provided I quickly open an empty tab before the home page loads. As soon as I try to connect to a page, or even preferences, Firefox crashes.