Posts

อะไรคือ KDE Plasma Activities และการใช้งาน

ผมใช้ Kubuntu มาสักระยะแล้ว ประมาณ 1-2 ปี มี feature หนึ่งที่เพิ่งมาสนใจอย่างจริงจัง คือ Activities และหลังจากได้ค้นหาวิธีใช้สักพัก มันก็เหมือนกับ การสร้าง profile desktop เก็บเอาไว้ตัวอย่างเช่น เครื่องของผมมี activities 2 อันคือ Workplace และ Home ใน Workplace จะมี konsole เปิด service ที่ต้องการรันทิ้งไว้ และ ide รวมทั้ง widget สำหรับแสดง folder กะแสดงไว้ใน profile นี้ ส่วน Home ก็ไม่มีอะไรมากอาจจะมี browser ทิ้งไว้ หรือ ไม่ก็มี deluge รันอยู่ หนทางในการสลับ activities โดยใช้ keyboard ผมอ้างอิงได้จาก  http://blog.hanschen.org/2011/05/15/7-ways-to-switch-activities/ ซึ่งผมได้เลือกวิธี meta + tab มาใช้คับ

KDE Plasma Applet lost unreasonable and how to remove them

I had some plasma applet that display hardware temperature, trash. Unfortunately they're gone. I don't know why. But I know they still valid because I try add it again in main screen but they got green 'correct' sign ( which it's mean they still valid somewhere ). I feel unhappy because I want to remove them but I can't see them.  So here is the way I found from google ( http://ubuntuforums.org/showthread.php?t=1920398 ) Let's find  ~/.kde/share/config/plasma-desktop-appletsrc  (don't forget to backup this file) then remove path that you want ( as you can't see in screen but it's checked in add widget dropdown menu ), then kill plasma-desktop process, and start it again.

Short Note about linux redirection

While i run test script (it's usually output to stderr if it's error). Many times an error is too big to display in one display. So i am thinking about linux redirect >> ./runtests 2>&1 | head Summary    M>N,  M discriptor to filename N    M>&N, M discriptor to another N discriptor

Disable touchpad while using keyboard

It's just 1. Installing kde-config-touchpad package 2. Goto startup-menu, run utilities->touchpad management 3. Find the option "Automatically switch off touchpad" on Keyboard activity ref to  http://askubuntu.com/questions/46299/how-to-disable-touchpad-tapping-when-typing-on-keyboard

Thank Red Damn Dell.

I just finish clean The Red Damn Dell ( Desktop replacement, dell with red cover ).  It 's great machine, not built-in graphic, supreme power. It's work together with me for about 2 yrs. Like a Tank. It's most powerful but heavy. I want some lightweight , when my company employee resign his lightweight x220 come to my hand. That's it. Thank Red Damn Dell , you are the man.

Access chroot via SSH

(ref  http://wiki.mandriva.com/en/Development/Howto/Chroot ) 1. Enter to chroot 2. Setup openssh-server 3. Edit /etc/ssh/sshd_config     Port 2222 4. Launch sshd daemon inside chroot 5. Add user/pass inside chroot 6. From outside, try ssh user@localhost -p 2222

How to explode DEBian package file.

I wrote this because My senior need to get uwsgi ( newer version ) than registered in precise repos. At that time we found great guy Chris Lea ( https://launchpad.net/~chris-lea/+archive/uwsgi ), thank chris :). But if we don't found him. I plan to explode current debian version from precise repos to see the structure and all script. Here is how to do that Get one (deb pkg) i assume uwsgi-current.deb 1. The first way Using dpkg-deb -x , you will get inside debian structure. > dpkg-deb -x uwsgi-current.deb [target-folder] Using dpkg-deb --control , you will get control files, debian control scripts. > dpkg-deb --control uwsgi-current.deb [target-folder] /DEBIAN 2. The second way,  the first way can be done in short time in  > dpkg-deb -R uwsgi-current.deb [target-folder]