General :: Handling Network Plug / Unplug In (Debian)

Jun 15, 2011

I want to run a script when the switch goes down and an other when it goes up. Is there an easy way to pull this off in Debian (preferably with no other than system tools)? I suppose there is no difference (in the OS point of view) between unplugging ethernet cable and the switch losing power.

On an event I get lines like these in the syslog:
Jun 15 17:49:41 debian kernel: [ 5506.956130] igb: eth1 NIC Link is Down
...
Jun 15 17:49:45 debian kernel: [ 5511.168788] igb: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX

In FreeBSD you can pipe log messages (pre-filtered by regex patterns) to a program. What is the easiest way to replicate this on Debian (with as little additional software as possible)?

View 1 Replies


ADVERTISEMENT

Ubuntu :: Laptop Goes Off When Plug/unplug AC Cable?

Jan 13, 2010

My problem here is the following: whenever I plug or unplug the AC cable in or out of my laptop it goes on hibernation, which is very annoying indeed. Sometimes I just want to plug it because I'm downloading something and my battery is running out.I would like to add that when my laptop goes into hibernation, and I try to bring it back up nothing happens, only the fans go on, but no activity other than that, at which point always just end up shutting the computer down cold and restarting it, which is getting to be a huge problem

View 5 Replies View Related

Software :: Have To Unplug And Then Plug Back In Keyboard To Make It Work?

Oct 6, 2010

When I start X, my keyboard does not work. It seems like the wrong layout is being used. If I unplug it and then plug it back in then everything is good. I only have any Xkb options in xorg.conf.d. below is my keyboard config from xorg.conf.d. NOTE: I have /etc/X11/xorg.conf.d symlink'd to /usr/share/X11/xorg.conf.d, if that might be the cause of this problem

Code:
Section "InputClass"
Identifier "Apple USB Keyboard"

[code]...

View 2 Replies View Related

General :: Debian - Server Does Not Appear To Be Handling Sessions Properly?

Jul 21, 2011

after installing Debian 6 on a server. When I try to install a software called ActiveCampaign, I get the following error ... "Your server does not appear to be handling sessions properly."I have install Apache, PHP, MySql and Perl already. Also, after the server restarts, I Webmin will not automatically start, even thou it is setup in the Webmin configuration to start with the server. I have to use /etc/init.d/webmin start from a command line after I su.

My last question is about ftp permissions. I have install proftpd and it seems to be working fine, but when I try to edit any file or upload, I can not. In order to upload and manipulate files, I am using WinSCP under root, wich is a big NO NO.Sorry for the three questions, but I figured I would ask all in one post, instead of creating multiple, since I already have your attention.

View 1 Replies View Related

General :: Server Automatically Reboots / When Plug In Network Cable

Jul 14, 2010

Linux Server automatically reboots when i plug in the network cable.it was working fine till 2 days back and no changes were made to it.any light on this note pls? kindly confirm if any logs are required for the discussion!

View 1 Replies View Related

General :: NIC Is Faulty Because When Plug The Network Cable In Get The Green And Orange Light?

Apr 5, 2011

Guy Im having issues getting my NIC to work. I dont think the NIC is faulty because when I plug the network cable in I get the green and orange light and I get the below result when running lspci | grep net

Code:
:~$ lspci | grep net
02:08.0 Ethernet Controller: Intel Corporation 82801BA/BAM/CA/CAM Ethernet Controller (Rev 42)

[code]....

View 8 Replies View Related

Debian :: Unplug USB Drive - Kernel Failure - System Will Not Shut Down

Jul 13, 2011

I have a flash drive that I regularly use on my laptop. If I unplug the flash drive without first unmounting it, I get a popup notification of a kernel failure (with diagnostics sent to kerneloops.org). Then, if I attempt to shut down the system via the console, it hangs on "The system is going down for halt/reboot NOW!" and doesn't actually shut down. Using Gnome's graphical System > Shut Down feature just logs me out and sends me to the login screen; the shutdown feature from there does nothing. I have to disconnect the power cord on the laptop in order to shut it down, and I don't like doing this.

System: 32-bit Debian Squeeze stable with kernel version 2.6.32-5-686, running Gnome 2.30.2, on an Acer Aspire 5570z.

I use Keepassx to store my passwords and keep the keyfile for my password database on the flash drive in question. I mention this just in case it helps determine what's causing the failure.

