ข้ามไปที่เนื้อหาหลัก

บทความ

กำลังแสดงโพสต์ที่มีป้ายกำกับ Ubuntu server

เมื่อเกิดปัญหาระหว่างที่ upgrade version ubuntu

เมื่อเกิดปัญหาระหว่างที่ upgrade version ubuntu, แฮงค์ระหว่าง upgrade (Hang) ในระหว่างที่เรากำลัง upgrade version ubuntu จาก old version ไปสู่ version ถัดไปนั้น ด้วยคำสั่ง command นั้น คำสั่ง upgrade version ubuntu  เมื่อใช้คำสั่งแล้วระบบจะทำการ Download packet ต่างๆจากอินเตอร์เน็ต หากอินเตอร์เน็ตหลุดในระหว่างที่ download packet นั้นเราสามารถที่จะใช้คำสั่งเดิมในการ Download อีกครั้งได้ แต่ต้องเริ่มต้นโหลดใหม่ แต่ในที่นี้ เมื่อระบบ Download packet เสร็จเรียบร้อย กำลังทำการ Upgrade system อยู่ดีๆ เครื่องกลับ Hang ระหว่าง upgrade version ซะงั้น เมื่อเรา reboot เครื่องใหม่ ปรากฏว่า มันไม่ ทำการ Upgrade version ต่อจากที่แฮงค์ หรือเริ่ม upgrade ใหม่ ครั้นจะใช้ apt-get update หรือ apt-get upgrade ก็ดันติด Error ซะเพียบ ทำอะไรไม่ได้ ดังนั้นแล้วให้ใช้คำสั่ง sudo dpkg --configure -a  เพื่อทำการเริ่มติดตั้งระบบใหม่ครับ เท่านี้ระบบก็จะเริ่มทำการติดตั้งใหม่ให้แล้วครับ

xampp mysql password

How to set password user phpmyadmin for xampp. 1. Download xampp   and select platfrom.      - for window      - for linux      - for Mac OS X 2. Install xampp on server or virtual server. 3. Open Control panel xampp and start service. 4. Open web browser get url http://localhost and click tab security . 5.Click on  http://localhost/security/xamppsecurity.php   6. Enter password and confirm password again and click password changing button. 7. Open phpmyadmin get url  http://localhost/phpmyadmin/ insert username and password user : root password : ............

How to install Desktop for Ubuntu server

If you need to configure the ubuntu server, but active in the text mode or command line not easy. How to install desktop for ubuntu so easy to use for ubuntu server. 1.login from root. sudo su - insert password. 2. connect internet by test update by command. apt-get update if connect internet follow down picture. if you can't internet command show w: error check ip address and internet signal. 3. after update you should be upgrade server by command. apt-get -y upgrade 4. install desktop ubuntu by command. apt-get install ubuntu-desktop wait. (fast or slow depending on speed internet signal)

JDK 6 Debian, Ubuntu, etc.

JDK 6 Debian, Ubuntu, etc. On the command line, type: $ sudo apt-get install openjdk-6-jre The openjdk-6-jre package contains just the Java Runtime Environment. If you want to develop Java programs then install the openjdk-6-jdk package.

show user freeradius from lightsquid from ubuntu

How config to lightsquid from freeradius show user. 1. config lightsquid.cfg file. (nano or vi editor) sudo nano /var/www/lightsquid/lightsquid.cfg - remove # and change number 0 to 1 line 112 $userealname = 1; - save file and close. - run /var/www/lightsquid/lightparser.pl - open web browser and run url http://ipserver/lightsquid you see attribute was add realname. 2. Make file realname.pl by command. - sudo nano /var/www/lightsquid/realname.pl - See blank page and add command is follow. #!/usr/bin/perl use DBI; use Socket; #use file; ($sec_now, $min_now, $hour_now, $date_now, $mon_now, $year_now, $dayno_now) = localtime(); $mon_now++; $year_now += 1900; $todayni= sprintf("%04d-%02d-%02d",$year_now, $mon_now, $date_now); $dsn = "DBI:mysql:database=radius;host=localhost"; $dbh = DBI->connect($dsn,"user","password"); #user is user for mysql, password is password for mysql $sth = $dbh->prepare(...

