Linux.com

Community Blogs



the first

     wow wow wow!

      this is my first time to write blog with English. actually,my first language is not English. so i have to use many time to learn English.

      Also i learn computer by myself.Just for fun!

      AND this is my really first time to use Linux(it seems that i have said it several days before!).i love Linux ,i love Ubuntu .In fact , i had tried fedora9 in my old machine last year.But it's nightmare for me .THE machine has 224RAM,AMD Sempron3000+.

     Try it!Do it!  

 

Automation security and OOPs!

Quick note for all.  I just learned that if you start a blog, get a call from Nagios that a raid array crashed, and mark a blog you just started as "unpublish" it just might get published auto magically for you at some point in the future. 

 For those who read that piece of a blog, sorry.  I'll edit locally and cut and paste going forward. As one gentleman I know once said, "Whatever automation and security do for you they also do to you."  Well it did it to me this time.

 

Ubiquity - Firefox-Addon



Ich möchte euch hier das Firefox-Addon "Ubiquity" vorstellen. Mir war das Addon bis heute nicht bekannt...es scheint aber eines der besten Addons zu sein, das ich bisher gesehen habe. Ubiquity bietet eine Art Schnittstelle zu Online-Inhalten, wie Suchmaschinen oder anderen Diensten. Über die Tastenkombination STRG + Space (kann man auch frei wählen) ruft man Ubiquity in den Vordergrund (Bild 1), welches dann in der linken oberen Ecke des Browsers erscheint. Hier hat man nun die Möglichkeit, über ein Eingabefeld bestimmte Befehle einzugeben und gewünschte Dienste, etc... aufzurufen.
Beispiele:
Google-Suche: Eingabe "google + Suchbegriff" (Bild 2)
Browser-Kommandos wie "exit firefox", "restart firefox", "close window", "close tab", "fullscreen" und vielen weiteren
E-Mail schreiben (momentan nur GMail): Eingabe "gmail + Nachricht + to Empfänger" (Bild 3) E-Mails abrufen: Eingabe "get last mail"
Google Maps: Eingabe "map + Ort" (Bild 4)
Youtube: Eingabe "youtube + Suchbegriff".....genauso funktioniert das mit Flickr, Wikipedia, Yahoo, Digg, Amazon, Ebay und vielen anderen Diensten.
Wetter: Eingabe "get weather + Ort"
Twitter: Eingabe "tweet + Nachricht + as Benutzername"
Regional ganz interessant für den VRR (Verkehrsverbund Rhein-Ruhr) eine Fahrplanauskunft: Eingabe "vrr + from Ort + to Ort"
Ich könnte diese Liste nun endlos erweitern. Ubiquity macht das Surfen im Netz jedenfalls deutlich einfacher und schneller.
Screenshots:
Bild 1

Bild 2

Bild 3

Bild 4

Weblinks:
https://addons.mozilla.org/de/firefox/addon/9527
Hier gibt es die aktuelle stabile Version. Eine Preview-Version findet ihr hier:
Mozilla Labs Ubiquity (Einfach auf "latest Beta" klicken)
Weitere Erklärung mit kurzem Video:
Der Browser versteht mich & Add-ons ohne Neustart - Firefox 3.6, 4.0 und mehr: Die Zukunft des Mozilla-Browsers - CHIP Online
 

–‒–æ—Ñ—É Netbook

–ü—Ä–æ—à–¡–Βͺβ€”Γ…β€”Γ¨ –ø–æ β€”Γ…β€“βˆžβ€“Ο€β€”Γ‡β€“βˆžβ€“ΒΊ β€“Ξ©β€“βˆžβ€”Γ β€“Β΅β€“Βͺ Netbook ASUS T91 –Βͺβ€“βˆβ€“Ξ©β€“βˆ« –≀–æ—Ç β€“βˆ‘β€“Β₯–¡—Å—Γ₯ β€“Ξ©β€“Β΅β€”Γ‡β€“Β±β€”Γ‰β€“βˆ« —ç—Ç–æ—Ç β€“βˆβ€“Ξ©β€”Γ‡β€“Β΅β€”Γ„β€“Β΅β€”Γ…β€“Ξ©β€“Γ¦ β€”Γ…β€“βˆ«β€“Γ¦β€“Βͺβ€”Γ₯β€“βˆ«β€“Γ¦ –±—É–Β₯–¡—Ç β€”Γ‰ β€“Ξ©β€“βˆžβ€”Γ… β€”Γ…β€”Γ‡β€“Γ¦β€“βˆβ€”Γ‡β€”Γ₯...
 

