Linux Mint 18.1 (Ubuntu): Polskie znaki i klawiatura UK.

full

Celem przedstawionego układu klawiatury jest jak najmniejsza ingerencja w układ klawiatury ‘UK’ i  zgodność nadruku klawiszy z tym co się pisze.

Możliwe że ten sposób zadziała [może nawet  na każdym Linuksie], jednak robisz to na własną odpowiedzialność.

Są trzy opcje: prosta, trudniejsza i łatwa z zastąpieniem plików. Efekt:

https://goo.gl/photos/p7c5MLdreYsqQa5Y6

  1. Prosta
  • do otwarcia pliku z ustawieniami, trzeba wpisać w terminalu
sudo gedit

lub

sudo xed

wcisnąć enter. gedit i xed to proste programy tekstowe w Linux-ie.

Jeden z nich posłuży do zmiany tekstu w plikach konfiguracyjnych do klawiatury. Pracowałem na tym pierwszym.

przechodzę do lokalizacji zaznaczonej na czerwono

/usr/share/X11/xkb/symbols

przeciągam plik gb na edytor tekstu gedit – otworzy się plik tekstowy.

Zaznaczam cały tekst z tego linku [gistfile1.txt ] i kopiuję na miejsce tekstu, który jest w pliku gb [poprzedni tekst trzeba skasować]

Aby odwrócić zmiany trzeba skasować linie 4 do 47  [włącznie]

W opcji ‘Keyboard‘ >> ‘Layout‘ po dodaniu ‘English (UK)‘ domyślnie ustawią się polskie ogonki.

Powinno działać bez restartu. Ewentualnie trzeba usunąć i ponownie dodać język ‘English (UK)‘.

pod klawiszem 2 będzie ” ² ⅛

3£ ³

4$  €¼

koło klawisza enter będą @ i #  

r© R ®

tT ™ ß

.> ÷ ≥

,< × ≤

fF Æ æ


2)      Wersja trudniejsza. Trzeba   wyedytować kilka plików – zysk to:

w menu pojawi się  wybór ‘English (UK + Polski)‘ no i możliwość powrotu do oryginalnego ustawienia ‘English (UK)‘ bezpośrednio z ustawień Linuksa

(edycja odbywa się jak w punkcie 1 – przez przeciąganie plików na otwarte okno programu gedit)

Tak więc: 2 pliki w folderze rules [base.lst & evdev.lst] muszą mieć dodaną →linię←

  pol             gb: English (UK + Polski)

+  pliki z rozszerzeniem xml  [ base.xmlevdev.xml] muszą mieć dodane →linie←

Ponadto – tekst w pliku gb [ten sam plik co w punkcie 1 ], musi być zastąpiony przez kod pod tym linkiem.

Po zakończonej operacji musi się pojawić opcja jak na tym zrzucie ekranu.

Powinno działać bez restartu. Trzeba dodać język ‘English (UK + Polski)‘.


3. Jeśli ktoś chce zastąpić pliki bezpośrednio:

paczka gotowych plików

Wystarczy otworzyć plik docelowy za pomocą opcji ROOT jak na załączonym obrazku i skopiować moje pliki w odpowiednie miejsca.

Otwieranie foldera jako ‘root’


folder as root


Inne znaki

Słowa kluczowe:

  1. Polskie znaki na klawiaturze UK lub angielskiej – Linux
  2. Polskie ogonki na brytyjskiej klawiaturze / GB
  3. Jak używać polskich liter w Anglii na Linuxie
  4. Polskie znaki klawiatura: UK English / PL
  5. Polska klawiatura w Anglii [UK]
  6. Polish fonts , UK’s keyboard layout on Ubuntu?
  7. Polskie litery na angielskim systemie [Linux]

^

^

^

^

Advertisements

Linux Mint: Moving /home onto separate partition

Tested and worked on Mint 8.1 Serena.

Source: https://help.ubuntu.com/community/Partitioning/Home/Moving

If I want independent /home partition.

1. Run LiveCD/LiveUSB to partition disk as pleased [backup data if don’t want any risk in loosing it]

  • to partition use GParted – if not present – install from repository [Software Manager]
  • if password is set – needs to be entered whenever needed
  • format partition as ext4