ติดตั้ง Wordpress.org บน ubuntu 10.xx, 11.xx อย่างง่าย

Wordpress.org เป็น CMS อีกตัวนึงที่ใช้งานง่ายและเป็นที่นิยม ซึ่ง wordpress จะมี 2 แบบใหญ่ๆ คือ Wordpress.com เหมือนกับ blogger เพียงแค่ลงทะเบียนก็สามารถมี blog ได้ทันที แต่การใช้งานยังไม่ยืดหยุ่นสำหรับผู้ใช้ และอีกประเภทคือ Wordpress.org ประเภทนี้สามารถดาวน์โหลดมาติดตั้งในเครื่องตนเองได้ และยังมีความยืดหยุ่นในการใช้งานอีกด้วย เช่น การใช้ wordpress กับ script ต่างๆ และ plugin อีกหลากหลายที่เราจะเรียกใช้งาน ดังนั้นในบทความนี้ จะกล่าวถึงการติดตั้ง Wordpress.org 1. ก่อนทำการติดตั้ง ในเครื่องต้องมี mysql server ก่อน หากเป็น ubuntu server ที่ทำการติดตั้ง LAMP แล้วผ่านข้อนี้ได้เลย 2. หากเครื่องยังไม่มี mysql server ให้ทำการติดตั้ง โดยการเปิด Terminal หรือ ssh เข้าไปแล้วใช้คำสั่ง sudo apt-get install mysql-server mysql-client libmysqlclient15-dev ในช่วงท้ายจะมีการให้ใส่ password mysql ให้จำ password ที่ใส่ลงไปให้ดีๆครับ 3. login เข้าฐานข้อมูลและสร้างตารางด้วยคำสั่ง mysql -u root -p จากนั้นใส่ Password แล้วสร้างตาราง CREATE DATABASE wordpress; ออกจากฐานข้อมูลด้วยคำสั่ง quit 4....

Coova-chilli fix IP Address

how to Fix IP Address from coova-chilli on ubuntu. you can config as follow. 1. Edit file config for coova-chilli by editor for your aptitude as nano, vi, vim, other. sudo nano /etc/chilli/config 2. Edit text as follow. A destination Local Network Configurations. # Local Network Configurations # # HS_WANIF=eth0 # WAN Interface toward the Internet HS_LANIF=eth1 # Subscriber Interface for client devices HS_NETWORK=192.168.2.0 # HotSpot Network (must include HS_UAMLISTEN) HS_NETMASK=255.255.255.0 # HotSpot Network Netmask HS_UAMLISTEN=192.168.2.1 # HotSpot IP Address (on subscriber network) HS_UAMPORT=3990 # HotSpot Port (on subscriber network) HS_DYNIP=192.168.2.30 HS_DYNIP_MASK=255.255.255.0 HS_STATIP=192.168.2.2 HS_STATIP_MASK=255.255.255.0 # HS_DNS_DOMAIN= # HS_DNS1= # HS_DNS2= remove '#' and config now. HS_DYNIP=192.168.2.30 #start IP Address form chilli (DHCP) 192.168.2.30 - 192.168.2.254 HS_DYNIP_MA...

การแก้ไข Permalinks ของ wordpress ใช้งานไม่ได้ บน Ubuntu

เมื่อติดตั้ง Wordpress ลงใน Ubuntu server แล้วหากเราลองเปลี่ยนค่า Permarlink แล้วจะไม่สามารถใช้งานได้ โดยเราจะใช้ได้แต่ค่า Default เท่านั้น ซึ่งเป็นเพราะโมดูล rewrite นั้นไม่ได้เปิดให้ทำการใช้งาน ในการแก้ปัญหา ทำได้ดังนี้ 1. ให้เราทำการ Login server ด้วย terminal หรือ SSH 2. เปลี่ยนสิทธิเป็น root และทำการเปิดใช้โมดูลด้วยคำสั่ง a2enmod rewrite (ซึ่งเป็นโมดูลของ apache2) 3. ทำการแก้ไข Default virtaul host ของ apache2 nano /etc/apache2/sites-available/default Options Indexes FollowSymLinks MultiViews AllowOverride none Order allow,deny allow from all ให้เปลียนเป็น Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all reload apache2 sudo /etc/init.d/apache2 force-reload restart apache2 sudo /etc/init.d/apache2 restart