My first time in Linuz.com

This is something cool.

I can have my own blog here... does this make me a Linux Expert?

 

To start with (Small story with happy end)

I know, that everybody of visitors can tell nearly the same story about their way to GNULinux. However, it seems to me, that such kind of story is significally important for people who are not sure about moving to GNULinux. So, I'll try to tell about my story.

Everything started more than year ago, when I was going throw the local computer shop, I SUDDENLY saw IT - Linux Format magazine. It was a great thing, main subject was GNOME vs KDE. Such a holy war was interesting for me, but there was one small problem - I hadn't known anything about Linux. ANYTHING!

So, I had bought Linux Format, came home and started to read it. There was a great interview with Richard Stallman, but for me the most surrising thing was his appearence, especially beard. With the help of spirit from this interview I started to install my first GNULinux - Mandriva 2008.0. Of course, there were no problems, except small one - I destroyed all my data from Windows partition. 

After installation I tried to setup my VPN internet communication. I failed. I reinstalled the distribution. And failed again. So i spent whole my weekend reinstalling the distribution. When I was about to install Windows back, my friend (who is fan of Apple) advised me to use his MacBook for searching solution in th Web. After several hours of searching, I finally found instruction and started to explore the console in Mandriva. Suprisingly, console was quite sex appealing for me, so I decided to try another distribution - I chose... Arch.

Oh, that was great - I spent whole night reading manuals, so I got up at 11 o'clock and found myself lying on the keyboard with KDEmod launched on my screen

 

Linux just Works

Dual-booting should never be this hard. But for some reason Microsoft's ode to crappy names, and crappy OS design and development seems to love to make things harder than they have to be. I've had some serious issue with Vista ever since I bought the OS under the assumptions that it would be nearly as friendly, and refreshing as XP. If it wasn't for Vista I could even come to the conclusion that perhaps I would have never tried Ubuntu, and thus any other linux distribution out there. So as of tonight I'd like to outline a few ways in which crappy OS' like Vista make me delighted to be a penguin.

I began my installation of Vista as I normally do with dual-booting, apprehensive. I setup my second drive as NTFS and slipped the Vista disk in. Installation went smoothly, and setting up grub to be my primary bootloader went smoother than normal. Much smoother than it ever had in the past thanks to great help at ubuntuforums.com.

But this was short-lived. After the installation I was left with the usual myriad of issues that needed immediate fixing. This included getting my Audigy 2 ZS to work under Vista (mostly a Creative issue), downloading and installing drivers for a 9500 GT and a Linksys wireless adaptor, downloading updates, and then maybe I could get to what I installed the OS in the first place for, in this case playing pc games.

Things went well until after I downloaded Fallout 3 and attempted to extract it. Vista would give me errors that it could not extract a 5.5Gb archive into roughly 50Gb of hard drive space. Explorer was having a problem with this, and I couldn't get a straight answer anywhere online. It was around this time that the updates finished downloading, and I was prompted to restart. Strangely some updates did not download. No issue, I hoped.

Upon restart the updates were configured, for nearly an hour. Vista then restarted itself and gave me an error, so I had to place the install disc back into the drive to run repair. This appeared to fix the issue until halfway to downloading Winzip, in an attempt to rectify the previous issue, I was greated with the great spirit of Windows, the Blue Screen of Death. Wonderful, I thought to myself, not even 5 hours into Vista's lifespan it is already having issues with itself. A forced restart later, and another attempt at running the OS proved that the BSOD didn't plan on going away. So here I am, reinstalling a version of Windows not 5 hours old.

As you can tell, getting Vista just to run successfully is a huge trial in patience. When Ubuntu performs every needed task faster, stabler, and more securely it boggles my mind that Microsoft has gotten away with the crap they put on store shelves. And if those of you who are interested in Windows 7 think that things may change, think again, I received concurrent BSOD's in that OS as well. My Windows 7 install disk now sits happily at the bottom of a landfill somewhere in New Mexico. 

It is a huge burden to setup Vista when every Linux distribution I've used has done things better than Vista out-of-the-box, so to speak. Just staring at the installation screen makes me sigh not knowing what issue it will throw at me next. And realizing this I'll probably just end up formatting the drive again, and turning on Ubuntu to get things done. And slowly I realize why I switched to Linux in the first place, and take a quiet resignation and joy in the fact that Linux just works.

 

 

