Jump to content

SurfahBoy808

Members
  • Posts

    78
  • Joined

  • Last visited

Posts posted by SurfahBoy808

  1. I was impressed by you guys the last time I asked for a script. I was looking for a script that can resize a whole directory of jpg's to a certain size. That was sweet. Now I have another script, or challenge, or whatever you want to call it. :D

     

    I'm looking for a script that will tar both my home and etc directories, then bzip them, then push it to my server where I have a backup hard drive that can store it. I would like to put this script as a cron job so it can backup my stuff daily.

     

    my current pc is lan ip 192.168.X.6 and my server is on 192.168.X.4 and the directory of my hard drive(on my server) I want to save to is called /WD160

     

    thanks in advance, I wish I could code like you guys. :headbang:

  2. I've just upgraded from Mandrake 10.1 powerpack to Mandriva 2005 LE. I was using VMWare 4.5.1-7568 with no problems. Since I've upgraded, I haven't been able to use VMWare due to the newer gcc version. When I tried to run "vmware-config.pl" I get the following.

     

     

    Building the vmmon module.

     

    Using 2.6.x kernel build system.

    make: Entering directory `/root/tmp/vmware-config5/vmmon-only'

    make -C /lib/modules/2.6.11-6mdksmp/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

    make[1]: Entering directory `/usr/src/linux-2.6.11-6mdk'

    CC [M] /root/tmp/vmware-config5/vmmon-only/linux/driver.o

    /root/tmp/vmware-config5/vmmon-only/linux/driver.c:131: warning: initializationfrom incompatible pointer type

    /root/tmp/vmware-config5/vmmon-only/linux/driver.c:135: warning: initializationfrom incompatible pointer type

    CC [M] /root/tmp/vmware-config5/vmmon-only/linux/hostif.o

    In file included from /root/tmp/vmware-config5/vmmon-only/linux/hostif.c:61:

    /root/tmp/vmware-config5/vmmon-only/./include/pgtbl.h: In function `PgtblVa2PTELocked':

    /root/tmp/vmware-config5/vmmon-only/./include/pgtbl.h:81: error: request for member `pgd' in something not a structure or union

    make[2]: *** [/root/tmp/vmware-config5/vmmon-only/linux/hostif.o] Error 1

    make[1]: *** [_module_/root/tmp/vmware-config5/vmmon-only] Error 2

    make[1]: Leaving directory `/usr/src/linux-2.6.11-6mdk'

    make: *** [vmmon.ko] Error 2

    make: Leaving directory `/root/tmp/vmware-config5/vmmon-only'

    Unable to build the vmmon module.

     

    For more information on how to troubleshoot module-related problems, please

    visit our Web site at "http://www.vmware.com/download/modules/modules.html" and

    "http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

     

    Execution aborted.

  3. hey guys...i run mandrake 9.0 and i forgot the commands...

     

    i only want the basic commands for now...later i'll ask for more of them..

     

     

     

     

    I'm not sure how it works for an old version like 9.0, but you don't even need to put the /usr/bin/program, you can just put in the name of the package or program and it'll run most times. For example, to run konqueror, type in konqueror in the command line and hit enter.

     

    "ls" will list files in the current directory. "du -h" will tell you the size of the files in the directory. "mkdir" makes directories. "su" is to sign in as root. I dunno, what are you looking for?

  4. there's nothing to worry about guy. This is typical. Sign in as root, and type in "vmware-config.pl" and hit enter. You'll have to agree to the license agreement and then it'll ask you a few config questions about how you want your network setup (bridged, etc.) then after it'll tell you thank you for configuring. Then you can open up vmware by command line or by double clicking the executable file and use vmware.

     

    funny thing is, it will ask you to run vmware-config.pl everytime you restart your computer. I've heard of a script to fix this, but I don't know it.

  5. I have setup a ftp server with proftp. I have a few accounts with ftp://username@domain name and that prompts for a password which is ok. I have installed the proftpd-anonymous package so I can make a public ftp account. I noticed that it created a pub folder as when I go to ftp://domainname I see a pub folder and it doesn't prompt me for a password. I've been trying to find where this pub folder is located on my machine so I can dump files there so people can download. I've tried the "locate" command but didn't find anything.

  6. for some reason when I set up a cron job with webmin, it seems like it doesn't execute it. I have a cron job that is suppose to "updatedb" every time I boot, but it doesn't do it. Cause it'll say my database is old and I have to manually update it myself. There are other things I've set as a cron and webmin wont execute it.

  7. ok, I have a directory of jpg's. Instead of opening them up one by one in the gimp and resizing them, how do I resize a whole directory by file type? I know there's a way but I'm missing something in my command. I would imagine that this would be helpful if someone had a directory of more than 10.

     

    so far, the closest I got were these 2 different commands which did the same thing. They both created a set of resized images and 2 sets of duplicates of the original size. What am I missing?

     

    mogrify -size 3072x2048 -resize 800x600 +profile "*" *.jpg

    convert -size 3072x2048 *.jpg -resize 800x600 *.jpg

     

    [moved from Tips & Tricks by spinynorman]

  8. mplayer has been buggy to me. While it works with a lot of formats, DVD discs still give me a problem. I use VLC and I'm very happy with it. From what I hear, VLC uses the codecs from other players such as mplayer. VLC plays anything.

  9. comp usa had a sell on these little suckers for $20. They normally go for $40 but there was an instant $20 rebate. Skeptical about compatibility I bought one anyway. Well, needless to say, it works in MDK 10.0 fine. I select "usb wheel" mouse in the config, and it runs well. Not meant for gamers but for anything else, it works well.

     

    just thought I post for anyone interested in getting this mouse.

×
×
  • Create New...