Jump to content

Apoc

Members
  • Content Count

    30
  • Joined

  • Last visited

Everything posted by Apoc

  1. I am having the same problem to. Any time i start wine whether it be double clicking the .exe or from terminal (within an X session) my screen goes black and no amoutn of key presses will get my desktop back. the keyboard does still work as if i press ctrl + alt + backspace it turns my pc off (which i hate those key combinations doing that.. but that should be a different post). Cheers for any help / advice. PS this happened in 10.1 and now Mandriva (which i hoped would resolve this issue).
  2. All, I am writing a script which will allow people to view a wide record in Unix. basically it takes in a file of 4000 ytes long and lets you view sections of the file, 1st 100 bytes and 20 lines and then using vi like commands l goes left k goes down etc etc. All this works fine and i have a way of editing the line using awk and sed etc. what i need though is a way for a user to type in they want to edit line 60 at the current position, and then in the edit part of the terminal get the following: line 60 Pos 34-134: USERNAME textplacedhereforediting Then from this they should be able to edit that line (the USER* one ) and the terminal would then lead read capture it and allow it to be saved. (again i hope this makes sense).
  3. i have a solution but i think it is a bad way of doing this.. when i get my $variable i can do this: VALUE=`env | grep $variable | awk -F= ' { print $2 } '` I don't like calling env everytime though.. ideas?
  4. hello, I have a little problem. I have a file which looks like this: NAMEA 12 NAMEB 53 NAMEC 10 NAMED 8 I process this using a little sed and awk to produce: export NAMEA=12 which is run in the script using ` (aka funny quotes) This sets up my variables nicely, now in the script i don't know what each od the variables will be called so i do a little for loop and reprocess the file i.e.: for variable $(cat file | awk ' { print $1 } ') do echo ${variable} echo $`echo ${variable}` done What i would like to do is the second line, i want to be able to set up a variable: NAMEA=12 then loop through and echo NAMEA without knowing what it is called if that makes sense.
  5. a long time ago i had something similar to this. Whenever i altered the permissions of /home/user from the default to one i preferred (even as root) they reverted back overnight. Seems there is a cron job / system job which runs at set time or boot, and checks the system and alters all these kind of things to "protect" the system. I am wondering if yours is a similar problem and if this helps someone come up with the solution for you.
  6. Sorry for the delay in replying. The device does add MP3 natively and everything else it converts to ATRAC. I do believe it does something with the MP3's though like adding some form of DRM (mg something) hence if i just transfer an mp3 it won't just play. I did have a look at winehq and SS was mentioned on there but it fails on the install apprently, having said that, that was for 2.2 and i have 3 so i may have a tray again.. Thanks.
  7. I have the above device and i am able to mount it and transfer files to and from it like any other removeable device. However to get the thing to play music i have to use Sonic Stage, which is not Linux compatible pah. The solution i have is not very elegant, i have to use my laptop to do this. i can't use Wine (installer doesn't work apparently) and Vmware probably would work but i don't want to pay. Is there anything along the lines of GTKPOD but for this Sony device. It seems to do something very similar to the ipod (DB and renames the mp3 files). I have a feeling this won't be possible as i think Sony add a DRM or other copy protection so i can't take the device to a mates and let them have the music on the drive.
  8. They both seemed to work but i have used the above example so others in my department can see whats happening. Thanks.
  9. all, i ahve the following command: for archivefile in $(find ${LOGDIR} -type f -mtime +5 -name "WH*" ) do echo $archivefile done This lists all files beginning with WH and older than 5 days. This works fine. Now i have created a similar script: for archivefile in $(find ${LOGDIR} -type f -mtime +5 -name "WH*" -o -name "D*" -o -name "0*") do echo $archivefile done this does not work it will list all the files WH older than 5 days but will list all files beginning with D and 0 regardless of how old they are.. what am i doing wrong? do i need the -mtime between each -o or is there an easier way?? ta.
  10. I have the same problem / issue. Though i am sure in the install manuals there is something about how to get this to be put in the kernel at boot (in a start script do a modprobe or something similar to insert the pre built modle).. I THINK this only.. hehe
  11. Tried that and the link from there to the alpha.dns site one.. The problem i get is that the picture contains 2 images of what the camera has grabbed and all the pictures are grainy and with like white lines across them (sort of like a snowy TV picture) Like its half polerised.. cheers for any help
  12. I have nearly got this working but am still hitting a few problems. When i plug this in GnomeMeeting link pops up and on loading that it errors about colours not being correct for camera. I have tried camarama and gqcam and a few others all with mixed results.. The best i get is a picture black an white hazed, liney, fuzzy witha line down the middle. Are there any tips / advice in getting this working. i can send the dmesg and the like if any of those will be of help. Thanks
  13. #!/bin/ksh #This script will take in a value and ftp it from directory to server if [ $# -lt 2 -o $# -gt 3 ] then echo "Usage: ftp_put filename destination [bin]" exit 1 fi echo " open 127.0.0.1 user apoc password $3 put $1 $2 bye " > $$ ftp -n < $$ rm $$ This is a script i use at work.. it creates a tempory file of the PID with the commands to be sent to the FTP client, and this works for the Korn Shell and the FTP on AIX (not tested at home yet, but this should work for you. name the script anything you like (ftp_put.sh) and then call is as so: ftp_put.sh filename_to_send destination_dir_filename if you want to specify binarey but bin on the end of the above. in the script alter the server, username and password to yours (could have these in a file or pass them through by altering the script. Apoc
  14. sorted the problem.. used the following: ---script2.sh--- function checkparam { PARMS=$* server=`echo $PARMS | awk ' { print $NF } '` checkparm=`echo $server | awk -F_ ' { print ( $1 ) } ' ` case ${checkparm} in "CHECKPARAM") export var_server=${server};; *) export var_server=${UKSSP} esac } checkparam $* echo "var_server = $var_server" when we pass a value to the script2.sh now we use . ./path/script2.sh $* PARAM
  15. I have a situation whereby i call a script within a script, within the current shell.. i.e: SCRIPT1.sh: . ./path/to/script/script2.sh SCRIPT1.sh is one of many script we run and can do a range of things, script2.sh is set up to return three variables from it USERNAME, PASSWORD and DATABASE. The USERNAME and PASSWORD generated in script 2 depends on username of the user running the script OR a passed variable (i.e. $1). All of the above works so: SCRIPT1.sh could call script2.sh as follows: . ./path/to/script/script2.sh DIFFUSER The script2 is run within script1's CURRENT shell as to allow SCRIPT1 access to the values passed back. The problem, if i have the following script1: SCRIPT1.sh #--- echo $1 echo $2 . ./path/to/script/script2.sh DIFFUSER echo $USERNAME echo $PASSWORD echo $DATABASE echo $1 echo $2 #--- run like: SCRIPT1.sh VALUE1 VALUE2 It all works as expected BUT on the second echo of $1 in SCRIPT1 the value is altered to DIFFUSER from VALUE1. This is not acceptable. Now the constraints i have is: . ./path/to/script/script2.sh has to be able to run without requiring any parameters (default) It has to run with a parameter passed to it to allow it to pick up new usernames, passwords, DB based on the passed variable. I have got a workaround to this by doing the following: SCRIPT1.sh #--- echo $1 echo $2 . ./path/to/script/script2.sh ${1:-1} ${2:-2} DIFFUSER echo $USERNAME echo $PASSWORD echo $DATABASE echo $1 echo $2 #--- But if the SCRIPT1 variants ever have more than 2 parameters passed to them then script2 will mess things up. I can not alter the way the script2 is called, i can alter script2 though.. Ideas (script 2 does some processing then exports the variables, and has to be run as ". ./path/script2.sh" i.e. in the current shell. Ideas?
  16. try: umount -f /home/lowe/Documents* This is an extreme case.. before this i'd recommend trying the mounted to folder, as in: umount /home/ftp Though i suspect this will cause you problems like the ones before it. You could manually remove them from the fstab (etc/fstab) but i am unsure as to how to get the mounts up-to-date with the new configuration.
  17. Tried `2.6.3-7mdk` and it came back with the 2.6.3-7mdk which is as expected. I have, however, solved the no compiling problem now, i downloaded one of the any-any updates (56 i think) and thats worked a treat, can compile and got it working, though it does have a video display error saying i can't do fuill screen but it works.. yeay. :-)
  18. I have installed vmware and it asks me to compile vmmon, i have the kernel source files installed from the Mandrake 10 disc 3. It starts compiling but then errors with the following error: What is the location of the directory of C header files that match your running kernel? [/usr/src/linux/include] /usr/src/linux-2.6.3-7mdk/include/ Extracting the sources of the vmmon module. Building the vmmon module. Building for VMware Workstation 4.0.x. Using 2.6.x kernel build system. make: Entering directory `/root/tmp/vmware-config5/vmmon-only' make -C /usr/src/linux-2.6.3-7mdk/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules make[1]: Entering directory `/usr/src/linux-2.6.3-7mdk' *** Warning: Overriding SUBDIRS on the command line can cause *** inconsistencies make[2]: `arch/i386/kernel/asm-offsets.s' is up to date. CHK include/asm-i386/asm_offsets.h CC [M] /root/tmp/vmware-config5/vmmon-only/linux/driver.o /root/tmp/vmware-config5/vmmon-only/linux/driver.c: In function `Panic': /root/tmp/vmware-config5/vmmon-only/linux/driver.c:2994: warning: implicit declaration of function `_exit' CC [M] /root/tmp/vmware-config5/vmmon-only/linux/hostif.o CC [M] /root/tmp/vmware-config5/vmmon-only/common/vmx86.o CC [M] /root/tmp/vmware-config5/vmmon-only/common/memtrack.o CC [M] /root/tmp/vmware-config5/vmmon-only/common/phystrack.o CC [M] /root/tmp/vmware-config5/vmmon-only/common/cpuid.o gcc -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -Iinclude/asm-i386/mach-default -O2 -DMODULE -Wall -Wstrict-prototypes -DVMWARE__FIX_IO_APIC_BASE=FIX_IO_APIC_BASE_0 -DVMW_HAVE_EPOLL -DVME_DEFAULT=VME_V4 -DVMW_USING_KBUILD -I/root/tmp/vmware-config5/vmmon-only/./include -I/root/tmp/vmware-config5/vmmon-only/./common -I/root/tmp/vmware-config5/vmmon-only/./linux -DVMW_NOPAGE_261 -fno-exceptions -c -o /root/tmp/vmware-config5/vmmon-only/common/task.o /root/tmp/vmware-config5/vmmon-only/common/task.C LD [M] /root/tmp/vmware-config5/vmmon-only/vmmon.o Building modules, stage 2. MODPOST CC /root/tmp/vmware-config5/vmmon-only/vmmon.mod.o LD [M] /root/tmp/vmware-config5/vmmon-only/vmmon.ko make[1]: Leaving directory `/usr/src/linux-2.6.3-7mdk' cp -f vmmon.ko ./../vmmon.o make: Leaving directory `/root/tmp/vmware-config5/vmmon-only' Unable to make a vmmon module that can be loaded in the running kernel: insmod: error inserting '/root/tmp/vmware-config5/vmmon.o': -1 Unknown symbol in module There is probably a slight difference in the kernel configuration between the set of C header files you specified and your running kernel. You may want to rebuild a kernel based on that directory, or specify another directory. 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. [root@localhost vmware-distrib]# any ideas on how to resolve this? cheers [moved from Software by spinynorman]
  19. Apoc

    Read Only Filesystem

    Sorted it.. for anyone interested it was due to setting up nfs sharing in my home directory. it altered the permissions in : /proc/mounts a quick unmount of home and remount and all is fine.
  20. Apoc

    Read Only Filesystem

    /dev/hda6 /home ext3 defaults 1 2 That my home line from fstab
  21. I have just recently downloaded a linux DVD iso on my server computer, and wanting to move this from my server to my main pc (both linux) i set up a nfs share. This worked well until it errored (number 5 if i remember input output error), I tried scp and various other methods but only part of the file came over (i am getting to the point) So i delete the file from the server and then login via vnc, anything i open (konquerer . konsole etc) errors with can't write to config file. "Read-only file system" THe above error is what i get if i try to do anything under root, in tmp (diff mount points it works ok. The only thing changed recently is the nfs enabling. Any ideas on how to resolve this? Cheers
  22. Apoc

    FTP server

    proftpd thats gotta be your ftp server of choice.. all the options you'd expect but its more command line set up than a nice gui (but its intuitive.) Comes with Mandrake 10 and i belive if you install webmin you can configure it from there
  23. Apoc

    K3b and DVD-R

    if its any help i am using the following writer: GSA-4120B, LG Super Multi Triple format drive.
  24. Apoc

    K3b and DVD-R

    will check my firmware /me hopes it can be updated in Linux. I tried yesterday with same media (as has burnt fine before on it (copy - copy) but image to disc this time) and it didn't work.. 4MB not written, date verification unsuccesful.. At a loss at what else could be wrong.. think dvd+RW work fine.. just dvd-R. i will try my other burner and see if that fares any better. Apoc
×
×
  • Create New...