Jump to content

jboy

OTW
  • Posts

    2241
  • Joined

  • Last visited

Everything posted by jboy

  1. The script you posted works perfectly on my systems when executed with the bash shell (version 3.0). I tried running it in both the foreground and background, both as a non-login and login shell, with different terminals, with different window managers, and with different versions of linux. I simulated having either su or sudo present, but not the other, by using a non-existent filename in the which command. For example, if testing for su not being present, I used suxxx in the which statement that tests for the presence of su; in this case, sudo was correctly detected as being present. And vice versa for su being present but not sudo. So in all cases, it correctly identified whether only su, or only sudo, or both, or neither existed. And it correctly created the config.h file. I got error messages if I used a restricted bash shell, but I assume you are not doing that. Perhaps other can try the script out and see if it works on their systems. If so, maybe you've got something strange going on in your system (permissions, path, aliases, bash profiles, a different shell than bash, ???) When you say it doesn't work, what specifically is the behavior you are experiencing, and how are you invoking it?
  2. jboy

    Good LCD

    I messaged the text of the two LCD Monitor Review articles to Jet2k5. There were no graphics in the articles. Don't know why the links wouldn't load for you. You might try these links (which have the full houstonchronicle.com domain instead of chron.com): http://www.houstonchronicle.com/cs/CDA/ssi.../weekly/3262175 http://www.houstonchronicle.com/cs/CDA/ssi.../weekly/3271577
  3. jboy

    Good LCD

    Here's a current newspaper review by a tech columnist whose criteria for an LCD monitor included that it must perform well for gaming. His 1st choice: http://www.chron.com/cs/CDA/ssistory.mpl/front/3262175 His runner-ups: http://www.chron.com/cs/CDA/ssistory.mpl/front/3271577 I'm not a gamer and I still use a CRT monitor, but from the LCDs I've seen, the specs, picture quality, and price of the Samsung 19" models that I've seen at stores like Sam's Club look terrific.
  4. Thanks. Not only is the article an excellent resource, but I also learned about Archive.org. I did not know about Archive.org - that's a great site. I'll be spending a lot of time checking through all that's available there.
  5. This kind of advice just saved my butt. Just two days ago, I had drive problems including partition table corruption and lost the root filesystem of my LE2005 install. Fortunately, I had backed it up a couple days before that. I had to low-level format the drive and then was able to re-partition it, and was back up quickly. The /home file system was on a second drive, so that was ok. I had not saved the partition table to diskette with the dd command, so I'll be doing that from now on. Fortunately, I also had a boot CD so I could boot directly back in and then reset up lilo. Since, as you advocate, I had a log completely documenting everything I had done on that LE2005 install, I was able to quickly redo the few configuration/update actions that had been taken between the backup and the crash. A completely documented log of all system actions taken is something I've learned over-and-over again is invaluable. Had Windows XP also on the drive, had not backed it up, and lost much of it (I was able to copy off some data files). So that will have to be installed from scratch. Thanks. Great advice! This mandrivausers forum is a terrific asset.
  6. Two things to check first: 1. Are java and javascript enabled in firefox? You can find out by this: from the firefox menu, Edit -> Preferences -> Web Features. If Enable Java and Enable Javascript aren't checked, check them. 2. As per the instructions on Sun's java site, have you created the symbolic link in the firefox plugins directory to libjavaplugin_oji.so? For example, if the firefox plugins directory is at /usr/lib/mozilla-firefox-1.0.2/plugins and libjavaplugin_oji.so is located at /usr/java/jre1.5.0_02/plugin/i386/ns7, then from a terminal (aka console), enter these commands as the root user (adjust them according to the actual directories on your machine): cd /usr/lib/mozilla-firefox-1.0.2/plugins ln -s /usr/java/jre1.5.0_02/plugin/i386/ns7/libjavaplugin_oji.so . In the ln -s command, don't forget the space and the period after the .so Then close all firefox instances and restart firefox. You can check if it's installed properly by going to http://www.java.com - there's a link there to verify your installation. It will also tell you whether or not you have the latest version. You may want to get more familiar with searching topics on this site. This topic has been covered numerous times.
  7. Is anyone else having trouble with the urpmc perl script on LE2005? I'm getting the following error, which occurs on line 102 of the script: "Couldn't initialize the urpm module to read the urpmi config file at /usr/bin/urpmc line 102." All the other CLI urpmi-related commands are working flawlessly. My perl version is perl-5.8.6-6.1.102mdk. I'm on the new 2.6.11-12mdk kernel, but I wouldn't think that makes a difference. I didn't try using urpmc on the original LE2005 install before the recent perl and kernel updates. Urpmc works fine on my 10.1 install. I checked the author's site, http://viewsvn.ben.reser.org/urpmc/trunk/, but it's down due to a RAID failure. Doing a google search, there is one cooker report of this error but no replies: http://archives.mandrivalinux.com/c...5/msg02607.php I'm aware that there's at least two alternate ways to do the same thing: 1. The equivalent feature in rpmdrake works fine. 2. urpmi --auto-select (it doesn't give you a list like urpmc, but it does prompt y or n, so you could at least check on updated packages that way) [moved from Software by spinynorman]
  8. Great! Glad you're up and running. Just in case Verizon didn't give you the manual for the Westell 2200, here it is online (a 10mb pdf file): http://www.westell.com/content/verizon/2200_userguidec.pdf It describes how this functions as a NAT Router and has many available features like port forwarding, firewall configuration, DHCP server for local LAN machines, logging, etc.
  9. Oops, my profuse apologies! I totally misread your question, thinking that you were saying that you had a working DSL connection, but that you wanted to use kppp to dialup to a different ISP <you didn't say that, but I mis-interpreted it that way due to the kppp reference and my reply was for that circumstance>. Here is a very detailed Linux DSL-HowTo link that may be useful to you: http://www.faqs.org/docs/Linux-HOWTO/DSL-HOWTO.html You should probably give some more details. For example, does your ISP require a PPPoE (PPP over Ethernet) connection? Is it working in Windows? If so, please provide the configuration details of your working Windows setup. Again, my apologies for misreading your question.
  10. First, as root, execute the route command in a terminal. This will show that you have a default Gateway IP address that your ISP assigned to your DSL modem. It will also show your network interface (I assume it's eth0, but you need to make a note of what it actually is cause you'll need it below). Now the problem is that you just can't configure kppp and dialup to your other provider because the default route will still exist. So before you dialup, you will need to delete that default route, as explained below. Also if you are using the Shorewall firewall, Shorewall by default blocks interface ppp0 since it's configured for eth0 as the Internet connection. Here are some general steps to take: Step 1: Configure kppp using the information provided by your dialup ISP. Your interface will be ppp0. Step 2: As root, modify /etc/shorewall/interfaces to add the following line: net ppp0 detect This needs to be added right after the eth0 entry: net eth0 detect Then, as root, issue commands: 'shorewall stop' followed by 'shorewall start' Step 3: Just before launching kppp, as root issue the following command: route del default As mentioned above, this will delete the default gateway via the DSL modem. If you have a local network, you should still have local LAN connectivity after this. You could alternately have issued the command 'ifdown eth0', but this would completely take down eth0 and thus you would have no local network connectivity. Step 4: Connect via kppp to your dialup provider. You can execute the route command command and you'll see the IP your dialup provider assigned you. Also, DNS will be via the DNS servers of the dialup ISP. Step 5: After your dialup session is ended and you disconnect, you can then issue the 'ifup eth0' command as root to restore the default gateway to the IP of your DSL modem.
  11. According to the following post, UDF support is available starting with 10.1 and the 2.6 kernel (requires installing the udftools package): https://mandrivausers.org/lofiversion/index.php/t25960.html However, the posts go on to say that it can be problematic and perhaps not worth it. I likewise have never had good experience with UDF using InCD. Examples: disks created with UDF format on one CD-RW were not readable on a different CD-RW even though the same version of InCD was installed on both machines. I gave up on it.
  12. I have done the following in 10.1; I assume the procedure is the same with 10.0. Boot from your 1st Mandrake install CD, press F1 at the initial menu, you'll then get a command line with boot: as the prompt. Enter rescue as the command. Then select option to "Restore Windows Boot Loader." Before doing that, though, I'd make sure I had a floppy that will boot directly into XP (boot.ini, ntldr, etc), just as a safeguard.
  13. This can probably be done through the built-in hotplugging capabilities of the Linux kernel. Here is a link to check out: http://linux-hotplug.sourceforge.net Here is a writeup on something that sounds similar to what you want to do: http://jphoto.sourceforge.net/?selected=sync Also, look around in /etc/hotplug Check the hotplug manual page (man hotplug) You might try google for keywords like linux, hotplug, usb, script, etc. To see hotplugging in action, plug in a USB pen drive and then execute the command dmesg from a terminal. You'll see the device messages that get generated from the hotplug event. It looks like much of this is done through the various hotplug scripts, so you have to somehow find out how to get your scripts working within that structure.
  14. FAT or VFAT partitions can be mounted read-write, but NTFS partitions will be read-only, unless you try some 3rd party utils (I'd be careful about that). So if you want to share a read-write partition between XP and Linux on the same machine, you might consider leaving an FAT or VFAT partition so both OS's can read-write it, or use a removable USB drive. You didn't say that you would be doing this, but let's imagine this scenario: you get a new hard drive to install XP on and put it on your primary IDE channel, taking your original hard drive and moving it to the secondary IDE channel. Suppose, 10.1 was originally on /dev/hda5. Now it's going to be /dev/hdb5. So you'll need to change your lilo config and /etc/fstab. If you have a local network and XP Pro, a very nice new capability you didn't have with Win98 is to set up Remote Desktop in XP Pro, and then use rdesktop to access it remotely from Linux. I'm not 100% sure, but I don't think Remote Desktop is available with XP Home edition. Also, you could install vncviewer or ssh on XP and use that to access Linux remotely. And there's also samba for filesharing.
  15. RTFM - Read the Fine Manual http://www.linuxcommand.org/smp_Applications_Editors.php
  16. OK, so enter this in a console: export PS1='[\u@\h \W]\$ ' That should give you the original prompt that you had when you installed LE2005. If you like it, you can add that command to the .bashrc file in your home directory. Something must have changed your original prompt in some script file somewhere; perhaps in this .bashrc file in your home directory or /etc/bashrc. You might want to poke around to see where. If you want to play with different possibilities for your prompt, check the web links in my original message above.
  17. Well, damn, I finally got quicktime movie trailer sound to work in kaffeine. I had manually installed all the codecs from the mplayer site, but the piece that I was missing was the xine-win32-1.0.1-0.1.102plf.i586.rpm from PLF free (thanks Ian and theYinYeti for that good advice). Doing an 'rpm -qpl' on it, it contains: /usr/lib/xine/plugins/1.0.1/xineplug_decode_qt.so /usr/lib/xine/plugins/1.0.1/xineplug_decode_w32dll.so Did rpm -Uvh --force --nodeps to install it (because I had the custom codecs from mplayer site and it complained about dependencies). I had all the other codecs in /usr/lib/xine/plugins, so I copied these two files to there as well, just to be safe. Afterwards, I rebooted and then movie trailer sound started working in kaffeine. Xine version is xine-ui-0.99.3-2mdk and libxine1-1.0.1-0.1.102plf. The motivation for this, of course, was The War of the Worlds (and Layer Cake ).
  18. I just found a link for a detailed procedure to install from a hard drive using downloaded .iso files. No CDs are required. https://mandrivausers.org/index.php?showtopic=1748
  19. You could always do a network install. All you'd need is two floppies created from the network.img and network_drivers.img files. See the ../official/2005/i586/install/images/README file for details on creating these and on doing a network install. The image files are in there are well. The one with the network.img is the one you'll boot from, and you'll later be prompted for the network_images floppy. Befores starting, be sure to write down the full ftp or http address of the mirror you want to use. You'll probably need to enter it during the process. You'll be prompted separately for the ftp or http server and the Mandrake directory. Enter them like this example: ftp server: mirrors.usc.edu <leave off the ftp:// part) Mandrake directory: /pub/linux/distributionsmandrakelinux/official/2005/i586/ I've done a couple network installs and they work nicely. Once you're up and running, you could always mount those downloaded .iso images as a loopback device and access them just like any other file system. mount -o loop -t iso9660 <some_iso_file>.iso /mnt/???
  20. It's not necessary to lower your Security setting to be able to write to the cdrom. Just add your user(s) to the cdrom and cdwriter groups. Procedure: Menu -> System -> Configuration -> Other -> User Administration You will be prompted for the root password. Right-click on a user, select edit. In the Groups tab, make sure cdrom and cdwriter are checked. You will probably also want to make sure audio is checked. My LE2005 install did this for me automatically and I had the Security as High.
  21. It sounds like you are referring to the PS1 environment variable. See: http://www.zone-h.org/files/48/Extending%2...sh%20Prompt.txt To see what your setting is, from a terminal, execute command: set | grep PS1 On my LE2005 system, it's: PS1='[\u@\h \W]\$ ' \u = user \h = host \W = working dir I haven't changed it since I installed LE2005. Also see: man bash
  22. Ian (or others), may I ask how you installed kaffeine 0.6-2 on LE2005? I downloaded kaffeine-0.6-2oli_mdk10.1.i586.rpm from sourceforge.net, but I get failed dependency errors on trying to install it. I cannot even find many of these dependencies in my urpmi LE2005 sources (main, contrib, jpackage, PLF free and non-free) or at rpm.pbone.net. I'm stumped. Maybe this rpm is for 10.1 only. But then, where did you get the rpm for LE2005? Or did you compile it from source? error: Failed dependencies: devel(libart_lgpl_2) is needed by kaffeine-0.6-2oli_mdk10.1 devel(libDCOP) is needed by kaffeine-0.6-2oli_mdk10.1 devel(libfam) is needed by kaffeine-0.6-2oli_mdk10.1 devel(libkdecore) is needed by kaffeine-0.6-2oli_mdk10.1 devel(libkdefx) is needed by kaffeine-0.6-2oli_mdk10.1 devel(libkdesu) is needed by kaffeine-0.6-2oli_mdk10.1 devel(libkdeui) is needed by kaffeine-0.6-2oli_mdk10.1 devel(libkio) is needed by kaffeine-0.6-2oli_mdk10.1 devel(libkparts) is needed by kaffeine-0.6-2oli_mdk10.1 devel(libxine) is needed by kaffeine-0.6-2oli_mdk10.1
  23. Thanks, Ian! I'll try that updated version from sourceforge and report back (will be in a day or two, I'm on the way out for the weekend right after this message). P.S. I've benefitted from quite a few of your posts. Many thanks. This is a great forum here at mandrivausers.org. I've learned a bunch and implemented a lot of recommendations from just reading posts here.
  24. This was also happening to me everytime I started kaffeine from the menu or when it was started as a Firefox plugin. On my LE2005 system, that was Menu -> Multimedia -> Video -> Kaffeine. I got the exact same error messages you got. Kaffeine version is from rpm kaffeine-0.6-1mdk from the LE2005 install. With experimenting around, the only way I have been able to get it to not crash on shutdown is to start it using Menu -> Run Command -> kaffeine -a alsa If I start it from a console command line with the same 'kaffeine -a alsa' command, it crashes. Weird!!! Perhaps some systems guys here can explain what's going on.
  25. No doubt - mc is an absolute, very versatile gem! I also like the Midnight Commander View Profile in Konqueror. This dnf alias is just kind of a toy, but I like it - I thought the author was very creative in coming up with it. I guess it's the CLI-geek in me coming through!
×
×
  • Create New...