Jump to content

Postman

Members
  • Posts

    13
  • Joined

  • Last visited

Contact Methods

  • MSN
    swede69@hotmail.com
  • Website URL
    http://www.middagsdags.nu
  • ICQ
    4174249

Profile Information

  • Location
    Sundsvall / Sweden

Postman's Achievements

New Here

New Here (1/7)

0

Reputation

  1. I'm trying to make a small program that will take files as arguments when starting the program then swap contents of two files (or swap filenames, either one is good..) but it also need to check if the two variables are indeed files before doing the swap. However since I'm extremely new with programming Linux I get stuck alot and this is one I haven't managed to solve and I would be glad if someone could point me in the right direction... Here's the code #! /bin/bash if [ -f $1 && -f $2 ] then mv $1 temp mv $2 $1 mv temp $2 rm temp echo "Files has been swapped" else echo "One or both variables isn't a file" fi I have set exec-rights but when I execute I get an error saying What is wrong with this picture?
  2. Ahhh, now I get it....studying until 4 am has it's downsides... trying to process information at that time isn't the smartest thing to do I guess... thanks for the help...! :)
  3. I want to display full path to current directory anyone know how to do it? I only find the \w for current directory...
  4. OK, I'm back with another problem Background: 1 box running XP with several partitions of which one partition is set to share. 1 box newly setup with Mandrake 10. Both connected to a D-Link DI-614+ router with their own IP# sharing Internetconnection. Question: Can I access the shared files on the XP-box from my Linux box without having to make any new drastic installments or changes?
  5. I installed the pump and then entered the nameservers as suggested WITH a = between the word nameserver and the IP-adress which lead to the fact that I am writing this to you from my Linuxbox! Yipee!!!! :-) (oh, btw, I used ifdown wlan0 and ifup wlan0 since eth0 didn't work) However I've encountered another problem. I've lost the connection to the router, or rather the possibility to access the webadmin of the router, whenever I try to contact it through 192.168.0.1 it times out and on the same time I lost the connection on my XP-box (I think the router just went ahead and gave the Linuxbox the same IP# as the XP and since the webadmin can't be accessed I can't fix it).....any suggestions... // I think I solved it...anyway thanks to you all for having patience with a neewb... :-)
  6. 1. I don't have firefox/mozilla installed on my linuxbox (yet) and when I try the about:config in Konqueror it redirect me so I end up with the address about:konqueror instead. 2. I can't find the packages resolvconf and dnsmasq and I don't quite understad what you mean when you say I should set up dns-entries in my /etc/resolv.conf file as root??? But I have found pump and will install that anyway :)
  7. If I do iwconfig I get this lo no wireless extensions. wlan0 IEEE 802.11b+ ESSID: off/any Nickname: "acx100 v0.2.0pre8" Mode: Managed Channel: 6 Access Point: 00:0D:88:A3:BE:C1 Bit Rate: 1Mb/s Tx-Power: 18 dBm Sensitivity=175/255 Retry min limit: 7 RTS thr:off Encryption key: off Power Management: off Link Quality:74/100 Signal level:64/100 Noise level:0/100 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 And if I do ifconfig wlan0 I get this wlan0 Link encap:Ethernet HWaddr 00:0D:88:AA:F6:D4 inet addr:192.168.0.198 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric: 1 RX packets:45102 errors:0 dropped:0 overruns:0 frame:0 TX packets:30 errors:0 dropped:0 overruns:0 carrier:0 collisions: 0 txquelen:1000 RX bytes:14127106 (13.4 Mb) TX bytes:2060 (2.0 Kb) Interrupt: 10 Base address:0x8080 and the MAC address in the second config (the ifconfig wlan0) is the same listed in the routers status list mentioned by me above...
  8. As far as I can tell it is. Under status for wireless there is a MAC adress listed...( and I don't own any other wireless devices...)
  9. You're getting confused? How do you think I'm doing then? ;-) This is the deal... I have a cable Internet connection which i connected to my D-Link DI-614+ router which can operate both with wires and wireless. It is set to obtain IP-adress dynamicly from my ISP and use 195.67.199.3 and 195.67.199.4 as primary and secondary DNS adresses and the MTU is set to 1500. It is also set to have an IP-adress of 192.168.0.1 within the LAN and the DNS relay is active. Futher more is the DHCP enabled and set to distribute addresses between 192.168.0.100 to 192.168.0.199 and the lease time is set to 1 week. The setting for the AP is that it is enabled and using SSID - default, channel - 6 WEP is set to open system but disabled ... I have connected with wire one puter running ********* (it should say WinXP there but I don't dare take those words in my mouth in here) with wire connection to the router. This connection is working great... I have a old IBM Aptiva with a D-Link 520+ wireless card mounted on which I've installed Mandrake 10 on and with the help of this managed to get working to the point of that I can ping between the Linuxbox and the router and the other way around but when I can't ping any adresses on the Internet (I use www.sunet.se as reference but I've tried my ISP's adress aswell as other wellknown adresses...)... And there we are now....*phew*
  10. It says nameserver 192.168.1.1 but that's because I've echoed that in there, I've also tried 192.168.0.1 and I've tried 195.67.199.3 and 195.67.199.4 which are my ISP's nameservers... In start_net I've set 1 on using DHCP but when I run the ./start_net command I get an error reading wlan0 failed to associate, can't use DHCP for IP address But I've also set the script to use 192.168.0.198 as IP-adress and when I ping the router it works...as well as when I let the router ping the other way... I was also reading this and I took a look inside my ifcfg-wlan0 file which reads... DEVICE=wlan0 BOOTPROTO=dhcp ONBOOT=yes could it be something wrong in that scriptfile?
  11. Hi there everyone! Here's a total newbie to linux with a total experience of it all of about 24 hours which of the last 23 has been to get my newly installed Mandrake 10 to connect to my router. Here are the facts I have cabelconnection to my router (D-Link DI-614+ rev B) and to the router I've connected one box with XP which is working fine. I have installed Mandrake 10.0 on another box which I've managed to get up and running. I've also managed to get the D-Link DWL-520+ to install thanks to Craig's Acx100 Guide. I manage to ping my router from Mandrake locally and I manage to ping Mandrake from my router locally however when I try to ping a www-address I just get a ping: unknown host *********** message.... What am I doing wrong? What can I do to get it right?
×
×
  • Create New...