Results 1 to 3 of 3

Thread: Replicating BT Network Settings in "Regular" Ubuntu

  1. #1
    Just burned his ISO
    Join Date
    Jul 2012
    Posts
    3

    Question Replicating BT Network Settings in "Regular" Ubuntu

    Hey,

    I've been using BT off-and-on for a while now, but in order to try and understand it better I've installed Ubuntu as my primary operating system on my laptop. I'd like to replicate the way that BT works - i.e. Start with all interfaces down, but I'm struggling to do that. I don't know if network manager is interfering, or if I'm just being daft? I was looking to edit /etc/network/interfaces to remove everything but the loopback, but there's nothing there:

    Code:
    me@laptop:~$ cat /etc/network/interfaces
    auto lo
    iface lo inet loopback
    I tried removing network manager and installing wicd instead, but then I couldn't connect to anything at all wirelessly. Any help that could be shed would be appreciated.

  2. #2
    Very good friend of the forum maverik35's Avatar
    Join Date
    Sep 2009
    Location
    Debian land
    Posts
    734

    Default Re: Replicating BT Network Settings in "Regular" Ubuntu

    first, you need to see what is the default running level for Ubuntu...My Testing Debian is 2...Now, need to kill Network Manager daemon at boot...

    Open up a terminal, and type: cat /etc/inittab | grep -i default

    You will see a line like this (this is my debian output): id:2:initdefault: The default running level is 2.

    I do not know if you are familiar with running levels, but need to read about them:
    level 0 halt (Stop all scripts safely and shut down the machine)
    1 Single-User mode (One tty for just one user: root)
    2 Multiuser without X's (x server) and (network services) but can share files.
    3 Multiuser with Network services but NO X's.
    4 Not used (You can add scripts that will be executed at startup)
    5 Multiuser with X's and Network.
    6 Reboot (Stops all scripts, uses resync if any partition mounted) and uses some other scripts to safely reboot.
    7 Not used.

    Now each level has its own folder under /etc/rcX.d

    The X is the runlevel..Each rcX.d is a script with links to /the scripts under /etc/init.d (It has all scripts physically).

    To avoid execute the network manager, need to go to the right folder (Default level folder, as I mentioned before) and list all links under let's say /etc/rc2.d. This is my Debian output:

    rc2.d:
    total 4
    -rw-r--r-- 1 root root 677 mar 26 19:50 README
    lrwxrwxrwx 1 root root 17 jul 29 2011 S15portmap -> ../init.d/portmap
    lrwxrwxrwx 1 root root 20 jul 29 2011 S16nfs-common -> ../init.d/nfs-common
    lrwxrwxrwx 1 root root 22 jul 29 2011 S18acpi-fakekey -> ../init.d/acpi-fakekey
    lrwxrwxrwx 1 root root 24 jul 29 2011 S18binfmt-support -> ../init.d/binfmt-support
    lrwxrwxrwx 1 root root 20 jul 29 2011 S18fancontrol -> ../init.d/fancontrol
    lrwxrwxrwx 1 root root 17 jul 29 2011 S18rsyslog -> ../init.d/rsyslog
    lrwxrwxrwx 1 root root 14 jun 11 11:34 S18sudo -> ../init.d/sudo
    lrwxrwxrwx 1 root root 15 jul 29 2011 S19acpid -> ../init.d/acpid
    lrwxrwxrwx 1 root root 22 jul 29 2011 S19acpi-support -> ../init.d/acpi-support
    lrwxrwxrwx 1 root root 17 jul 29 2011 S19anacron -> ../init.d/anacron
    lrwxrwxrwx 1 root root 14 jul 29 2011 S19apmd -> ../init.d/apmd
    lrwxrwxrwx 1 root root 13 jul 29 2011 S19atd -> ../init.d/atd
    lrwxrwxrwx 1 root root 14 jul 29 2011 S19cron -> ../init.d/cron
    lrwxrwxrwx 1 root root 14 jul 29 2011 S19dbus -> ../init.d/dbus
    lrwxrwxrwx 1 root root 15 jul 29 2011 S19exim4 -> ../init.d/exim4
    lrwxrwxrwx 1 root root 28 jul 31 2011 S19framework-postgres -> ../init.d/framework-postgres
    lrwxrwxrwx 1 root root 25 feb 27 10:33 S19isc-dhcp-server -> ../init.d/isc-dhcp-server
    lrwxrwxrwx 1 root root 20 jul 29 2011 S19kerneloops -> ../init.d/kerneloops
    lrwxrwxrwx 1 root root 21 jul 29 2011 S19loadcpufreq -> ../init.d/loadcpufreq
    lrwxrwxrwx 1 root root 23 ago 27 2011 S19smartmontools -> ../init.d/smartmontools
    lrwxrwxrwx 1 root root 17 ago 4 2011 S19vboxdrv -> ../init.d/vboxdrv
    lrwxrwxrwx 1 root root 22 jul 29 2011 S20avahi-daemon -> ../init.d/avahi-daemon
    lrwxrwxrwx 1 root root 19 jul 29 2011 S20bluetooth -> ../init.d/bluetooth
    lrwxrwxrwx 1 root root 22 jul 29 2011 S20cpufrequtils -> ../init.d/cpufrequtils
    lrwxrwxrwx 1 root root 13 ago 6 2011 S20hal -> ../init.d/hal
    lrwxrwxrwx 1 root root 25 jul 29 2011 S20network-manager -> ../init.d/network-manager
    lrwxrwxrwx 1 root root 33 ago 4 2011 S20vboxballoonctrl-service -> ../init.d/vboxballoonctrl-service
    lrwxrwxrwx 1 root root 25 ago 4 2011 S20vboxweb-service -> ../init.d/vboxweb-service
    lrwxrwxrwx 1 root root 14 jul 29 2011 S21cups -> ../init.d/cups
    lrwxrwxrwx 1 root root 14 jul 29 2011 S21gdm3 -> ../init.d/gdm3
    lrwxrwxrwx 1 root root 15 jul 29 2011 S21saned -> ../init.d/saned
    lrwxrwxrwx 1 root root 18 jul 29 2011 S22bootlogs -> ../init.d/bootlogs
    lrwxrwxrwx 1 root root 18 jul 29 2011 S23rc.local -> ../init.d/rc.local
    lrwxrwxrwx 1 root root 19 jul 29 2011 S23rmnologin -> ../init.d/rmnologin
    lrwxrwxrwx 1 root root 23 jul 29 2011 S23stop-bootlogd -> ../init.d/stop-bootlogd

    As you can see, there are only links to the /init.d/"scripts"....There is a jerarchy, they execute first by alphabet order (first all K and then all the S). When starting with K, it satarts with the numerical order, starting with S11 (in my case, off course) and then the S , in the same order. So if you delete the Network Manager, you just delete the link, so when booted, you will have to start manually the network manager:
    /etc/init.d/networking start
    The S means Start, the K means Kill...

    Afetr altering any rcx.d folder need to update the level to apply changes..It is very easy...

    Need to read more on runlevels and how to start services....There is another tool that doews all I told you, but is very automatic and is not for people who prefers the command console.

    But the tool is chkconfig, ex:
    chkconfig --level 2 network-manager stop

    To check all services and the level they start at, do: chkconfig

    Hope it helps...But again, I strongly recommend to read as I told you to..."Starting services" and "run levels in Debian"

    Use Google to search.

    Luck.
    That is all,

  3. #3
    Just burned his ISO
    Join Date
    Jul 2012
    Posts
    3

    Default Re: Replicating BT Network Settings in "Regular" Ubuntu

    Thanks - really appreciate the detailed response and the pointers on where to look at next. I'm keen to understand how things are working under the surface: Windows I understand pretty well having used it longer, so I want to know how to do the same things in Linux that come easily to me in other OS's. Whilst Backtrack is more interesting from a professional development perspective, I'm making myself study towards my Linux+ before doing anything too in-depth.

    Thanks again

Similar Threads

  1. Replies: 2
    Last Post: 02-19-2011, 04:09 AM
  2. full 2 gig ram usage, replicating apps
    By sebvege in forum Beginners Forum
    Replies: 0
    Last Post: 08-24-2010, 12:17 PM
  3. Network Settings being lost
    By Rhidian_Jowers in forum OLD Newbie Area
    Replies: 4
    Last Post: 09-16-2009, 02:06 PM
  4. Replies: 6
    Last Post: 01-13-2009, 09:22 AM
  5. Correct manual network settings.
    By shadowmoose in forum OLD Newbie Area
    Replies: 1
    Last Post: 09-18-2008, 01:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •