Recently in Software issues Category

Here is the result of many tries:

1. Create a startup (live, bootable) USB with the newest Ubuntu version. I created such a USB with Ubuntu 10.04 netbook edition on my Transcend 4GB SDHC using the Startup Disk Creator from the System menu.

2. Boot the system from the external startup (live, bootable) USB and choose 'Try Ubuntu'.

3. Make a backup copy of the old SSD using the dd command:
sudo dd if=/dev/sda1 | gzip > /media/<your_media_name>/ssd_backup/drive.img.gz
In my case, I copied the primary partition of my old SSD (/dev/sda1) to my internal Transcend 33 GB SDHC:

ubuntu@ubuntu:~$ sudo dd if=/dev/sda1 | gzip > /media/5240-EE34/ssd_backup/drive.img.gz
14249592+0 records in
14249592+0 records out
7295791104 bytes (7.3 GB) copied, 983.893 s, 7.4 MB/s
ubuntu@ubuntu:~$

4. Shut down the computer and replace the old SSD with the new one.

5. Reboot the system from the external startup (live, bootable) USB and choose 'Try Ubuntu'.

6. Format the new SSD using the Disk Utility from the System menu (use Master Boot Record partitioning).
In my case it was an Integral Mini PCIe MLC 64GB recognized by the Disk Utility as 62 GB Hard disc ATA PATA SSD.

7. Create new primary, extended and swap partitions using the GPartEd from the System menu.
In my case it was a 59 GB primary partition (ext4, ver. 1.0, bootable, 0x83: /dev/sda1) and 2,6 GB extended partition (0x05; dev/sda2) with embedded 2,6 GB linux swap space (0x82; /dev/sda5). Apply all changes from the Edit menu -> Apply all changes.

8. Reboot the system using the external startup USB. Delete the 59 GB primary partition and create a new primary partition with the size of the old disk. In my case it was a 7.7 GB partition. Apply all changes.

9. Then restore the backup copy of the old SSD primary partition using these commands:

cat /media/<your_media_name>/ssd_backup/drive.img.gz | gunzip | sudo dd of=/dev/sda1

In my case, this was the result:

ubuntu@ubuntu:~$ cat /media/5240-EE34/ssd_backup/drive.img.gz | gunzip | sudo dd of=/dev/sda1
14249592+0 records in
14249592+0 records out
7295791104 bytes (7.3 GB) copied, 658.326 s, 11.1 MB/s
ubuntu@ubuntu:~$

10. Shut down the computer, remove the external bootable USB.

11. Then boot the system. Check the SSD. The primary partition is equal to that of the old SSD. In my case it was 8.1 GB.

12. Shut down the computer, insert the external bootable USB and boot the system.

13. Resize the primary partition using GPartEd.

If you can't manage with the resizing of the new SSD primary partition in the described way, try to install the Ubuntu on the new SSD instead of step 7, then boot the system from the external USB and do the steps from 8 to 13.

May be there is a simplier way (see here or here etc.) but I couldn't manage with it:)

A bug report published on Nov-21-2009

I use two keyboard layouts in Ubuntu 9.10: Croatian (Croatia US keyboard with Croatian letters - default) and Bulgarian (Bulgaria Traditional Phonetic). I set these layouts immediately after installing Ubuntu 9.10 Netbook Remix on my Dell Mini 9. A week later I noticed that another keyboard layout was added to these layouts in the Keyboard Preferences Layouts tab (hr,bg    us,phonetic). When I right clicked on the keyboard indicator and selected Groups item I saw my keyboard layouts doubled, i.e.:

Croatia US keyboard with Croatian letters
Bulgaria Traditional Phonetic
Croatia US keyboard with Croatian letters
Bulgaria Traditional Phonetic

When I changed between the keyboards, the keyboard indicator changed in the following way: Hrv, Bgr, Hrv2, Bgr2 ("2" was displayed like an index). I tried to remove the additional keyboard layout (or group) by removing it from the Keyboard Preferences Layouts tab but after rebooting the computer this layout appeared again. I looked on the Internet for information about such a bug and found some similar cases which were fixed by adding "setxkbmap" to the Startup applications. I also added "setxkbmap" to the Startup applications but unfortunately after rebooting my computer the additional keyboard appeared again. Then I looked for more information and found suggestions to add options "XkbLayout" and "XkbVariant" to xorg.conf file. Unfortunately I wasn't able to find such a file in /etc/X11/ directory, so I created it in this directory and put in it the content of a basic Intel xorg.conf (found here). Then I added an Input device section:

Section "InputDevice"
    Identifier    "Generic Keyboard"
    Driver        "keyboard"
    Option        "CoreKeyboard"
    Option        "XkbRules"    "xorg"
    Option        "XkbModel"    "pc104"
    Option        "XkbLayout"    "hr,bg"
    Option        "XkbVariant"    "us,phonetic"
EndSection