dmesg has quite a bit to say about this:

View 8 Replies View Related

Ubuntu Networking :: If Plug Into An Ethernet Network After Boot The Network Never Connects

Oct 5, 2010

I have a system running a very basic LTS install (10.04). Ubuntu has been setup with very little additional packages. No GUI. Once it's booted to a prompt for the first time I add the following packages,

cups cupsys ssh pi memtester nfs-common
aptitude safe-upgrade

At this time I don't have additional information on exactly what packages are installed. I did not perform the installs myself. I will update this thread when I get more details from my IT counterpart on how the system was setup.

This is used for a headless(no monitor, no keyboard) system running some custom applications.

Here are two problems.

1. If I plug into an ethernet network after I boot, the network never connects. I need to reboot with the network connected in order to get an IP. What is the service to "auto connect" to a network?

2. I have a network printer configured on lpd called myprinter. If I am connected to the network when I boot, I can print to this printer just fine using:

Code:

However, If I boot disconnected from the network and print to myprinter, the jobs obviously cannot print. They get spooled. Using 'lpstat -t' I can see that the spooled print jobs are assigned a job number and that myprinter is trying to connect. I shutdown, reconnect my ethernet network and boot up. All my printer configuration is blown away.

/etc/cups/printers.conf has been wiped out to look like this:

Code:

My 'good' printer configuration is copied to printers.conf.O

To recover from this, I need to stop cups, copy printers.conf.O to printers.conf, restart cups, and re-setup my network printer.

So, What causes my printers to get wiped out? I've repeated this on 4 systems with the same setup.

View 1 Replies View Related

Debian :: Iptables - Netfilter Queue Handling

Jul 17, 2015

I have created a nfq handler via nfq_open() and using the returned qhandle to bind my application program to a specific queue number that is configured in iptables. when i invoke nfq_create_queue() my program is stuck there and the back trace shows it is blocked in recvfrom()

bt

in recvfrom () from /lib/x86_64-linux-gnu/libpthread.so.0
in nfnl_recv () from /usr/lib/libnfnetlink.so.0
in nfnl_catch () from /usr/lib/libnfnetlink.so.0

View 0 Replies View Related

Debian :: Handling Virtualisation And Finding Program(s) To Alternative To VMware?

Mar 13, 2009

