2011/12/16

How to hide the windows operating system in list of grub bootloader.

Hi, everyone.
Today, I have a good idea for hide windows operating system in list of grub bootloader. In this case, I'm use grub version 1.99 on ubuntu11.10.

The first priority is you should update and install grub boot-loader for last version. If you sure about your grub boot-loader version then let's go.

1. Edit /etc/default/grub by your editor.

2. Add "GRUB_DISABLE_OS_PROBER=true" to a new line or uncomment it, if configuration is already exist.

3. Save and quit to terminal, and then type command in to your terminal as follows:

$: update-grub2
This is my output after run command update-grub2.
When you've step no.3 completed. you should reboot for check the result in grub boot-loader list. If you need to unhide windows operating system in list of grub boot-loader, It's easy to do it. You just edit the /etc/default/grub by comment line "#GRUB_DISABLE_OS_PROBER=true".
Finally, I hope again and again for my explanation to make you understand to this knowledge. I'm apologize for my bad skill English language. See you next time. Goodbye.

How to disable touchpad when mouse is plugged in on linux.

Hi, everyone. Today, I have a new trick for disable touchpad on your laptop when mouse is plugged in on linux.

Follow me.

Open your terminal now. And type this below on your shell.
$: xinput -list
Output should be above figure.



In this case the name of touchpad is "ETPS/2 Elantech Touchpad". And next-step we will disable touchpad by use the name above-mentioned. You can view properties list of touchpad device by use this command.
$: xinput -list-prop "ETPS/2 Elantech Touchpad"

And then.

$: xinput --set-prop "ETPS/2 Elantech Touchpad" "Device Enabled" 1

Now, your touchpad has been disabled already.
If you want to enable touchpad device, you just change from 0 to 1 in this command option:

$: xinput --set-prop "ETPS/2 Elantech Touchpad" "Device Enabled" 0

Finally, I hope everyone to understand my explanation of this page.
GoodBye.

2011/11/11

แปลกหนอ!

บางทีคนเราก็แปลกหนอ เวลาซื้อเครื่องคอมพิวเตอร์ก็มักอยากได้เครื่องแรงๆ และพอได้เครื่องแรงๆมาแล้ว แรมเยอะๆ พอจะใช้ซอฟท์แวร์ดีๆที่ใช้ทรัพยากรเครื่องหน่อยก็บ่นว่า "ทำไมกิน cpu จัง ทำไมกินแรมจัง" คำถามมันเลยเกิดขึ้นในใจของผมว่า "แล้วจะเหลือทรัพยากรเหล่านั้นไว้ทำไมหว่า" สมมตินะครับสมมติ ถ้าเราซื้อแรมขนาด 4GB แต่ส่วนใหญ่แล้วเราใช้แค่ 1.5GB  หรือกรณี HDD ซื้อมา 500GB แต่ใช้ไม่ถึง 200GB เพราะกลัวมันเต็ม เห้อ! มันไม่คุ้มเอาเสียเลยเนอะ เพราะฉะนั้นมันเป็นเรื่องดีนะที่เครื่องเราใช้ทรัพยากรได้เต็มที่ เพราะถ้าซอฟท์แวร์ที่คุณใช้มันดีจริงๆเวลาเราปิดโปรแกรมไปมันก็จะคืนทรัพยากรให้เราไว้ใช้ซอฟท์แวร์ตัวอื่นๆอีกที

2011/05/18

ทำไมส่ง SMS ที่มีภาษาไทยได้แค่ 70 ตัวอักษร

บางคนอาจจะสงสัยว่าทำไมส่งข้อความ SMS เป็น ภาษาไทยทำไมส่งได้แค่ 70 ตัวอักษรวันนี้ผมก็เพิ่งรู้และ จากการหาข้อมูลมาผมจะสรุปสั้นๆดังนี้ครับ


ข้อความที่เป็นภาษาไทยเวลาส่งข้อความออกไปจะถูก encode ข้อความทั้งหมดให้เป็น PDU Mode ( Pdu คือ โหมดๆหนึ่งที่เอาไว้อ่านหรือเขียนเพื่อส่ง sms ) ซึ่งข้อความทั้งหมดจะอยู่ในรูปของ hex (เลขฐาน16) เมื่อข้อความที่เป็นภาษาไทยถูก encode จะถูกเปลี่ยนไปเป็น UTF-16/UCS2 หรือพูดภาษามนุษย์ไอทีคือ มันใช้พื้นที่ขนาด 2 bytes หรือ 16 bits ในการเก็บข้อมูล ซึ่งต่างจาก ภาษาอังกฤษล้วน เมื่อถูก encode จะอยู่ในรูป UTF-8 ซึ่งใช้พื้นที่ 1 byte หรือ 8 bits ในการเก็บข้อมูลซึ่ง sms ถูกกำหนดไว้ว่าข้อมูลที่ส่งต่อหนึ่งครั้งต้องไม่เกิน 140 bytes หรือ 140 ตัวอักษร (140 นี้แค่ Msg Body เท่านั้น) ดังนั้นถ้าเป็นภาษาไทยต้องเอา 2 หารเพราะมันกินพื้นที่เป็น 2 เท่า จาก 8 bits เป็น 16 bits ฉะนั้นมันจึงส่งได้เพียงแค่ 70 ตัวอักษร หวังว่าคงจะอ่านเข้าใจกันนะครับ เพราะผมขี้เกียจวาดรูป ไปละครับ บาย.

2010/12/25

I got it!

Today I just cracked wep at my place. I just read document in aircrack site and conform this document step by step. It first time to crack wep succeed for myself. This's first hacking wep for my life.

2010/11/30

How to convert bin or cue to ISO

Hi, everyone.
Today, I have a new trick for convert bin or cue to iso files.
Follow me.


$: apt-get install ccd2iso


$: ccd2iso file.bin newfile.iso


Now, you got a new ISO file.
Good bye.

2010/11/28

How to use nokia3110c for access internet via edge on linux

Sometime when your internet down you must be find instead device for access internet. Today I have new knowledge (but old knowledge for someone) and easy to connect to internet by use nokia3110c or GSM phone. In this case I'm using nokia3110c.
And Follow me step by step:

1. Connect your mobile to PC via USB and choose nokia mode.

2. Open terminal and typing command below

$: wvdialconf /etc/wvdial.conf

3. Now, your linux has finding modem. And you have to open file wvdial.conf for edit.

$: vi /etc/wvdial.conf

4. Delete all config in /etc/wvdial.conf and intead config as follows this

[Dialer Defaults]
Modem = /dev/ttyACM0
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = USB Modem
Phone = *99#
New PPPD = yes
ISDN = 0
Username = ”
Password = ”
Baud = 460800


5. save and exit to your terminal.
6. And then you can use command wvdial for connect to modem.

$: wvdial

output
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sun Nov 28 20:22:24 2010
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> Pid of pppd: 5070
--> Using interface ppp0
--> pppd: p[08]� 0[10]�
--> pppd: p[08]� 0[10]�
--> pppd: p[08]� 0[10]�
--> local IP address 1.47.121.97
--> pppd: p[08]� 0[10]�
--> remote IP address 10.6.6.6
--> pppd: p[08]� 0[10]�
--> primary DNS address 124.40.237.228
--> pppd: p[08]� 0[10]�
--> secondary DNS address 124.40.237.236
--> pppd: p[08]� 0[10]�

7. Enjoy to world wide web
.
Bye