Finally, I saved the file and rebooted the computer. There was no effect at all: the additional keyboard layout appeared again.


Comment added on Nov-24-2009:

I kept trying to find a solution. Here is my [temporary and not perfect] solution:
When I booted the system I checked the Layouts tab in Keyboard preferences (right clicked on the keyboard indicator). Under Selected layouts I saw three lines: Croatia US keyboard with Croatian letters (marked as default), Bulgaria Traditional Phonetic and hr,bg    us,phonetic. I marked the third line (hr,bg    us,phonetic) as default and removed the first two lines. Then I rebooted, right clicked on the keyboard indicator, selected Groups and saw only two layouts: Croatia US keyboard with Croatian letters and Bulgaria Traditional Phonetic (not doubled!). In Layouts tab in Keyboard preferences window, under Selected layouts there was a single line: hr,bg    us,phonetic, marked as default. Unfortunately, when I switched between the layouts a third layout indicated with '??' appeared. When right clicked on the keyboard indicator ('??') and selected the Show current layout menu item, the Croatia US keyboard with Croatian letters appeared in the Keyboard layout window and the header of the window was 'Keyboard layout'. When I selected Show current layout with Hrv keyboard indicator the header of the Layout window was: 'Keyboard layout "Croatia US keyboard with Croatian letters" ' and when selected Show current layout with Bgr keyboard indicator the header of the Layout window was: 'Keyboard layout "Bulgaria Traditional Phonetic" '. Now I have to make a choice between two bugs:)


Comment added on Nov-25-2009:

After the updates on Nov. 25, 2009 (later also noticed after the updates on Jan. 5, 2010), I noticed a slight change of the keyboard layout switching behaviour: when I switched between keyboards, there was an 'idle' press of the layout change key (in my case it is the left Win key) (or click on the indicator) between Bgr and Hrv keyboards. Yesterday it was indicated by '??' on the keyboard indicator, today it wasn't indicated at all but when I right clicked on the Bgr keyboard indicator after this idle press and selected the Show current layout menu item, the Croatia US keyboard with Croatian letters appeared in the Keyboard layout window and the header of the window was 'Keyboard layout' (not: 'Keyboard layout "Croatia US keyboard with Croatian letters" ' or 'Keyboard layout "Bulgaria Traditional Phonetic" ').


Noticed on Dec-2-2009:

When changing from Bgr keyboard there is an 'idle' press, the layout indicator is not changing, but in fact the Croatian keybord is activated. 'Show current layout' menu item shows the Croatia US keyboard with Croatian letters, but the header of the window is 'Keyboard layout' only. The second press after the Bgr keyboard changes the keyboard to the Croatia US keyboard with Croatian letters, layout indicator is Hrv and the header of the current layout window is 'Keyboard layout "Croatia US keyboard with Croatian letters" '.


Noticed on Dec-3-2009:

When I booted the computer the layout switching behaviour was as on previous day. After I started gbgoffice the behaviour changes as I noticed it on Nov-24-2009. I installed gbgoffice on Nov-1-2009 (GTK BG Office assistant - version 1.4 - installation from Ubuntu Software Center. I wasn't able to install version 1.8 because of qt3 problem which I couldn't solve).


On my desktop computer where Ubuntu Desktop 9.10 is installed, the situation is the same.

Ubuntu 9.10 computers in Windows network

| No Comments | No TrackBacks
How to see my Ubuntu 9.10 computers from the other computers in my Windows network?

First, I should open to edit my smb.conf file:

    gksudo gedit /etc/samba/smb.conf

Next, in the Global Settings section I should enter my workgrop name, for example 'HARCOM', then my netbios (computer) name, for example 'harry-desktop':

    #============= Global Settings =============

    [global]

    ## Browsing/Identification ###

    # Change this to the workgroup/NT-domain name your Samba server will be part of
       workgroup = HARCOM
       netbios name = harry-desktop

Then I should save the file by clicking on "File" > "Save" and Close gedit. Next I should enter samba password and restart samba with the following commands:

    sudo smbpasswd -a sambauser
    New SMB password:
    Retype new SMB password:
    sudo /etc/init.d/samba restart
     * Stopping Samba daemons ...                     [ OK ]
     * Starting Samba daemons ...                      [ OK ]

where 'sambauser' is a username used to access the Ubuntu computer from another (Ubuntu or Windows) computer.

Once I'm finished, I should be able to browse and connect to Windows shares by choosing "Files and folders" from the Main menu, opening any folder or media and selecting from the File menu "Connect to Server..."

On the Connect to Server windiow I should select Windows share service type and input the server (i.e. computer) name (e.g. harry-desktop, p4, d915), or input in the Location bar, e.g.: smb://harcom/ (Windows shares on harcom), smb://d915/ (Windows shares on d915), smb://harry-desktop/ (Windows shares on harry-desktop), smb://p4/ (Windows shares on p4) etc.

