Posts

Showing posts from February, 2008

Enabling Serial Console on /dev/ttyAM1 in TS-7260

Image
I'm running Debian on SD card for this TS-7260. I decided to switch the serial console to the second port which is /dev/ttyAM1 because I'm going to use the first serial /dev/ttyAM0 for my Wavecom GPRS modem. So, I open the /etc/inittab and just realize that serial console on /dev/ttyAM1 is already there. Then I grab my RS-232 cable and plug it from my /dev/ttyS0 on my PC to the /dev/ttyAM1 on the TS-ARM board... after waiting for some seconds, my minicom shows the login... Debian GNU/Linux 3.1 ts7000 ttyAM1 ts7000 login: So, I type root and press the enter... the console returns, "Login incorrect"... WTF!! How come the serial console on the second port is useless for root? The solution for this is actually very simple. But it took me some minutes to figure it out... hehehe... Thank god, i've already fixed the ssh, so i can ssh to the board... $ ssh root@10.1.1.91 $ Password: The solution is, edit the /etc/securetty file... $ vi /etc/securetty And then add the line

Speed Up your Internet Speed in Ubuntu

Image
Did you know that you can boost up your internet speed in Ubuntu Gutsy Gibbon 7.10 by some simple changes in a test file? Have a try on these... Open up your Terminal (Applications > Accessories > Terminal) and type this command: $ sudo gedit /etc/modprobe.d/aliases After that, find for a line that looks like this... alias net-pf-10 ipv6 and comment it out. then just add this 3 more lines after that commented line... alias net-pf-10 ipv6 off alias net-pf-10 off alias ipv6 off Save it and close... That's all... restart your PC and you'll feel the difference... have nice day!

Extracting RAR files in Ubuntu

Image
RAR files is common package and compression format that is used by people who share files in rapidshare. As one of rapidshare fan, I always found the shared files are in RAR format. So, if you are Ubuntu Gutsy user like me, you may notice that unrar (the program to open RAR files) is not installed by default. No Problem... you can simply install it in less than a minute. Open up your Terminal (Application > Accessories > Terminal ) and issue this command: $ sudo apt-get install unrar Then after it is installed, you can now right click on the file and click on Extract Here. Isn't it simple?

Installing Microsoft Fonts in Ubuntu

Image
You may want to install Microsoft Truetype fonts in Ubuntu for any reason. It's very simple. All you need to do in your Ubuntu Gutsy Gibbon 7.10 is to install the msttcorefonts package. The Truetype Microsoft fonts provided by the package include: Andale Mono Arial Black Arial (Bold, Italic, Bold Italic) Comic Sans MS (Bold) Courier New (Bold, Italic, Bold Italic) Georgia (Bold, Italic, Bold Italic) Impact Times New Roman (Bold, Italic, Bold Italic) Trebuchet (Bold, Italic, Bold Italic) Verdana (Bold, Italic, Bold Italic) Webdings To install msttcorefonts package, open a Terminal... Application > Accessories > Terminal and type (without the dollar sign): $ sudo apt-get install msttcorefonts After doing this, you can also install other TTF fonts in your collection by copying them in your ~/.fonts folder. After installing new fonts, you will have to log out and log in again to be able to see and use the new fonts. If you want to avoid this, you can regenerate the fonts cach

How to Show and Hide Text in Blog Post with teaser

Image
As my reply to Andrea's question in the comment section of my previous post on How to Show and Hide Text in Blog Post , Here is how to show and hide text in blog post with something like 300 words teaser before the link to read the rest of the story... Click here to read more... This post is already the example to show that it is possible to use the same technique in my previous show/hide blog post article to have a teaser before the link to show the rest of the story. What I've done here is just placing the "span" tags at the right position where i wanted it to be. To make it short and clear, here is the sample template to this kind of blog post... --- Place your 300 words teaser here --- <span class="postshown" id="your-topic-link-id-0001"> <a href="javascript:expandcollapse('your-topic-link-id-0001'); expandcollapse('your-topic-id-0001');"> Click here for more...</a></span> <span class="

Simple Linux Socket Programming in Ubuntu

Image
After years of programming in Microsoft Windows, now I'm exploring new programming skill in linux . Previously, I've been struggling to run linux on my laptop. I tried Red Hat, Fedora, Mandrake... but they are not stable in my old laptop. Until I found Ubuntu... Now, I'm really satisfied to settle down with this great, easy to use and pretty stable open source Operating System for my laptop. So, I have Ubuntu Gutsy Gibbon 7.10 on my lappy now and I thought I'll forget windows soon... Normally, people start learning programming with some simple typical Hello World sample. However, I'm searching for some challenge as my first try. So, I pick linux socket programming as my quick start. During my short journey on the web, I found this simple tutorial by Rob Tougher . Pretty cool and complete for my starting point... So, if you wanna try it too, feel free to get the code from Rob Tougher's tutorial page and compile it yourself. Modify the codes as you like and lea