tag:blogger.com,1999:blog-83386871884499629242024-03-06T02:47:01.654+01:00My life journeySome med, some tech, some blab!Unknownnoreply@blogger.comBlogger52125tag:blogger.com,1999:blog-8338687188449962924.post-68334200447197599602017-11-06T11:03:00.000+01:002017-11-06T11:06:46.011+01:00How to set a PIN password or a short password in Ubuntu Linux<div dir="ltr" style="text-align: left;" trbidi="on"><div class="tr_bq">If you are looking for a way to a PIN password or a short password in Ubuntu Linux, similar to Windows 10, you've come to the right place.</div>The way described here changes only the desktop login (lightdm service), but can be applied to other services as well if you wish.<br />
Also, this allows you to have your original strong password for "sudo", while maintaining a fairly easy way to login to Ubuntu desktop.<br />
Commands can be issued in the terminal program.<br />
<h2 style="text-align: left;">Installing pam_pwdfile.so</h2>First of all, make sure you have installed the libpam-pwdfile package:<br />
<blockquote class="tr_bq">sudo apt-get install libpam-pwdfile</blockquote><h2 style="text-align: left;">Creating the user/password file</h2>You will be prompted to enter a new PIN password.<br />
Your password will be encrypted and saved to a file named "passwd.like"<br />
<br />
<blockquote class="tr_bq"><br />
pinpass=$(mkpasswd -5)<br />
echo "$pinpass" | sudo tee /etc/passwd.like<br />
<br />
</blockquote><br />
You will see the encrypted pin password echoed in the terminal. This password will be written to the /etc/passwd.like file.<br />
<br />
<span style="font-size: small;"><i>Alternatively, you may use:<br />
<code>openssl passwd -1 yourpinpasswordhere</code></i><br />
</span><br />
<h2 style="text-align: left;">Setting up the desktop login service</h2>The next step is to prepare the desktop login service to accept the PIN password before other password procedures. I've mentioned already the name of the desktop login service, <i><b>lightdm</b></i> .<br />
<br />
Take a look at the file:<br />
<blockquote class="tr_bq"><br />
cat /etc/pam.d/lightdm</blockquote><br />
If you don't have this file, then your desktop (login) service is a different one, and you should find your desktop manager before going further. As explained before, this guide is for Ubuntu 16.04 but can be used for other login services as well.<br />
<br />
It could be useful if you also create a backup:<br />
<blockquote class="tr_bq"><br />
sudo cp /etc/pam.d/lightdm /etc/pam.d/lightdm.backup</blockquote><br />
Now, you may edit the file using nano or gedit or any other text editor:<br />
<blockquote class="tr_bq"><code>sudo gedit /etc/pam.d/lightdm</code></blockquote><br />
At the top of the file mine had:<br />
<br />
<br />
<blockquote class="tr_bq"><br />
<i>#%PAM-1.0</i><br />
<i>auth requisite pam_nologin.so</i><br />
<i>auth sufficient pam_succeed_if.so user ingroup nopasswdlogin</i><br />
<i>@include common-auth</i></blockquote><br />
I have modified it like so:<br />
<br />
<blockquote class="tr_bq"><br />
<br />
<br />
#%PAM-1.0<br />
auth requisite pam_nologin.so<br />
auth sufficient pam_succeed_if.so user ingroup nopasswdlogin<br />
<span style="background-color: #6aa84f;">auth required pam_pwdfile.so pwdfile=/etc/passwd.like<br />
auth required pam_permit.so<br />
#</span>@include common-auth</blockquote><br />
Save the file and close your text editor.<br />
<br />
Log out and log back in.<br />
<br />
You should be able to use the PIN password you set. By following this guide, the PIN password is only used for the desktop login service, not for the password of sudo commands. <br />
<br />
Sources: <br />
This is a modified guide based on a pam pwdfile guide for vsftpd at: <a href="http://www.rollnorocks.com/2015/11/authenticating-vsftpd-virtual-users-with-pam_pwdfile-so/">http://www.rollnorocks.com/2015/11/authenticating-vsftpd-virtual-users-with-pam_pwdfile-so/</a><br />
<br />
<br />
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8338687188449962924.post-48019668178506975602012-10-11T08:42:00.001+02:002012-10-11T08:44:19.427+02:00Icon 'gtk-close' not present in theme<div dir="ltr" style="text-align: left;" trbidi="on">I recently started to use screenlets again, especially FreeMeteo for weather forecast. But on ubuntu 12.04 every time I login I get a crash message:<br />
<br />
<b><i>FreemeteoWeatherScreenlet.py crashed with GError in load_buttons(): Icon 'gtk-close' not present in theme</i></b><br />
<br />
If you have a similar crash message, you can simply install the <a href="apt://gnome-icon-theme-full">gnome-icon-theme-full</a> package which contains the gtk-close.png file.<br />
<br />
Source: https://bugs.launchpad.net/ubuntu/+source/indiv-screenlets/+bug/807129<br />
</div>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-8338687188449962924.post-35925451772576135932012-10-11T08:10:00.000+02:002012-10-11T08:14:39.588+02:00Kernel mainline ppa downloader (aka kmpd / kmp-downloader)<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<b>About</b><br />
<br />
<a href="https://github.com/medigeek/kmp-downloader">kmp-downloader</a> is a simple program that allows you to install fresh new kernel versions from the ubuntu kernel mainline ppa.<br />
<br />
As it is, the mainline is not an actual "ppa" (personal package archive) and doesn't allow people to use apt-get to upgrade.<br />
<br />
<b>Requirements</b><br />
<br />
You may need python beautifoul soup (<a href="apt://python-bs4">python-bs4</a>) or execute:<br />
<pre>sudo apt-get install python-bs4</pre><br />
<b>How to use it</b><br />
<br />
You may download it using this quick link: <a href="https://github.com/medigeek/kmp-downloader/tarball/master">https://github.com/medigeek/kmp-downloader/tarball/master</a><br />
<br />
Save the archive and extract the files. Double click on kmpd.py (execute in terminal). If you're not sure about an option, press Enter and it will select the default answer.<br />
<br />
You may also execute this command (one-liner):<br />
<br />
<pre>cd /tmp; rm -rf medigeek-kmp*; wget --no-check-certificate https://github.com/medigeek/kmp-downloader/tarball/master -O kmpd.tar.gz; tar xzf kmpd.tar.gz; cd medigeek-*; python kmpd.py</pre><br />
You will be asked a series of questions, where you either reply by "Y" or "N" (yes or no) or simply press enter and let the program figure out the default reply (mentioned in square [] brackets). It will then install the appropriate debian packages.<br />
<br />
Note: it will not fix the problems with other packages. I suggest running linux ppa packages without dkms package (without closed source packages like nvidia driver or virtualbox driver), in order to have a smooth, errorless installation.<br />
<br />
<b>Uninstall</b><br />
<br />
To uninstall the kernel packages, <i><span style="color: #990000;">remember to boot to a different kernel image first</span></i>. Then you can use your favourite package manager to uninstall the packages.<br />
<br />
If you prefer the command line, if you installed version 3.5.3, you can uninstall it using this command:<br />
<br />
<pre>sudo apt-get purge linux-image-3.5.3.* linux-image-extra-3.5.3.* linux-headers-3.5.3.*</pre><br />
<br />
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8338687188449962924.post-60432386515488434522012-04-02T12:40:00.002+02:002012-04-02T12:48:47.112+02:00Hiren's boot cd using unetbootin (missing boot options)<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-6mGF-D66fx4/T3mDy2QvVoI/AAAAAAAAACg/LZQscVUQdKM/s1600/hiren-syslinux-isolinux.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="258" src="http://3.bp.blogspot.com/-6mGF-D66fx4/T3mDy2QvVoI/AAAAAAAAACg/LZQscVUQdKM/s320/hiren-syslinux-isolinux.png" width="320" /></a></div>
<br />
<br />
If you try to use <a href="http://unetbootin.sourceforge.net/">unetbootin</a> to copy <a href="http://www.hirensbootcd.org/">Hiren's bootcd</a> on a usb flash drive and you boot using the flash disk, you'll notice that some options are missing, especially the "mini windows xp" boot option.<br />
<br />
To overcome this problem you have to copy the file "<span style="font-family: "Courier New",Courier,monospace;">HBCD/isolinux.cfg</span>" to the main folder and replace the file "<span style="font-family: "Courier New",Courier,monospace;">syslinux.cfg</span>"<br />
<br />
Then everything will work as expected.<br />
<br />
Bug report: https://bugs.launchpad.net/unetbootin/+bug/971403 </div>Unknownnoreply@blogger.com9tag:blogger.com,1999:blog-8338687188449962924.post-59905051918889605572012-03-05T18:32:00.001+01:002012-03-05T18:32:24.138+01:00Now you can read xps files in ubuntu!<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-size: large;">About</span> <br />
OpenXPS or XPS stands for XML Paper Specification. It is based on XML and it's a new electronic paper format originally developed by Microsoft and it serves as a PDF alternative. XPS files are usually created using "Microsoft XPS Document Writer" in Windows environments. It is now standardized as an open standard document format.<br /><br />Quoting <a href="https://en.wikipedia.org/wiki/Open_XML_Paper_Specification">Wikipedia</a>:<br /> An XPS file is in fact a Unicoded ZIP archive using the Open Packaging Conventions, containing the files which make up the document. These include an XML markup file for each page, text, embedded fonts, raster images, 2D vector graphics, as well as the digital rights management information. The contents of an XPS file can be examined simply by opening it in an application which supports ZIP files.<br /><br />
The OpenXPS document format specification supports features such as color gradients, transparencies, CMYK color spaces, printer calibration, multiple-ink systems and print schemas.<br />
<br />
Evince already supports xps, but it has to be compiled with that option enabled. In order for evince (the program that allows you to read pdf document files) to read xps files, <b>libgxps</b> is required first. <br />
<br />
<span style="font-size: large;">Status update</span><br />
..for libgxps in Debian (we'll see about Ubuntu afterwards):<br />
<br />
<ul style="text-align: left;">
<li>We are very close to a release in Debian.</li>
<li>We have a willing debian developer to sponsor it.</li>
<li>It's now maintained by debian-gnome team: <a href="http://anonscm.debian.org/viewvc/pkg-gnome/packages/unstable/libgxps/" rel="nofollow">http://<wbr></wbr>anonscm.<wbr></wbr>debian.<wbr></wbr>org/viewvc/<wbr></wbr>pkg-gnome/<wbr></wbr>packages/<wbr></wbr>unstable/<wbr></wbr>libgxps/</a></li>
<li>Package release was blocked by a libarchive bug: <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=662603" rel="nofollow">http://<wbr></wbr>bugs.debian.<wbr></wbr>org/cgi-<wbr></wbr>bin/bugreport.<wbr></wbr>cgi?bug=<wbr></wbr>662603</a> (now fixed)</li>
</ul>
<br />
<br />
<span style="font-size: large;">There's a PPA!</span> <br />
After much frustration, I have created a PPA for evince with xps: <a href="https://launchpad.net/%7Emedigeek/+archive/evince-xps/" rel="nofollow">https:/<wbr></wbr>/launchpad.<wbr></wbr>net/~medigeek/<wbr></wbr>+archive/<wbr></wbr>evince-<wbr></wbr>xps/</a><br />
<br />
<i>Note</i>: The evince version in Ubuntu 11.10 oneiric ocelot doesn't work with xps (segmentation fault when opening the file) and there are several packages to be backported. I've decided not to backport it. It works in Ubuntu 12.04 precise pangolin.<br />
If you need to read an xps file, package libgxps-utils provides enough conversion tools, e.g. command:<br />
<pre>xpstopdf myfile.xps</pre>
<br /></div>Anonymousnoreply@blogger.com2tag:blogger.com,1999:blog-8338687188449962924.post-74857806725144206702012-03-02T14:17:00.001+01:002012-03-02T14:17:22.737+01:00Libreoffice recent documents - History manager extension<div dir="ltr" style="text-align: left;" trbidi="on">
This solution works for Windows operating systems as well as Linux distributions (It's actually system independent)<br />
If you need to clear or define how many items the recent documents list bears, you can install this easy-to-use extension/addon/plugin: <a href="http://extensions.services.openoffice.org/en/project/histmngr">History manager for Libreoffice/Openoffice</a><br />
<br />
- Click "Get it" and download the .oxt file.<br />
- Open Libreoffice writer, menu > Tools > Extension manager > press Add and open the .oxt file you've downloaded.<br />
- Close Libreoffice and re-open it. Go to menu Tools > Add-ons > History manager<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://i.imgur.com/Xz9X7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="183" src="http://i.imgur.com/Xz9X7.png" width="320" /></a></div>
</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8338687188449962924.post-1878973800757014652012-02-28T16:19:00.001+01:002012-02-28T16:24:18.718+01:00How to set default apps (aka how to use xdg-mime)<div dir="ltr" style="text-align: left;" trbidi="on">
How to set default apps in Chromium / Chrome / Firefox / Ubuntu Linux<br />
<br />
Situation: You hate the default app that opens when you double click a file or when you open it with chromium browser and you want to change it.<br />
<br />
a) In Unity (and probably Gnome 3 Shell), some default apps can be changed through gnome-control-center: System settings > System info > Default applications<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-Ib7aMY6HqX8/T0zrPuXijaI/AAAAAAAAACA/qWlqbS93Q34/s1600/Screenshot+at+2012-02-28+15:56:28.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="205" src="http://4.bp.blogspot.com/-Ib7aMY6HqX8/T0zrPuXijaI/AAAAAAAAACA/qWlqbS93Q34/s320/Screenshot+at+2012-02-28+15:56:28.png" width="320" /></a></div>
<br />
<br />
<br />
b) You can also right-click on a file > select Properties > Open with. See what applications/programs are listed there. You can also add them and set them as default.<br />
<br />
<div class="separator" style="clear: both; display: block; margin-bottom: 250px; text-align: center;">
<a href="http://3.bp.blogspot.com/-D9RsBTMYFiw/T0zrdBeaR6I/AAAAAAAAACI/TEt8ASb17dg/s1600/Screenshot+at+2012-02-28+15:53:05.png" imageanchor="1" style="float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="175" src="http://3.bp.blogspot.com/-D9RsBTMYFiw/T0zrdBeaR6I/AAAAAAAAACI/TEt8ASb17dg/s200/Screenshot+at+2012-02-28+15:53:05.png" width="200" /></a><a href="http://4.bp.blogspot.com/-mFcWGfjTl3o/T0zrfkOkqSI/AAAAAAAAACQ/hzVCTVqVm3E/s1600/Screenshot+at+2012-02-28+15:53:26.png" imageanchor="1" style="float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="200" src="http://4.bp.blogspot.com/-mFcWGfjTl3o/T0zrfkOkqSI/AAAAAAAAACQ/hzVCTVqVm3E/s200/Screenshot+at+2012-02-28+15:53:26.png" width="196" /></a></div>
<br />
c) If none of the above work, you can use xdg-utils (xdg-mime) to set a default application for a specific <a href="https://en.wikipedia.org/wiki/Internet_media_type">Mime Type</a><br />
<br />
First, you have to figure out what text string to use as a "mime type". An easy way to find it is to look into the default application's desktop file.<br />
<br />
<b>Example</b>: Chromium opens magnet links and bittorrent files with transmission-gtk by default. The .desktop files are usually in folder /usr/share/applications/. We use "cat" command to look into the file /usr/share/applications/transmission-gtk (a line that starts with "MimeType"):<br />
<br />
<pre>$ cat /usr/share/applications/transmission-gtk.desktop
[Desktop Entry]
Name=Transmission
[...]
Exec=transmission-gtk %U
Icon=transmission
Terminal=false
TryExec=transmission-gtk
Type=Application
<b>MimeType=<span style="color: #990000;">application/x-bittorrent</span>;<span style="color: #38761d;">x-scheme-handler/magnet</span>;</b>
Categories=Network;FileTransfer;P2P;GTK;
</pre>
<br />
Bingo! <span style="font-family: "Courier New",Courier,monospace;">x-scheme-handler/magnet</span> and <span style="font-family: "Courier New",Courier,monospace;">application/x-bittorrent</span> are the mime types we're after.<br />
<br />
How to use xdg-mime command? Simple: <span style="font-family: "Courier New",Courier,monospace;">xdg-mime default myapp.desktop mymimetype</span><br />
<br />
..where we substitute myapp.desktop and mymimetype with the values from above.<br />
<br />
Following the example above, we want magnet links and bittorrent files to open with Deluge (deluge-gtk) application. First you have to install the <span style="font-family: "Courier New",Courier,monospace;">deluge-gtk</span> package (otherwise the .desktop file won't exist). Then you have to execute:<br />
<br />
<pre>xdg-mime default deluge.desktop x-scheme-handler/magnet
xdg-mime default deluge.desktop application/x-bittorrent
grep -i deluge ~/.local/share/applications/*</pre>
<br />
The last command (<span style="font-family: "Courier New",Courier,monospace;">grep</span>) should return "<i>application/x-bittorrent=deluge.desktop</i>" and the other mime type for magnet. Otherwise, something went wrong (maybe the desktop file didn't exist?).<br />
<br />
And that's about it! Close and open chromium-browser again (or logout/login).<br />
<br />
For the sake of documentation, the files that have to do with mime types and default apps are:<br />
<br />
<pre>~/.local/share/applications/defaults.list
~/.local/share/applications/mimeapps.list
~/.local/share/applications/mimeinfo.cache
/usr/share/applications/mimeinfo.cache
/usr/share/applications/mimeapps.list
/usr/share/applications/defaults.list
</pre>
<br /></div>Anonymousnoreply@blogger.com3tag:blogger.com,1999:blog-8338687188449962924.post-33594241268632673102012-02-28T11:40:00.001+01:002012-02-28T11:40:06.123+01:00Error creating XPS file<div dir="ltr" style="text-align: left;" trbidi="on">
<span id="summary_alias_container"><span id="short_desc_nonedit_display"> </span></span><br />
<pre><span id="summary_alias_container"><span id="short_desc_nonedit_display">Error creating XPS file: Source _rels/.rels not found in archive</span></span></pre>
<span id="summary_alias_container"><span id="short_desc_nonedit_display">If you see the above error when trying to use xpstopng, xpstopdf, xpsto* tools provided by <a href="https://live.gnome.org/libgxps">libgxps</a>, then you probably suffer from this bug:</span></span><br />
<a href="https://bugzilla.gnome.org/show_bug.cgi?id=670895"><span id="summary_alias_container"><span id="short_desc_nonedit_display">https://bugzilla.gnome.org/show_bug.cgi?id=670895</span></span></a><br />
<br />
<span id="summary_alias_container"><span id="short_desc_nonedit_display">In short, the problem lies with <a href="http://libarchive.github.com/">libarchive</a> versions prior to 3.x and zip files created by windows.</span></span><br />
<span id="summary_alias_container"><span id="short_desc_nonedit_display">Solution?</span></span><br />
<span id="summary_alias_container"><span id="short_desc_nonedit_display">a) Just update to 3.x or newer and you'll be good to go.</span></span><br />
<span id="summary_alias_container"><span id="short_desc_nonedit_display">b) As a workaround, you can recreate the zip file:</span></span><br />
<br />
<pre>unzip lorem-ipsum-and-image.xps -d temp/
cd temp/
zip ../newfile.xps *
cd ..
</pre>
<br />
<br />
You now have a working copy of your XPS document.</div>Anonymousnoreply@blogger.com1tag:blogger.com,1999:blog-8338687188449962924.post-78608791515056439522012-02-11T16:56:00.003+01:002012-02-11T16:56:48.303+01:00How to install 1385:5f01 Netgear WPN111 (ar5523 driver)<div dir="ltr" style="text-align: left;" trbidi="on">
<pre>Bus 002 Device 004: ID 1385:5f01 Netgear, Inc WPN111 (no firmware)</pre>
If you have the above device or a usb wifi dongle that requires <b>ar5523</b> driver, you can try the commands and packages I've documented in order to make it work.<br />
<br />
The weird thing with this device is that the firmware adds +1 to its ID. If you look at the code (<a href="http://svn.berlios.de/svnroot/repos/fullstory/ar5523/trunk/">SVN repository</a>), you'll see that it's registered as "1385:5f00".<br />
<br />
How to install the device driver<br />
1. Install this package, depending on the version of ubuntu you may have:<br />
<ul style="text-align: left;">
<li>12.04 (precise pangolin): <a href="https://launchpad.net/%7Emedigeek/+archive/experimental/+files/ar5523-source_0%7Eslh.12%7Eppap1_all.deb">https://launchpad.net/~medigeek/+archive/experimental/+files/ar5523-source_0%7Eslh.12%7Eppap1_all.deb</a></li>
<li>11.10 (oneiric ocelot): <a href="https://launchpad.net/%7Emedigeek/+archive/experimental/+files/ar5523-source_0%7Eslh.12%7Eppao1_all.deb">https://launchpad.net/~medigeek/+archive/experimental/+files/ar5523-source_0%7Eslh.12%7Eppao1_all.deb</a></li>
<li>11.04 (natty narwhal): <a href="https://launchpad.net/%7Emedigeek/+archive/experimental/+files/ar5523-source_0%7Eslh.12%7Eppan1_all.deb">https://launchpad.net/~medigeek/+archive/experimental/+files/ar5523-source_0%7Eslh.12%7Eppan1_all.deb</a></li>
</ul>
<br />
2. Execute the following commands, copy-paste them one by one:<br />
<pre>sudo apt-get update
sudo apt-get -f install
sudo apt-get upgrade
sudo apt-get install build-essential linux-headers-generic module-assistant
sudo m-a a-i ar5523-source
wget http://verein.lst.de/~hch/ar5523.tgz
tar xvf ar5523.tgz ar5523/uath-ar5523.bin --strip 1
sudo mv uath-ar5523.bin /lib/firmware
</pre>
<br />
3. Restart your computer and replug your usb dongle. Hopefully it works. :)<br />
<span style="font-size: x-small;"><br />
</span><br />
<span style="font-size: x-small;">Source(s):</span><br />
<ul style="text-align: left;">
<li><a href="http://linuxwireless.org/en/users/Drivers/ar5523"><span style="font-size: x-small;">http://linuxwireless.org/en/users/Drivers/ar5523</span></a></li>
<li><a href="http://ubuntuforums.org/showthread.php?t=1012812"><span style="font-size: x-small;">http://ubuntuforums.org/showthread.php?t=1012812</span></a></li>
<li><a href="http://forum.ubuntu-gr.org/viewtopic.php?p=229452#p229452"><span style="font-size: x-small;">http://forum.ubuntu-gr.org/viewtopic.php?p=229452#p229452</span></a></li>
<li><a href="http://forum.ubuntu-gr.org/viewtopic.php?p=229667#p229667"><span style="font-size: x-small;">http://forum.ubuntu-gr.org/viewtopic.php?p=229667#p229667</span></a></li>
</ul>
</div>Anonymousnoreply@blogger.com2tag:blogger.com,1999:blog-8338687188449962924.post-35894505547527005832012-01-27T13:46:00.001+01:002012-01-31T01:06:57.645+01:00Ubuntu Server Guide στα ελληνικά<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Μετά από παρότρυνση ενός μέλους του ubuntu-gr στην ταχυδρομική λίστα (<a href="http://ubuntu.5.n6.nabble.com/Ubuntu-Server-td4337433.html">ubuntu-gr mailing list</a>) και με λίγη βοήθεια από τον Σίμο, καταφέραμε να δημιουργήσουμε τον οδηγό "Ubuntu server guide" ως PDF στα ελληνικά.<br />
<br />
<div style="color: #cc0000;">
<b> Φυσικά, η μετάφραση ήδη υπάρχει ως HTML: <a href="http://help.ubuntu-gr.org/10.04/serverguide/el/">http://help.ubuntu-gr.org/10.04/serverguide/el/</a></b></div>
<br />
Το πρόβλημα φαίνεται να ήταν με τη δημιουργία PDF αρχείου. Εμφάνιζε "<span style="font-family: "Courier New",Courier,monospace;">####</span>" χαρακτήρες αντί τους ελληνικούς. <br />
<br />
Το serverguide διασπάστηκε πριν λίγο καιρό από το ubuntu-docs και δημιουργήθηκε καινούργιο project: <a href="https://launchpad.net/serverguide">https://launchpad.net/serverguide</a><br />
Aπό εκεί βρήκα τις πιο πρόσφατες μεταφράσεις:<br />
<br />
<a href="https://translations.launchpad.net/serverguide/">https://translations.launchpad.net/serverguide/</a><br />
<br />
<a href="https://translations.launchpad.net/serverguide/oneiric/+pots/serverguide/el/+details">https://translations.launchpad.net/serverguide/oneiric/+pots/serverguide/el/+details </a><br />
<br />
Τώρα, πώς μεταφράζουμε τον οδηγό και πώς δημιουργούμε το pdf; Εκτελούμε τις εξής εντολές:<br />
<br />
<pre>sudo apt-get install xsltproc bzr fop gnome-doc-utils docbook-xsl libservlet2.5-java
bzr branch lp:serverguide
cd serverguide
mkdir po
</pre>
<br />
Μετά πάτε στο <a href="https://translations.launchpad.net/serverguide/oneiric/+pots/serverguide/el/+export">https://translations.launchpad.net/serverguide/oneiric/+pots/serverguide/el/+export</a><br />
Ζητάτε το αρχείο ως .po (PO format). Θα σταλεί στο email.<br />
<br />
Μετονομάζετε το αρχείο ως <span style="font-family: "Courier New",Courier,monospace;">el.po</span><br />
Μεταφέρετε το el.po στο φάκελο <span style="font-family: "Courier New",Courier,monospace;">po/</span><br />
<br />
Patch-άρετε το bzr tree:<br />
<br />
<pre>wget http://people.ubuntu.com/~medigeek/serverguide_el/bzrpatch.diff -O bzrpatch.diff
bzr patch bzrpatch.diff
</pre>
<br />
Για να δημιουργήσετε html:<br />
<pre>make serverguide LN=el</pre>
<br />
Για να δημιουργήσετε pdf:<br />
<br />
<pre>make serverguide-pdf LN=el</pre>
<div style="color: #134f5c;">
<br /></div>
<div style="color: #cc0000;">
<b> Το pdf στα ελληνικά με Ubuntu fonts: <a href="http://people.ubuntu.com/%7Emedigeek/serverguide_el/pdf/serverguide.pdf">http://people.ubuntu.com/~medigeek/serverguide_el/pdf/serverguide.pdf</a></b></div>
<br />
Το πρόβλημα με τα fonts αναφέρθηκε ως σφάλμα:<br />
<br />
<a href="https://bugs.launchpad.net/serverguide/+bug/922251">https://bugs.launchpad.net/serverguide/+bug/922251</a></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8338687188449962924.post-24900014283259303282009-09-01T08:00:00.020+02:002009-09-01T08:00:00.687+02:00How 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. :-)<br />
<br />
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.<br />
<br />
The steps are quite easy! You go to <a href="http://www.google.com/search?q=man+nmap">http://www.google.com/search?q=man+nmap</a> 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.<br />
<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNBXJfic2fPK3ik4pdihZaBGsW_tVeYTbE8yiLnapX4ZqhcRevFGekXlSafZXb1c3DQF6nTKs1ln_qFeWk2Jmaby5FYk88UfZGIfCPudbjebU31fkl4ca7hLKJFYLCXy_wvm2F_KqfakM/s1600-h/man+nmap.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNBXJfic2fPK3ik4pdihZaBGsW_tVeYTbE8yiLnapX4ZqhcRevFGekXlSafZXb1c3DQF6nTKs1ln_qFeWk2Jmaby5FYk88UfZGIfCPudbjebU31fkl4ca7hLKJFYLCXy_wvm2F_KqfakM/s200/man+nmap.png" /></a> Afterwards, you go to Settings ⟶ Search settings.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpoKhbOv8KT3qe-3fsYnDciqWndOIyTxKkIwQppRpLmNkz-9PWBDXx2-XTfCn-0PLAKQWstr-P_ESuJjfPGd41NVHAaGWXJIcf4MXmj2Ff8vaeO19Tn9B96SNXc2x9IYrL9UAFExZDVgA/s1600-h/man+google+subscribe.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpoKhbOv8KT3qe-3fsYnDciqWndOIyTxKkIwQppRpLmNkz-9PWBDXx2-XTfCn-0PLAKQWstr-P_ESuJjfPGd41NVHAaGWXJIcf4MXmj2Ff8vaeO19Tn9B96SNXc2x9IYrL9UAFExZDVgA/s200/man+google+subscribe.png" /></a></div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH-tLM7SGUnAXoQPq8ZKSA4ZR_HUHs6Ywy-KKe93BEq9hZYVamWLs5qCtt-e1QBOybhAe8wE0-54XFzxqdAVdc9v77W06sqrHD2K1to0YjKLzazujqlCXdWUEFT8kG1HdBdC_dPKXMi3A/s1600-h/man+nmap+2.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgH-tLM7SGUnAXoQPq8ZKSA4ZR_HUHs6Ywy-KKe93BEq9hZYVamWLs5qCtt-e1QBOybhAe8wE0-54XFzxqdAVdc9v77W06sqrHD2K1to0YjKLzazujqlCXdWUEFT8kG1HdBdC_dPKXMi3A/s200/man+nmap+2.png" /></a> Next, scroll down to "Subscribed Links"<b><span style="font-family: arial,sans-serif;"> </span></b>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.<br />
<br />
<br />
<br />
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 <a href="http://manpages.ubuntu.com/">Ubuntu</a> have it!<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgswmkuMnQpKsvw-2IAMP04HFK5AH9zq1X8NFj53PlPb5n-nYLuyfSBStA-hH1Nt0J4rN5QnVSDecrnuIacWShrYVgb5-XBYUJa8EXKu2MB-gpidByevUvJQePY21wiPK9Z-un8ZxtBRCE/s1600-h/add+a+keyword+search+firefox.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgswmkuMnQpKsvw-2IAMP04HFK5AH9zq1X8NFj53PlPb5n-nYLuyfSBStA-hH1Nt0J4rN5QnVSDecrnuIacWShrYVgb5-XBYUJa8EXKu2MB-gpidByevUvJQePY21wiPK9Z-un8ZxtBRCE/s200/add+a+keyword+search+firefox.png" /></a> - Head on to <a href="http://manpages.debian.net/">http://manpages.debian.net</a>.<br />
- Select Man -> All sections -> Debian Sid.<br />
- <span style="color: #990000;">Right</span>-click in the <span style="background-color: white; color: #990000;">white text box</span> next to "<b><i>Man Page or Keyword Search</i></b>".<br />
- Select "Add a keyword for this search".<br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYxGNEBKXQ5-Y8t1Vzl2MDhhxb65dPQBTZeHky37aPU4EwHkT4VMqACGdYUTw0poQl92ACGa1WUvgha7a-4EVJDAK6B-Hz84rMUKI6DiFrTAZdfmG-BqjEbnILLqqnqnE_zLDOGk8zLgM/s1600-h/add+a+keyword+search+firefox+2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYxGNEBKXQ5-Y8t1Vzl2MDhhxb65dPQBTZeHky37aPU4EwHkT4VMqACGdYUTw0poQl92ACGa1WUvgha7a-4EVJDAK6B-Hz84rMUKI6DiFrTAZdfmG-BqjEbnILLqqnqnE_zLDOGk8zLgM/s200/add+a+keyword+search+firefox+2.png" /></a> - Name: Manpages, Keyword: man<br />
- Click Save.<br />
- Head to your location bar text box and type in "man nmap".<br />
<br />
Voila! Have fun keyword-ing!Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8338687188449962924.post-88858354739436305932009-08-24T12:57:00.000+02:002009-08-24T12:57:01.431+02:00Blogger and Firefox - How to save your password<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_MOu8EauIB-TzZVtSMJmKjimepI8-gL3_NN-TGtJEOfynF0VfbK2U87mX-8FyIRxGSfT1JFU-upB7WlPIdt9MhyphenhyphendNWRsV9TO7FhN1OoDCwg9ETDp7WvXtoL9rlxa-pVg-AwooHsPEa0M/s1600-h/blogger_key_password.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_MOu8EauIB-TzZVtSMJmKjimepI8-gL3_NN-TGtJEOfynF0VfbK2U87mX-8FyIRxGSfT1JFU-upB7WlPIdt9MhyphenhyphendNWRsV9TO7FhN1OoDCwg9ETDp7WvXtoL9rlxa-pVg-AwooHsPEa0M/s200/blogger_key_password.png" /></a> Some websites don't allow you to save your password in Firefox built-in password manager, for example Yahoo and Blogger. Really irritating!<br />
<br />
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:<br />
<a href="http://draft.blogger.com/goog_1251107997327"><br />
</a><br />
<a href="https://www.google.com/accounts/ServiceLogin?service=blogger&continue=http://www.blogger.com/">https://www.google.com/accounts/ServiceLogin?service=blogger&continue=http://www.blogger.com/</a><br />
<br />
Someone might make a good use of it. I also hope someone will find a way or fix the yahoo login page. Enjoy!<br />
<br />
P.S. Make sure you install <a href="https://addons.mozilla.org/en-US/firefox/addon/4429">Secure Login add-on</a> - it's a really handy application that allows one-click installs!Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-8338687188449962924.post-35485096107515598812009-08-19T19:42:00.007+02:002009-08-28T12:05:52.843+02:00Workaround: brasero - slow speeds while burningBrasero is a cd/dvd writing application for the Gnome desktop manager. Its advantages are ease of use, a lot of burning options and support for plugins!<br />
<br />
Currently in Ubuntu 9.04, if you try to burn a disc, you might notice that:<br />
<br />
<ul><li>Everything goes well until about 50%.</li>
<li>Afterwards, it continues, but the report does not show anything (empty progress bar).</li>
<li>The speed is less than 2x, from 600 KiB/s to 800KiB/s, but the burning keeps going.</li>
<li>Somewhere in the end, brasero shows progress again, but starts from 0%!!</li>
<li>Burn was successful.</li>
</ul>Note: You should consider that this might not always be <span style="color: #e06666; font-size: large;">your</span> issue with slow speeds. For example, maybe your drive is not working well, or maybe your power supply unit (PSU) does not have enough "W" to supply all your hardware with adequate power.<br />
<br />
The bug information is extensively reported here:<br />
<a href="http://bugzilla.gnome.org/show_bug.cgi?id=582261">http://bugzilla.gnome.org/show_bug.cgi?id=582261</a><br />
<br />
One of the developers detected and corrected the problem, which seems that it was using the wrong plugin ("wodim" instead of "growisofs"). Since Ubuntu's binary package brasero has wodim as a dependency, it might cause problems if you try to remove wodim.<br />
<br />
There is a workaround though that seems to do the trick:<br />
<br />
Don't forget to install the package for growisofs: <a href="apt://dvd+rw-tools">dvd+rw-tools</a><br />
<br />
1. Tell brasero to use growisof:<br />
- Press Alt+F2, and execute this command:<br />
<pre>gconf-editor
</pre><br />
- Head to apps ⟶ brasero ⟶ config ⟶ priority.<br />
- Change the number "0" next to <b style="color: #cc0000;">wodim-burn</b> to "<b style="color: #38761d;">-1</b>" in order to disable it.<br />
- Change the number "0" next to <b style="color: #cc0000;">growisofs-burn</b> to "<b style="color: #38761d;">1</b>" in order to set a higher priority.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHPYbi1zqWVttj9D1jQScfQpnSa7CPuJulJOwtMoXdqc2LhmVmkkghTQPB8DpClQ4CSMBfE9BZlTFXSmERN2X_RjqfBaLhPm7Nb8HOBsr52uXvHXPaGMCb8oktt1xuYSl9kNY_fEcsTQA/s1600-h/Screenshot-Configuration+Editor+-+priority.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHPYbi1zqWVttj9D1jQScfQpnSa7CPuJulJOwtMoXdqc2LhmVmkkghTQPB8DpClQ4CSMBfE9BZlTFXSmERN2X_RjqfBaLhPm7Nb8HOBsr52uXvHXPaGMCb8oktt1xuYSl9kNY_fEcsTQA/s320/Screenshot-Configuration+Editor+-+priority.png" /></a></div><br />
<br />
2. Instead of using "Max" in speed burning options, set it manually at a high speed - e.g. choose 16x for a DVD or 52x for a CD.<br />
<br />
That's it!<br />
<br />
<br />
Credits go to:<br />
<a href="https://bugs.launchpad.net/ubuntu/+source/brasero/+bug/370999/comments/15">https://bugs.launchpad.net/ubuntu/+source/brasero/+bug/370999/comments/15</a><br />
<a href="https://bugs.launchpad.net/ubuntu/+source/brasero/+bug/370999/comments/16">https://bugs.launchpad.net/ubuntu/+source/brasero/+bug/370999/comments/16</a>Unknownnoreply@blogger.com4tag:blogger.com,1999:blog-8338687188449962924.post-38790668170924039762009-04-16T17:31:00.000+02:002009-04-16T17:31:24.073+02:00Unable to connect server irc.ubuntu.com port 6667Yesterday I received a message like one of the following:<br />
<blockquote>Unable to connect server irc.ubuntu.com port 6667 [Name or service not known]<br />
Could not resolve irc.ubuntu.com/6667: Name or service not known<br />
Connection to 192.168.1.1#53(192.168.1.1) for irc.ubuntu.com failed: connection refused.<br />
</blockquote><br />
If the same has happened to you, I suggest using <a href="irc://chat.freenode.net/ubuntu">chat.freenode.net</a> for a better IRC experience. :)<br />
<br />
P.S. I know, I know - long time no blog.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8338687188449962924.post-67084296041808935542008-12-29T23:16:00.014+01:002008-12-30T00:13:07.846+01:00How to change default locale (Ubuntu GNOME)<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF1KiWueT81GP35ZNpLOb33puK5Wz61hyG2NB8vGeZQYgP6_VDPFytrkCABhSiHYQZlWCe3NBlkovj2kQUXpWvTzGml8xU1BSqqc7F0rFnKxCFgilENleJwkVhuebekygFFoZ_ZmeuIPY/s1600-h/screenlets_en_GB_locale.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhF1KiWueT81GP35ZNpLOb33puK5Wz61hyG2NB8vGeZQYgP6_VDPFytrkCABhSiHYQZlWCe3NBlkovj2kQUXpWvTzGml8xU1BSqqc7F0rFnKxCFgilENleJwkVhuebekygFFoZ_ZmeuIPY/s200/screenlets_en_GB_locale.png" /></a> I have always been a fan of English as my main language while using the computer or computer-related terminology. Recently I've stumbled upon the <a href="http://www.screenlets.org/">screenlets</a> package (see picture or <a href="apt://screenlets">install debian package</a>).<br />The only problem is that using United States' default date is shown as <b><span style="color: #990000;">Month/Date</span></b>/Year (i.e. 29/12/2008), which is rather unattractive (hey - my eyes, my brain, my opinion, my choice!).<br /> After many unsuccessful tries of various commands, I've come up with a rather graphical-based solution to use the locale I preferred. Obviously, the best choice for me would be en_GB (Great Britain/United Kingdom), since I wanted to stick with English, but use the date format <b style="color: #38761d;">Date/Month</b>/Year.<br /> 1. System > Admnistration > Language Support<br />Or you can simply run the command: gnome-language-selector<br /> 2. Type in your password if asked to do so. (Make sure you're the adminsitrator, it might involve installing extra packages)<br /> 3. Install your language of preference.<br /> 4. Choose the language of your choice again as the "Default language".<br /> 5. Press "Apply" and click "OK".<br /> 6. Log out (System > Log out).<br /> 7. While viewing the Login screen, click "Options" (lower left corner in Ubuntu), then "Set Language" and select "System Default". It will ask you to restart the login screen (press "Yes").<br /> 8. When the login screen is restarted, you will be using the language of your preference with the appropriate locale! :) You should be able to check this out when you run the following command in Terminal (Applications > Accessories > Terminal):<br />locale<br /><pre><br />LANG=en_GB.UTF-8<br />LC_CTYPE="en_GB.UTF-8"<br />LC_NUMERIC="en_GB.UTF-8"<br />LC_TIME="en_GB.UTF-8"<br />LC_COLLATE="en_GB.UTF-8"<br />LC_MONETARY="en_GB.UTF-8"<br />LC_MESSAGES="en_GB.UTF-8"<br />LC_PAPER="en_GB.UTF-8"<br />LC_NAME="en_GB.UTF-8"<br />LC_ADDRESS="en_GB.UTF-8"<br />LC_TELEPHONE="en_GB.UTF-8"<br />LC_MEASUREMENT="en_GB.UTF-8"<br />LC_IDENTIFICATION="en_GB.UTF-8"<br />LC_ALL=<br /></pre><br /><br />Now, if you notice any problems:<br />1. Execute these commands in terminal:<br /><pre>sudo -s</pre><br /><pre>echo 'PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"' > /etc/environment<br /></pre><br />2. Reboot your computer.<br />3. Run the gnome language selector again, choose "English (United States)" (or whatever was the default language). Press Apply and OK. Run it once more and set it again to the language you want it to be ("English (United Kingdom)"), press Apply and OK.<br />4. Follow the steps <b>6, 7 and 8</b> above.<br />You ought to be able to have the default language and locale you selected!Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-8338687188449962924.post-14129542702378982652008-11-24T03:58:00.005+01:002008-11-24T04:19:10.556+01:00non-ASCII characters in usernames<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_7VElAOOFVdbIgXOEG7kWs1giXCi9CD3-k0DAQr4G0CP1jE_pQf9SSlUN3jfOak79TzHxFrOfwU9GFyctKAyaFG70AO6x3oncCT1HKgNoX2rrm9Kr6kI0wYfXG9gnNKJPWHSkKv_ddDA/s1600-h/Mona+ASCII.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_7VElAOOFVdbIgXOEG7kWs1giXCi9CD3-k0DAQr4G0CP1jE_pQf9SSlUN3jfOak79TzHxFrOfwU9GFyctKAyaFG70AO6x3oncCT1HKgNoX2rrm9Kr6kI0wYfXG9gnNKJPWHSkKv_ddDA/s200/Mona+ASCII.gif" /></a>Ever wanted a user name that is localised to the language you want, with your original name or surname and not only using Latin characters? Well, today I made a beautiful discovery!<br />
<br />
Although a lot of people claim it is not possible yet for GNU/Linux to understand characters other than ASCII, I've found that it can concerning user names - using the useradd command (not adduser).<br />
<br />
The actual problem seems to be a standard the unix commands have to follow:<br />
<a class="linkification-ext" href="http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html" title="Linkification: http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html">http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap03.html</a><br />
<br />
But it looks like the useradd accepts arbitrary usernames, which is cool! So I've tried my name in Greek:<br />
<pre>sudo useradd -m Σάββας</pre><br />
Then adding a password:<br />
<pre>sudo passwd Σάββας</pre><br />
And that is all that is required!! Maybe some programs aren't ready yet, but so far I've tried: terminal, console, firefox, rhythmbox, totem player. None of them returned any errors nor did they crash.Unknownnoreply@blogger.com4tag:blogger.com,1999:blog-8338687188449962924.post-41391032304040483202008-10-26T14:11:00.004+01:002008-10-26T14:27:00.382+01:00timekpr - Keep control of your computer usage<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwuS0kWUurQHDsKzR8suUZs5vbLaE70gdsEW9ABJ1D_A-YnUBR-Ia49sJphUtPXnJZFbBQwyKpbFtWVVVdGAEia71bQL0zD9EJDCpfajJV2k1Rzb7bqJcK4OF83FqY5EAVAG_7njwuPDA/s1600-h/timekpr100x100.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSF1NfuXQW6FsgwjmfdttX3bEJuFpGKF8tuMc-fbE0X1hznY62CR8c-E4iiqY9Hnc6fkS7H_KQV5WRsHvqNwPN2pCfrRicA9tb-WsfvD_6ln1BlniZobPWlzfydkpRpaP0EB9AOhFO6A4/s320-r/timekpr100x100.png" /></a>A rather new project, really reaaally <b>really</b> useful for parents and administrators that wish to limit their user accounts to a certain amount of login access duration or to limit accounts by defining access hours. Either way, it's a must have application, which I'm *ahem* actively co-developing! :)<br />
<br />
The project page can be found at <a href="http://launchpad.net/timekpr">LaunchPad</a>, the code is hosted at LaunchPad too! We have also set up a new blog for it at blogspot: <a href="http://timekpr.blogspot.com/">http://timekpr.blogspot.com</a>. There's a <b><span style="color: #cc0000;">voting poll</span></b> at the blog site, you might be interested to "give your click" to provide us with an orientation as to <b>which new toys should timekpr focus on</b>. ;)<br />
<br />
I'm hosting a mini-page regarding the Debian packages, built with Ubuntu in mind: <a href="http://savvas.radevic.com/timekpr">http://savvas.radevic.com/timekpr</a><br />
(until I find some time to learn to cope with uploading packages to a personal package archive ["PPA"] at Launchpad)Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8338687188449962924.post-27813489014592320992008-10-13T14:46:00.005+02:002008-10-13T16:25:08.794+02:00Openoffice 3.0 final.. finally!Today I noticed that the new version 3.0 of OpenOffice.org will be out, the open source/free desktop office bundle (that I adore). As osalt.com describes it:<br />
<blockquote> OpenOffice provides a great alternative to existing commercial office suites. It comes with word processor (<a href="http://www.osalt.com/openoffice-writer">Writer</a>), spreadsheet (<a href="http://www.osalt.com/openoffice-calc">Calc</a>), presentation (<a href="http://www.osalt.com/openoffice-impress">Impress</a>), drawing and graphing tool (<a href="http://www.osalt.com/openoffice-draw">Draw</a>), tool for creating equations and formulae (Math) and finally a database tool which also build reports and forms (<a href="http://www.osalt.com/openoffice-base">Base</a>). All components are multi-platform and multilingual. Development is sponsored by <a href="http://www.sun.com/">Sun Microsystems</a>.</blockquote>So I have two events to celebrate today, this and <b><span style="color: #cc0000;">my birthday</span></b>! :)<br />
<br />
Click on the following links to see:<br />
- the release announcement:<br />
<a href="http://www.openoffice.org/news/index.html">www.openoffice.org/news/index.html</a><br />
<a href="http://www.google.com/search?q=cache%3Ahttp%3A//www.openoffice.org/news/index.html">http://www.google.com/search?q=cache%3Ahttp%3A//www.openoffice.org/news/index.html</a><br />
<br />
- the new features:<br />
<a href="http://www.openoffice.org/dev_docs/features/3.0/">http://www.openoffice.org/dev_docs/features/3.0/</a><br />
<a href="http://www.google.com/search?q=cache%3Ahttp%3A//www.openoffice.org/dev_docs/features/3.0/">http://www.google.com/search?q=cache%3Ahttp%3A//www.openoffice.org/dev_docs/features/3.0/</a><br />
<br />
I've enclosed google cache links as an alternative, for some reason the openoffice.org site replies with '403 Forbidden' error.<br />
<br />
<div style="color: #38761d;"><span style="font-size: large;"><b>Update:</b></span></div>You can obtain the openoffice suite from torrents or mirrors such as:<br />
torrents: <a class="postlink" href="http://borft.student.utwente.nl/%7Eadrian/bt.php">http://borft.student.utwente.nl/~adrian/bt.php</a><br />
mirrorservice: <a class="postlink" href="http://www.mirrorservice.org/sites/download.openoffice.org/stable/3.0.0/">http://www.mirrorservice.org/sites/down ... ble/3.0.0/</a><br />
Filehippo (windows executable): <a class="linkification-ext" href="http://www.filehippo.com/download_openoffice/" title="Linkification: http://www.filehippo.com/download_openoffice/">http://www.filehippo.com/download_openoffice/</a>Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-8338687188449962924.post-28185783672139498702008-09-29T12:40:00.003+02:002008-09-29T12:52:43.806+02:00Firefox: "Secure connection Failed"<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmxu2YnXVU9ri1aU7wtKfk7xRwRmeyLZj3-7sEmbNtVRvZ05dzLojwYIlWqTPEPZcHgWnJVakaxzwMpi-3DgfP8nwEMZQ2wpmUPVp_wrvM1tGQ86T5IsoRUdBJAthQ9qz8hjaIxqHJpaE/s1600-h/pageloaderror_secureconnectionfailed1.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiy1W4cT_oPL24_0KqrU6wcdKh2EoPv5tTcUeUr3QBCPDnHxO5xTySfuB_tflS2sczSCxipB0dbrZgfbhpPjN-svqxY-WGKHEcPKQIBzfvbe4dSJs3usFMRdrFbBGO_tKbrYNTKhbR-4f4/s320-r/pageloaderror_secureconnectionfailed1.png" /></a>Visiting websites with secure connection enabled can sometimes lead to problems in Firefox. Websites just link their <b>https</b> certificate to whatever sub-domain they want or they redirect to another website without registering it properly. Mozilla Firefox 3 detects that "glitch" and adds an extra protection layer by stating the following error:<br />
<blockquote>Page load error<br />
Secure connection Failed<br />
<br />
*site* uses an invalid security certificate<br />
The certificate is only valid for *another site*<br />
(Error code: ssl_error_bad_cert_domain)</blockquote><br />
There's an easy way to resolve this, if you click on "<b>Or you can add an exception</b>" → "<b>Add exception</b>" → "<b>Get certificate</b>" → <b>Read</b> the reason it was invalid and if you're OK with the reason → "<b>Confirm security exception</b>".<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzzOPoqzTpsa_AE-HhheyEYrkJCfVBrYXnqXfSSRAS_sUBGSeEEknYdVPDyuTDRYO7uYwsOmPim4TnXuX-N6eaiCpLJ4lkcilmd93NPHsIIQAxLN2l8-bPViouHNOxxfrLRMWvIpvzqrA/s1600-h/pageloaderror_secureconnectionfailed2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnAetr6bwlKPP1n4GH2YjBu8uf006sq5T0AOQyIOI1auFWqyZ6Vk7WGY2Muvq1KBnGwQK666Cw2rirFytvIAXEIxi-RbbJ0uddRnrPWn_9fut_URy5aBKZ7XUiHV2stDexJ5pqgfDzHkc/s320-r/pageloaderror_secureconnectionfailed2.png" /></a></div>Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-8338687188449962924.post-22938942170880773712008-09-23T02:08:00.023+02:002008-09-23T04:22:38.960+02:00How to install Folding@home in Ubuntu using origami<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4m9CxVN2oGamrS737d-ItjNWvf44uJwwsWEqK83Vd_eri_jE9Tw4QiaJIg10kxN6TSadli4R_8il4HWl-1sc02zrjzMoU9fF5TOr1eJD1OnoPf78IOKJ-GrU8haMqaI36JMUeYo1Zxqo/s1600-h/229px-Heme.svg.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDV9SNnSyP6cuZNxd69B35r40JaKA_sN5sdHfcE5UnRti4yeZ5Op49LSGWPHZasY1wRTZFwyvSlppc8HTCz8sGvs37k04ssOqje3SfgFiEvyRQ9K8WL35EZlEb9Ku2fac7r-u-LcYEmtE/s200-r/229px-Heme.svg.png" /></a></div>This is a quick "how to" tutorial in order to provide some of your CPU time for a good cause, which is called Folding@home. As they explain it at the <a href="http://folding.stanford.edu/">F@h website</a>:<br />
<blockquote>Folding@home is a distributed computing project -- people from throughout the world download and run software to band together to make one of the largest supercomputers in the world. Every computer takes the project closer to our goals. Folding@home uses novel computational methods coupled to distributed computing, to simulate problems millions of times more challenging than previously achieved.</blockquote><br />
There are other projects out there, like <a href="http://boinc.berkeley.edu/">BOINC</a>. In that case, I suggest to install <b>boinc-manager</b> (menu Applications → Add/Remove) and check out <a href="http://boinc.bakerlab.org/rosetta/">Rosetta</a>.<br />
<br />
Now let's get down to business. You need to <a href="http://folding.stanford.edu/English/Download#ntoc2">pick a name</a>, which can be anything you like, as long as it's not taken - you can also pick a team, but that's optional. You do not need a password for a username, but you need one in order to create your own team.<br />
Tip #1: A person is called a "Donor" in F@h.<br />
<br />
Next is the application. Ubuntu is based on GNU/Linux, and the (good? :P) people of Stanford have created a console client. Despite the fact that we are left without a graphical interface, we can still get the client program and use it.<br />
<br />
It's time to visit our good ol' friend, the Terminal (or Konsole for KDE users). Once you start terminal (menu Applications → Accessories → Terminal) we will install the <b>origami</b> package:<br />
<pre>sudo apt-get install origami
</pre>Tip #2: Type in your password and press enter if you are asked to do so<br />
<br />
The following step is to download and install the f@h client program.<br />
The origami manual has several examples:<br />
<blockquote>origami install -u Joe -t 45104<br />
This example will install the Folding @ Home client to the local<br />
machine, reporting data as the Joe user as part of the 45104<br />
(TeamUbuntu) Team.<br />
<br />
origami install -u Joe -t 45104 -c1<br />
This example will install the Folding @ home client to the local<br />
machine, reporting data as the Joe user as part of the 45104<br />
(TeamUbuntu) Team, using the i386 Folding @ Home client and<br />
toggling the cron option to auto-stop between the hours of 8:00am<br />
and 5:00pm.<br />
<br />
origami install -u Joe -t 45104 -p amd64<br />
This example will install the Folding @ home client to the local<br />
machine, reporting data as the Joe user as part of the 45104<br />
(TeamUbuntu) Team, using the amd64 Folding @ Home client and<br />
toggling the cron option to auto-stop between the hours of 8:00am<br />
and 5:00pm.</blockquote><br />
Tip: If you are on your own and don't have <a href="http://fah-web.stanford.edu/cgi-bin/main.py">a team</a>, I urge you to join TeamUbuntu ( 45104 ) or UbuntuForums ( 45399 ).<br />
<br />
Tip #3: Don't know whether you have a 32-bit or 64-bit operating system (OS)? If you're not sure, execute this:<br />
<pre>uname -m
</pre>It shows whether you have 32-bit (x86/i386) or 64-bit (x86_64/amd64) OS. 64-bit users will want to fully use their processors, so they need to use the <b>-p amd64</b> argument.<br />
<br />
<b>In short</b>, the recommended command for 32-bit is:<br />
<pre>sudo origami install -u YourName -t 45104 -c1
</pre>..and for 64-bit is:<br />
<pre>sudo origami install -u YourName -t 45104 -c1
</pre><br />
Tip #4: origami installs a crontab if you use -c1 in its own system user 'origami'. If you want to edit the hours it starts/stops (after you install it), execute: sudo crontab -u origami -e<br />
<br />
Once your f@h client is installed, you have finished the installation! You can see how your folding process goes:<br />
<pre>sudo origami status
</pre><br />
Tip #5: Your origami configuration files are found in the /var/lib/origami/ folder. For example, my current CPU #1 configuration file is /var/lib/origami/foldingathome/CPU1/client.cfg<br />
<br />
Tip #6: You can give a small boost to your folding process by making it use really low CPU instead of running when it's just idle. Execute:<br />
<pre>sudo origami
</pre>Wait for it to stop, then run your text editor to edit the configuration file:<br />
<pre>gksu gedit /var/lib/origami/foldingathome/CPU1/client.cfg
</pre>Add the following at the bottom of the file:<br />
<blockquote>[core]<br />
priority=96</blockquote>Save and close your text editor, and restart origami:<br />
<pre>sudo origami start</pre><br />
Enjoy folding proteins folks! :) You'll actually be helping out various medical fields, such as Alzheimer's and Huntington's disease researching.<br />
<br />
Finally, take a look at these sites:<br />
<a href="http://en.wikipedia.org/wiki/List_of_distributed_computing_projects">http://en.wikipedia.org/wiki/List_of_distributed_computing_projects</a><br />
<a href="http://www.gridrepublic.org/">http://www.gridrepublic.org/</a><br />
<a href="http://game.bakerlab.org/portal/">http://game.bakerlab.org/portal/</a>Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-8338687188449962924.post-63678020036687351582008-09-12T02:15:00.000+02:002008-09-12T02:26:12.876+02:00Ranting developer<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEia9dTQSvyf2LW9ghV2M6om3iLmdNTNXX9N2tnl7EL5kj3S6LCBIR-6qi7ekM4A2Mkz4Or1NEOg5vFTkTU2ppcdplp8qzUXpPciZjACoWPXXkoFOW7Zzn-D4_TaUVLDov-IhSn3bXatAMs/s1600-h/clipart_angry_man.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivE_ouo_Nv0Ne4upoqC2pKjfaIdyyORwP3aMuhrkGXJ0ClwvVw6s7d8izVsvBmGE384PM3bbgyaFtKklEQUkp8LEFYo3RkFMxge1jdqjWq8nZQKFwUxi1ddGjMCvL9siWlg8E2PnquMLo/s320-r/clipart_angry_man.jpg" /></a>I recently stumbled upon an old thread about linux users searching for someone to create an autoit-like application for linux. <a href="http://www.autoitscript.com/forum/index.php?s=&showtopic=11277&view=findpost&p=234727">Starting from this post</a> the ranting begins, it's really fun, I went through the whole 5 pages laughing :)<br />
Sometimes people don't understand "No", that's why developers head to the aggressive "Let me say it again: No you idiot!"<br />
<br />
Nevertheless, if you're looking to automatize some of your basic daily work, you should be looking to learn <a href="http://www.linuxconfig.org/Bash_scripting_Tutorial">bash scripting</a> or even an advanced programming language such as perl or python - if you're still looking for something that handles windows and gui interface, try <a href="http://gambas.sf.net/">gambas</a> or <a href="http://www.redhat.com/magazine/020jun06/features/dogtail/">python-dogtail</a> (or <a href="http://people.redhat.com/zcerza/dogtail/">here</a>).Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8338687188449962924.post-66459876413083799392008-09-01T23:34:00.043+02:002008-09-02T16:14:37.171+02:00Keeping your Ubuntu cleanGNU/Linux is said to be one of the most stable operating systems in the market, which is why a lot of people prefer it as their server solution. But as a desktop, Linux and especially Ubuntu with GNOME, can get easily oversized without the proper care and before you know it, you end up with 1% free disk size of your root (or "/") partition; and taking up stress-relieve medicaments just doesn't seem right...<br />
<br />
Here's a list of things I tend to do when such crisis strikes:<br />
<ol><li><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYeLck0m3hopIX7xzw0l5pyydBf9i0sroAt1b6Og3X7RM_e8UVYuHyfGRKFQmCu5pPLiipq2viG0QItVuQ1TNn0fxkXREEXLRngiOdimwgqi00CeFPKwi6wNrv4wuYBJIU25bxvpe6FMw/s1600-h/clearrecentdocuments.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6OpT5hGYKQDMHQS7xKoBoTZM3YQYf3d4yz3s-YS3BJ-l6ksFOOHP3bQZdt8nnPdLR_6OzM4xqd2l8_-OuVINqprTTaBkS_mKlpEzJL5GF9nIs4IXGwGSWP5s6K4z3D9A7Mh_hAlAq4_Q/s200-r/clearrecentdocuments.png" /></a>Clear your Recent documents using the menu Places → Recent Documents → Clear Recent Documents</li>
<li>If you use chat (IRC or Instant messaging), clear your log files.<br />
The following list contains client applications and their default folder log location:<br />
I strongly recommend closing your applications before removing any log files!!<br />
<br />
<table style="border: 1px dashed red; margin: 5px;"><tbody>
<tr><td style="border-right: 1px dashed red;">irssi</td><td>$HOME/irclogs</td></tr>
<tr><td style="border-right: 1px dashed red;">xchat</td><td>$HOME/.xchat2/xchatlogs/</td></tr>
<tr><td style="border-right: 1px dashed red;">pidgin</td><td>$HOME/.purple/logs/</td></tr>
</tbody></table><br />
</li>
<li>After constantly installing and removing software, some leftover information might be just clogging your disk space for no apparent reason. The apt-based package management has two commands when you remove packages: <b>remove</b> and <b>purge</b>. The difference is that purge actually deletes the configuration files that are deliberately left there when you used remove, in case you want to install it again.<br />
a) But which packages have their configuration files left over? Run Terminal (head to menu Applications → Accessories → Terminal) and execute the following command:<br />
<pre>dpkg -l | grep -i '^rc' | tr -s ' ' | cut -d ' ' -f 2</pre>Another way to find these out it to head to System → Administration → Synaptic Package Manager → Click "Status" (<i>lower left corner</i>) → Select "Not Installed (residual config)"<br />
Now in the package list, right-click on the package that you wish to completely remove (aka purge) and select "Mark for Complete Removal". Then you press "Apply" and let it flow.<br />
Tip: Press SHIFT+A to select them all.<br />
<br />
b) Leftover package dependencies that were installed with your applications might still be around. You can clear them all out by executing the following in terminal:<br />
<pre>sudo apt-get autoremove --purge</pre><br />
c) Ubuntu packages are cached in the folder <b>/var/cache/apt/archives/</b>, which can also get clogged up by numerous packages that are either updated or not used anymore. You can solve that by executing in terminal:<br />
<pre>sudo apt-get autoclean
sudo apt-get update</pre>If you really want to clear <b>all</b> the packages archived:<br />
<pre>sudo apt-get clean
sudo apt-get update
</pre><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRZF4C59_VQCcTSp0xfRe9BY87zmnFFedsvrWjaz0YYNswXBP518BwEqQAFpWCVMgRPRqNZwJXqECNF1Z0fby3FH6ahamzISwnwQvFIAGBuWHrvyI85tO-D24Wtymq9xerZmpePl_drWw/s1600-h/clearobsoletepackages.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjofsTnQayx4sOqfD7Z3u7j_eDmi3A6vAA4K4YzA3tuTEnGSeUhgF8xaE64vf5NfxGoOv-FlffY6jKOc1fJnWT2NlEGYCBy-xVmgU9p6-AYaTOeTFe32MD3MeywxAbrdKUuLEQ71GgfDR0/s200-r/clearobsoletepackages.png" /></a><br />
d) To remove obsolete packages go to System → Administration → Synaptic Package Manager → Click "Status" → Installed (local or obsolete) → Mark the packages you wished to be completely removed (or preferably removed).<br />
<b>Warning:</b> These section includes packages that have been manually installed by third-party packages (not from ubuntu repositories), <b>if you need them, don't remove them</b>!<br />
</li>
<li>A lot of linux kernel versions in your GRUB boot menu? Time to get rid of them! Use step <b>3(d)</b>, and mark packages that begin with linux- for complete removal<br />
<b>Warning:</b> These section includes packages that have been manually installed by third-party packages (not from ubuntu repositories), <b>if you need them, don't remove them</b>!</li>
<li><br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxj3zjmwoEt262AsGKY8QGFjSD_nTYVqHQ6QEk_Vb2Y-oKf26hJtRfTZ0UtMyWOho9RKMa1nUpSjRoc9rIyv9wu6xf5mWaZPFIL_UGVBpR6lpQ0eNSFfuoRfES1CZsOEZgpDdAoTezwIs/s1600-h/searchgedittempfiles.png" imageanchor="1" style="float: right;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii9NnPaTpzUX5ozSy8ztXyocAS0SsGBD6ki65nHDHZdoSaP6p_7ePxjdD9pwjyFygpCL-Wcu8zodbo0n0TRtvmc2bpqeMRe4lA_1OW0DSTrZWxlqeMs5ULyk2WJnBvH4_9hoBB1eKtGdI/s200-r/searchgedittempfiles.png" width="80%" /></a>Clear the temporary files created with gedit - to do this, you have to search for them.<br />
Go to menu Places → Search → Click "Select more options".<br />
Now select "Show hidden and backup files" and click "Add".<br />
Also add the "Name matches regular expression". Next to this last one you will type <b>~$</b>, which will find all filenames that end with "~" character and most of them are temporarily created by gedit (gnome's text editor). Press "Find".<br />
Now you can select the files you want to delete and right-click → Move to trash.<br />
<br />
<b>Warning:</b> Some files are temporary application files that are deleted when you end the application. <b>It might be best not to mess around a lot with this one</b>.<br />
</li>
</ol><br />
<b style="color: red;">Update:</b><br />
6. Clear your temporary flash-related cached files found in <b>.macromedia</b> folder by executing this command in terminal:<br />
<pre>rm -rf $HOME/.macromedia/</pre>(thanks Simon!)Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-8338687188449962924.post-89680701188650682682008-09-01T15:27:00.005+02:002008-09-01T16:13:27.729+02:00Movie codec information - the gspot alternativeTo be clear, no, I'm not talking about the ladies' G spot :) But if you're looking for GSpot Codec Information Appliance alternative tool for GNU/Linux, you're definetely looking for a tool like <a href="http://www.integrazioneweb.com/themonospot">themonospot</a>!<br />
<div class="separator" style="clear: both; float: right;"><a href="http://www.integrazioneweb.com/themonospot/#screenshots"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz8B36ngvhqK9ShhElIYj3p9-fhn3irfJzvpyls4366THZwfrbN6V67LWn6hI0Bd_xz1YcdvgtG1m4tcQfmhFWhBFnMn3auTxbDQXD_hi1zkLyQAyjHlq3IlJ47duBzsWEIRHpA7gXJQo/s320-r/ubuntu_shadow_mini.png" /></a></div>The monospot is written in C sharp (C#) using the <a href="http://www.mono-project.com/Downloads" target="_blank">MONO Framework</a> and GTK#, licensed under GNU GPL, and it's a tool to extract information about various movie formats and reveals valuable information such as:<br />
<ul><li><span style="font-size: xx-small;">Video codec used</span></li>
<li><span style="font-size: xx-small;">Frame size</span></li>
<li><span style="font-size: xx-small;">Average video bitrate</span></li>
<li><span style="font-size: xx-small;">File size</span></li>
<li><span style="font-size: xx-small;">Total time</span></li>
<li><span style="font-size: xx-small;">Frame rate</span></li>
<li><span style="font-size: xx-small;">Total frames</span></li>
<li><span style="font-size: xx-small;">Info data</span></li>
<li><span style="font-size: xx-small;">Packet Bitstream</span></li>
<li><span style="font-size: xx-small;">User data (in MOVI chunk)</span></li>
<li><span style="font-size: xx-small;">Audio codec used</span></li>
<li><span style="font-size: xx-small;">Average audio bitrate</span></li>
<li><span style="font-size: xx-small;">Audio channels</span></li>
</ul>This could definitely help you dig out the codec used for a specific movie you're trying to view. There various packages available for download, among them Ubuntu, Opensuse, Fedora, Windows and many more!Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-8338687188449962924.post-67809791216207623782008-07-11T16:05:00.001+02:002008-07-11T17:40:10.127+02:00Bigger is better.. computer-wise!<div class="separator" style="text-align: center; clear: both;"><a href="http://en.wikipedia.org/wiki/Image:Burjdubai20feb.jpg" imageanchor="1" style="border: 0pt none ; background-color: transparent; margin-left: 1em; margin-right: 1em;"><img height="200" src="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c2/Burjdubai20feb.jpg/450px-Burjdubai20feb.jpg" style="border: 0pt none ;" width="150" alt="Burj Dubai" /></a></div>
Bigger is better when it comes to bits, and a really small difference to the bits addresses can make an enormous difference, although there might be some physical restrictions in order to realise some dreamy performances and capacities.<br />
<br />
After reading <a href="http://ubuntuforums.org/showthread.php?p=5364146">this post</a>, a very, very informative post about getting your 32-bit Ubuntu to work with more than 4GiB memory, I got a question born.. so how is all this limited? I soon dug a bit deeper about 32-bit and 64-bit differences (reading freak that I am) and got to <a href="http://en.wikipedia.org/wiki/64-bit#Memory_limitations">this wikipedia article</a>.<br />
<br />
Logically back in the 1980's, when the first personal computers were being developed, the processors were 16-bit and 24-bit. Their memory limitation is easy to be calculated: 2<sup>16</sup> (or 2^16, a short form without the use of superscript), likewise for 24-bit processors - they could support up to 2^24 bytes of RAM memory, so we have up to 64KiB (kibibytes) and 16MiB (mebibytes) RAM limitation respectively. Then came the <b>32-bit</b> processors which could hold up to <b>4GiB</b> of memory addresses.<br />
<br />
In the meantime, Intel developed an extension called "<a href="http://en.wikipedia.org/wiki/Physical_Address_Extension">Physical Address Extension</a>", which in short terms it allowed 32-bit processors to use up to <b>36 bits</b>, i.e. 2^36 = <b>64GiB</b> (Gibibytes). A very vast improvement!<br />
<br />
With the appearance of 64-bit processors it is possible to <b>virtually</b> use a really <b>huge</b> amount of RAM of 2^64 = <b style="color: rgb(255, 0, 0);">16 EiB</b> (<a href="http://en.wikipedia.org/wiki/EiB">exbibytes</a> or "exabytes"), but nowadays the problem is physical, as we can't produce such big amounts of memory - yet! Maybe in the near future, who knows. All I know is that I won't be the first person to test this <b style="color: rgb(153, 0, 0);">exa-beast</b> :)<br />
<br />
To sum up, bytes do matter - <b>vast colossal difference</b> for just a few more bytes!<br />
<br />
Note: During the writing of this post, I've learnt about the <a href="http://en.wikipedia.org/wiki/Byte">difference of Gigabyte (1000^3) and Gibibyte (1024^3)</a>, so I decided to respect the 2,4% difference and the correct use of GiB and KiB respectively using the <b>IEC</b> standard instead of <b>SI</b> :)Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-8338687188449962924.post-20177816664475371002008-07-04T22:17:00.001+02:002008-12-10T08:01:27.878+01:00How to run simple local php script files without apacheSome said it's not possible. I've busted my head trying to figure out an easy way to test simple php/html scripts, which would run locally using only php, but wouldn't require running an apache server locally.<br /><br /><div class="separator" style="text-align: center; clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEignlhUaJoeQqqA9v1jLX614HVgP8NK-mg14tC0Sa3joSyARkFxKBYPayA3snD5Y61PoNVm7eMIPYUhsB7yHM-jcczNTDOTo0BRhXVut9zxRij7sqSmMhWQrA6wo0AzD5cOBWgMa9ICb1E/s1600-h/phpview_sh.png" imageanchor="1" style="border: 0pt none ; background-color: transparent; margin-left: 1em; margin-right: 1em;"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4Rwc91-gUtqkohaZvbnj7hZm8c-rgxSnadJoTYsoibr5oQdG_3wtvAoLmJqyIeo4OnEGkAzMbGRho2MgbkWGj9PseAVE8-PZhHZIByggIDDWSV81H6BMWxSsmhHW1QpkyDYv5SMNMUAk/s320-r/phpview_sh.png" style="border: 0pt none ;" /></a></div><br /><br /><br />Well using two packages (which can be stripped to only one) I managed to create a bash script that will take the php script file and transform it to html (which is saved temporarily in the <b>current directory</b>), thus being able to run it easily in firefox. Here we go!<br /><br />Firstly, install the packages, in Ubuntu:<br /><br /><pre>sudo apt-get install php5-cli debianutils</pre><br />From these packages we'll use the <b>php</b> command (php5-cli) and the <b>tempfile</b> command (debianutils)<br /><br /><br /><br />Next we create the bash "phpview" convert script. Fire up the terminal (Applications > Accessories > Terminal):<br /><br /><pre>gedit $HOME/phpview.sh</pre><br />Inside place the following code:<br /><br /><pre>#!/bin/bash<br />file=`tempfile -d . -s .html`<br />echo "Creating file: $file"<br />php5 $1 > $file<br />firefox $file<br />echo "Press any key to delete the temporary html file or ctrl-c to stop this script and keep it"<br />read<br />echo "Removing $file"<br />rm $file</pre><br /><br /><br />Save and close the gedit text editor and make phpview.sh executable:<br /><br /><pre>chmod +x $HOME/phpview.sh</pre><br /><br /><br />That's about it, we can create a test php/html file:<br /><br /><pre>gedit $HOME/Desktop/hi.php</pre><br />Place in the following:<br /><br /><pre>#!/usr/bin/php5 <br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /><html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en"><br /><head><title>Moo</title></head><br /><body><?php echo "Hello world!"; ?></body><br /></html><br /></pre><br /><br /><br />Save and close.<br /><br />Now let's test it!!<br /><br /><pre>cd $HOME/Desktop<br />~/phpview.sh hi.php<br /></pre><br /><br /><br />Woo!Unknownnoreply@blogger.com1