The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Some Linux network config help needed by Control2006-09-07 02:00:50
  Hahahaaaaaa! It works. by Control 2006-09-07 05:13:57
Behold my two scripts:

#!/bin/bash

ifconfig eth0 yy.yy.yy.100
route add default gw yy.yy.yy.254
cp /etc/resolv.conf_home /etc/resolv.conf
hostname Ganymede
ps aux |grep opera | awk '{print $2}' | xargs kill -9
sed s/TP=1/TP=0/ /home/control/.opera/opera6.ini
/etc/init.d/network restart

#!/bin/bash

ifconfig eth0 xx.xx.xx.230
route add default gw xx.xx.xx.1
cp /etc/resolv.conf_work /etc/resolv.conf
hostname xxxx-xx-230
ps aux |grep opera | awk '{print $2}' | xargs kill -9
sed s/TP=0/TP=1/ /home/control/.opera/opera6.ini
/etc/init.d/network restart

Turns out the systemwide (or just KDE, I dunno) proxies aren't important. Opera has it's own settings, and the other things, like KMail, skype, apt etc. seem to get along fine without changing anything.

Sensitive data x'd and y'd out for obvious reasons.
[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)