Jump to content

bigscott

Members
  • Posts

    7
  • Joined

  • Last visited

bigscott's Achievements

New Here

New Here (1/7)

0

Reputation

  1. I use Thunderbird for my email client. It's the email client that is made to work with Firebird. Thanks for that opera info. It looks good, and I've heard great things about opera.
  2. I just switched from using Mozilla to using Firebird and Thunderbird instead. Both are working fine so far (knock on wood). I wanted to put 2 separate icons in my taskbar for mail and a browser, and also wanted to be able to reopen another browser window just by clicking on an icon in my taskbar... and without having to deal with that profile stuff. So, with one line of code added, I now don't have to worry about profiles. The below works for Firebird and Mozilla. [rant]No wonder we get confused about mozilla, every mozilla offshoot uses the mozilla names. I just deleted all of my other mozilla files before installing. Also, note that Firebird stores the lock in directory called phoenix. Couldn't they have at least changed the name to firebird for consistency? [/rant] I just added this line near the top of MozillaFirebird executable file. rm -f /home/scott/.phoenix/default/*.slt/lock so, my /usr/local/firebird/MozillaFirebird file looks like this... #!/bin/sh # # The contents of this file are subject to the Netscape Public License # Version 1.0 (the "NPL"); you may not use this file except in # compliance with the NPL. You may obtain a copy of the NPL at # http://www.mozilla.org/NPL/ # # Software distributed under the NPL is distributed on an "AS IS" basis, # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL # for the specific language governing rights and limitations under the # NPL. # # The Initial Developer of this code under the NPL is Netscape # Communications Corporation. Portions created by Netscape are # Copyright (C) 1998 Netscape Communications Corporation. All Rights # Reserved. # ## $Id: mozilla.in,v 1.2 2003/07/26 07:51:05 bryner%brianryner.com Exp $ ## ## Usage: ## ## $ mozilla [args] ## ## This script is meant to run the MozillaFirebird-bin binary from either ## mozilla/xpfe/bootstrap or mozilla/dist/bin. ## ## The script will setup all the environment voodoo needed to make ## the MozillaFirebird-bin binary to work. ## #uncomment for debugging #set -x rm -f /home/scott/.phoenix/default/*.slt/lock moz_libdir=/usr/local/lib/mozilla-1.5 MRE_HOME=/usr/local/lib/mre/mre-1.5 # Use run-mozilla.sh in the current dir if it exists # If not, then start resolving symlinks until we find run-mozilla.sh found=0 progname=$0 curdir=`dirname "$progname"` run_moz="$curdir/run-mozilla.sh" if test -x "$run_moz"; then dist_bin=$curdir found=1 else here=`/bin/pwd` while [ -h "$progname" ]; do bn=`basename "$progname"` cd `dirname "$progname"` progname=`/bin/ls -l "$bn" |sed -e 's/^.* -> //' ` if [ ! -x "$progname" ]; then break fi curdir=`dirname "$progname"` run_moz="$curdir/run-mozilla.sh" if [ -x "$run_moz" ]; then cd "$curdir" dist_bin=`pwd` found=1 break fi done cd "$here" fi if [ $found = 0 ]; then # Check default compile-time libdir if [ -x "$moz_libdir/run-mozilla.sh" ]; then dist_bin=$moz_libdir else echo "Cannot find mozilla runtime directory. Exiting." exit 1 fi fi script_args="" moreargs="" debugging=0 MOZILLA_BIN="MozillaFirebird-bin" if [ "$OSTYPE" = "beos" ]; then mimeset -F $MOZILLA_BIN fi while [ $# -gt 0 ] do case "$1" in -p | -pure) MOZILLA_BIN="MozillaFirebird-bin.pure" shift ;; -g | --debug) script_args="$script_args -g" debugging=1 shift ;; -d | --debugger) script_args="$script_args -d $2" shift 2 ;; *) moreargs="$moreargs \"$1\"" shift 1 ;; esac done export MRE_HOME eval "set -- $moreargs" if [ $debugging = 1 ] then echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN "$@" fi exec "$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@" and the same thing to my thunderbird executable located at /usr/local/thunderbird/thunderbird on my machine #!/bin/sh # rm -f /home/scott/.thunderbird/default/*.slt/lock; # The contents of this file are subject to the Netscape Public License # Version 1.0 (the "NPL"); you may not use this file except in # compliance with the NPL. You may obtain a copy of the NPL at # http://www.mozilla.org/NPL/ # # Software distributed under the NPL is distributed on an "AS IS" basis, # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL # for the specific language governing rights and limitations under the # NPL. # # The Initial Developer of this code under the NPL is Netscape # Communications Corporation. Portions created by Netscape are # Copyright (C) 1998 Netscape Communications Corporation. All Rights # Reserved. # ## $Id: mozilla.in,v 1.1 2003/04/05 20:52:38 mscott%netscape.com Exp $ ## ## Usage: ## ## $ mozilla [args] ## ## This script is meant to run the thunderbird-bin binary from either ## mozilla/xpfe/bootstrap or mozilla/dist/bin. ## ## The script will setup all the environment voodoo needed to make ## the thunderbird-bin binary to work. ## #uncomment for debugging #set -x moz_libdir=/usr/local/lib/mozilla-1.6b MRE_HOME=/usr/local/lib/mre/mre-1.6b # honor MOZILLA_FIVE_HOME if it's there if [ -n "$MOZILLA_FIVE_HOME" ]; then dist_bin="$MOZILLA_FIVE_HOME" else # Use run-mozilla.sh in the current dir if it exists # If not, then start resolving symlinks until we find run-mozilla.sh found=0 progname=$0 curdir=`dirname "$progname"` run_moz="$curdir/run-mozilla.sh" if test -x "$run_moz"; then dist_bin=$curdir found=1 else here=`/bin/pwd` while [ -h "$progname" ]; do bn=`basename "$progname"` cd `dirname "$progname"` progname=`/bin/ls -l "$bn" |sed -e 's/^.* -> //' ` if [ ! -x "$progname" ]; then break fi curdir=`dirname "$progname"` run_moz="$curdir/run-mozilla.sh" if [ -x "$run_moz" ]; then cd "$curdir" dist_bin=`pwd` found=1 break fi done cd "$here" fi if [ $found = 0 ]; then # Check default compile-time libdir if [ -x "$moz_libdir/run-mozilla.sh" ]; then dist_bin=$moz_libdir else echo "Cannot find mozilla runtime directory. Exiting." exit 1 fi fi fi script_args="" moreargs="" debugging=0 MOZILLA_BIN="thunderbird-bin" if [ "$OSTYPE" = "beos" ]; then mimeset -F $MOZILLA_BIN fi while [ $# -gt 0 ] do case "$1" in -p | -pure) MOZILLA_BIN="thunderbird-bin.pure" shift ;; -g | --debug) script_args="$script_args -g" debugging=1 shift ;; -d | --debugger) script_args="$script_args -d $2" shift 2 ;; *) moreargs="$moreargs \"$1\"" shift 1 ;; esac done export MRE_HOME eval "set -- $moreargs" if [ $debugging = 1 ] then echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN "$@" fi exec "$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@" Only 1 thing left that I don't like about Mozilla or Firebird and that I don't know how to fix. I want to be able to clear the URL bar with a delete dropdown just Firebird and IE work in WinXP, and not have to Select All first. I tried a plugin for this that adds a Clear, but its still not exactly what I want. I really like Konqueror, but am afraid that support for Konqueror, and especially plugin support would not be as good as it is with Mozilla or Firebird, so I just use Konqueror locally for now. I also read that Konqueror wasn't as good at displaying pages as Mozilla. I haven't come across that yet, though.
  3. As far as using the same profile in mozilla goes, I had to learn a bit of shell and got this to work. This will open a mozilla window whether one is already open or not, without asking your to choose a profile. Put the code below in a file called "mozilla" in /usr/bin, chmod it to 0755, and then just change the REALPROGRAM path to wherever your mozilla is installed. For example, my mozilla file is in /usr/local/mozilla, hence the path is /usr/local/mozilla/mozilla. #!/bin/bash REALPROGRAM=/usr/local/mozilla/mozilla if [ -f ~/.mozillarunning ]; then rm -f ~/.mozilla/default/*.slt/lock; exec $REALPROGRAM fi else exec $REALPROGRAM
  4. Sorry, but I just discovered that script that I posted only works if you already have a mozilla window open. I'm using Mozilla 1.5. I don't know if Mozilla 6 is different. Mozilla is so easy to get messed up though, as various other browsers in Mandrake's packages use part of Mozilla(I think) like Galeon and Netscape, and vice versa. That may be your problem. :huh: If you haven't already, you might try un-installing mandrake's mozilla through Rpmdrake, and THEN try reinstalling your own version of Mozilla. I had to do this. Note the directory path that you install mozilla to and post it here so we can help. Also, go to a console, and type gcc -v and tell us what gcc version you are using. I'm using gcc 3.3.1, btw.
  5. Mozilla can run multiple instances with the same profile. I am running Mozilla 1.5 and found this fix on the net. 1. go to /usr/bin and make a file named "mozilla" and put the following in it: #!/bin/bash REALPROGRAM=/usr/local/mozilla/mozilla if [ -f ~/.mozillarunning ]; then if [ ! -z $1 ]; then if [ $1 == "-mail" ]; then if [ ! -z $2 ]; then $REALPROGRAM -remote "mailto($2)" else $REALPROGRAM -remote "xfeDoCommand(openInbox)" fi else $REALPROGRAM -remote "openURL($1 , new-window)" fi else $REALPROGRAM -remote "openURL(http://www.google.com, new-window)" fi else touch ~/.mozillarunning $REALPROGRAM $1 rm -f ~/.mozillarunning fi NOTE: My mozilla is in /usr/local/mozilla/mozilla. Change the path above in REALPROGRAM to match your mozilla installation. 2. Now you can call mozilla as many times as you want without changing profiles, either by typing "mozilla" in a console OR by making a desktop button for it. EDIT: Note that the above only works if you already have a Mozilla window open.
  6. Yes, I already had an file named "power" in my /etc/acpi directory that had those codes, but it didn't work. Originally I had "lid" and "power" files in that directory, and I just added a file named 'powerbtn' . Note that I added the 'sudo' so that all users on my PC could use it. This is on a desktop PC too... tall tower (Dell Precision 360). This method is much quicker than logging out of X, going to runlevel 3, and then doing a poweroff. IMHO, this is the way a power button should work... doing a clean shutdown and then powering off. Before, I could only get a clean shutdown by either going to a Console and doing a halt OR logging out, waiting on logout screen, telling the computer what I wanted to do, etc... you know the drill. That implementation of going through all of those screens to logout or poweroff was copied from Windows illogical way of doing things from the start menu. (It makes no sense to go to a 'Start' menu to 'Stop" something.) I'm running a dual-boot system with Windows XP Professional and Linux Mandrake 9.2 with lilo as the boot manager. Windows does a clean shutdown for me by just pressing the power button, but I think this may be Dell specific. Now, both operating systems do clean shutdowns and power off with the power button. Now, I am working on getting all devices to turn on and off by the power button, such as monitor, printer, modem, etc. I don't know about you, but electricity is expensive where I live.:o I have a Belkin UPS 350vA, and it has linux software that will shutdown everything (works with Mandrake), but there's no way to turn it back on, other than going under the desk and turning the UPS back on. I want to be able to turn everything ON and OFF with my PC's power button. NOTE: I think the power off solution is important. Why? Most people expect a power button to "power off", and if someone else hits the power button to turn off your computer, then this clean shutdown routine could prevent damaged files. It's also convenient.
  7. Hi all, I am so happy to find these forums. I was looking for a Mandrake forum that used a good BB like Invisionboard. (I can't make heads or tails out of MandrakeExperts thread organizations). I spent hours, yeah days, trying to find a poweroff button solution that worked with linux, and thought I'd share the power off that finally worked for me, hopefully to save others some grief. (Of course, you know that all hardware, etc., is different so I can't say that this will work for everyone.) What this does: When you hit the power button on your PC, it performs a clean shutdown (shuts down processes and then powers off). My system: Dell Precision Workstation (desktop tower) with Pentium4, 2.4Gz Processor My distro: Mandrake 9.2 download edition using 2.4.22-10mdk kernel Prerequisites: acpi and acpid (Don't know why it needs both, but it appears to be necessary). I just uninstalled apm and installed both of these programs through the install software desktop link on Mandrake 9.2. NOTE: There is no need to compile or recompile the kernel to do this. 1. Open a Konsole and "su root" 2. "cd /etc/acpi/events" 3. "touch powerbtn" (this makes a new file called 'powerbtn') 4. "gedit powerbtn" and insert the following 2 lines into the empty file: event=button[ /]power action=sudo /sbin/halt 5. "ls /etc/acpi/events" and remove any duplicate files with a tilde (~) at the end of the file name 6. "service acpi restart" 7. "service acpid restart" 8. You should now be able to perform a clean shutdown just by pressing the power button. Kind Regards, Scott
×
×
  • Create New...