Home

debian service

  • Category: 電腦相關
  • Last Updated: Tuesday, 18 November 2014 09:12
  • Published: Tuesday, 18 November 2014 09:12
  • Written by sam

在debian開機時能執行script

debian似乎不像redhat系列能直接加在rc.d裡面(但也可以弄在rcS.d)

所以就比較麻煩一點點

先寫下需要的指令

#!/bin/bash
### BEGIN INIT INFO
# Provides:          sam
# Required-Start:    $remote_fs $samnfs
# Required-Stop:     $remote_fs $samnfs
# Should-Start:      $network $time
# Should-Stop:       $network $time
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: auto mount nfs
# Description:       auto mount nfs
### END INIT INFO
mount 192.168.1.3:/volume1/git /mnt/git
Read more: debian service

FORTINET 200D DHCP

  • Category: 電腦相關
  • Last Updated: Tuesday, 05 December 2017 13:50
  • Published: Monday, 17 November 2014 10:03
  • Written by sam

修改DHCP LEAST TIME 

config system dhcp server

 photo 2014-11-15_142051_zps67e51c8b.jpg

看到設備後方出現(server)

show (這樣會帶出最基本的設定值)

 photo 2014-11-15_142110_zps0c81c651.jpg

使用 show full-configuration (詳細的資訊)

 photo 2014-11-15_142202_zps526a1d07.jpg

Read more: FORTINET 200D DHCP

debian & mac snmp

  • Category: 電腦相關
  • Last Updated: Monday, 16 March 2015 10:29
  • Published: Wednesday, 29 October 2014 15:16
  • Written by sam

公司都是使用debian系統

為了要方便察看系統狀態也必需安裝snmpd服務

使用apt-get install snmpd

 photo 2014-10-29_093838_zps851dc714.png

這邊見到出現請放入dvd

這表示之前是使用dvd來安裝的

請依照下面修改更新來源 photo 2014-10-29_093859_zps336a510d.png

至路徑 /etc/apt/sources.list

 photo 2014-10-29_094008_zps431ef6e9.png

將上面這行的dvd行註解掉 photo 2014-10-29_094350_zps2b199828.png

再來要使用apt-get update 作一次scan

 photo 2014-10-29_095823_zpsace095f9.png

再來使用apt-get install snmpd

Read more: debian & mac snmp