How to install Mail server for Ubuntu 10.10

Intall POSTFIX Instal postfix by command. sudo apt-get install postfix page one Please select the mail server you select OK next page General type of mail configuration select No configuration Postfix is set to run Local mail by command. dpkg-reconfigure postfix display General type of mail configuration : you select Local only next page System mail name is set to Domain change yourdomain.com page Root and postmaster mail recipient is set user root. page Otther destinations to accept mail for : set default press OK next page page Force syschronous updates on mail queue? : NO page Local networks is your insert Network IP for network of you such as 192.168.1.0/24 page Mailbox size limit(byte) : 0 (insert number 0 no limit) page Local Address extension charater : + page Internet Protocal to use : all Edit main.cf Edit main.cf by command. sudo nano /etc/postfix/main.cf And add the command below. relay_domains = $mydestination imodclub.com save and rel...

install DNS Server for ubuntu 10.10

It work of the DNS DNS (Domain Name System)was designed as a distributed database. Working principle. Client / Server by the DNS Server IP Address to store numbers with a Uniform Domain Name Name Resorution called to find out the name of the machine as requested DNS Client. Step of DNS 1. DNS Client to connect to. itguest.blogspot.com. Will submit a request number of sites IP Address http://itguest.blogspot.com. Resolver process on the domain to their DNS Server(Patumwand.org). If no DNS Server information on this site. It sends a request to the ISP's DNS Server ISP again. 2. Will find the DNS Server IP Address and then number will be sent back to their own DNS Server machine (Patumwan.org). 3. Patumwan.org DNS Server record IP Address will be stored in the Cache Memory and sent back to the machine IP Address DNS Client. Install DNS Server Using a Linux Internet server. Or server in the organization. Important thing is to install a DNS Server is used to refer to a Name...

How to Set JAVA_HOME and PATH variables for Ubuntu

just need a help to show me how to setup java path on Linux. How can I set JAVA_HOME and PATH variables for every user under my Linux Ubuntu system. Set JAVA_HOME / PATH for all user You need to setup global config in /etc/profile sudo nano /etc/profile Next setup PATH / JAVA_PATH variables as follows: export JAVA_HOME=/usr/lib/jvm/java-6-openjdk export PAth=$PATH:/usr/lib/jvm/java-6-openjdk/bin comment : /usr/lib/jvm/java-6-openjdk = Directory install JAVA press key Ctrl+x and Press Key Y for save and close. Thank you : http://www.cyberciti.biz/faq/linux-unix-set-java_home-path-variable/

Logging to asks the Samba password

To ask for a password before access to resources on Linux. Can be done by editing the file. /etc/samba/smb.conf can be done. configuration smb.conf config file smb.conf is important in the work of the samba command to open - close Parameters. Resides in the directory /etc/samba is the main topic to be changed in using edit nano. sudo nano /etc/samba/smb.conf #========= Global Setting ================ [global] # workgroup = NT-Domain-Name or Workgroup-Name workgroup = Homegroup ------------------&#62 Change the name as needed # server string is the equivalent of the NT Description field server string = Samba Server ------------------&#62 Change the name as needed ########## Authentication ############## # "security = user" is alway a good idea. This will require a Unix account # in this server for every user accessing the server. See # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html # in the samba-doc package for details....

Connection Samba Server with the windows

Windows operating system that supports network protocols, TCP / IP and SMB. to test the connection between Windows and Samba Server with the command ping (Start Program -> Run -> cmd -> Enter and type command ping IP Address. Samba Server) if you receive a reply indicating that a response to connect. Connect Samba Server 1. Start Program select run. Click on over and let us print the hostname or IP address Samba Server. With the \ \ such as \\ip address or hostname Samba Server Exsample Server Samba name ServerShare has ip address 192.168.1.1 type by command \\ServerShare or \\192.168.1.1 Then it can be found on the screen of the server samba share. Translation by : google translation next page : Logging to asks the Samba password reverse page : Install Samba

Install Samba

