Monthly Archives: August 2016

windows cannot be installed on this disk. The selected disk is of the GPT partition style

Trying to swap a hard drive from my mac to an HP laptop, got stuck with an MBR error, so after trying all the above with no success once or ever, I found this solution:
***Be mindful to backup your files prior to trying this. Use an external case and save everything into another hard drive***
Method #1:
1. Boot up to installation DVD/CD.
2. Click install but don’t follow through.
3. Press SHIFT-F10 to bring up console.

Changing file Permissions on linux

On computer filesystems, different files and directories have permissions that specify who and what can read, write, modify and access them. This is important because WordPress may need access to write to files in your wp-content directory to enable certain functions.

Permission Modes

  7       5     5
 user   group  world
 r+w+x  r+x    r+x
 4+2+1  4+0+1  4+0+1  = 755

The permission mode is computed by adding up the following values for the user, the file group, and for everyone else. The diagram shows how.

  • Read 4 – Allowed to read files
  • Write 2 – Allowed to write/modify files
  • eXecute1 – Read/write/delete/modify/directory
  7       4      4
 user   group  world
 r+w+x    r      r
 4+2+1  4+0+0  4+0+0  = 744

Example Permission Modes

Continue reading

ติดตั้ง DHCP Server บน Ubuntu

ติดตั้ง DHCP Server เพื่อทำให้ server แจกไอพีให้กับเครื่องลูกข่าย

# apt-get install dhcp 3-server
ตั้งค่าให้ DHCP Server แจกไอพี
# nano /etc/dhcp 3/dhcpd.conf
ตัวอย่างการตั้งค่า
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.10 192.168.10.250;
option domain-name-server 203.113.24.199 , 203.113.127.199;
option domain-name “homgun.com” ;
option routers 192.168.10.1 ;
option broadcast–address 192.168.10.255 ;
default–lease–time 600 ;
max–lease–time 7200 ;
}
สั่งให้ dhcp เริ่มทำงานใหม่

Continue reading