• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

got a ubuntu 11.04 question


New Member
Mar 8, 2006
498 (0.11/day)
Processor Celeron 430 (Conroe-L)
Motherboard ASUS Rampage Formula
Cooling Water, Zalman Reserator XT
Memory Corsair Dominator PC2-8500 DDR2-1000
Video Card(s) Visiontek 2600 PRO
Storage Maxtor Maxline 3, more Maxtors
Display(s) Acer P243w 24"
Case Aspire X-Navigator ATXA9N-BK
Audio Device(s) Mbox
Power Supply Thermaltake Toughpower 750w
Software Protools and a bunch of racing games...
i know this is probably a simple problem, but i am running a caching proxy on ubuntu server 11.04. I am using my phone via USB as a WAN interface, and the ubuntu server serves as a gateway to the rest of my network and serves dhcp.

Two questions:

1. It sometimes autosenses the phone, but almost every time i unplug the phone i have to reboot the machine with the phone plugged in for it to work again. Is there a way around this? I already have the phone (usb0) defined in interfaces with a static ip.

2. Every time i boot, i have a routine of
sudo /etc/init.d/isc-dhcp-server start
sudo shorewall start
. I also have to edit /etc/resolv.conf every time because i guess somehow it is being overwritten by dhcp. Is there a way to add isc-dhcp-server and shorewall to the boot process? Is there a way to lock down resolv.conf or define name servers some other way that wont be overwritten on boot?

The network works perfectly by the way, it just takes an extra 10 minutes to set everything back up when i get home from work.

Easy Rhino

Linux Advocate
Nov 13, 2006
14,414 (3.53/day)
System Name VHOST01 | Desktop
Processor i7 980x | i5 7500 Kaby Lake
Motherboard Gigabyte x58 Extreme | AsRock MicroATX Z170M Exteme4
Cooling Prolimatech Megahelams | Stock
Memory 6x4 GB @ 1333 | 2x 8G Gskill Aegis DDR4 2400
Video Card(s) Nvidia GT 210 | Nvidia GTX 970 FTW+
Storage 4x2 TB Enterprise RAID5 |Corsair mForce nvme 250G
Display(s) N/A | Dell 27" 1440p 8bit GSYNC
Case Lian Li ATX Mid Tower | Corsair Carbide 400C
Audio Device(s) NA | On Board
Power Supply SeaSonic 500W Gold | Seasonic SSR-650GD Flagship Prime Series 650W Gold
Mouse N/A | Logitech G900 Chaos Spectrum
Keyboard N/A | Posiden Z RGB Cherry MX Brown
Software Centos 7 | Windows 10
as far as your boot process, you could write a basic script in cron and have it execute during the boot process saving you time. im not sure why you have to reboot though when you unplug your phone. if it is usb you should be able to restart that process in init.d manually.