Installation We will install samba apt-get with the program through the command in telminal. sudo apt-get install samba The original backup file for error by command. sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.old configuration smb.conf config file smb.conf is important in the work of the samba command to open - close Parameters. Resides in the directory /etc/samba is the main topic to be changed in using edit nano. sudo nano /etc/samba/smb.conf #========= Global Setting ================ [global] # workgroup = NT-Domain-Name or Workgroup-Name workgroup = Homegroup ------------------&#62 Change the name as needed # server string is the equivalent of the NT Description field server string = Samba Server ------------------&#62 Change the name as needed ########## Authentication ############## # "security = user" is alway a good idea. This will require a Unix account # in this server for every user accessing the server. See # /usr...

Packages of Samba.

Samba is software for running multiple together. This may be a parameter or option to enter into with the following. Suite can be divided into two groups: the main program and the program Utility. Main Program. Contains smbd and nmbd. smbd = SMB Server that acts as serving the SMB Service client. nmbd = Acts as a NetBIOS Name Server for the client to identify a NetBIOS Name of the Samba Server. Utilities Programs Include nmblookup, smbclient, smbstatus, mksmbpasswd.sh, addtosmbpass, smbrun, smbtar, testparm, testprns and SWAT nmblookup = NetBIOS Name search function on a computer network with file and printer sharing. smbclient = Browse the machine SMB Server, Samba Server, or in a window client system. To note that in the card. What a shared resource. smbstatus = Used to check the status of Usage shared drive that works. Samba server and printer that is what machine. It is expressed as a form NetBIOS. mksmbpasswd.sh = Shell script is a program to convert the unix pas...

CIFS Protocol

Protocols CIFS (Common Interface File System) is a protocol developed from the SMB protocol for sharing file sharing can be improved but there is a log file Op-lock support for multitasking. Has reviewed and authenticated by the user. Support long file names. Work either. Connection-oriented and Connectionless. Especially at low speed connection Dial-up. Op-lock (Opportunistic lock) is to solve problems using data files at the same time. Because the SMB protocol to allow users to edit the data files stored in the memory cache on the user's temporary. After editing completed, and then send the file back (no need to waste time reading - writing files across to cross between the server and client) to do this may be a problem the combination of the cache Coherency such as a user. Two people come together sale.xml files should each edit and save files. The data in the disk cache, and different from the original Op-lock will check for modified files, as if the two users to read files s...

Resource sharing with samba

In the past, a computer file server (Netware, and window NT) is running the SMB protocol(Server Message Block Protocol) smb protocol was developed by Microsoft and Intel. In order to share resources such as disk operating system printer during a LAN Manager Mechanics is the first version of the program that uses the SMB companies, Microsoft has developed over the windows for workgroup 3.1. Later in 1992, the company Microsoft SMB protocol has led to a network and on the window 95/98 window nt, which was very popular and used worldwide. A variety of operating systems that support SMB protocol is the bridge between the virtual operating system. Samba is a program that works through the SMB protocol to the Linux operating system can connect to share resources on a Windows machine. The history of samba During the years 1991-1992 Mr.Andrew Tridgell write and design a version of Samba from 0.5 to 1.0 (also known as NetBIOS for Unix). Samba is a group of programs that run through the pr...

คำสั่ง Linux (Linux command)

คำสั่ง คำสั่ง telnet เป็นคำสั่งที่เปลี่ยน host ที่ใช้อยู่ไปยัง host อื่น (ใน Windows 98 ก็มี) รูปแบบ $ telnet hostname เช่น c:\> telnet comsci.rid.ac.th เปลี่ยนไปใช้ host ชื่อ comsci.rid.ac.th $ telnet 202.28.54.182 เปลี่ยนไปใช้ host ที่มี IP = 202.28.54.182 $ telnet 0 telnet เข้า host ที่ใช้อยู่นะขณะนั้น เมื่อเข้าไปได้แล้วก็จะต้องใส่ login และ password และเข้าสู่ระบบยูนิกส์นั้นเอง คำสั่ง ftp ftp เป็นคำสั่งที่ใช้ถ่ายโอนไฟล์ข้อมูลจากที่หนึ่ง ไปยังอีกที่หนึ่ง โดยการติดต่อกับ host ที่เป็น ftp นั้นจะต้องมี user name และมี password ที่สร้างขึ้นไว้แล้ว แต่ก็มี ftp host ที่เป็น public อยู่ไม่น้อยเช่นกัน ดังนั้นจะมี user name ที่เป็น publicเช่นกัน คือ user ที่ชื่อว่า anonymous ส่วน password ของ user anonymous นี้จะใช้เป็น E-mail ของผู้ที่จะ connect เข้าไปและโปรแกรมส่วนใหญ่ก็จะอยู่ใน directory ชื่อ pub รูปแบบ $ ftp hostname คำสั่ง ftp จะมีคำสั่งย่อยที่สำคัญๆ ได้แก่ ftp> help ใช้เมื่อต้องการดูคำสั่งที่มีอยู่ใในคำสั่ง ftp ftp> open hostname ใช้เมื่อต้องการ connect ไปยัง ho...

