Skip to content

Instantly share code, notes, and snippets.

View seyyah's full-sized avatar

seyyah seyyah

View GitHub Profile
#!/bin/bash
# Konumu: /etc/init.d/
# $ sudo update-rc.d mydhclient defaults 99 90
# Basarili olabilmesi icin /etc/network/interface dosyasinin su sekilde olmasi gerekir: http://gist.github.com/466499
dhclient
auto lo eth0 eth1
iface lo inet loopback
iface eth0 inet static
address 10.0.2.15
netmask 255.255.255.0
gateway 10.0.2.2
iface eth1 inet static
address 192.168.56.101 # FIXME: beni uygun bir degerle guncelle
# These rules generate rules to keep network interface names unchanged
# across reboots and write them to /etc/udev/rules.d/70-persistent-net.rules.
# variables used to communicate:
# MATCHADDR MAC address used for the match
# MATCHID bus_id used for the match
# MATCHDRV driver name used for the match
# MATCHIFTYPE interface type match
# COMMENT comment to add to the generated rule
# INTERFACE_NAME requested name supplied by external tool
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:ca:10:ad", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:e8:be:f2", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# Start the supervisor daemon at boot time ("yes" or "no")
START_SUPERVISOR="yes"
#! /bin/sh
### BEGIN INIT INFO
# Provides: supervisor
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: Starts/stops the supervisor daemon
# Description: This starts and stops the supervisor dameon
# which is used to run and monitor arbitrary programs as
# services, e.g. application servers etc.
### END INIT INFO
[supervisord]
;http_port=/tmp/supervisor.sock ; (default is to run a UNIX domain socket server)
http_port=127.0.0.1:9000 ; (alternately, ip_address:port specifies AF_INET)
;sockchmod=0700 ; AF_UNIX socketmode (AF_INET ignore, default 0700)
;sockchown=nobody.nogroup ; AF_UNIX socket uid.gid owner (AF_INET ignores)
;umask=022 ; (process file creation umask;default 022)
logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (logging level;default info; others: debug,warn)
#!/bin/sh
### BEGIN INIT INFO
# Provides: supervisor
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: Starts/stops the supervisor daemon
# Description: This starts and stops the supervisor dameon
# which is used to run and monitor arbitrary programs as
# services, e.g. application servers etc.
### END INIT INFO
# bu ornek serdaraytekin den alintilanmistir
# kaynak: http://www.serdaraytekin.com/docs/os/debian/sarge-install-6.html
deb http://ftp.tr.debian.org/debian testing main contrib non-free
deb http://ftp.tr.debian.org/debian-non-US testing/non-US main contrib non-free
deb-src http://ftp.tr.debian.org/debian testing main contrib non-free
deb-src http://ftp.tr.debian.org/debian-non-US testing/non-US main contrib non-free
deb http://ftp.tr.debian.org/debian-security testing/updates main contrib non-free