So, I tried to manage network packet per application because sometimes, my Akregator updates the RSS when I need a huge amount of network traffic. This is not real pain when I use network cable or on a fast internet access. But using a cellular network modem? It’s different story. The idea is using an application like Little Snitch on Mac OSX.
There was –cmd-owner option in iptables to manage network packet per application.
Open-source is fun. This time I want to get my desktop colored a little. By modifying plasma-system-monitor source code and split it into several plasmoid such as personal cpu monitor, personal ram monitor. (inspired by plasma drive IO monitor). This is the final look of my top panel: From the left to the right (the plotted graph): CPU monitor, swap monitor, RAM monitor, net monitor, disk IO monitor. Next project is improving it by adding click event so it will start krunner System Activity when the user click on it.
I added this line to my rc.local to allow normal user to control thinklight trough sysfs
bowo@pcxthinkslack:~$ tail /etc/rc.d/rc.local -n2 # allow normal user to turn thinklight off/on trough shell chmod 666 /sys/class/leds/tpacpi::thinklight/brightness Create shell script to control thinklight from sysfs. When called, it will turn thinklight on/off
bowo@pcxthinkslack:~$ cat /usr/local/bin/toogle-thinklight.sh #!/bin/bash echo `cat /sys/class/leds/tpacpi::thinklight/brightness | grep -c 0` > /sys/class/leds/tpacpi::thinklight/brightnes Just for fun, I create also thinklight svg icon using inkscape :) and create thinklight.
Using python pygments module, we can create a coloured cat. Wrap it in a bash shell script called ccat:
bowo@pcxthinkslack:~$ cat /usr/local/bin/ccat #!/bin/bash if [ ! -t 0 ];then file=/dev/stdin elif [ -f $1 ];then file=$1 else echo "Usage: $0code.c" echo "or e.g. head code.c|$0" exit 1 fi pygmentize -f terminal -g $file =-=-=-=-=
Powered by Blogilo
Download source code here
root@pcxthinkslack:/tmp# src2pkg /home/bowo/Desktop/156421-kde-thumbnailer-apk-1.0.tar.bz2 root@pcxthinkslack:/tmp# mv 156421-kde-thumbnailer-apk-1.0-x86_64-1.txz /home/bowo/Packages/tgz/kde-thumbnailer-apk-1.0-x86_64-1pcx.txz root@pcxthinkslack:/tmp# installpkg /home/bowo/Packages/tgz/kde-thumbnailer-apk-1.0-x86_64-1pcx.txz And.. hey it works !! =-=-=-=-=
Powered by Blogilo
Nothing serious here, just replace some kppp icon to match Ambiance theme in my Desktop. Here is the screenshot: Modem image source: http://clipartist.info/openclipart.org/SVG/ben/wireless_broadband_modem.svg
=-=-=-=-=
Powered by Blogilo
Getting bored with the default Air plasma-desktop theme, I changed several appearance of KDE to look like Ubuntu Lucid. It was during my internship at VALORIA that I have used Ubuntu Lucid for the first time. So here is what I’ve done so far with my KDE. This cool desktop environment is really highly customizable.
KDM theme: KDE splash screen: KWin theme: Plasma desktop theme: Cursor theme: Style: Color: Icon: Fonts: Desktop 1: Desktop 2: =-=-=-=-=
Create new udev rule /etc/udev/rules.d/81-blacklist-modemmanager.rules with this content:
ATTRS{idVendor}=="201e", ATTRS{idProduct}=="1022", ENV{ID_MM_DEVICE_IGNORE}="1" Reload udev & plug-in the modem Voila….
ref: http://cgit.freedesktop.org/ModemManager/ModemManager/tree/src/77-mm-usb-device-blacklist.rules
=-=-=-=-=
Powered by Blogilo
Fonts look weird in ksnapshot. After investigating around, I found that the problem is called kerning. It is indeed didn’t noticable for some people. To solve this problem, I force ksnapshot to use raster graphics system instead of native.
$ ksnapshot -graphicssystem raster Here is the comparison, left image is using native, the right one is using raster. Look at the button more precisly. Do you notice it? Luckily I noticed it.
Here is the patch:
root@pcxthinkslack:/home/bowo# cat /home/bowo/Packages/src/patch/option.diff --- /usr/src/linux/drivers/usb/serial/option.c 2012-12-10 13:08:02.000000000 +0700 +++ /tmp/option.c 2013-01-20 19:41:19.037644747 +0700 @@ -327,8 +327,9 @@ /* Haier products */ #define HAIER_VENDOR_ID 0x201e #define HAIER_PRODUCT_CE100 0x2009 +#define HAIER_PRODUCT_CE682 0x1022 /* Cinterion (formerly Siemens) products */ #define SIEMENS_VENDOR_ID 0x0681 #define CINTERION_VENDOR_ID 0x1e2d @@ -1172,8 +1173,9 @@ .driver_info = (kernel_ulong_t)&four_g_w14_blacklist }, { USB_DEVICE(LONGCHEER_VENDOR_ID, ZOOM_PRODUCT_4597) }, { USB_DEVICE(HAIER_VENDOR_ID, HAIER_PRODUCT_CE100) }, + { USB_DEVICE(HAIER_VENDOR_ID, HAIER_PRODUCT_CE682) }, /* Pirelli */ { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_C100_1)}, { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_C100_2)}, { USB_DEVICE(PIRELLI_VENDOR_ID, PIRELLI_PRODUCT_1004)}, Re-compile the option kernel module which is located within usb/serial