About the virtual host.

Virtual host is There two categories. 1. IP-Base Virtual Host Virtual host like this. All servers must have a different IP Address can be done by machines that do virtual post should have more than one network card. that is the first card is 1 IP Address, or if there is only one card only. We can do virtual IP on the card the same time. But for this method to check whether the operating system supports viewed or not. 2. Name-Base Virtual Host Virtual Hosts Another option is what the name server differently but IP Address the same where we use DNS to help is defined in DNS, each host server, pointing to the IP Address the same after that it will adjust the Aphache Web Server on each host to manage again. To make a virtual host IP-Base Virturl Host. Of a virtual host in ubuntu to create files in a virtual host by creating that directory. /etc/apache2/sites-available. And the name of Virtual host. /etc/apache2/site-available/NameVirtualHost Samples used to create the virtual ...

DHCP Server

The work of DHCP (Dynamic Host Configuration Protocol) DHCP IP Address is assigned automatically to the client in the system. Installed TCP / IP protocol to reduce the number of overlapping IP Address. Because the DHCP Server distribute IP Address that is not all same client. DHCP scope will be to distribute IP Address, which the administrator must set up their own. What will be the first by a number for example 192.168.1.10 - 192.168.1.220 Refers to the extent the distribution of 210 IP Address on machine. When the client boots, it will start for No. IP Address (IP Address, Subnet mask, Gateway and other) from DHCP Server. Machine IP Address DHCP server sends back to the client the process works as follows. 1. Client to locate the address of the DHCP server on the network by sending a message DHCP Discover to the network requesting IP Address. 2. DHCP server IP Address to find number of databases on your computer. To avoid duplicate message DHCP Offer and send back to a client r...

โพสต์ยอดนิยมจากบล็อกนี้

ส่วนประกอบของเมนบอร์ด คอมพิวเตอร์ PC

ส่วนประกอบของเมนบอร์ด คอมพิวเตอร์ PC เมนบอร์ดเป็นแผงวงจรหลักที่สำคัญที่สุดของคอมพิวเตอร์ ดังนั้น จึงควรรู้จักตำแหน่งของอุปกรณ์ต่างบนเมนบอร์ดเสียก่อน จึงจะสามารถประกอบเครื่องคอมพิวเตอร์ได้ อุปกรณ์หลักที่สำคัญก็มีช็อกเกตสำหรับติดตั้งซีพียู, ช็อกเกตแรม และซิปเซตที่ทำหน้าที่ควบคุมอุปกรณ์ทั้งหมด หัวต่อและสล็อตสำหรับติดตั้งอุปกรณ์และการ์ดต่างๆ รวมไปถึงหัวต่อกับอุปกรณ์ภายนอกที่ต่อออกทางด้านหลังเครื่อง อุปกรณ์ที่ติดตั้งบนเมนบอร์ดได้แก่  1. ช็อกเกตซีพียู (CPU Socket) ช็อกเกตซีพียู เป็นตำแหน่งติดตั้งซีพียู โดยรูปแบบของช็อกเกตจะแตกต่างกันไปตามยี่ห้อและรุ่นของซีพียู การซื้อเมนบอร์ดจะต้องตรวจสอบว่าต้องการใช้กับซีพียูยี่ห้อใดและรุ่นไหน หากซื้อซีพียูที่มีช็อกเกตไม่ตรงกับเมนบอร์ดจะไม่สามารถใช้งานได้ ปัจจุบันจะมีช็อกเกตที่ใช้งานบนเมนบอร์ดคือ Intel LGA 775,  Intel LGA 1150, Intel LGA 1151, Intel LGA1155 และ Intel LGA 2066 ใช้สำหรับซีพียู Intel ทั้งหมด แต่ต้องดูด้วยว่า ซีพียู อินเทลใดใช้ช็อกเกตเท่าไหร่ ส่วน AMD AM4, AMD sTRX4 และ AMD TR4 จะใช้สำหรับ CPU AMD เท่านั้นซึ่งก็เหมือนกับ...

