Friday, January 27, 2012

Ubuntu Server Guide στα ελληνικά


 Μετά από παρότρυνση ενός μέλους του ubuntu-gr στην ταχυδρομική λίστα (ubuntu-gr mailing list) και με λίγη βοήθεια από τον Σίμο, καταφέραμε να δημιουργήσουμε τον οδηγό "Ubuntu server guide" ως PDF στα ελληνικά.

 Φυσικά, η μετάφραση ήδη υπάρχει ως HTML: http://help.ubuntu-gr.org/10.04/serverguide/el/

 Το πρόβλημα φαίνεται να ήταν με τη δημιουργία PDF αρχείου. Εμφάνιζε "####" χαρακτήρες αντί τους ελληνικούς.

 Το serverguide διασπάστηκε πριν λίγο καιρό από το ubuntu-docs και δημιουργήθηκε καινούργιο project: https://launchpad.net/serverguide
 Aπό εκεί βρήκα τις πιο πρόσφατες μεταφράσεις:

https://translations.launchpad.net/serverguide/

https://translations.launchpad.net/serverguide/oneiric/+pots/serverguide/el/+details

 Τώρα, πώς μεταφράζουμε τον οδηγό και πώς δημιουργούμε το pdf; Εκτελούμε τις εξής εντολές:

sudo apt-get install xsltproc bzr fop gnome-doc-utils docbook-xsl libservlet2.5-java
bzr branch lp:serverguide
cd serverguide
mkdir po

Μετά πάτε στο https://translations.launchpad.net/serverguide/oneiric/+pots/serverguide/el/+export
Ζητάτε το αρχείο ως .po (PO format). Θα σταλεί στο email.

Μετονομάζετε το αρχείο ως el.po
Μεταφέρετε το el.po στο φάκελο po/

Patch-άρετε το bzr tree:

wget http://people.ubuntu.com/~medigeek/serverguide_el/bzrpatch.diff -O bzrpatch.diff
bzr patch bzrpatch.diff

Για να δημιουργήσετε html:
make serverguide LN=el

Για να δημιουργήσετε pdf:

make serverguide-pdf LN=el

 Το pdf στα ελληνικά με Ubuntu fonts: http://people.ubuntu.com/~medigeek/serverguide_el/pdf/serverguide.pdf

  Το πρόβλημα με τα fonts αναφέρθηκε ως σφάλμα:

https://bugs.launchpad.net/serverguide/+bug/922251

Wednesday, July 07, 2010

Windows says "network cable unplugged", but works in ubuntu

..and I'm back on the Net! I'm going to travel to Guatemala soon, first time Atlantic-crosser and eager to do so! I won't be able to write for about 2 months, unless I find a good safe spot to write.
    Now to the main course. This was one of the worst problems I have ever faced in my life: "Network cable unplugged" but isn't. If you want the solution, scroll down to the last paragraph.

    I was cleaning up the appartment yesterday, and the PC was switched off during the day. I have a dual boot set up with Ubuntu as the main operating system. "It's been ages I didn't boot to Windows", I said to myself -- so the first thing I did was to boot up to Windows and try to check for some updates.
    Waiting for Windows 7 to boot up, I went out, bought some beverages from a store nearby and came back -- and no, it's not *that* slow, but why not take advantage of the waiting time? Anyway, when I came back I saw the tray network icon with a yellow triangle over it. "Hum, now what?". The error was: "Network cable unplugged". But the cable was plugged!
    These were the steps I took and none of them were faulty or broken: Router was working fine, all the LED lights showed that Internet was connected. Also the LED light for LAN network was green for the computer. I though of booting to Ubuntu.
    In Ubuntu, everything worked as expected. "Maybe it was a one-time error?" I mumbled while rebooting back to Windows. Nope -- the error "Network cable unplugged" remained.
    I used another cable, didn't work again. Another one, nada. "It can't be!!", I said, "Εvery cable is problematic?!". I booted to Ubuntu looking/googling for answers. After a couple of hours "researching" to figure out a solution, I decided to drop it. Since Ubuntu worked, why would I care?
    But it was eating me up inside. The day after (today) I tried another google search, pissed off about the whole thing. And I found the answer. It wasn't the cable, nor the router, nor the driver, it was Windows, simply and stereotypically.


1.) Shut dowm your PC.
2.) Unplug the power cord.
3.) If you have a laptop, remove the battery as well.
4.) Walk away from the problem for at least 30 minutes.
5.) When you return, reconnect battery and power cord.
5.) Start as usual.
6.) If this solves the problem, take 20 minutes and post this to all of those message boards that you didn't find the solution to.

Here's what I did:

- Shut down my PC.
- Switched off the router.
- Unplugged the ethernet cable.
- Switched off the extension cord. Unplugged the power cord.
- While it was unplugged, I pressed the power button once.
- I went to my neighbour and had a lovely 20-minute chat.
- Came back, connected the power cord and powered it on.
- Switched on the router.
- Plugged the ethernet cable.

That's it. As simple as it may be, it might save you from buying a new network ethernet card. :)

Sunday, October 04, 2009

Indefinitely offline

In case anyone is wondering what happened to me, I have some real life issues to sort out. I will have some basic internet access and email, but nothing fancy.
Hopefully I will be back online within a year or so. Until then! :-)
If you liked any of my posts or projects or backports so far, the donation link on the right-side menu is a good way to express your gratitude. Cheers!

Tuesday, September 01, 2009

How to enable man pages search in Google

 I was messing around with Google this morning, when I realised that you can actually "subscribe" yourself to a custom search for linux manpages. You have to be logged in of course. :-)

 I say "subscribed" in quotes, because it's not really a subscription, but rather a pointless (my opinion) feature. The only good thing about it is the icon that you notice directly what you want to search, giving a simple explanation of what the command does - in other words, the title of the manpage.

 The steps are quite easy! You go to http://www.google.com/search?q=man+nmap and press the "Sign in" link on the top right corner. You log in with your Google account, then you are redirected back to the Google search page.

  Afterwards, you go to Settings ⟶ Search settings.

 Next, scroll down to "Subscribed Links" and click on the Subscribe button next to the "Unix Manpages". Click "Save preferences" and you're redirected back to the "man nmap" search. The search result is listed third here, so the result might be different than yours.



 Finally, let me justify why I consider this pointless. If you use Firefox, you can easily integrate a quick search keyword with your favourite operating system's manpages website. Not all of them have this feature/website, but Debian and Ubuntu have it!
 - Head on to http://manpages.debian.net.
 - Select Man -> All sections -> Debian Sid.
 - Right-click in the white text box next to "Man Page or Keyword Search".
 - Select "Add a keyword for this search".
 - Name: Manpages, Keyword: man
 - Click Save.
 - Head to your location bar text box and type in "man nmap".

Voila! Have fun keyword-ing!

Monday, August 24, 2009

Blogger and Firefox - How to save your password

 Some websites don't allow you to save your password in Firefox built-in password manager, for example Yahoo and Blogger. Really irritating!

 One beautiful day (my irony tends to build up under 35 degrees Celsius), I noticed that the Blogger page actually redirects you to a Google account sign in. Therefore, I've come up with this little link that will allow you to save your password and take you back to Blogger:


https://www.google.com/accounts/ServiceLogin?service=blogger&continue=http://www.blogger.com/

Someone might make a good use of it. I also hope someone will find a way or fix the yahoo login page. Enjoy!

P.S. Make sure you install Secure Login add-on - it's a really handy application that allows one-click installs!