I manage to get Ethernet over Firewire working between my Windows XP desktop and my Ubuntu 10.10 laptop.However, I am getting tired of having to manually issue the ifconfig command every time.How can I automate it so that the command is done at bootup?
I'm trying to automate two command lines, a synclient and a syndaemon. They both work well if I type them manually in a terminal, but if I do a littre script to do this, tap to click and scrolling don't work anymore.
This is the script I wrote: Code: Select all#!/bin/bash synclient VertEdgeScroll=1 syndaemon -d -t -K exit 0
So I made a chmod +x on the file, placed it in ~/bin then change PATH to include the directory. Then I added this file in "Startup applications".
The scripts run ok, mais it has a different effect than if I run the commands manually.
Is there a way to execute some command and then after the command completes utomatically reboot the system and then after the system reboots execute another command ? For example look at the sequence shown below(1) Execute command-1(2) After the command-1 in (1) is completed,reboot the system (3) Execute command-2(4) After execution of command-2 reboot the sytemIs there a way i can automate this process so that i need not reboot the system manually
I am usually sshed into different boxes and i forgot what ip I am logged into sometimes. Is there a command I can type to give me the ip on the box I am on.
For test purposes I'm running Ubuntu 10.10 from a USB stick with a USB WLAN stick.The system finds the WLAN router and acquires an IP6 address, but no IP4 address.With "dhclient wlan0" though it does get an IP4 address and connects o.k.How do I setup the system so that this dhclient call is done by the system at startup (or whenever it is necessary)?
I'm trying to automate the transfer and processing of files between two systems to help test and compare a new server installation. The workflow is a bit complex but I'm basically modifying a script on server 'A' to push a file to server 'B' as standard input to another script.
[Code]...
But no luck. I've tried it without the port in the server_args parameter, without the '-l' option; I've tried having the server parameter set to 'tcpd' and the call to '/bin/nc' in the server_args too. But no success. Can anyone point out what I'm doing wrong with the config? PS. I've restarted xinetd and server B is listening on port 1112 and accepting connections - but nothing gets piped into the script on server B.
where the various ........ represent the relevant addresses. This is necessary because my ISP only recognizes one computer - my first one. The above works fine, I simply copy and paste the above from a text document, but I would like to know which files I can alter/create so that all the above is achieved automatically when I boot my second computer.
I am trying to manually set up a number of static IPv6 addresses to one of the physical network interfaces on my 8.04server box.
I tried to use the "ip" utility like that:/ip addr add [myIPv6addr] dev eth0 label eth0:0
which was accepted by ip (no errors) and the IP address was correctly assigned to eth0. But using "ip addr show" I do not see any reference to the label I defined and "ip addr show dev eth0 label eth0:0" does not come back with anything (empty output).
This seems to contradict the information I found on the ip manpage and I wonder if this is a bug or a misconfiguration on my side. Did anyone successfully used the label functionality with ip?
I am working with ubuntu and my eth0 connection was up and working fine untill some days back when all of a sudden it seemed to disapper. I was able to access the net through it before. But now it has vanished and i donno when. i tried ifconfig eth0 up but no use. The result of cat /etc/network/interfaces is as follows
I have seen this in fedora 8/9 systems :- when I configure the eth0 card and give it a ip address using the ifconfig command from the terminal window and then check out the card from the network config GUI subsequently, it doesnot reflect the ip address as configured through the ifconfig command. However, the ifconfig command continues to show the new ip address as usual. If I need to change the ip address of the eth0 interface which should be the prefered mechanism - the ifconfig command or the GUI. Ofcourse I understand that, for the ifconfig command mechanism a line would have to be added to the rc. Local file so that the change is effective on every subsequent bootup.
I'm using ifconfig to monitor the bandwidth usage of one of my VMs, but lately I've notified that while the VM has absolutely no traffic the TX number in ifconfig is counting up.
Here it's the output of ifconfig on VM's interface in just 10 seconds interval:
I have a command that I run to renew my mobile broadband connection. It works from the terminal, but not in my crontab. My connection usually drops out after being connected for a week or so. So I tried to make a cron job to check the connection every 15 minutes (when there is an IP address on interface ppp0, then it is connected, so if there is nothing, I restart network-manager and it reconnects)
works from my terminal, but not when run as a cron job. If the schedule the above script to run every 15 minutes, it restarts network manager every 15 minutes, so I think ifconfig isn't working from cron. Is there some caveat about ifconfig in cron?
I'm trying to get my Ubunutu and OSX systems to connected via a cat5 cable to transfer some large files around very quickly. Now i know normally this would require a crossover cable as it's a direct connection but the macbook/OSX can handle changing the wires round to make it work like a crossover cable as I've done it before. However the macbook creates a self-assigned IP or as I've tried I've set it to : IP:10.10.0.1 Subnet: 255.255.255.0
Then I've setup the Ubuntu system both through the System>Admin>Network panel as: IP:10.10.0.2 Subnet: 255.255.255.0 and my /etc/network/interfaces file is the same; #lines added to get static crossover cable working auto lo iface eth0 inet static address 10.10.0.2 netmask 255.255.255.0
Yet when I run ifconfig in the terminal eth0 isn't present Code: htpc:~$ ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:912 errors:0 dropped:0 overruns:0 frame:0 TX packets:912 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:371613 (371.6 KB) TX bytes:371613 (371.6 KB)
htpc:~$ ifconfig eth0 eth0 Link encap:Ethernet HWaddr 90:fb:a6:e4:c0:b0 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:23 Base address:0xe000
Also even when I try and ping 10.10.0.2 either from my OS X or the actually Ubunutu machine all I get is: Code: ping 10.10.0.1 PING 10.10.0.1 (10.10.0.1): 56 data bytes Request timeout for icmp_seq 0 Request timeout for icmp_seq 1 Request timeout for icmp_seq 2 Request timeout for icmp_seq 3
Yet the Ubunutu machine is also connected to Wifi and when I ping it's own address I get the expected response. To me it just seems like eth0 isn't being recognised somwhere or it's not turned on yet I can't seem to find any toggles or settings for it anywhere. Further more if I check >System>Admin>Network Tools the IP for eth0 is 0.0.0.0. What could be going wrong and why no IP set correctly?
I'm on Fedora core 14 linux. and I'm online with the HSPDA modem. My modem is /dev/ttyUSB0 and when it's dialed it creates the interface /dev/ppp0 , My question is when I hit ifcofig it shows two IP addresses in the ppp0 interface.
Code:
[nature@localhost ~]$ ifconfig eth0 Link encap:Ethernet HWaddr 20:6A:8A:12:CF:53 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
[code]....
when I get the routing table, the gateway is setten to the 10.64.64.64 and when I look my Ip address global I found it's 175.157.64.119.
I need to know how to configure automate sending sms if server reboot and shutdown? Now i just set sms notification once my server it's UP by create scripts in /etc/rc.d/rc.local while booting then from server sending sms notification. SMS - using gnokii attached mobibe phone. Server - Fedora 10
with my other ethernet card problem solved, I suddenly run into this:
Code: eth1 Link encap:Ethernet HWaddr 00:02:e3:16:37:4c inet addr:10.0.2.1 Bcast:10.0.2.255 Mask:255.255.255.0 inet6 addr: fe80::202:e3ff:fe16:374c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[Code]...
This card was working perfectly fine up until....an hour ago and it started doing this. My iptables isn't blocking it somehow, because I didn't change anything. I tried reverting to an older kernel and that didn't help. It's not the network cable, it works fine in any other card. Also, the dropped packets seem to count down? It seems to go down by exactly one every time I run ifconfig, no matter the length of time in between running it.
I messed up my Network Connections when I put a different NIC in my computer. Now I just went back to using the old NIC. It shows up in ifconfig, but the GUI Network Connections is blank. When I manually Add the connection back to the GUI Network Connections, the settings are not reflected when doing ifconfig.For example, I change the IP address for eth0 in GUI Network Connections, save the settings,
I am using Suse 10 sp2. By running ifconfig I am changing the mac address. Everything is happening successfully, but this is adapter losing the network connection. Even when I give a static IP. I am not able to ping any other IP.
I'm trying to grok a problem I'm having with an embedded machine. I'm pretty sure I can track down the larger problem, but I came across a usage of ifconfig that I don't understand, and I'm pretty sure this is the command that is failing.
The command is: ifconfig eth0 192.168.78.20:9134
I understand how ifconfig works. What I don't understand is the :9134. I can't see anything in the docs about what this means. I know in most contexts it's a port number, but what does it do when bringing up a network interface? Does it limit it to only using port 9134?
My wireless usb will not attempt to connect to my AP even though it shows in ifconfig and iwconfig:further information which i believe may helplspci -v
00:00.0 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge Subsystem: VIA Technologies, Inc. Device aa08 Flags: bus master, 66MHz, medium devsel, latency 8
I am working on a Fedora 13 iso that will be used on some of the PC's at my work, the computers will have a varying amount of Ethernet ports, at least two onboard and up to 6 external. In order to ensure that the same physical port on the back of the computer is always used for the internet connection I have written a script to rearrange the contents of /etc/udev/rules.d/70-persistent-net.rules. The script ensures that the two Ethernet ports on the motherboard are listed as eth0 and eth1, without it they could end up as any port in the eth0-7 range.
The script works well however when its run I need to reboot the PC for the ifconfig to load the correct port as eth0/eth1. I have tried placing calls to my function through the rc.sysinit/rc.5d/rc.local and so on however nothing seems to work.Is there a way to make ifconfig check the mac/eth configuration files for changes (There appears to no longer be an ifprobe command which sounds like what I need). Alternatively is there somewhere I can place the script after udev has created the persistent-net.rules but before anything else loads the information. I have tried chkconfig --level 2345 network off and loading the service later but it still uses the wrong information, only a reboot seems to get it to work