General :: Run Auto Script When Interface Comes Up Or Down On Centos?
Mar 14, 2011i have a centos box with interfaces eth0 and lo:0. i want to write a script to stop or start lo:0 automatically when eth0 comes down or up.
View 2 Repliesi have a centos box with interfaces eth0 and lo:0. i want to write a script to stop or start lo:0 automatically when eth0 comes down or up.
View 2 RepliesI have a ppp0 entry with post-up options like this
mapping ppp0
map none photon-plus motorola
map timeout: 12
[code]...
I recently installed a server with Software RAID. I tested by powering it down, unplugging one drive and powering it up. Magically, it worked!I found out later that I have to manually add individual devices like md1 to sda2 md2 to sda4. I got all of them added and rebuilt but my question is: Is there a way to make it so that if I "removed" a drive and put it back, the system will senses the new drive and rebuilds based on some internal table?
View 1 Replies View RelatedI have a ppp0 entry with post-up options like this
mapping ppp0
map none photon-plus motorola
map timeout: 12
## map init-time: 12 # for slow drivers
[code]...
If I comment those off then no such problem, hence some how ppp0 executed automatically and there is no [auto ppp0] any where. How can I stop this forcefully ?
On FC10, when system boots up, it would auto detect (from DHCP) and configure eth0.
This does not happen on FC11, but I can manually configure the interface. The entries in /etc/sysconfig/network-scripts/ifcfg-eth0 are identical on both OS releases.
Don't know if this is related, but when I run System->Administration->Bootloader, it fails system-config-boot - missing module kudzu.
Upon boot of my system, I auto run a script that customizes the routing table (i.e., route -n). However, after the system is already booted up and has been running, if a network connection is dropped and re-added, like if one of the several network cables to the machine is temporarily disconnected or other, then the routing table is modified -- I assume by network manager. Presently, I need to manually re-run my script to re-customize the routing table.
I would like to have the script just run whenever there is any change to the connection state of interfaces. Anyone know how to tie in some kind of event trigger that can execute a script upon change in interfaces connection state (i.e., detect change in connection state and run the script)?
Is there a graphical interface for centos 5.3
View 3 Replies View RelatedI have installed Citrix Xen-Server on my server and managed to install Windows 2003 R2 Server successfully.I also installed CentOS 5.3. The installation went fine, however, I cannot get Gnome or KDE going. I only have the text interface.
View 2 Replies View Relatedok I am using a customized CentOS distro that is looking for 3 network cards on boot. eth0, eth1, eth2. I do not need eth0 and need to bridge it to eth1.
View 1 Replies View Relatedi am using windows 7 in my laptop and linux is installed on virtualBox but my problem is the screen is showing small in virtualbox is there any way to enalarge the screen to show like windows screen? i did before by using VGA setting but it made problem me i was not able to use GUI interface i meant graphics interface
it was just showing me Command Prompt.
Does anyone know if there's a way to make nano support auto-complete and auto-bracket closing?
View 1 Replies View RelatedI code primarily in jQuery/JavaScript, and I'm looking for a text editor for Linux that has auto-indent and auto-outdent (seems to be tough to find that). Any suggestions? I've checked Gedit, Cream, vim, Bluefish.None of them seem to have this feature.
View 2 Replies View RelatedI am an old days RH release user(from 6.x) and just switching back from Debian/Ubuntu to CentOS on some servers, but I can not understand the kernel update strategy currently enabled in CentOS.There are two boxes, with almost identical installation, but recently there was an auto update of kernel on one box. This auto update also seems to issue an auto reboot on the machine, which is unacceptable on server machines.
View 2 Replies View Relatedroot@vz03i106 [~]# yum groupinstall "X Window System" "GNOME Desktop Environment"
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centosk2.centos.org
[code]....
I had recently installed centos 5.5 on Distro.But I am not getting how to see interface.
I tried ifconfig and ipconfig both are not working.So please let me know what is command to see interface.
I've installed (well, I founded it installed yet in my new job...) Centos 5.3 (Final) version (kernel 2.6.18-164.el5 on an x86_64), but I only can work fron the command line. I don't know if I can use any graphical interface (I've worked with SuSe years ago and it start its graphical interface automaticaly when you reboot the system).
I have to configure sendmail. For it, I download and installed webmin and usermin and start them, but I don't know how to continue...
i'v installed centos 5.4 on vmware, but their is no graphic interface so i try: yum groupinstall "Gnome Desktop Environement" "X window System" but it says no packages in any requested group available to install or update the commande: yum grouplist gives me Trixboxcore actually avery time i try to do a yum install <package> it returns no package <available>
View 4 Replies View RelatedI have my centos server behind a Linksys router. I'd like to access the router's web interface to open and close certain ports. How do I access the router's interface ?
Prior to this, I had a windows machine. I could type in the router's IP in 192.168.1.1 in the browser and get access to the interface.
How do I go about now ?
At my work, we have several clients (outside clients) that have an FTP login to our FTP Server. Their login then leads them to their home FTP folder. The FTP server is currently a Win2003 box. Because we have so many clients, we would like to implement some form of WebGui that would allow each client to manage their own FTP home folder and user info, such as resetting their password if they lost it.
Is there anything like this available in linux that would provide us with that kind of control/usability?
I have tryed for hours trying to get this right but failed.I configure the dhcp file and when accepting the changes i get the error NOT CONFIGURED TO LISTEN ON ANY INTERFACE.
My file looks like this
Heres my current settings
I am getting an error: NOT CONFIGURED TO LISTEN ON ANY INTERFACE
I just run the Yum install to update my Centos 5, but system error information comes out to require the ntfsprogs = 1.13.1-1 file.
I attached it below. I download the ntfsprogs-1.13.1-1.i386.rpm form website, then installed it.
However, the error information is still there, I check the rpm has been installed in my computer.
I have a webserver with 3 virtual interfaces named eth0:1 eth0:3 and eth0:3. Until yesterday all the virtual ip's worked but eth0:1 decided that it just won't work anymore since yesterday. The configs are:
eth0
Code:
DEVICE=eth0
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
BROADCAST=xx.xxx.26.190
NETWORK=xx.xxx.26.160
NETMASK=255.255.255.224
IPADDR=xx.xxx.26.174
GATEWAY=xx.xxx.26.161
eth0:1
Code:
MTU=""
NETMASK=255.255.255.224
ONPARENT=yes
BROADCAST=xx.xxx.26.191
BOOTPROTO=none
NAME=""
IPADDR=xx.xxx.26.175
NETWORK=xx.xxx.26.160
ONBOOT=yes
DEVICE=eth0:1
eth0:3
Code:
MTU=""
NETMASK=255.255.255.224
ONPARENT=yes
BROADCAST=xx.xxx.26.191
BOOTPROTO=none
NAME=""
IPADDR=xx.xxx.26.182
NETWORK=xx.xxx.26.160
ONBOOT=yes
DEVICE=eth0:3
eth0:4
Code:
MTU=""
NETMASK=255.255.255.224
ONPARENT=yes
BROADCAST=xx.xxx.26.191
BOOTPROTO=none
NAME=""
IPADDR=xx.xxx.26.187
NETWORK=xx.xxx.26.160
ONBOOT=yes
DEVICE=eth0:4
route-eth0
Code:
ADDRESS0=0.0.0.0
NETMASK0=0.0.0.0
GATEWAY0=xx.xxx.26.161
eth0:3 and eth0:4 still work, but 2 doesn't
I took the hard drive from my server and put it into another machine to install centos with, as the server does not have a working CD drive. So now the situation is that x refuses to start when centos boots. I get a message saying:
Failed to start the X server (your graphical interface). It is likely that it is not set up correctly. Would you like to view the X server output to diagnose the problem?
I have an Asterisk-server with 2 interfaces, a WAN-interface (eth1) and a LAN-interface (eth0).
SETUP :
IAX-provider(internet) --> firewall --> Asterisk-server --> switch --> clients_on_LAN
So everything coming from the IAX-provider on port 4569 is forwarded to the Asterisk-server's WAN-interface (eth1).
This needs then be routed to an internal SIP-phone (an IVR-system will define which one) via eth0.
When a call is initiated from an internal SIP-phone (they register to the IP-address assigned to eth0) it needs to be routed via eth1 to the gateway (192.168.4.250). Asterisk will setup an IAX-channel on WAN-interface (eth1) to the IAX-provider (via gateway).
So... will this work :
route add -net ip_IAXprovider netmask 255.255.255.0 gw 192.168.4.250 dev eth1
I want to install a lineage 2 server on a vps... I have bought it and I have receiver connection details with ssh -.- . It's possible to install graphics interface from bash line because I don't know to set up a l2 server from bash line...
View 9 Replies View RelatedHow to figure out why there are errors on bond0(eth0)
Transfer speed is in KB
is there any graphical interface for installing programs in linux. Like installers in windows? or it is possible only through terminal?is there experience notes how to install things in linux? after i download something i am completely lost what to do next and how to check if this version is sutable for my version of linux etc. Trying to search internet gives nothing. Also I have this problem that my resolution is too high. so fonts are to small i cannot spend time in linux because my eyes start hurting. I use GNOMEThere are resolutions like 1280 x 960 next is 1440 x 900 1440x900 is sutable for my form of monitor.But 1280 960 is for more square like monitore so if i choose this resolution it looks bad. if i choose 1440 its too little. As it is max resolution for my monitor.In windows i use resolution 1280 x 768 how can i setup that in linux. Also in driver or something it says Ati 3600 series. But i have Ati radeon HD 3730 when i try to choose different versions of ... it says cannot start x server.
View 4 Replies View RelatedLooking at my logs note that the eth1 interface falls and rises many times.
.....
Jul 30 04:29:42 localhost kernel: e1000e: eth1 NIC Link is Down
Jul 30 04:29:44 localhost kernel: e1000e: eth1 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[code]....
I am some LinuxUNIX history but still consider my self a newbie.I know Microsoft OS well and am more comfortable with that but willing to learn Linux as well.I have a CentOS 5.5 Server I am using to Host over 18 other sites with a PERL / Web based application.The application and hosting are still working but since the CentOS updates I ran this morning my Session (I think that is the correct word) will only load a black desktop with the top menu bar only having the terminal icon and the bottom having a desktop icon; whereas prior to this update the default CentOS blue backdrop with white flower pattern and Applications, Places, System with the terminal icon and other icons displayed and the clock was off to the right.I think this is the Gnome GUI?
Also On Friday 6-24-11 I added a device line to the /etc/fstab so that my CD/DVD device would load up at boat time. I would not think this to be causing the problem.Please advise me on how to get back my regular GUI interface for this Desktop.
I've recently installed Centos 5.3. Each time the pc starts KDE starts automaticaly, how can I remove that? I dont want to uninstall KDE, I just want to begin in the konsole and start KDE only if I need it.
View 5 Replies View Related