Halfway status report. Display - success

My computer is becoming wearable, though it's taking some time.

Half of the allocated time is gone already, and I feel like I should have accomplished a lot more. Also I feel like I'll be finished in a week, which is not true either. I now have a working computer, which doesn't yet seem to understand my 3g, working head mounted display, in monochrome as it's a lot more readable that way and I'm going to spend my time in command line anyway, and barebones keyboard, which has not yet been programmed because of missing atmega8 programmerthingy.

 My achievement this week has definitely been the display. I have bought a lot of cables and adapters. The Beagleboard gives S-video and Myvu Crystal wants S-video or composite, but it accepts a 4 conductor 3.5mm plug. Currently I have a modified S-video to RCA -> RCA to 3.5mm plug, but a while ago I had like four or five adapters and cables going around. That thing didn't "just work" and everything was a lot better after I had replaced the wiring. I did try to mess with the os settings for overlays, displays and framebuffers without enough knowledge, but the problem was with my cables. There was also the thing that first I didn't get any signal at all before Gregor Richards helped me a bit. There's just so much conflicting and old information, and not enough new information about s-video on Beagleboard+Ångstrom. I'll also have to thank a fellow student who has been helping me with some information and other things.

 I still need to modify them though. Myvu Crystal is a weird thing, as the usb-charging cable works as a ground, and so I shouldn't have another ground going to Beagleboard, because that messes the signal up. I already cut the ground pins there, but wasn't enough. Currently I get best signal if I leave those RCA cables hanging so that their grounds don't touch each other and I use the white RCA of the a/v jack and just touch the first metal thing on the Myvu pendant with the tip of the 3.5mm plug. If I use the red one and just stick the 3.5mm plug in, it gets worse signal. Probably because there's also sound signals going there. I need to break the plug so, that there is just the last tip that can connect to anything.

It's been irritating to look at micro sized flashing ntsc screen, but now it is perfectly readable and the signal is just perfect. After I've fixed the cables, I'll just need to break the myvu and put one of the displays inside some sunglasses I'll be buying soon. I'll also need that stupid half-silvered/see-through mirror which will be in front of my eye and which will allow me to see through the display. Then the display is done.

