20100513

Linux Ubuntu & Maxis Broadband Huawei E220 or E1762

first install usb-modeswitch

/etc/usb_modeswitch.conf must exists & contain everything below:

DefaultVendor= 0x12d1
;DefaultProduct= 0x1003
DefaultProduct= 0x1446
;DetachStorageOnly=1
;HuaweiMode=1
MessageEndpoint=0x01
MessageContent="55534243000000000000000000000011060000000000000000000000000000"


/etc/udev/rules.d/15-huawei-e1762.rule also must exists with this content:

SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1", RUN+="/usr/sbin/usb_modeswitch"

finally, run usb_modeswitch

Flash doesn't work in Ubuntu Chromium

sudo apt-get install flashplugin-nonfree

make sure libflashplayer.so sits inside /usr/lib/chromium-browser/plugins/

USB printer greyed out dim on virtualbox windows

make sure you are in vboxusers & lp group

Ubuntu 10.04 Lucid Lynx on HP Mini 5101 Setup


This week I 'ubuntunized' - there goes a new word! - my sister's netbook. She frowned about the viruses. I spilled the offer. Time has come baby!

Since 5101 doesn't come with a disc drive, I've created a Ubuntu bootable USB using Startup Disk Creator which comes pre-installed with 10.04 under System > Administration menu.

Installation and setup wasn't quite a breeze. Now everything is working - broadband modem, webcam, printer, functional buttons and power management. Wireless driver doesn't work right away but Lucid will prompt you to activate the 'proprietary drivers'. If not, just manually find it under Administration > Hardware Drivers menu.

Well I am going to tell you my actual story. There was a few things that didn't work properly or didn't work at all - webcam, Gwibber, broadband - but to my surprise, everything solved after I figure out the keyring issue. But this is just a blind theory.

What is it? Well if you authorized Lucid to remember passwords, keyring is where he stores them.

All started when Gwibber - an app that update social network status simultaneously - did not respond on different Ubuntu account. So I ran it from the terminal and saw an error mentioning keyring daemon.

I also notice something in the Passwords and Encryption Keys under the Application > Accessories menu - "can't communicate with keyring daemon".

So I googled. I discovered that some people edit the Certificate and Key Storage in the Startup Application Preferences. Remove all arguments. Leave it as "gnome-keyring-daemon".

I'm not sure how but it also solved my broadband problem. My webcam suddenly happen to work too. Also worth to mention on the broadband issue if you're experiencing it, once I disconnect the modem, I can never simply reconnect it. I have to reboot with the modem plugged in.

My wild guess is, something to do with keyring & permissions. So if you happen to read this in an attempt to 'ubuntunize' your netbook, go for it! Lucid is awesome!

...but wait. You might want to consider UNE instead of full fledge Ubuntu. Adios :)

20091229

Free, Simple, Looks Pro & Legit. My friend receive $, so I just give it a try.

http://www.catcheye.com.my/?r=40432

20091116

Linked Text Hover Tips

Put this in your style definition:
a:hover {text-decoration:underline; color:#036;}

Remove Color Visited Link

Put this in your style definition:
a {color:#036}

Remove Underlined from Linked Text

Put this in your style definition:
a {text-decoration:none}

20090928

HP-UX ping source quench

Set "Source quench" to 0 as "ndd -set /dev/ip ip_send_souce_quench 0" and include this parameter inside "nddconf" file.

20090912

out of recovery mode

15 sec of power & home button
2 sec of power button

20090808

Privilege separation user sshd does not exist

/sbin/init.d # ./secsh start
Privilege separation user sshd does not exist
EXIT CODE: 255


so...

/sbin/init.d # useradd -u 103 -c "sshd privsep" -d /var/empty -s /bin/false sshd

if you want to specify group, -g yourproblem

20090802

console login service(s) cannot run

I screwed up with milestone

# svcadm milestone -d all

20090714

Fusion Can Explode


WARNING: Do not ever put your MacBook in the bag while sleeping IF you have VMWare Fusion running. It'll burn or may explode! Because I did zipped it in my bag for say 30 minutes and the heat just scares shit out of me.

20090709

iPhone icons arrangement

/private/var/mobile/Library/Preferences/com.apple.springboard.plist

20090528

./isempty.sh[3]: test: Specify a parameter with this command.

Ok I know test wants parameter. But how? Roasted? Half cooked?

isempty()
{
NAME=$1
if [ -n $NAME ]; then echo not empty!
else echo it is empty!
fi
}
echo "name: \c"
read name
isempty $name

I feel there is a proper way than to append 2>/dev/null

20090526

Color Code


STYLE = {
"default" : "\033[m",
# styles
"bold" : "\033[1m",
"underline" : "\033[4m",
"blink" : "\033[5m",
"reverse" : "\033[7m",
"concealed" : "\033[8m",
# font colors
"black" : "\033[30m",
"red" : "\033[31m",
"green" : "\033[32m",
"yellow" : "\033[33m",
"blue" : "\033[34m",
"magenta" : "\033[35m",
"cyan" : "\033[36m",
"white" : "\033[37m",
# background colors
"on_black" : "\033[40m",
"on_red" : "\033[41m",
"on_green" : "\033[42m",
"on_yellow" : "\033[43m",
"on_blue" : "\033[44m",
"on_magenta" : "\033[45m",
"on_cyan" : "\033[46m",
"on_white" : "\033[47m"

}

20090525

echo escape sequences


\a write an alert character
\b backspace
\c print line without appending a new-line
\f form-feed
\n new-line
\r carriage return
\t tab
\v vertical tab
\\ backslash
\n the 8-bit character whose ASCII code is the 1-, 2-, 3-
or 4-digit octal number n, whose first character must
be a zero.
\0num write an 8-bit value that is the zero-, one-, two- or
three-digit octal number num

Adding Space to an ESX Server Virtual Disk

ESX 3.5. Use clone to backup. Go into the vm directory which suppose to be in the corrected data store directory. Grep scsi on *vmx file to identify which disk u want to extend. First one should be C: and second should be D: etc etc.

# vmkfstools -X 60G virtualdiskiwanttoextend.vmdk

Refer here. Careful with the number you choose. Above example means change the disk capacity to 60GB, not by 60GB.

20090512

connect to win share with specific user

net use z: \\192.168.1.1 /user:username password

How you guys partition 1TB disk?

Backup done. My 1TB (with firewire) disk is ready to get restructured. For this, I really hope anyone who notice this post, to recommend, or tell their experience and self-best opinion on how should a large disk structure looks like (ignore mirroring). Starting with me..

1. Backup
2. Disc image, a size of DL DVD
3. Documents
4. VMs

Thank you for your support!