Posts Under Ubuntu Category
banner คือป้ายแสดง ป้ายข้อความ บน linux ก็สามารถทำได้เช่นกัน จะมาหาอะไรทำสนุกบน linux ครับ ภายใต้การใช้งาน terminal ซึ่งตัวอย่าง banner text เป็นแบบนี้ครับ
เมื่อใช้โปรแกรม vim ใน ubuntu 10.04 แล้วพบว่าเมื่อกดปุ่มลูกศร มันกลายเป็นตัวอักษร A, D,….. ออกมา แล้ว cursor ก้ไม่ยอมเลื่อนไปตามที่กำหนด การแก้ไขสามารถทำได้ดังนี้ครับ
On Virtual Box is a great software of Virtualization (free and support many guest). If you want to move a virtual machine under Virtual Box to another host, you can do it by the easy way : Choose your virtual machine to export and location to save file, and wait until it finish An another host you can add the…
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 =…
เผอิญว่ายังไม่ชินกับการ 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…