return to tranceaddict TranceAddict Forums Archive > Other > Political Discussion / Debate

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 [31] 32 33 34 35 36 
Linux vs. Windows (pg. 31)
View this Thread in Original format
St_Andrew
quote:
Originally posted by shaolin_Z
Hmm, lemme check that file... I'll post the contents here so you can take a look at it too.


Hmm, try to check out "/etc/default/avahi-daemon" and "/etc/avahi/*" and see what things you can disable there!

Upgrade to 8.04 otherwise? You should do that anyway ;)
shaolin_Z
quote:
Originally posted by St_Andrew
Hmm, try to check out "/etc/default/avahi-daemon" and "/etc/avahi/*" and see what things you can disable there!

Upgrade to 8.04 otherwise? You should do that anyway ;)

Can I use the live CD to upgrade it or do I have to use the package manager in Ubuntu to do that? (the gui, not apt-get or aptitude, althought those should work too). But when I rebooted in recovery mode, I couldn't use apt-get.... it f'n crashed :(. Soemthing is obvoiusly wrong with my DHP / IP tables or something.
St_Andrew
quote:
Originally posted by shaolin_Z
St. Andrew, hey man, check this out:

I'm not sure where the '-j' option is, obviously not in avblalblah-daemon, but I'm assuming I should be able to edit that file in command line?


It's iptables and not avahi-daemon whining about "-j" I think!
shaolin_Z
quote:
FILES
/etc/avahi/avahi-daemon.conf: the default configuration file for avahi-daemon.

/etc/avahi/services/*.service: static service definitions.

http://downloads.openwrt.org/people...i-daemon.8.html

Does that help? Can you access it on your computer :conf: ?
St_Andrew
quote:
Originally posted by shaolin_Z
Can I use the live CD to upgrade it or do I have to use the package manager in Ubuntu to do that? (the gui, not apt-get or aptitude, althought those should work too). But when I rebooted in recovery mode, I couldn't use apt-get.... it f'n crashed :(. Soemthing is obvoiusly wrong with my DHP / IP tables or something.


I guess you can do that, it's probably easier to just download the latest version on CD though and make an upgrade that way?
shaolin_Z
quote:
Originally posted by St_Andrew
It's iptables and not avahi-daemon whining about "-j" I think!

Ahh, and where do I fix that? And umm, I don't know how to use vim or emacs :p. I always use a simple gui-base text editor (gedit) to write my code / edit files.
shaolin_Z
quote:
Originally posted by St_Andrew
I guess you can do that, it's probably easier to just download the latest version on CD though and make an upgrade that way?

Well, is it doable is what my question is? With the live CD that is... :p
shaolin_Z
Here's my /etc/init.d/avahi-daemon btw:
quote:
### BEGIN INIT INFO
# Provides: avahi
# Required-Start: $local_fs dbus
# Required-Stop: $local_fs dbus
# Should-Start: $syslog
# Should-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: Avahi mDNS/DNS-SD Daemon
# Description: Zeroconf daemon for configuring your network
# automatically
### END INIT INFO

#set -e

PATH=/sbin:/bin:/usr/sbin:/usr/bin
DESC="Avahi mDNS/DNS-SD Daemon"
NAME="avahi-daemon"
DAEMON="/usr/sbin/$NAME"
SCRIPTNAME=/etc/init.d/$NAME

# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0

. /lib/lsb/init-functions

# don't start if /etc/default/avahi-daemon says so.
AVAHI_DAEMON_START=1
test -f /etc/default/avahi-daemon && . /etc/default/avahi-daemon

DISABLE_TAG="/var/run/avahi-daemon/disabled-for-unicast-local"

if [ "$AVAHI_DAEMON_START" != "1" -a "$1" != "stop" ]; then
log_warning_msg "Not starting $DESC $NAME, disabled via /etc/default/$NAME"
exit 0
fi

#
# Function that starts the daemon/service.
#
d_start() {
modprobe capability >/dev/null 2>&1 || true

$DAEMON -c && return 0

if [ -e ${DISABLE_TAG} ]; then
# Disabled because of the existance of an unicast .local domain
log_warning_msg "avahi-daemon disabled because there is a unicast .local domain"
exit 0;
fi;

$DAEMON -D
}

#
# Function that stops the daemon/service.
#
d_stop() {
if $DAEMON -c ; then
$DAEMON -k
fi
}

#
# Function that reload the config file for the daemon/service.
#
d_reload() {
$DAEMON -c && $DAEMON -r
}

#
# Function that check the status of the daemon/service.
#
d_status() {
$DAEMON -c && echo "$DESC is running" || echo "$DESC is not running"
}

case "$1" in
start)
log_daemon_msg "Starting $DESC" "$NAME"
d_start
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping $DESC" "$NAME"
d_stop
log_end_msg $?
;;
reload)
log_daemon_msg "Reloading services for $DESC" "$NAME"
d_reload
log_end_msg $?
;;
restart|force-reload)
log_daemon_msg "Restarting $DESC" "$NAME"
$DAEMON -c && d_stop
d_start
log_end_msg $?
;;
status)
d_status
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|reload}" >&2
exit 1
;;
esac

exit 0
St_Andrew
quote:
Originally posted by shaolin_Z
Ahh, and where do I fix that? And umm, I don't know how to use vim or emacs :p. I always use a simple gui-base text editor (gedit) to write my code / edit files.


I have no idea actually, I tried to learn ip-tables 5 years ago or so, managed to do my own firewall/router. But the only thing I remember now is that it was really complicated :p
shaolin_Z
Where's iptables located? I cna access my ext3 drive in Winblows but I can't use locate obviously.

shaolin_Z
quote:
Originally posted by St_Andrew
But the only thing I remember now is that it was really complicated :p

LOL :D :p

EDIT: I just found this link although I'm still reading it: https://help.ubuntu.com/community/IptablesHowTo

And apparently there is a -j flag:
quote:
-j - Jump to the specified target. By default, iptables allows four targets:

*

ACCEPT - Accept the packet and stop processing rules in this chain.
*

REJECT - Reject the packet and notify the sender that we did so, and stop processing rules in this chain.
*

DROP - Silently ignore the packet, and stop processing rules in this chain.
*

LOG - Log the packet, and continue processing more rules in this chain. Allows the use of the --log-prefix and --log-level options.
shaolin_Z
It's look like it's /etc/iptables.rules

Is that it? :conf:

EDIT: ! And it's not there :(
CLICK TO RETURN TO TOP OF PAGE
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 [31] 32 33 34 35 36 
Privacy Statement