After that, from Ubuntu File Browser -> Go -> Network I could see the Windows network computers and from the Windows Explorer -> My Network places -> Entire Network -> Microsoft Windows Network I could see Windows network computers including Ubuntu computer(s). Unfortunately, this doesn't works flawlessly, especially on Ubuntu computers and/or wireless network computers (Ubuntu and Windows).

A more reliable way is to enter the IP in such a way:
For Ubuntu PCs: in File Browser Location field:
smb://192.168.1.100/
smb://192.168.1.103/
etc.

For Windows PCs: in Windows Explorer Address field:
\\192.168.1.100\
\\192.168.1.103\
etc.

If not installed yet, I should install the packages:

winbind, samba, smbfs and smbclient

If the samba package is installed but the Ubuntu computer is not seen from the Windows computers in any way, I should reinstall (for example, from Synaptic Package Manager) these packages:
    samba
    samba-common
    samba-common-bin
    libwbclient0
    python-smbc
    winbind
    smbfs
    smbclient
    nautilus-share
    libsmbclient

After that, I should reenter samba password and restart samba.

I tried many ways to make my Windows computers see my Ubuntu computers and vice versa, but the method described above only worked. Unfortunately, I had to reinstall these packages many times until I succeed to find this method.
Based on: Howto: Fix Windows share browsing issues
See also: Access Ubuntu computer from windows computer

How to install Windows fonts in Ubuntu

| No Comments | No TrackBacks
It's easy. Just copy .ttf files for exaple to /usr/share/fonts/truetype:

sudo cp {path_from_where_you_copy}*.ttf /usr/share/fonts/truetype

where the {path_from_where_you_copy} is for example:
/home/harry/Documents/

Then run:
sudo fc-cache -fv

If you want to integrate additional (including .ttf) fonts in the OpenOffice.org software, proceed as follows:

   1. In the File Browser go to the {openoffice_install_path}/program directory. For me, it was /usr/lib/openoffice/program, and double-click spadmin, then click 'Run'. The Printer Administration window appears.
   2. Click 'Fonts...' button at the bottom of the window.
   3. The Fonts dialog lists all fonts added for the OpenOffice.org software. You can select and remove fonts using the Remove button or add new fonts with the Add button.
   4. Click Add. The Add Fonts dialog appears.
   5. Enter the directory from which you want to add the fonts. Press the ... button and select the directory from the path selection dialog or enter the directory directly.
   6. A list of the fonts from this directory appears. Select the fonts you want to add. To add all the fonts, click Select All.
    7. To add the selected font(s) click the OK button.

That's all.


Unicode in Movable Type

| No Comments | No TrackBacks
Now I am writing in Bulgarian: Сега пиша на български. This is the Bulgarian alphabet: АаБаВвГгДдЕеЖжЗзИиЙйКкЛлМмНнОо ПпРрСсТтУуФфХхЦцЧчШшЩщЪъЬьЮюЯя. Now I am writing in Serbian with Cirillics: Сада пишем ћирилицом на српском. These are the letters that are different from Bulgarian Cyrillics: ЈјЊњЉљЏџЋћЂђ. Now I am writing in Croatian: Sad pišem na hrvatskom. These are the letters that are different from Latin letters: ŽžŠšĐđČčĆć.

Writing in Unicode now is possible thanks to SureSupport. They helped me to solve the problem with Unicode and now we can see the text in South Slavic languages. They added the following lines to my mt-config.cgi file:

PublishCharset utf-8
SQLSetNames 1

They also changed the path to Perl in my mt.cgi file to be:

#!/usr/bin/perl5.8 -w

In this way my MT installation is now using Perl 5.8.

I just finished installing Movable Type 4!

Welcome to my new blog powered by Movable Type. This is the first post on my blog and was created for me automatically when I finished the installation process. But that is ok, because I will soon be creating posts of my own!
Evo, sad idem dalje! Uredio sam ovaj clanak na sledeci nacin: kliknuo sam na naslovni link pa se otvorio prozor. Ukucao sam ovaj tekst, a zatim cu kliknuti na digme Save da ga snimim. Dakle, ovo je moj prvi blog - uspeo sam da ga stvorim, uredim i snimim!
Nazalost, ispalo da mi MySQL baza ne dozvoljava da koristim slova sa kvacicama, a za cirilicu i da ne govorimo! Nisam znao pa sam stvorio bazu sa uporedjenjem (collation) 'utf8_general_ci' umesto sa 'utf8_unicode_ci'. Ali u stvari ne znam u cemu je problem. Do sada nisam koristio MySQL bazu. Moram da pronadjem i otklonim taj problem jer mi se ne svidja da pisem bez kvacica.

Pages

Powered by Movable Type 5.2.10

About this Archive

This page is an archive of recent entries in the Software issues category.

Other issues is the previous category.

Whistleblowing is the next category.

Find recent content on the main index or look in the archives to find all content.