It could have been a lot easier and better, and still might be, if I'd just buy the correct driver chip from Kopin. It's "just" 50$ and the correct is that version where I could bypass the composite and just feed it a pure digital display (I've been told that myvu pendant has the driver board version that has some stupid chip which you can't see it's pins so no wiring there). That way I could have used the dvi-d signal of Beagleboard and everything would be lollipops and rainbows. They still are, but they would be the colored things that way. There are some nice specifications at Kopin webpage. For your information, Myvu Crystal uses Kopin 640x480 microdisplays. Driver board might, or might not be Kopin, but it has the same chips that handles the signals and probably the same decoder for composite/s-video signals. 

 I'll be getting the chip for the keyboard (Spiffchorder) soon, but I'll need to rewire the keys and craft a handle for it. I'll try making one from finfoam. Then the keyboard is also done, if it can type scandinavian letters like ö and such. If not, I might need to touch their code too.

My computer needs wvdial or something similar, so it could use my 3g. It also needs a box, maybe from finfoam. Maybe I should make the box from some clear plastic though. I have ordered a usb ethernet card just because I'll probably need it sometimes. I'll need to decipher why narcissus, the awesome Ångstrom distribution image builder gives me enlightenment and gnome-games and such, when I clearly order a command-line only setup. I don't know what I should kill to get to command-line now. Alt+ctrl+F1 doesn't work, though it clearly has worked sometimes for some unfathomable reason. If I just kill enlightenment, xorg and/or gpe-login, they will just restart. I should study my chosen distribution a bit more.

And finally, I'll need a battery. I'm thinking about those rechargable batteries, I've seen some high mah ones that should do with some kind of a 5V regulator.

 I'm trying to do most of the keyboard this weekend, then I'll check the software I'll be using and the cables. I need some new, short cables, It's been a joke of the day that I could use them as my only clothing. It also seems that being mobile doesn't mean not having lots of wires around. After my keyboard is finished, I'll build the computer case and the sunglasses-display, and afterwards, I'll make the battery and start wearing the thing when I'll manage to find a way to wear them. Maybe I could just hang the computer from my belt. I definitely don't want a fannypack or a backpack. Maybe something like the Casebelt from Urban tools. Do you know some nice way for wearing the wearable? Comments welcome.

 

–ø–¡—Ä–≀—ã–π –ø–æ—Å—Ç

–°–¡–β‰₯–æ–Β₯–Ω—è —Ö–æ—Ç–¡–Βͺ β€“Γ¦β€“βˆ‚β€“βˆβ€“β‰€β€“βˆβ€”Γ‡β€”Γ₯ β€”Γ…β€”Γ‡β€“βˆžβ€”Γ„β€“Β΅β€“Ξ©β€”Γ₯β€“βˆ«β€“βˆβ€“Ο€ β€“βˆ«β€“Γ¦β€“ΒΊβ€“ΓΈ –Β₯—Ä—É–β‰₯β€“βˆž, β€“βˆ«β€“βˆžβ€“ΒΊβ€“Β΅β€”Γ β€“Β΅β€“βˆ« β€”Γ‡β€“βˆžβ€“ΒΊ 3 β€“ΓΈβ€“Β΅β€“Ξ©β€”Γ«β€“βˆ« β€“βˆ«β€“βˆžβ€“βˆ‚β€“βˆβ€”Γ…β€”Γ₯ 500mhz β€“ΓΈβ€“Γ¦β€”Γ…β€”Γ‡β€“βˆžβ€“β‰€β€“Βͺβ€”Γ© —Ç—É–Β₯β€“βˆž –Βͺβ€“βˆβ€“Ξ©β€”Γ‰β€“βˆ«β€”Γ… β€“βˆ —Å–Β₯–¡–Βͺβ€“βˆžβ€”Γ© –β‰₯β€“Β΅β€“Ο€β€”Γ‡β€“βˆβ€“βˆ« –Β₯–Βͺβ€”Γ¨ –Β₯β€“Γ¦β€“ΒΊβ€“βˆžβ€”Γ β€“Ξ©β€“Β΅β€“Ο€ β€”Γ…β€“Β΅β€”Γ‡β€“Γ¦β€”Γ‘β€“βˆ«β€“βˆ. –ù–æ —Ñ—Ç–æ —Ç–æ –Ω–¡ –ø–æ–Βͺβ€”Γ‰β€”Γ‘β€“βˆβ€“Βͺ–æ—Å—Γ₯. –í—Ä–¡–º—è –Ω–¡ β€”Γ–β€“β‰€β€“βˆžβ€”Γ‡β€“βˆβ€“Βͺ–æ. β€“Γ³β€“βˆžβ€“Ο€β€“ΒΊβ€”Γ‰β€”Γ…β€”Γ₯ β€“βˆ‘β€“βˆžβ€“β‰€β€”Γ‡β€”Γ„β€“βˆž.

 

Journey to Android programming (hell?) Heaven. Part II

Arrrrrrghhh.   I've got past having the basic environment installed.  I've said hello to the world with and without a picture on the screen.  I've run through a tutorial that has me putting little red dot's on a horrendously green background. I've not a clue what in the hell I've done. 

One of the hassles of OOP is that there is a lot of background magic that happens.  Most OOP programmers understand the basics of the incantations.  But can't explain it.   I understand why they can't, because frankly they don't think about how they do it.  They just do it.

It's a lot like walking, or even more so, learning to walk.  As kids we don't have the tools to think about how to walk.  We only have the desire to go upright like all of the other humans around us.  We do it but 'we never actually think about HOW we do it.'   People, whom as an adult, need to relearn walking are often hindered by their increased cranial capacity, as they often spend too much time thinking 'what was it I used to do' instead of just doing it.  

In many ways I'm in that same position.  I'm spending too much time worried about cause and effect of my actions, and too little time just doing it.  I'll admit, like any other Admin out there, I love poking things with sticks and rationalizing the results.  OOP doesn't always behave rationally.  Oh I'm sure that class and the methods it invokes where rationally created, at the time of creation, but for me,  it all still seems irrational, and will continue to be so until I learn how to think like a programmer.

Right now I'm cursing at Eclipse, and ADT.  If I launch the emulator manually with the -scale option I can scale the emulator really nice (fit's my little 4G monitor just fine.  However for the life of me I can't figure out where to put the necesary option into Eclipse 3.5 such so that it passes it to the emulator launch commad.  *sigh*.  You'll know I've got it right when I blog it as a how to for sure.  Until then, OOP's

 

 

 

Improving Putty settings on Windows

Improving Putty settings on Windows

If you are using windows machine to connect to Linux machine, putty is inevitable. Here are some of tips you can use to customize to have cool look, more efficient to work 

Configure your Putty first, then make entries.
This is important advice. First configure your environment before you start using it. This is especially true for Putty, since you always start of from the default, it is important to configure the default entry before you create entries from these defaults. It will save you a lot of time afterwards to get things straight.

So before you make any changes, open the default template in Category: Session by selecting Default Settings and pressing the Load button.

Make SSH the default.
If you have an older version of Putty, chances are that you have Telnet as the default protocol. Changing it to SSH will probably save you some time when you start Putty out-of-the-blue. For this go to Category: Session and select SSH.

Increase scrollback buffer.
By default Putty buffers 200 lines of output, which is too little in lots of circumstances. And the moment you actually need this number increased, chances are you already lost some information you wanted. So it is wise to increase this number. What I do is go to Category: Window and increase Lines of scrollback to 20000.

Choose a good font.
The newer Putty binaries are able to make use of ClearType which drastically improves the font quality compared to Antialiased. Go to Category: Window > Appearance, choose ClearType and a nice font. I prefer Lucida Console, 9-point.

When you are there, you might want to change the Gap between text and window edge to 3 pixels.

Use proper character encoding.
Nowadays all Linux systems are able to use Unicode (UTF-8) so to make sure that the output in Putty (especially everything non-ascii) looks fine, go to Category: Window > Translation and change the character set to UTF-8, make sure that also the line drawing characters use Unicode as well.

Linux copy-and-pasting.
I prefer to do an implicit copy when selecting and using the middle mouse button for pasting. So I go to Category: Window > Selection and set the Action of mouse buttons to xterm (Right extends, Middle pastes)

When you are there, also enable the option Paste to clipboard in RTF as well as plain text, which is nice when you are copy-and-pasting to emails or text documents that allow fonts and colours. Your console output will look much the same as it does on your screen!

Change dark colours on a black background.
One of the more annoying things with terminal applications (xterm has the same issue) is that by default dark-blue is too dark to be visible on a black background. Not only is this frustrating, it makes the experience for new users so bad that they prefer to disable colours (or hate the ls colour output or syntax highlighting in vim).

So if you are like me, go to Category: Window > Colours and select ANSI Blue in the Select a colour to adjust to Red:74 Green:74 Blue:255. I do the same for ANSI Blue Bold to Red:140 Green:140 Blue:255.

Keeping idle sessions active.
Another frustrating problem is induced by the time-to-live of inactive or idle TCP sessions on firewall or switch configurations. At some companies this is put aggressively low so that TCP sessions that have no activity for 1 minute or even 30 seconds are being dropped. If you are using an SSH connection over such a network device, you have to take care to send keep-alive packets over your idle session. To do this go to Category: Connection and set Seconds between keepalives (0 to turn off) to 25.

Finally, saving the default.
Now, don't forget to save the changes you just made to the default template. If you loaded the Default Settings at the start, return back to Category: Session and press the Save button. Now you are done !

Putty settings summary.
Category: Session
Connection type: SSH

Category: Window
Lines of scrollback: 20000

Category: Window > Appearance
Font: Lucida Console, 9-point
Font quality: ClearType
Gap between text and window edge: 3

Category: Window > Translation
Character set: UTF-8
Handling of line drawing characters: Unicode

Category: Window > Selection
Action of mouse buttons: xterm (Right extends, Middle pastes)
Paste to clipboard in RTF as well as plain text: enabled

Category: Window > Colours
ANSI Blue: Red:74 Green:74 Blue:255
ANSI Blue Bold: Red:140: Green:140 Blue:255

Category: Connection
Seconds between keepalives (0 to turn off): 25

 

 
Page 7 of 14

Upcoming Linux Foundation Courses

  1. LFD320 Linux Kernel Internals and Debugging
    04 Aug » 08 Aug - Virtual
    Details
  2. LFD405 Embedded Linux Development with Yocto Project
    04 Aug » 07 Aug - Santa Clara, CA
    Details
  3. LFD312 Developing Applications For Linux
    18 Aug » 22 Aug - Virtual
    Details

View All Upcoming Courses


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board