2. Create mount point [copy-paste text in dark black field into TERMINAL and hit enter]

  • red text means this needs to be taken from my Linux as it is different to everyone or could  change after next installation
    sudo mkdir /mnt/home

3. Find out the UUID= for your data partition

sudo blkid

200017

4. Open your fstab file and make an entry to auto-mount the data partition on boot

gksu gedit /etc/fstab

if nothing is happening install from repository gedit                 

5. Add these two lines to the end of fstab file

  • Ext4 formatted partition
# Mount HOME partition under /mnt/home

UUID=ceee2524-7df2-4d21-a1f7-9e7e55c722cc  /mnt/home ext4  defaults  0  2

6. Run in terminal

sudo mount -a

for now newly created /home partition will be mounted under /mnt/home

7. Below command will copy everything from original /home folder to newly created /mnt/home

sudo rsync -aXS --exclude='/*/.gvfs' /home/. /mnt/home/.

8. Change fstab file

gksu gedit /etc/fstab

replace /mnt/home  with /home

# Mount HOME partition under /home

UUID=ceee2524-7df2-4d21-a1f7-9e7e55c722cc  /home ext4  defaults  0  2

6. Run in terminal

sudo mount -a

now newly created /home partition will be mounted under /home

7. Run application Disks

2017

after highlighting home partition it will show /home if everything was done correctly

to make sure all is OK, system can be rebooted

*mnt – this location is universal and will always work, although different one can be used, and other guides can use instead of mnt other locations like: home / media

Linux Mint: creating and using data partition in already installed system

Worked on Mint 8.1 Serena

If I want separate data partition.

  1. Run LiveCD/LiveUSB to partition disk as pleased [backup data if don’t want any risk in loosing it]
  • to partition use GParted – if not present – install from repository [Software Manager]
  • if password is set – needs to entered whenever needed]
  • format partition as ext4

2. Create mount point [copy-paste text in dark black field into TERMINAL and hit enter]

  • red text means this needs to be taken from my Linux as it is different to everyone or could  change after next installation
    sudo mkdir /mnt/data

3. Mount the partition [start application to find out which one it is: Preferences >> Disks]

screenshot-from-2017
sudo mount /dev/sda4 /mnt/data

4. Take ownership of the mount point

sudo chown -R yourusername: /mnt/data

5. Find out the UUID= for your data partition

sudo blkid

screenshot-from-2017

6. Open your fstab file and make an entry to auto-mount the data partition on boot

gksu gedit /etc/fstab
  • if nothing is happening install from repository gedit                                                                 

7. Add these two lines to the end of fstab file

  • if it is an Ext4 formatted partition
# Mount DATA partition under /mnt/data

UUID=ceee2524-7df2-4d21-a1f7-9e7e55c722cc  /mnt/data ext4  defaults  0  2
  • if it is NTFS formatted partition
# Mount DATA partition under /mnt/data

UUID=747D4C9C1EFAD1F2     /mnt/data     ntfs-3g     defaults,windows_names,locale=en_US.utf8     0     0

8. Save the changes to fstab and close the text editor.

9. Run in terminal

sudo mount -a

10. Run application Disks  again

screenshot-from-2017

after highlighting data partition it will show /mnt/data if everything was done correctly

to make sure all is OK, system can be rebooted

*mnt – this location is universal and will always work, although different one can be used, and other guides can use instead of mnt other locations like: home / media

source: https://community.linuxmint.com/tutorial/view/1609

Flashing HTC Desire Bravo A8181 [not branded] with new smaller ROM

Don’t use this guide without specialist supervision!

My Desire run out of internal memory. Pretty obvious it is going to happen quickly considering how small it is.

The only way is flash, I thought. And I will write about my experience with flashing.

I need some small ROM that have a decent opinion among many users, rather than few. My choice happened to be CyanogenMod Official. The other one I want to try is MIUI. But with this one the naming, and number of mods make it too complicated to say what supposed to be good, as you can guess people can be very unspecific in what they actually use.

I will provide the links to www which I found very useful when flashing + add my annotations.

First off all I’ve used Linux to root the handset. Never used it before; easy. I’ve lost few hours on Windows trying to root as drivers didn’t cooperate with me, without success.

Needed: handset, USB cable, USB stick with FAT32 partition, time.

Procedure [important: read following references: XDA, unlockr, XDA2 as I’m not as detailed – and use this notes in case you will stuck only]

  1. Go to http://unrevoked.com/ Click the handset you want to root. It will take you to confirmation page with handset name you’ve just choosen -> click unrevoked3 -> Download for Linux [file name atm: reflash.tar.gz]. Copy this file later on USB stick.
  2. On Desire, Menu -> Settings -> Applications -> Development -> make sure USB Debugging is checked ON
  3. Turn off wi-fi when rooting
  1. Download program http://www.sarducd.it/downloads.html install & open
  2. Open Linux Live tab -> Click on Slax, it will ask you to download it. Agree. Wait for completing download.
  3. USB stick into USB socket. In program click Search USB, from the drop down menu choose letter of  your USB drive – make sure it is the one as it will wipe all data from it.
  4. Click icon below with USB stick picture, it will create bootable device. When done restart PC and make it boot from this stick.
  5. Start Linux
  6. Connect phone to PC, enable battery charging mode
  7. Unpack reflash.tar.gz onto desktop -> run unpacked program -> it will ask you yet to agree with t&c and then root the handset.
  8. In my case it restarted my phone 2 times before the root has finished. After first time it booted as after normal restart. Just wait for program on PC screen to tell you Completed – then it is done!
  9. Switch off phone -> Press and hold Vol- button and press Turn on button wait 5 sec for a new screen,
  10. From the menu [using volume buttons]  navigate to and highlight Recovery -> press Turn on button [works like enter on PC] -> you are in Clockwork Recovery now -> backup and restore -> click with trackball -> backup – it will backup your system in case…
  11. restart
  12. at this point, after restart it seemed that my phone bricked as it went into constant restart loops 😦 what I did is: I went back into backup and restore and then I have performed restore – it restored exactly same system I’ve just backed up. Problem solved.
  1. Another step, re-flashing HBOOT, from what I read unrevoked-forever and AlphaRev is being used to do it. In my case only the latter worked.
  2. Go to http://alpharev.nl/ download AlphaRev HBOOT reflash utility [it is ISO file]
  3. Burn it to some rewritable medium [cd-rw, dvd-rw], run PC from this medium while the phone is being connected to PC [charging battery mode] -> wait for it to finish flashing -> read messages on phone screen, it will tell you when it will be safe to disconnect phone and PC -> after this message, phone will boot into bootloader, this is time to restart phone.
  1. Install Titanium Backup from the Market.
  2. Backup all application on your phone that you want to keep along with app data [as far as I can see all settings are being backed up -after recovering them]
  1. alchemistar – this blog has few custom ROMs listed for you to easily follow the links to them
  2. XDA forum is probably more acurate tho
  3. Download *.zip file of a chosen mod onto SD card
  4. Read all the mod specific instructions before flashing your phone with them!
  5. Go into Clockwork Recovery mode and in the same place where previously you have chosen backup and restore now choose update from zip file then pick the ROM you want to flash the Desire with. It will finish shortly.
  6. Restart device twice when flashing finishes. In my case I had a lot of force closes after first one.
  7. Download Google set of applications like Market for install if Mod doesn’t include them: http://goo-inside.me/gapps or
  8. Restore applications with Titanium Backup if you have *.apk installer for it on SD card

Other refernces:

http://theunlockr.com/2010/09/21/how-to-load-a-custom-rom-on-the-htc-desire-2/, http://forum.xda-developers.com/showthread.php?t=696189

http://www.wohradio.com/ – Ibisa like electronic music

Get mp3 out of the container [with Wimad Trojan]

Avast 4.8.1195.0 2008.07.18 WMA:Wimad
AVG 8.0.0.130 2008.07.18
BitDefender 7.2 2008.07.18
CAT-QuickHeal 9.50 2008.07.17
ClamAV 0.93.1 2008.07.18
DrWeb 4.44.0.09170 2008.07.18 Trojan.WMALoader
eSafe 7.0.17.0 2008.07.17
eTrust-Vet 31.6.5965 2008.07.18
Ewido 4.0 2008.07.18
F-Prot 4.4.4.56 2008.07.18
F-Secure 7.60.13501.0 2008.07.18 Trojan-Downloader.WMA.GetCodec.d
Fortinet 3.14.0.0 2008.07.18
GData 2.0.7306.1023 2008.07.18 Trojan-Downloader.WMA.GetCodec.d
Ikarus T3.1.1.34.0 2008.07.18
Kaspersky 7.0.0.125 2008.07.18 Trojan-Downloader.WMA.GetCodec.d
McAfee 5341 2008.07.18
Microsoft 1.3704 2008.07.18

Above yo can see how could the virus be recognized by different AV programs

mp3 you have that includes virus/ trojan likely will not play properly on many music players.

If you want to recover this mp3’s, download and install:

http://winff.org/html_new/

Then set it up for recovering mp3:

Edit > Presets
Preset Name = DemuxMP3
Preset Label = DemuxMP3
Preset Command Line = -vn -acodec copy
Output File Extension = mp3
Category = Audio
Add/Update -> Save
Add files to recover (Add…); Convert to…, Audio _>  DemuxMP3; Convert

In my case it just created also few small files that didn’t have any music in it – meaning you need to find this files again anyway.

Another thing is how can you find out that some mp3s are not in the right container.

For this purpose I have used:

http://mp3gain.sourceforge.net/

if you add all your mp3 files into this program and do ANALYSIS only it will not be able to scan all files within different container, thus showing you empty lines next to a file.

It is not ideal tho as this process is lengthy cause it also analyses files for other stuff

more tags: .wma, .wmv, .asf, trojan, .mp3,

Samsung M8800 flashing/ removing lock

Aside

All info I pass on to you I have gained on:

http://forum.gsmhosting.com/vbb/f200/m8800-arabic-downloader-direct-link-721457/

http://forum.gsmhosting.com/vbb/archive/t-746575.html

And it’s as follows.

Download:

  1. You need drivers for phone USB connection with a PC:
    http://www.samsung.com/uk/support/detail/supportPrdDetail.do?menu=SP01&prd_mdl_cd=GT-M8800DKAXEU&srchword=GT-M8800
    and install on a PC; when next time you will connect mobile to PC, you should get the baloon tip that driver for the device has been succesfully installed.
  2. M8800XEHL2.zip (http://www.mediafire.com/download.php?0gtzyhkjind)
  3. MultiLoader_V5.56.exe (http://www.mediafire.com/download.php?mmozz5wi0ln)
  4. M8800_download_new.pdf (http://www.mediafire.com/download.php?toxmzzztu1n)
  5. files from number 2,3,4 try to also download from
    https://rapidshare.com/files/2858718347/it_all.rar

Install drivers file from paragraph [1], file form [2] unpack anywhere, [3] is the file that commences actual flashing. [4] includes instructions (in Italian) how to set MultiLoader.

Now when phone disconnected from PC, press at the same time 3 buttons, and hold about 5-10 seconds:

  • volume down [same for zooming in camera]
  • camera button
  • switch on/off button

On a screen you get few lines of text […BOOT loader…]

Get USB and connect PC with handset.

Start Multiloader.

Look into .pdf set as on picture and open appropriate files in Multiloader. You can’t be wrong it will look for specific file extensions and [Boot] will need whole [BootFiles] folder to be selected for it.

Only this item is being called

Rsrc2_M8800 [low] or

I’ve choose [low] and it worked OK for me, don’t know what is for.

At the end compulsory click [Port Search]

Connection between PC and handset will appear at the bottom-left

Now click [Download] to start flashing procedure.

You will se the progress of works on the phone screen and in MultiLoader, on the right side. Wait couple of minutes [it took me ~10 min]. But most importantly, software at the end will say it has finished. Next your phone will restart automatically and switch on your unlocked, flashed handset.