I currently run a home sever using windows server 2008. On it I'm using VMware to run 2 virtual machines (currently running CentOS (which is Red Hat based) as web and mail servers. It's not a big setup, we only host our personal websites and a couple for some friends. Although server 2008 handles resouces much better than server 2003, it's still running windows, which as we know is far more inferior to a Linux server. I'm trying to convince the husband to let me run everything on Debian, but he wants to run it on Red Hat (which okay, isn't bad but our household is devided. We have long running arguments because he likes his boxes Red Hat based running KDE, and I like my Debian distros running Gnome!)

The host server is running on a standard pc box, it's got a 2.5 gigahertz dual core processor and 3 gig of ram, almost one TB storage. (don't ask why I'm including this drastically important info!) I want to run the entire network on Debian. So that would be the main host running Debian and the two virtual machines also. The host itself would need to run as a file and app server for our home network and the two vertuals as web and mail servers. (we run about 12 domains three of which are under heavy usage with Mysql databases, so we run two servers so we can dedicate more rescources to the virtual server that sucks the most juice.) I was wondering how Debian handles virtualisation and what program(s) would be a good alternative to VMware?

View 2 Replies View Related

General :: Commands For Logfile Handling?

Mar 28, 2011

I've got this log file and I need to get all sorts of information from it...

24 - [02/Sep/2010:00:01:16 +0200] - 10.1.53.62 - 200
23 - [02/Sep/2010:00:01:26 +0200] - 10.1.53.62 - 200
19 - [02/Sep/2010:00:01:56 +0200] - 10.1.53.62 - 200

[code]....

View 6 Replies View Related

OpenSUSE Network :: Can't Get Novell Mono Plug In To Work With CTV Olympics Coverage

Feb 15, 2010

Hi. I'm running the 64 bit OpenSuse 11.2 distro with Firefox 3.5.7 and the Novell mono plugin installed but still can't watch the olympics coverage on CTV.

Is there something else I also need to install?

View 2 Replies View Related

OpenSUSE Wireless :: Internet Connection Stops When Plug In Local Network?

Jul 25, 2011

I have a wireless cable modem/router and a PCI-E 1x wireless card in my desktop PC. It works perfectly until I connect my Ethernet cable to my local router and printer, no more internet connection. I am guessing there is a setting somewhere that tells the networking software that the hard wire connection is the primary internet gateway. How do I tell it to use the wireless as the primary gateway?

View 4 Replies View Related

General :: Memory Handling Capacity Of 64 Bit Ubuntu?

Aug 3, 2010

What is the maximum amount of ddr that can be installed in a 64 bit ubuntu linux system computer?

View 1 Replies View Related

General :: Handling Wordbreaks In Bash Completion?

Feb 16, 2010

I am writing completion function for one PHP framework called symfony. It has command line interface with syntax:

Code:

symfony [options] [namespace:]action

I want to make action be autocompletable. The function is simplest so far:

Code:

function _symfony_commands()
{
[ -r "cache/completion/.sf" ] && cat cache/completion/.sf
}

[code]....

But, if there is : symbol which separate namespace from action problems coming:

symfony doct[TAB]
will be completed to
symfony doctrine:

But nothing happens if you want complete after : symbol. I've found out that for readline there is three words because it splits line with $COMP_WORDBREAKS

Code:

$ echo $COMP_WORDBREAKS
"'><=;|&(:

I played with $COMP_WORDS array and tried every thought I had to make it work, but failed.
What I should do to escape colon and make readline consider it as one word? Or there is way perhaps to workaround it?

View 2 Replies View Related

General :: Mount - Filesystem Handling For Embedded Device?

Jan 21, 2011

I am developing a device that will run Linux as its operating system.The device is a small form factor X86 device with a flash drive exposed as a SATA-device. So it is not very dissimilar from any other PC running Linux.For several good reasons I am building my own "distribution", instead of using an existing one.What confuses me is how mount/umount of the root file system is handled.I boot my kernel with the commandline "root=/dev/sda1 rw" which works fine. But everytime I do poweroff or reboot Busybox complained about no /etc/fstab, so I decided to build one.Should I have an entry for my root file system? It seems like this is shadowed by the rootfs anyway. I.e. if I have the fstab entry "/dev/sda1 / ext2 1 1" mount still reports rootfs on / type rootfs (rw)/dev/root on / type ext2 (rw,relatime,errors=continue)My questions are:Do I need to worry? Will the drive be correctly unmounted by the kernel on poweroff/reboot?If I want to perform file system checking on boot, can I do that without resorting to an initrd?

View 1 Replies View Related

General :: Find The Sequence For Signal Handling Mechanism In Kernel?

Apr 28, 2011

I am working on tracing the signal handling mechanism in linux kernel internallly. For that, i build the kernel. Now, i want to trace the signal handling mechanism in the old kernel. I got to about SYSLOG and PRINTK for this. But, how to use these tools exactly in tracing the handling of signals internally ?. Is, there any tool similar to backtrace to do that?. How the call flow is done internally ?

View 1 Replies View Related

General :: OS - Upgrade Or A Fresh Install Which Distro Is Best In Handling Upgrades?

Feb 25, 2010

Pretty soon, I hope, I'll get my brand new PC and wish to install a Linux disto. on it. openSuse may be it But I read recently that people prefer to do a fresh install of a newer version of openSuse, instead of upgrading it, apparently because of problems that may occur by the upgrade. As I understand, this preference apply to all Linux distributions and not only openSuse. Thus I wonder if there's a Linux distro. that's best in handling upgrades?I don't want to make a fresh new install each and every time that my disro. has a new version. I'm afraid to lose the data in that installation, and backing-up the data would be a headache. Also I plan to install a Windows OS alongside the Linux one via the Dual Boot configuration.

View 14 Replies View Related

General :: VirtualBox On Wubi Ubuntu Can't Start VMs Due To Incorrectly Handling Absolute Paths?

Jun 27, 2011

I mostly do .Net development in a Windows 7 virtualbox. I use the host for simple things such as web browsing, skype, chat, etc. All things that are fantastically available on Ubuntu which I in many ways prefer. So this has been begging the question for a while: why even use Windows on the host, seems like a Linux host would use less resources (untested) and allow my Windows VMs to run better while allowing me to do my non-development stuff in an interface I prefer.

So easiest way to do this - I downloaded wubi and installed Ubuntu. I installed in it Virtualbox, and then start add and start my VM to get this message: Failed to open a session for the virtual machine VS2010, Could not open the medium '/host/Users/George Mauer/Virtualbox VMs/VS2010/C:/Users/George Mauer/.VirtualBox/HardDisks/VS2010.vdi; VD: error VERR_FILE_NOT_FOUND opening image file '/host/Users/George Mauer/Virtualbox VMs/VS2010/C:/Users/George Mauer/.VirtualBox/HardDisks/VS2010.vdi; (VERR_FILE_NOT_FOUND).

You see what's going on? With wubi, the windows drive gets mounted at /host/ but virtualbox is for some reason appending an absolute path! I would very much like to use the same exact VM file since it would retain Snapshots and I would be able to use it in either windows or Ubuntu mode. However, even if I try to simply mount the drives into a new VM I get an error: Failed to open the hard disk /host/Users/George Mauer/.VirtualBox/HardDisks/VS2010.vdi. Cannot register the hard disk '/host/Users/George Mauer/.VirtualBox/HardDisks/VS2010.vdi' {guid...} because a hard disk '/host/Users/George Mauer/VirtualBox VMs/VS2010/C:/Users/George Mauer.VirtualBox/HardDisks/VS2010.vdi with UUID {guid...} already exists.

This is especially odd since this worked fine with my recently created Android VM, though this might have something to do with the fact that VirtualBox recently changed their default VM storage locations. Any idea how to fix this? My Linux-fu is weak but I seem to remember from CS class something about symbolic links that might be relevant here?

View 1 Replies View Related

Debian :: Must Plug In Headphones To Hear Sound On Laptop?

Aug 31, 2011

I have Debian wheezy, and win xp, installed on my Toshiba Satellite P205-S6337 laptop. The laptop speakers do not work when the computer starts up, but they work in windows. After fiddling with the sound preferences and making sure the volume was turned up with alsamixer. I tried plugging in headphones.I could hear sound on the headphones. Then when I unplugged the headphones the laptop's built in speakers work again! This wouldn't be such a problem except I have to plug in and unplug a pair of headphones to make them work.

View 5 Replies View Related

Debian Configuration :: Shutdown Laptop When AC Plug Is Removed?

Jul 22, 2010

I'm running a Debian on a laptop (actually a netbook: Asus EEE 1001PX) as a cheap homeserver. However I'd like it to automatically "shutdown -h NOW" when I remove the AC plug (switch it off at the wall). Otherwise I have to ssh to it and call it myself, and that just sucks Can I somehow detect the removal of AC power and upon that run a script ?

View 8 Replies View Related

Debian Installation :: Plug USB Mouse And Keyboard In After This Failure Which Then Works

May 10, 2011

I'm trying to net install Wheezy on an Abit IC7-G PIV system. I tried this months ago but the problem still exists. This is not so much an installation problem but after installation when it boots, I lose PS/2 mouse, PS/2 keyboard and network. I get:

startpar. service(s) returned failure udev ... failed I can plug USB mouse and keyboard in after this failure which then works. There is nothing wrong with the hardware. It works fine on other systems. Squeeze works perfectly.

View 7 Replies View Related

Debian Hardware :: When Plug In Charger OS Reports Battery As Empty

Feb 4, 2016

I am having a rather odd issue, this week I installed Debian latest on to an old Acer Aspire 3810TZ; everything runs smoothly enough and I spent a good number of hours using the laptop on battery (about two or three, the battery is checked and in good enough condition given its age) then as the desktop widget reported the battery as being 22% or so full I decided to plug in the charger at which point the os reported the battery as being 0% and issued an immediate hibernation.

I have done a fair bit of searching for others whom have had the same problem, as I am sure its not a new one. But the majority of what I have read revolves around batteries not charging and mine certainly does, I just have to have the laptop switched off while I do so (unless its booted into windows, in which case its fine.)

Below is the output of acpi and upower.

Code: Select allsimon@DLC:~$ acpi -b
Battery 0: Discharging, 96%, 05:47:01 remaining
simon@DLC:~$ upower -d
Device: /org/freedesktop/UPower/devices/line_power_ADP1
  native-path:          ADP1
  power supply:         yes

[Code] ....

I am using the Cinnamon desktop environment ...

View 0 Replies View Related

Debian Multimedia :: Windows Media Player Plug-in / Codec For Rhythmbox / Iceweasel

Dec 7, 2015

[URL]So, I want to hear the state-owned Portuguese radio that plays Classical Music, called "Antena 2", by either (1) clicking its website's listening "popup" window - [URL]- or by (2) adding such radio to my Rhythmbox list.

And, I would like to hear such a radio without having to install the proprietary "Flash" plug-in... And, if I'm forced to install any proprietary plug-in, I would rather install some "gstreamer" package(?) instead. But, preferably, what I would like, would be to use a Free Software alternative, if possible.

But, in the meantime, this is what happens...

1. If I click the above-mentioned link, to the corresponding "popup" window ([URL]), I can't hear anything.

2. If I click on a link at the bottom of that same "popup" window, that says "Listen to the broadcast in Windows Media Player" - [URL] - I'm sent to an identical listening "popup" window/page, where I still can't hear anything - and whose difference is that, now, the link at the bottom of the page says "Listen to the broadcast in Flash" [URL]

That is, this radio's website presents me two alternatives. That are, to listen to it

(1) using the "Flash" technology ([URL]), or

(2) using some "Windows Media Player" technology/codec/format ([URL])

The first of which I would very much like to not have to install, and the second of which I suspect there might be some plug-in package for, that I can install, that will make it possible for me to hear this radio.

And, the reason I suspect the latter, is because, if I try to add the link to the "Windows Media Player" page ([URL]) to my Rhythmbox's list of radios, I get the error message: "Your GStreamer installation is missing a plug-in."

So, which package(s) do I have to install, to be able to listen to this radio on the web - or, even better, through my Rhythmbox list of radios?

View 14 Replies View Related

Debian Multimedia :: Add Flash Plug - Report Package Flashplugin-nonfree-extrasound Is Not Available

Sep 4, 2011

I had used "sudo apt-get install flashplugin-nonfree-extrasound" but it report Package flashplugin-nonfree-extrasound is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

View 5 Replies View Related

Hardware :: Simulate Unplug And Replug Of USB Devices?

Jul 1, 2010

After some tests I found that some USB Bluetooth Dongles errors, only are recoverable if the USB is unplugged an then plugged again. Is there some way to simulate that a USB device is unplugged and re-plugged?

View 5 Replies View Related

Ubuntu :: 10.04 Every Time Unplug AC Adapter / Laptop Crashes

May 10, 2010

After an upgrade to 10.04, every time I unplug the AC adapter, the laptop crashes, and immediately shuts down and restarts, and will boot up normal, and shut down again as soon as it reaches the login screen.The laptop only runs fine when the cable is plugged in.I'm assuming this has something to do with the gnome power manager.I'm running an HP Pavilion dv4-2012la .

View 5 Replies View Related

Hardware :: Unplug And Replug HDMI Cable To TV On Boot Up

Feb 12, 2010

Dell XPS 420: Radeon HD 4670: Philips 720p TV monitor. When booting, after the GRUB screen nothing happens until the HDMI cable is unplugged and replugged. Various ATI drivers installed. Various /etc/X11/xorg.conf used.

View 1 Replies View Related

OpenSUSE Hardware :: Internet Dying And Computer Freezing On Unplug Of Usb

Jun 8, 2011

I am currently using opensuse to run a server, however I am experiencing some difficulties. Every once in a while, and I mean completely randomly. This will occur out of no where, and then not happen for five days, then occur twenty times in a row. What happens is the computer runs fine, and all is well but suddenly it wont connect to the internet. All applications are fine and everything is working. It isn't frozen, just won't load webpages. I am using a belkin 111v2 wireless g adapter and it usually works fine.

So when the internet freezes, if I unplug any usb the computer freezes. The mouse stops moving and the keyboard won't respond. The caps lock light won't even turn on. However the laser on the mouse is on, but the computer won't respond. Its like its shutting off the usb hubs. The only thing to do is force shut it off and restart until i no longer have the problem. Sometimes it helps if I open it and re-seat the ram, but that gets old. Does anyone have a solution?

View 5 Replies View Related

General :: DVD Plug-in For Kaffeine ?

Feb 3, 2011

I need plug-ins to enable Kaffeine to access and play my DVDs. Where and how do I fins such plug-ins?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved