Posts Under Debian Category
Make Wi-Fi Hotspot with Chillispot and Freeradius Requirement 1. Access Point (I use 3COM 3CRWE725075A) 2. Debian or Ubuntu Server 3. Lan Cable (at lease 2 line) 4. Lan card 2 card 5. Internet 1. Config Ethernet card # nano /etc/network/interfaces and append to file [code lang="shell" gutter="false"]auto eth1[/code] 2. Enable ipforward # nano /etc/sysctl.conf and uncomment this line [code…
This is instruction from me, if you want to setup mail server and use IMAP Server on Ubuntu or Debian and access the e-mail from SquirrelMail web-base. It’s work for me. My system Ubuntu Server 9.04 Install Postfix mail transfer agent aptitude install postfix Install Courier imap aptitude install courier-imap courier-imap-ssl Install Apache and PHP5 for website aptitude install apache2…
Assume you have installed LAMP 1. Prepare your system apt-get install libjpeg-progs libjpeg62 libjpeg62-dev libsdl1.2-dev php5-dev build-essential unzip1 2. Download package cd /usr/local/src wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2 wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz wget http://downloads.xiph.org/releases/ogg/libogg-1.1.4.tar.gz wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2 wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2 wget http://downloads.xiph.org/releases/theora/libtheora-1.0beta3.tar.gz wget http://jetzweb.de/bluelotus/auvica_temp/ffmpeg-php-0.6.0.tbz2 wget http://jetzweb.de/bluelotus/auvica_temp/ffmpeg-r15261.tar.gz 3. Extract tarbal file. tar xjvf amrnb-7.0.0.2.tar.bz2 tar xvjf amrwb-7.0.0.3.tar.bz2 tar xjvf essential-20071007.tar.bz2 tar xvjf ffmpeg-php-0.6.0.tbz2 tar…
The one feature of Apache2 is Virtual host , The virtual host have many type such as Name-based, IP-based and this one solution to use 1 IP Address and configure each port for each site. (By default http is run on port 80) Existing IP : 192.168.1.10 Have 2 website in /var/www/a and /var/www/b (log file of site b contain…
Simple Network Management Protocol (SNMP) ถูกนำมาใช้กับการเก็บสถิติหรือ monitor เครื่องคอมพิวเตอร์ เซิฟเวอร์และอุปกรณ์ network ต่างๆ ซึ่ง SNMP นี้ก็เป็น service ตัวนึงที่อยู่บนอุปกรณ์แทบจะทุกตัว และในบทความนี้ผมจะเขียนการเปิดใช้งาน SNMP กับระบบปฏิบัติการ Ubuntu หรือ Debian ครับ 1. ทำการ ติดตั้ง package snmp ครับ #sudo aptitude install snmpd 2. แก้ไขไฟล์ /etc/snmp/snmpd.conf #sudo cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak #sudo nano /etc/snmp/snmpd.conf 3. Map Community name และ network ให้เข้ากับ Security name สมมติว่า network ที่ใช้อยู่ใน subnet 192.168.1.0/24 # sec.name source …
สิ่งที่จำเป็นในการเชื่อมต่อระหว่าง PHP กับ MSSQL ก็คือ freetds unixodbc php5-sybase 1. ติดตั้ง package ที่ต้องการ #sudo apt-get install tdsodbc freetds-common unixodbc php5-odbc 2. สร้าง driver สำหรับการเชื่อมต่อ #nano /etc/freetds/tds.driver และแทรกข้อความนี้ลงไปในไฟล์ [TDS] Description = FreeTDS Driver Driver = /usr/lib/odbc/libtdsodbc.so Setup = /usr/lib/odbc/libtdsS.so 3. สร้างไฟล์สำหรับการเชื่อมต่อ #nano /etc/freetds/tds.dsn และแทรกข้อความนี้ลงไปในไฟล์ [DSN_NAME] Description = freeTDS Driver = TDS Trace = No Database = Databasename Server = MSSQLServer.local.com Port =…
Setup Freeradius 2.x with Mysql 1. ติดตั้ง mysql server #sudo apt-get install mysql-server mysql-client 2. ติดตั้ง Freeradius #sudo apt-get install freeradius freeradius-utils freeradius-mysql 3. สร้าง MySQL Database #mysql -u root -p CREATE DATABASE radius; GRANT ALL ON radius.* TO radius@localhost IDENTIFIED BY “radpass”; exit 4. โหลด schema ของ Freeradius 2.x เข้า MySQL #mysql -u root -p radius < mysql.sql 5….
เผอิญว่ายังไม่ชินกับการ config ใน freeradius 2.x ต้องยอมถอยกลับลงใช้ใน 1.1.7 ด้วยการ build source code เอง เหอะๆ ไม่เป็นไรยังไงก็ใช้แทนกันได้อยู่ ตอบ Requirement เราได้เหมือนกัน คราวนี้พอไปดูใน log ทำไมมันมีแต่การการเก็บค่าการร้องขอ package แต่ละ IP แล้วไหนหล่ะ การบันทึกค่าของคนที่เข้ามาขอการใช้งานใน radius ไม่เห็นมันจะมีแหะ ไปจัดการหาเลยแล้วกัน หัวใจหลักจะอยู่ที่ไฟล์นี้ครับ /etc/freeradius/radiusd.conf จากนั้นตามลงมาประมาณบรรทัดที่ 1137 ให้เอา comments ออก (#) ให้เหมือนข้อความนี้ detail auth_log { detailfile = ${radacctdir}/%{Client-IP-Address}/auth-detail-%Y$ # # This MUST be 0600, otherwise anyone can read # the users passwords! detailperm = 0600…
1. Go to edit sources.list sudo vi /etc/apt/sourceslist 2. Add following line deb http://linux.thai.net/debian unstable non-free contrib main deb-src http://linux.thai.net/debian unstable non-free contrib main deb http://debian.thaios.net/debian unstable non-free contrib main deb-src http://debian.thaios.net/debian unstable non-free contrib main deb http://ftp.coe.psu.ac.th/debian unstable non-free contrib main deb-src http://ftp.coe.psu.ac.th/debian unstable non-free contrib main 3. Save and quit 4. Update your apt source sudo apt-get update
One day I want to use zimbra on https (by default its use on http) you can do with this instruction 1. log in to zimbra su – zimbra 2. change to https zmtlsctl https 3. restart zimbra zmcontrol stop zmcontrol star 4. You can access zimbra web mail by https://youurl.com