Networking :: Disable/Enable LAN Card By C/C++

Aug 24, 2010

I want to make a kernel module that its function is like ifup/ifdown. However I could not find any way to do that.

View 2 Replies


ADVERTISEMENT

Ubuntu :: Disable / Enable Networking Each Boot

Oct 13, 2010

I have a strange problem with my networking under Ubuntu. When I first log in to Gnome both my network adapters are listed as "disconnected" in the network manager applet. If I right click on the notification icon and disable networking, then wait a few seconds and re enable it, it works fine.

It's happening consistently with Maverick although it seemed only temperamental with Lucid. I did a fresh Maverick install to see if it would help but it hasn't.

It's the onboard network sockets on a Gigabyte GA-X58A-UD7. I have two ports but I only use one, it doesn't seem to matter which I use. It's connected via gigabit ethernet to a Netgear router. It works fine in Windows 7 (dual boot).

It looks as though something's not quite "ready" when gnome first launches. The light on the router for the cable is off at first, and only comes on after a few seconds. It's DHCP. Same thing happened on the live USB stick (just before the isntaller) and disable/reenable made it work.

View 9 Replies View Related

Ubuntu Networking :: Must Disable Then Enable Networking For Wireless?

Jan 29, 2011

My wireless can connect to my router without a problem, but in order to do so (after boot) I must first disable networking in the Notification Area and then re-enable it. I don't mind it too much, but when other people use my computer, it's made painfully obvious to me, that this was never an issue with Windows 7 (as much as I despise MS).

View 9 Replies View Related

Ubuntu Networking :: Won't Connect To Network Unless Disable/enable?

Feb 7, 2011

I'm running Ubuntu in VMWare for a side project. I noticed when I boot up, it doesn't let me access anything externally. I have to disable network manager and re-enable it. Once done, I can hit everything fine. I'm using a static IP in network manager.

View 1 Replies View Related

Ubuntu Networking :: Script To Enable / Disable Internet Connection?

Jul 19, 2010

writing a script that will enable/disable internet connection on the one of the machines in the network(be it a DNS clearing or something else).

View 3 Replies View Related

Ubuntu Networking :: Disable Internal Wireless And Enable External?

Dec 25, 2010

Disable internal wireless card & enable external? Can I do this really by network-manager or should I use some other program. If I plug-in external both are connected. If I disable internal by laptop button, I cannot enable wireless anymore in nm-applett (external on).

View 7 Replies View Related

Ubuntu Networking :: Network Manager Cannot Be Re-started ( Disable/Enable )

Apr 4, 2011

Adapter: Ralink RT3090 802.11b/g/n Wi-Fi Basically, whenever I disable it, I can't get it to turn back on. If I hit Enable, it says device is not ready. What can I do to make it work ?

View 5 Replies View Related

CentOS 5 Networking :: TIme Based Ethernet Interface Disable And Enable?

Mar 14, 2011

Im new to this Cent OS as well as Unix based Operating Systems. Please help me with the below requirement.My Company is a Serach based data collector from different websites like Google, Yahoo & many more..Collecting the data from the search engines is a issue for right now.. As many search engines are blocking us to search and retrive the date after some time.. Taking Google as example : Google Blocks my IP after every 30 mins of retriving.. Application is a Windows based & using Windows 2003 as the Server.. Would like to give a Dynamic IP to the Windows Server via 1st Ethernet Card & enable the 2nd Ethernet for the Internet..Eg : eth 0 = 192.168.1.1eth 1 = x.x.x.x (Public IP)I have check with few of my friends who told me to get Linux or Cent OS installed to do a interface disable after given time & enable a secondary device or virtual interface the next couple of seconds... Like eg : eth 1 = x.x.x.1 eth 2 = x.x.x.2 eth 3 = x.x.x.3 so on.. Would like the eth 1 to be down after 60 mins & eth 2 o be up & again after 60 mins of up time eth 2 down & eth 3 up.

View 6 Replies View Related

Ubuntu Networking :: Networking Widget Fails To Enable Wireless Card / Fix It?

Apr 30, 2011

I just upgraded to natty last night, and everything is working fine except for the network manager. I can enable and configure the wireless card via bash, but the network manager widget will not manage the wireless card.

