Ubuntu :: Sudo Ifconfig Eth0 Down Vs Sudo /etc/init.d/networking Stop
Jun 10, 2010
explain the difference between these two commands. I'm currently reading about changing your mac address and both of these commands show up a lot. They sound like the same thing to me. Is one better than the other, or do you need to use both to change your mac address?
sudo ifconfig eth0 down
sudo /etc/init.d/networking stop
I have got Ubuntu 10.10 on a Dell Inspiron Laptop. Can't get anywhere with wireless network. Tried a few bits of poking it blindly with a stick:
matthew@ubuntu:~$ lshw -C network Warning: you should run this program as super-user. *-network Description: Network controller Product: BCM4312 802.11b/g LP-PHY Vendor: Broadcom Corporation Physical id: 0 Bus info: pci@0000:0c:00.0 Version: 01 Width: 64 bits Clock: 33MHz Capabilities: bus_master cap_list Configuration: driver=b43-pci-bridge latency=0 Resources: irq:17 memory:f69fc000-f69fffff *-network .....
I reckon *-network DISABLED is a problem, I tried sudo ifconfig wlan0 up but that didn't work. The output of that and lspci are on the ubuntu side of my machine. I have also tried pressing my wireless on/off key (F2) but that doesn't work either.
First I installed ubuntu on a separate hard drive and ran that as primary hard drive. Then I opened terminal and entered: sudo fdisk -l The errored hard drive was sdb1. I then entered: sudo fsck /dev/sdb1 There were questions I answered yes to then, after swapping drives, I booted normally. Everything was normal except I have to choose a different version of ubuntu at startup. I haven't had any problems so far but this was just an hour ago.
I am a Mac/ Windows user, forced to use Linux for my college work. I do not know where to enter commands like $ sudo /usr/etc/eth0 mvntz -do4i or how to make them work
I had a problem - the Wi-fi card in my laptop was not working. All the forums were useless. They wanted me to READ about wireless networking !
Finally a good friend solved the problem in a simple way : it appears Ubuntu has not installed the drivers for my Broadcom wireless card since it was not open source. I had to download it myself. Here is how : Go to System menu on the top bar. Choose administration/ hardware devices. Tell it to activate the device. It will download the drivers through the cable attached to DSL modem and install.
Then clicked the network icon, selected edit connections, and entered my wireless network name and password. This solved all problems.
Why doesn't Linux give me a warning that the driver for something is not yet installed ? When I was struggling with the network setup wizard for the whole day, there was no clue about the missing driver.
I am working on a notebook which has both gnome and wmii. I am trying to find a way to script stopping various services when booting into wmii however the "service xxx stop" requires sudo..Is there a way to allow a user to manage services without the need for sudo (aside from password-less sudo)? I assume there are permissions complications with writing the PIDs, etc. Is there a 'simple' solution? Even possible passwordless sudo just for the 'service' command?
I have a problem when I want to use su I get this error:Code:su: pam_start: error 26I have googled it so I found this topic (http://www.linuxquestions.org/questi...r-26-a-615024/) but it didn't really help me. There was a reply on that topic and his question was what the output of this was:
Running 10.04. For some reason, starting today, I have no internet connection unless I run this command in terminal - sudo dhclient eth0. I have a hard wired ethernet connection on a Desktop PC with a static IP address (there are a number of devices in the house) and it has been running 100% for months and months. Why suddenly do I have to enter this command to get connection? When I switch on I get a connection in that when I click on the Top Panel icon and right click Connection Information it tells me I have an active connection to my router on the normal IP address. I cannot ping the router and Firefox says Server not found. After sudo dhclient eth0 everything works - what has happened since yesterday evening and this morning to stop what has been 100% for months?
A day ago I finally got around to upgrading the PackageKit installation that had been sitting for a week and a half, so I found a new upgrade for sudo available - the one that gives the sudoreplay command, I forget which version number it is exactly. When I try to use the sudo command I get this notice in my terminal:Code:Can't open /var/db/sudo/me/1: Permission deniedI didn't get it before. What do I have to do to make it open? I'm using SELinux in enforcing mode if that helps.
I have read a lot of questions from people wanting to take Debian (or some other distribution) and make its sudo command act more like the way Ubuntu's sudo does. I want to do the exact opposite, I want to make Ubuntu's sudo command act more like the sudo command from another distribution. ie I want there to be one root password
I'm trying to install Nvidia drivers 190.53 on my karmic with a Nvidia 9500GT. I've downloaded the file from the Nvidia website. I've done this before on previous installations and everything went fine, however, with karmic turning off the xserver is a bit of a trick.
/etc/init.d/gdm stop doesn't work sudo service gdm stop doesn't work sudo killall gdm doesn't work.
After I run sh ./NVIDIA-linux-x86-190.53-pkg1.run a notice pops up and tells me I'm running x and I need to exit out. I thought I did. I've looked at the instructions on the Nvidia website, but I don't remember it being that complicated before and am a little nervous about removing files I don't know what they do.
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'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've got a vmware install of Fedora 12 running as a server. This install has the /etc/sysconfig/network-scripts/ifcfg-eth0 file configured with the proper info and the service has been restarted. When I run ifconfig I only get the loopback interface, when I run ifconfig -a I can get the eth0, but without the pre-configured ip address. When I enter ifconfig eth0 up I can activate the interface, but without the afore mentioned ip address. I need to be able to yum ssh, install it, and run it with rsa keys. Can do none of this without an interface obviously.
I am new to fedora (been using debian based distro's for the longest time). With the new release I decided to give FC13 (The kde 64 bit spin) a try. I told it to wipe my entire hdd and encrypt the partitions. The partition manager made a few LVM partitions which I assume are encrypted.
The problem I am having is that if I attempt to use an application that would normally need root access to run, I am not prompted to enter my root password. Instead, I am required to logout and log back in as root. Is there a way to make it so that FC13 will prompt me to enter in my root password so I do not need to log in and out? Or is there something Different I should have done during the install process? Also, what is the terminal equivalent of "sudo" in fedora, or is it still sudo/KDEsudo
I also have not used SE Linux before. Do I need to manually enforce the permissions for my applications and generate my own profiles for it, or is that done automatically?
If I uncheck and recheck "Enable Networking" in the Network Manager Applet 0.7.996 I would expect the wired network to disconnect (which it does) and reconnect (which it does NOT). So I tried sudo ifdown eth0 and got
Ignoring unknown interface eth0=eth0.
ifconfig tells me
eth0 Link encap:Ethernet HWaddr 00:25:64:e8:18:2c inet addr:192.168.0.112 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::225:64ff:fee8:182c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
so I am at a loss. How do I stop and restart the network interface short of rebooting the machine?
I know, from detailed google searching, and several threads on here, that a number of people have this mobile broadband modem, and have got it working. I'm running Ubuntu 10.04 I have got usb_modeswitch working, however, I'm not having any success when I do modprobe. (It seems that this fixes the problem for everybody else, but not me). It doesn't seem to be attaching any driver to the modem, see output below.
david@holmez:~$ lsusb Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 002: ID 12d1:1c05 Huawei Technologies Co., Ltd. [Code]....
I have absolutely no internet from my Ubuntu, so I won't be able to do a sudo apt-get. I think I can get what I need from the packages.ubuntu website, except, I don't know what I might need, or where to go from here.
My Ubuntu 9.10 works well with the network through samba, but only if I first run - sudo service samba restart Then all is fine. I don't understand this. How can I avoid having to do this? Or alternatively where can I best put this command so that it will be run on boot-up.
My current situation is that the command "sudo modprobe ndiswrapper" is not responding, nothing happens. I am using [URL] as my guide and the "sudo modprobe ndiswrapper" is my next step. Here is some general information that you might ask for: I received ndiswrapper utilities from "Synaptic Package Manager" I was using jaunty jackelop before hand and the instructions worked perfectly but I decided to update to Karmic Koala 9.10 (I first installed the cloud enterprise version and realized that was way over my head).
I get the wireless working by executing Code: sudo modprobe b43
All good so far, but it's kinda tiring to execute that command every time I restart the computer, just to get internet access. Is there any way to make this command execute by it's own, when starting up the computer, like in the background or something. Or even better, to actually make b43 the default driver for the wireless. I've tried reinstalling both bcmwl, and b43, uninstalling bcmwl etc. But no luck.
I have a problem with the network. Worth two network cards and Ian wan. Do not take the ip. When the system boots not included until you do the command ifconfig eth0 up. The network card is connected to a router, he does not see it. Router working, tested. Network card is working well, tested on Windows. RX RT packages go, withheld support for ipv6 and packages no longer go.