รวม Code Debug Card Mainboard

รวม Code Debug Card Mainboard สำหรับช่างซ่อมคอมมือใหม่ที่มีเครื่องมือ Debug Card เป็นตัวช่วยแล้ว บางครั้งอาจจะไม่รู้ว่าค่า Error Code นั้นคืออะไร ผมได้สืบหาข้อมูลและเขียนเพื่อเตือนความจำของตนเองไว้ เพราะไม่ค่อยได้ใช้ตัว Debug Card นี้เช่นกัน นานๆครั้งมาใช้นั้น ค่อนข้างที่จะค้นหาข้อมูลอย่างลำบากเช่นกัน ผมจึงได้รวบรวมข้อมูลมาจากเว็บที่หาข้อมูลได้ ขอขอบคุณเจ้าของข้อมูลด้วยครับ CODE : ความหมาย 00 : ไม่มีสัญญาณให้เช็ค CPU หรือลองหา CPU ตัวใหม่มาเปลี่ยนดูครับ 01 : CPU TEST รอบที่ 1 02 : CPU TEST รอบที่ 2 04 : TEST Memory รีเฟรช ของอุปกรณ์ ต่าง ๆ  05 : Key board controller อาจมีปัญหา 07 : BIOS battery อาจจะหมด 0B : TEST cmos checksum 0D : เช็ค VGA CARD Interface C0 : ทดสอบหน่วยความจำและ slot(ลองฉีด สเปรย์สารพัดพิษดูครับ) 0E : เช็คหน่วยความจำ VGA(ลองหาตัวใหม่มาเปลี่ยนดูครับ)  11 :อาจมีปัญหาที่ DMA controller 41 : ให้ตรวจสอบ FLOPPY Drive 42 : .ให้ตรวจสอบ HARD DISK 43 : ค้นหาและตรวจสอบ serial และ parallel port 45 : ให้เช็ค Mainboard ว่าเข้า...

map network drive ด้วย Command prompt

     บ่อยครั้งที่ต้องการใช้ทรัพยากร (เช่น โปรแกรม, ไฟล์เอกสารต่างๆ) จากเครื่องอื่นบนระบบเครือข่าย  หรืออาจจะเป็นเครื่อง Server องค์กร ที่ให้บริการ share file และมีความจำเป็นต้องใช้ไฟล์ร่วมกัน ดังนั้นการที่จะมาคอยใช้คำสั่ง ในการเข้าเครื่องอื่นนั้นค่อนข้างที่จะยุ่งยาก จึงต้องมีการ Map Drive ไว้เพื่อใช้งาน การ Map Drive บนระบบเครือข่ายนั้นก็ยังเป็นเรื่องยุ่งยากของ user ผู้ใช้งาน ซึ่งบางท่านอาจจะ Map Drive บนระบบเครือข่ายไม่เป็น ดังนั้นผมจึงมีวิธีการที่จะ Map Drive บนระบบเครือข่าย ผ่านคำสั่ง Command Prompt ของ window อย่างง่ายๆครับ สิ่งที่ต้องทราบก่อนทำการ Map Drive บนเครือข่าย 1. Drive ที่ต้องการจะ Map ควรตรวจดูใน My Computer ว่ามี Drive อะไรบ้าง และ Drive ที่แสดงใน My Computer นั้น อยู่ในสถานะไม่ว่าง จะไม่สามารถนำมา Map Drive ได้ จะได้เฉพาะที่ไม่มีโชว์เท่านั้น   ( Drive ที่มีใน My Computer จะไม่สามารถ นำมาเป็น Drive ที่เราต้องการจะ Map ได้ เช่น ในเครื่องคอมของเรามี Drive C และ Drive D ดังนั้น Drive ที่ว่างก็จะมีตั้งแต่ Drive E ไปจนถึง Drive Z เลยครับ ...