When I first boot up, the "Enable wireless" check box is greyed out. After I enable the card via the terminal, the "Enable wireless" check box becomes ungreyed, but every time I click it, it instantly unchecks itself. I feel like Currly from the Three Stoogies. Check, uncheck, Check, uncheck.. "Slaps face repeatedly."

View 2 Replies View Related

Fedora Networking :: How To Enable The Wireless Card

Mar 3, 2010

I just loaded the boot-able cd, and I do not have enough knowledge with Linux bases OS's to figure out how to enable the wireless card. ifconfig produces an eth0 and a lo, when I try ifup wlan0, it says: configuration for wlan0 not found. I have looked at all the forums notes and cannot find anything that seams like it is the same problem.

View 12 Replies View Related

CentOS 5 Networking :: Cannot Initialize Ethernet Card / Enable This?

Jun 7, 2010

I recently installed CentOS on a really old computer and while most things are running well, I am unable to connect to the internet. Using a Damn Small Linux live CD I am able to connect just fine and was able to see that that 'hp100' was being used as the netcard driver. When I tried to set up the network card using that adapter (HP10/100VG ....) it gives me the following error code...

View 1 Replies View Related

Ubuntu Networking :: Wireless Card Disabled, Unable To Enable It?

Jan 24, 2010

I can't connect to the Internet through my wireless card. Plus, it's disabled and I can't enable it. It's grayed-out in the Network Manager on the top panel.I ran this code in a terminal:

Code:
*****@ubuntu:~$ sudo lshw -C network
[sudo] password for ******:

[code]...

View 9 Replies View Related

Ubuntu Networking :: Disable Internal Wireless Card To Use External?

Aug 6, 2011

I would like to turn off the internal wireless card since my external wireless card has better signal. Problem is if I turn of the internal card the external card turns off as well. My external card is an alfa awus036h 1000w. Laptop Gateway NV53. How would I disable the internal card and use only my external card?

View 2 Replies View Related

Networking :: Disable Power Management Option Of A Lan Card In Fedore/Ubantu?

Aug 19, 2010

One of the PC having Ubantu gets disconnected automatically from the network.As we do in normal windows is that we get to the device manger and select the LAN card properties and check off the power management check box similarly how can be do this thing in a linux OS.

View 2 Replies View Related

Ubuntu Networking :: HP Pavilion Wireless Enable/Disable Button / "Wireless Disabled By Hardware Switch"?

May 11, 2011

I've had a host of problems since upgrading to 11.04 Natty Narwhal, so let's deal with these 1 at a time.

I've got a Hewlett-Packard Pavilion G60 laptop. Next to the power button is a handy wireless on/off button. This has always worked well with previous editions (9.04,through 10.10). first press toggles the wireless off, second press toggles it on.

Not so in 11.04. The toggle off works great, first time. But, it will not toggle back on. Not after any number of tries, not after restarting, not after booting into other OS's (9.10 and Vista) re-enabling it there and then booting back into Narwhal. to further complicate the issue, this feature bypass the network manager, so toggling the wireless off by the switch leaves me showing no wireless adapter in the network manager. I also restarted, switched from Unity to a Gnome session, but the issue still persists.

As my only network options are wireless, this has become a substantial inconvenience.
----
EDIT: so the network util is actually saying "wireless disabled by hardware switch". Also noticed it I enable it in 9.10, reboot to 11.04 (where I inevitably fail to re-enable it), then reboot into 9.10, it will initially be disabled. The key difference is in 9.10 I have the ability to enable wifi using the hardware button. It seems that 11.04 is remembering that wireless is disabled between boots. Is there a place it might be storing this value? If so, I may be able simply to set the value as enabled, since toggling that silly button isn't working.
-----
EDIT 2:
found this thread:"Wireless disabled by hardware switch" bug? - Natty
seems to be a similar issue. I'll be following how that one develops, too.

View 3 Replies View Related

Fedora :: How To Disable / Enable Gstreamer

Jun 23, 2010

how to disable gstreamer???? (and be able to re-enable it also?) i don't want to totally remove gstreamer - as it is required by alot of software. however, when i am using
proaudio apps with low-latency having gstreamer enabled is a problem. this is because ( i think ) that my crappy intel-hda (STAC9200) only has one sub-device, while many other cards have multiple.

