Jump to content

Urza9814

OTW
  • Posts

    943
  • Joined

  • Last visited

Everything posted by Urza9814

  1. You are probably going to have to try to set up urpmi again. Go to the following link and follow the instructions: https://mandrivausers.org/easyurpmi/index.php On step 2, it doesn't really matter what mirrors you pick. Try to go for ones near you geographically though. That should do the same thing as Gowator's instructions - I'm guessing that's how he got them. One more question: You don't have any other sound outputs on your computer? I ask because I have 2 soundcards myself, and quite often Mandriva and Windows will choose to use different ones.
  2. I recently discovered InnoTek's 'VirtualBox' VM program, and it's working beautifully, but I have a small question about the network ability. I currently have it connected to the internet, and it is running fine, but it is on it's own network. Basically, I'm wondering if there's any easy way to put my VirtualBox machine in my router's DMZ. Port forwarding would also work, but I'd need a way to set that up on WinXP or something too. Basically, what I wanna do is a server in a virtual machine, and I want to be able to take that image and easily run the server from either Mandriva 2007 or WinXP (in case I screw up my Mandriva install again) or possibly even another computer. [moved from Software by spinynorman]
  3. Well, that failed. And I figured out how to use testdisk, you have to select the partition and use the arrow keys to change the type, but that failed too. So I've decided I'm gonna just reinstall on my old 200GB disk, since the /home is still intact, even though it's a bit small, and try to get any data I need over the next few weeks off with photorec or something, then just transfer it back over at some point.
  4. Oh, oops. That's not an actual screengrab, I pulled that off another website just to see what I'd be doing. I never changed the values to reflect my hardware.
  5. Ok, well i'll try that, but I need a bit of help on how. The only partition program I've ever used is the one on the mandriva installer (I use that for everything) and the testdisk documentation that I'm finding doesn't really explain this well. What are all those numbers under 'start' and 'end'? I'm guessing the last one is size in bytes, but that doesn't match up to the total drive size. I'm getting that the two partitions I want are 0-7676 and 7766-36482, but what are those numbers? cylinders? I'm also not sure if the second partition is primary or extended. Will that matter for this? Does this look right? I'm modding from a page I found on fdisk... > fdisk /dev/hdc Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-22800, default 1): <RETURN> Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-22800, default 22800): 7676 #...and then repeat that for 7766-36482
  6. Well, it seems to detect all the partitions, but I'm still having problems. I had to run the scan at the lowest speed (which takes around 10 hours) and ended up with this: TestDisk 4.2, Data Recovery Utility, August 3 2002 Christophe GRENIER <grenier@cgsecurity.org> http://www.cgsecurity.org Disk /dev/hdc - CHS 36483 255 63 - 286181 MB Use arrow keys to change partition characteristics (see below) Press the ENTER key to continue Partition Start End Size D Linux ext2fs 0 1 1 7676 254 63 123330942 D Linux ext2fs 2 29 9 7678 254 63 123329170 D Linux ext2fs 3 78 5 7679 254 63 123326087 D Linux ext2fs 3 88 1 7679 254 63 123325461 D Linux ext2fs 3 142 1 7679 254 63 123322059 D Linux ext2fs 3 146 1 7679 254 63 123321807 D Linux ext2fs 3 242 1 7680 254 63 123331824 D Linux ext2fs 4 47 1 7680 254 63 123328044 D Linux ext2fs 7766 1 1 36482 254 63 461338542 D FAT32 LBA 13157 118 1 13288 254 63 2113146 D OS/2 Boot Manager 18511 34 1 18512 254 63 29988 D Linux ext2fs 18517 34 17 18517 254 63 13907 Structure: Ok Press 'T' key to change partition type, 'P' to list files *=Primary bootable P=Primary L=Logical E=Extended D=Deleted EXT2 Sparse superblock However, when I hit enter to continue, I get the following blank screen: TestDisk 4.2, Data Recovery Utility, August 3 2002 Christophe GRENIER <grenier@cgsecurity.org> http://www.cgsecurity.org Disk /dev/hdc - CHS 36483 255 63 - 286181 MB Partition Start End Size Quit Write Quit this section I then of course choose quit so I don't write nothingness. Any idea what I'm doing wrong? I currently have everything on the default settings. Could I perhaps restore with another program now using this information?
  7. gpart found nothing. testdisk immediately found one deleted Ext2 partition, but only one. I told it to search more though. Hopefully it'll be able to dig up my /home. edit: It looks like it's only gonna find my root partition. If I only restore that, will it affect my chances of recovering anything from my /home?
  8. So I decided I wanted to play a windoze game and went to install XP. I told it to format hdb1. It decided to format hdb1 and all of hda. My entire linux install, 300GB , two partitions, / and /home, are now reading as one giant empty partition. I have no recent backups. Any ideas for how to recover anything? edit: So I was advised to run a 'strings /dev/hdc|more' to see if the stuff was still there, and that brought up a short layer of windoze error messages followed by a bunch of mandriva filenames and such. So what's my best chance for recovery?
  9. I am fully aware that it shouldn't be done. But it's a semi-temporary user created specifically for apache, and I'm not too worried about security, 'cause no hacker can do anything worse to my box than what I do to it myself...lol.... I might be able to find a way around it though. I dunno yet. Is it really THAT difficult though? edit: Actually, now that I think about it, I might be able to just have it dump the data to a text file and schedule a separate program as root to read and interperet that occasionally. Instant results would be nice, but I suppose they aren't necessary.
  10. I know this is bad security practice, but is there any way to create a script or program that will store and automatically enter a password? I'm trying to make a PHP script that will run commands locally, but it needs to do it as a different user than 'apache', and obviously there isn't really a way to enter in the password through PHP when the script runs. Basically what I want is some way you can enter the password in a form which will then take it and put it into a shell script or something that will then log in as that user and run. Can that be done? [moved from Software by spinynorman]
  11. I got it working! Found a few permissions problems, and a typo (accidentally had defailtdelivery instead of defaultdelivery), but the big thing seemed to be that I created Mailbox as a directory, not a file.
  12. So I'm trying to find a way to pull mail from my gmail server through pop and read it with mutt. I have fetchmail configured te retrieve it, then qmail recieving that, but it just sits in the mail queue! I've tried flushing the queue and everything, but it never does anything. I set it up according to 'Life with qmail' ( http://www.lifewithqmail.org/lwq.html#start-qmail ), I'm just not sure why nothing is delivering.
  13. oh crap. I was looking all around on google for it when I shoulda just read the help a bit more closely. thanks.
  14. I have a shell script here that I'm trying to use, pretty self-explanitory, I just need help getting sed to correctly write to the files. Here's what I have: echo "Input directory:" read dir echo "Input original string:" read str1 echo "Input final string:" read str2 cd $dir sed s/$str1/$str2/ * > * The problem, of course, is that sed then writes it to a file called '*'. How do I make it write to the file it pulled it from?
  15. So I totally screwed over the settings for apache through webmin when I was trying to get custom SSL certificates to work. They didn't. And now I can't figure out how to get SSL working again. Is there any easy way to reset all those settings? I haven't really changed anything else, so the defaults are just fine. I tried even uninstalling it, but I can't figure out the package name to rpm -e it. Is it part of webmin or something? Or are there default config files I can recover from? I shoulda backed up before I messed with it.... :(
  16. Urza9814

    Tovid gui

    I was actually trying to use it to rip a DVD. Thoggen keeps freezing halfway through. I got dvd::rip installed now though, so I should be OK.
  17. Urza9814

    Tovid gui

    I have installed tovid 0.28 from urpmi, but when I try to run tovidgui, I get the following error: [root@localhost tovid-0.29]# tovidgui Traceback (most recent call last): File "/usr/bin/tovidgui", line 43, in ? frame = TovidFrame(None, wx.ID_ANY, "tovid GUI") File "/usr/lib/python2.4/site-packages/libtovid/gui/frames.py", line 30, in __init__ self.curConfig = TovidConfig() File "/usr/lib/python2.4/site-packages/libtovid/gui/configs.py", line 37, in __init__ self.ConfigInit() File "/usr/lib/python2.4/site-packages/libtovid/gui/configs.py", line 43, in ConfigInit self.ConfigAvailFonts() File "/usr/lib/python2.4/site-packages/libtovid/gui/configs.py", line 70, in ConfigAvailFonts if strIMFonts[im].find(strWXFonts[wxfont]) != -1: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128) I also tried installing tovid from the tarball, but it installs to /usr/local/bin, and when I attempt to run it, I get this: [root@localhost tovid-0.29]# /usr/local/bin/tovidgui Traceback (most recent call last): File "/usr/local/bin/tovidgui", line 39, in ? from libtovid.gui.frames import TovidFrame ImportError: No module named libtovid.gui.frames Any ideas?
  18. I actually, oddly enough, had that problem with a wireless network card. The WinXP drivers on the disc worked fine on ndiswrapper, but I couldn't get them to work on WinXP. Still have no clue why.
  19. holy crap, it appears that forcing the LD_ASSUME_KERNEL to 2.6.17 or whatever does actually fix it...it just takes a lot longer than usual to start up for some reason. (by a lot longer I mean around 5-10 minutes instead of under 1) Well, it works I suppose.
  20. Yup, here ya go. 150 lines. Probably should post as an attachment, but I'm lazy. lol #!/bin/sh # Check to see whether we use echo -n or echo "\c" to suppress newlines. case "`echo 'hi there\c'; echo ' '`" in *c*) n='-n'; c='';; *) n=''; c='\c';; esac # and get java implementation too, Sun JDK or Kaffe JAVA_IMPL=`java -version 2>&1 | head -n 1 | cut -f1 -d' '` SEEDURL="http://www.freenetproject.org/snapshots/seednodes.ref.bz2" if test -f lib/freenet-ext.jar; then CLASSPATH=lib/freenet-ext.jar:$CLASSPATH echo Detected freenet-ext.jar in lib/ elif test -f freenet-ext.jar; then CLASSPATH=freenet-ext.jar:$CLASSPATH echo Detected freenet-ext.jar else echo freenet-ext.jar not found. It can be downloaded from echo http://freenetproject.org/snapshots/freenet-ext.jar echo echo $n "Would you like me to download it now? [Y/n] $c" read resp case "$resp" in [Nn]*) exit 0;; esac wget http://freenetproject.org/snapshots/freenet-ext.jar if test ! -f freenet-ext.jar; then echo "Sorry, I couldn't download it. Aborting." exit 1 fi fi if test -f freenet.jar; then CLASSPATH=freenet.jar:$CLASSPATH echo Detected freenet.jar elif test -f lib/freenet.jar; then CLASSPATH=lib/freenet.jar:$CLASSPATH echo Detected freenet.jar in lib/ elif test -f build/freenet/node/Node.class; then CLASSPATH=build/:$CLASSPATH echo Detected built tree in build/ else echo freenet.jar not found. It can be downloaded from echo http://freenetproject.org/snapshots/freenet-latest.jar echo echo $n "Would you like me to download it now? [Y/n/u] (type u to have me download the unstable jar, otherwise I will fetch the stable jar) $c" read resp case "$resp" in [Nn]*) exit 0;; [Uu]*) wget http://freenetproject.org/snapshots/freenet-unstable-latest.jar -O freenet.jar SEEDURL="http://www.freenetproject.org/snapshots/unstable.ref.bz2";; [Yy]*) wget http://freenetproject.org/snapshots/freenet-latest.jar -O freenet.jar;; esac if test ! -f freenet.jar; then echo "Sorry, I couldn't download it. Aborting." exit 1 fi fi CLASSPATH=freenet.jar:freenet-ext.jar:$CLASSPATH export CLASSPATH # why are we permanently altering the environment? # because bourne shell needs it! if test ! -f seednodes.ref; then echo seednodes.ref not found, would you like to download some seeds echo from $SEEDURL ? echo $n "[y/N] $c" read resp case "$resp" in [yY]*) wget $SEEDURL -O new-seednodes.ref.bz2 if test -s new-seednodes.ref.bz2; then bzcat new-seednodes.ref.bz2 >seednodes.ref; rm -f new-seednodes.ref.bz2 fi ;; esac fi if test ! -f freenet.conf; then echo It appears that this is your first time running Freenet. You echo should read the README file as it contains important instructions echo and advice. echo echo First we must generate a freenet.conf file. I will now run echo Freenet in configure mode, and it will ask you a number of echo questions. If you don\'t understand the question, hitting "enter" echo without typing anything will go with the default which is likely echo to be the right thing. echo if test ! -f preconfig.sh; then if test -f scripts/preconfig.sh; then sh scripts/preconfig.sh else echo Could not find preconfig.sh or scripts/preconfig.sh exit 23 fi else sh preconfig.sh fi java freenet.node.Main --config fi # if Sun JDK set -server option as suggested on mailing list #if java -help 2>&1 | grep "[-]server" >/dev/null; #then # JAVA_ARGS="-server" #else # JAVA_ARGS="" #fi # multiple reports that -server option seems to cause crashes # sun specific options if [ "$JAVA_IMPL" = "java" ]; then echo Sun java detected. # Tell it not to use NPTL. # BAD THINGS happen if it uses NPTL. # Specifically, at least on 1.4.1. and 1.5.0b2, we get hangs # where many threads are stuck waiting for a lock to be # unlocked but no thread owns it. if test -f /etc/redhat-release then LD_ASSUME_KERNEL=2.2.5 export LD_ASSUME_KERNEL gentoo however dies with 2.2.5 elif test -f /etc/gentoo-release -o -f /etc/SuSE-release then LD_ASSUME_KERNEL=2.4.1 export LD_ASSUME_KERNEL else LD_ASSUME_KERNEL=2.2.5 export LD_ASSUME_KERNEL fi # 1.4.0? SUN_VERSION=`java -version 2>&1 | head -n 1 | sed "s/java version \"\(.*\)\"/\1/"` if echo $SUN_VERSION | grep "^1.[0-3]"; then echo Old version of java detected. echo Please install a 1.4.x JVM. exit fi if echo $SUN_VERSION | grep "^1.4.0"; then echo Sun java 1.4.0 detected. echo Not a good idea. Sun java 1.4.0 has some serious problems relating to NIO, which cause freenet not to run well on it. Please upgrade to a more recent JVM. exit fi if echo $SUN_VERSION | grep "^1.4.1"; then echo Sun java 1.4.1 detected, do not need to specify direct memory limit. OK. else echo Sun Java 1.4.2 detected. if test ! `uname` == "Darwin"; then JAVA_ARGS="-XX:MaxDirectMemorySize=128m $JAVA_ARGS" fi fi fi echo -n "Starting Freenet now: " echo Command line: java -Xmx128m $JAVA_ARGS freenet.node.Main "$@" nice -n 10 -- java -Xmx128m $JAVA_ARGS freenet.node.Main "$@" & echo $! > freenet.pid echo "Done"
  21. It wasn't an upgrade, it was a fresh install. My old system had too many problems and was on a separate drive. heh What package contains libc.so.6? glibc? I downloaded 2.5 source (I currently have 2.4), but I dunno what options to pass to configure it. I also can't find any RPMs for Mandriva 2007. Would it screw it up if I used a 2006 RPM? Might fix my Freenet problem, but would it screw up other stuff? Probably if it was an older version I guess.... :( edit: Ah, here's an '07 RPM on rpm.pbone.net/. I'll try forcing that, see how it works. Got it installed, but still no luck.
  22. Ok, so I'm not having much luck on the Freenet mailing list, so I figured I'd try here. I just upgraded from Mandriva 2006 to 2007, and Freenet no longer works. Here's the error I'm getting: [root@localhost fnet2]# sh start-freenet.sh Detected freenet-ext.jar Detected freenet.jar Sun java detected. head: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory sed: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory grep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory Sun Java 1.4.2 detected. uname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory Starting Freenet now: Command line: java -Xmx128m freenet.node.Main nice: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory Done One of the suggestions given to me was to comment out the following lines in the start-freenet.sh script: if test -f /etc/redhat-release then LD_ASSUME_KERNEL=2.2.5 export LD_ASSUME_KERNEL gentoo however dies with 2.2.5 elif test -f /etc/gentoo-release -o -f /etc/SuSE-release then LD_ASSUME_KERNEL=2.4.1 export LD_ASSUME_KERNEL else LD_ASSUME_KERNEL=2.2.5 export LD_ASSUME_KERNEL fi That made it appear to work, but it wouldn't actually load. I also tried replacing it with 'LD_ASSUME_KERNEL=2.6.17', but that did the saem thing. My final attempt was to copy over the libc.so.6 and the glibc-2.3.5.so from my old mandriva install, but as expected, that failed too, with the following error: [root@localhost fnet2]# sh start-freenet.sh Detected freenet-ext.jar Detected freenet.jar Sun java detected. start-freenet.sh: line 132: gentoo: command not found head: relocation error: /lib/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference sed: relocation error: /lib/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference grep: relocation error: /lib/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference grep: relocation error: /lib/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference grep: relocation error: /lib/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference Sun Java 1.4.2 detected. uname: relocation error: /lib/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference Starting Freenet now: Command line: java -Xmx128m freenet.node.Main nice: relocation error: /lib/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference Done Any ideas what I can do to get this thing working?
  23. well, that worked really well. Now I feel stupid. Probably shoulda mentioned it was a 64 bit CPU, but I didn't know that that mattered.
  24. So I'm back on 2006, and now I'm getting an 'incompatible architecture' error. :( looks like I need a special 64 bit version. Which I can't find. Any workarounds or something? My current theory is just screw it and install 32bit mandriva. I would just screw it all and run on windoze for now, but it keeps screwing with the partitions on my new harddrive. it won't stay on the old one where it's supposed to.
  25. wlan0 doesn't show up on iwconfig, and I don't really have time to screw with this (which is the whole reason I use Mandriva), so I'm currently burning the 64bit 2006 ISOs.
×
×
  • Create New...