so when gstreamer is there, i will get more xruns, and a nasty message in dmesg, something along the lines of "intel-hda switching to polling mode". overall performance of the card will suck. BUT! if gstreamer is NOT there, i can run low-latency(2ms) with pretty much no xruns(jackd). the only time i get the odd one is if i am switching drum banks in a wine VST.

well, i remove pulseaudio when i install Fedora, gstreamer doesn't work properly after that, you can't use rhythmbox, or anything. but you will get much better latencies and generally the card is very useful. ie: i can manipulate many sounds/samples/synths in realtime, or actually record in ardour with a decent load...

View 10 Replies View Related

Fedora :: How To Enable / Disable Firewall

Jul 30, 2011

Sorry but I'm a new user and would like to know how to enable/disable firewall. I have tried to open a port up on my firewall but, for some reason that didn't work. I have found these command in another thread: $ sudo /sbin/chkconfig iptables off
$ sudo /sbin/service iptables stop
I assume this is to disable the fire wall. How do I enable it once I'm finish running my program.

View 13 Replies View Related

Ubuntu :: Touch-pad Disable / Enable This?

Jun 13, 2010

I've downloaded from the Ubuntu software center a touch-pad application that allows me to set some preferences to my touch-pad. So since I rather use a mouse, I've disabled it, the problem is, it only keeps disabled for a few minutes, later it works again. So I want to keep disabled until I enable it again, any suggestions?

View 3 Replies View Related

Ubuntu :: How To Enable/disable Specified Hardware

Jul 19, 2011

is there a way to enable/disable specified hardware? Allow me to explain, i have 2 wireless adapters, one integrated and one USB, i want to use the USB adapter for 5Ghz 802.11n and the integrated wifi adapter in my system is the one ubuntu is defaulted to.. i have the drivers for the USB device already installed i just need to disable the integrated device.

View 3 Replies View Related

Hardware :: Disable +5V Supply On USB And Enable It Again?

Sep 16, 2010

know whether it is possible to disable +5V supply on USB and enable it again?

View 4 Replies View Related

Hardware :: Disable AND Enable Keyboard From Another?

Feb 1, 2011

I have 4 computers and I currently have 4 USB cradles so every time I want to switch to a new computer I have to unplug the keyboard/mouse dongle and replug it in the appropriate cradle. I would prefer to connect the single dongle to a 4 way USB switch then choose the target computer by remapping 4 of the keys I don't need, for example:

View 2 Replies View Related

General :: How To Enable / Disable Easystroke

Sep 16, 2010

how to disable/enable easystroke with commands like

Code:

easystroke --enable [--disable]

View 4 Replies View Related

Server :: Enable/disable PAE In RHEL 6?

Jan 12, 2011

Anyway, according to the release notes, RHEL 6 has a PAE enabled kernel by default. Great... But that leaves me wondering why uname report SMP. Further, I'm provisioning some systems for QA use, and they're asking that PAE is disabled. My thinking is that since RHEL 6 requires PAE capability to install, there may be no way to disable it and the googling I've done seems to support this. tl;dr Why does a default kernel with PAE enabled report SMP on RHEL 6?

View 7 Replies View Related

Debian :: Touchpad Enable / Disable Key Not Working

Nov 27, 2010

Since last Saturday (11-20) my touchpad enable/disable key stopped working.I don't make much use of the touchpad and it usually stays disabled most of the time so I can't be sure it is really on Saturday that I lost this functionality or maybe the day before (I'm positive it's not longer than that).Before that it worked flawlessly, now it's like a dead key (which is not broken by the way, tested on a live CD).In these past week I have been looking for quite some time for other users who might have experienced this problem after the update of two specific packages (console-data and keyboard-configuration) I had on the 20th and which made me think might have broken the key binding.Not finding anything at all and after having tried for said packages both newer versions from sid and previous known-to-have-worked-before versions from the install CD, I started thinking the problem was not there (I consequently restored the testing ones).

The days before this happened I tinkered a little bit with gpointing-device-settings and tpconfig (this last one was a simple tpconfig -i), but at this point I start thinking there might have been something else I've done, somewhere else I can't recall probably.

Oh, I forgot to mention that the touchpad still works flawlessly, I can enable/disable it through gconf (actually I made two handy shortcut to the "/desktop/gnome/peripherals/touchpad/touchpad_enabled" value), so it is not an issue of making it work, just the toggle key which on my laptop is a dedicated one (no Fn modifier) and anyway all the other special keys still work fine.I checked gnome-keybinding-properties and there is no action for the touchpad there, but I don't know for sure if there was one before (and I haven't been able to add one). Anyway in gconf I noticed a key in "/apps/gnome_settings_daemon/keybindings/touchpad" has the value "XF86TouchpadToggle", not sure if that means the keybinding exists or what.

What more can I add? What I'm here to ask now is some guidance on figuring out what I might have done wrong considering what I was able to tell you, but mostly, considering what I wasn't able to tell you and am not even aware to have done.

View 6 Replies View Related

Debian :: Way To Enable/disable Services In Squeeze?

Jul 2, 2011

I'm looking for some definitive instruction on the proper way to enable/disable (not to simply start/stop or add/remove packages) services/daemons under Debian 6. Google results are all over the map and, surprisingly, the Debian wiki has no abstract on services.It seems like such a common task

View 14 Replies View Related

Debian Multimedia :: Multiboot Disable Or Enable GDM ?

Nov 22, 2010

I have a computer that runs debian 6, and i want to make a dual boot system where i can boot either with or without desktop. AS default the server will be booting in console (headless) mode (and act as server) but on some occasions i do want to bootup in desktop.

I know starting GDM (in my case the desktop manager) is just a simple task, but i would like to have 2 options in boot menu:
1 - without desktop default (timeout 5 seconds)
2 - with desktop

what would be the correct grub config entries?

View 1 Replies View Related

Debian Hardware :: Enable / Disable USB Root Hub

Oct 6, 2010

Basically what I'm wanting to do is only have one USB keyboard connected active/enabled at any given time. i.e., enable B1D14 and disable B5D2, then enable B5D2 and disable B1D14. I'm actually wanting to enable/disable at the root hub. Something analogous to mount/umount a device instead of a file system.

ramack@ramack2:~$ lsusb
Bus 005 Device 002: ID 413c:2105 Dell Computer Corp. Model L100 Keyboard
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 014: ID 413c:2106 Dell Computer Corp. Dell QuietKey Keyboard
Bus 001 Device 012: ID 0781:5544 SanDisk Corp.
Bus 001 Device 006: ID 058f:6254 Alcor Micro Corp. USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

View 2 Replies View Related

OpenSUSE Hardware :: How To Enable / Disable Pci Slot

Apr 6, 2010

Can somebody tell me how to enable/disable a pci slot.I am trying to do a hotplug on the pci slot.Is it possible in Open SUSE? If its possible can somebody please tell me how to do it.I was doing some research and went over the following topics hwup, hwdown, sysfs, but nothing worked.My confidence on Linux OS is pretty high and am sure there should be a way!

View 1 Replies View Related

Ubuntu :: Script To Enable/disable Touchpad?

Mar 22, 2010

I am able to get my touchpad to enable disable from the bash shell using

Code:
sudo modprobe -r psmouse with or without the "-r" to turn it on or off, respectively But I wanted to write a script to do this for me because "mouseon" and "mouseoff" is easier for me to remember and more convienient. But I am having some issues (I am a complete newb at scripting, so forgive my ignorance)

the script written is:

Code:
#!/bin/bash
#enable/disable touchpad

sudo modprobe -r psmouse I have saved this script as "mouseoff" in usr/bin (echo $PATH told me this was a directory bash searches, even though it was not a directory and I had to create it with mkdir).

then I did Code: chmod 755 mouseoff However, when I try to run it, I get a "permission denied" error.Can anyone help me with what I am doing wrong?

View 6 Replies View Related

Ubuntu :: Disable Compiz Temporarily And Re-enable It?

Apr 3, 2010

Ubuntu 9.10 64bit

Compiz is installed and running on this OS

$ apt-cache policy compiz
Code:
compiz:
Installed: 1:0.8.4-0ubuntu2
Candidate: 1:0.8.4-0ubuntu2[code]....

How to disable compiz temporarily and re-enable it?I can't find System>Preferences>Compizconfig Settings Manager

View 8 Replies View Related







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