A következő címkéjű bejegyzések mutatása: upgrade. Összes bejegyzés megjelenítése
A következő címkéjű bejegyzések mutatása: upgrade. Összes bejegyzés megjelenítése

2014. július 2., szerda

apt-offline és Ubuntu 14.04

A világhálótól hermetikusan elzárt gépemen Ubuntu 14.04 fut. Ahogy ilyen rendszereknél illik, időnként én is szerettem volna frissítést csinálni, meg persze alkalmazásokat telepíteni. Ezekhez a tevékenységekhez találták ki az apt-offline nevű programot.
Használatához kell egy internetkapcsolattal ellátott Ubuntu 14.04, amit Online-nak fogok nevezni a továbbiakban, az internetkapcsolat nélkülit pedig Offline-nak.

Az Offline gépre ilyen lépésekkel kell feltenni az apt-offline csomagot.

  1. Az Online gép termináljában add ki:
    sudo apt-get install -d apt-offline
    majd másold a letöltött apt-offline_<verzió>_all.deb csomagot a /var/cache/apt/archives/ könyvtárból a pendrive-ra!
    sudo apt-get install apt-offline
  2. Az Offline gépen másold a pendrive-ról a csomagot a /tmp könyvtárba, majd a terminálban add ki:
    sudo dpkg -i /tmp/apt-offline_<verzió>_all.deb
Ezzel a csomag feltelepült az Online és Offline gépre.

Első indításánál, mikor upgrade-et akartam csinálni, így reagált:

sudo apt-offline set /tmp/apt-offline.sig

Generating database of files that are needed for an update.
E: Command line option --simulate is not understood
ERROR: FATAL: Something is wrong with the apt system.

A hiba oka az, hogy az apt-offline a --simulate opcióval akarja meghívni az apt-get-et, ami valamiért nem támogatott. A probléma azzal orvosolható, ha az apt-offline csomagban kitöröljük az erre az opcióra való hivatkozást.

Mindkét gép termináljában add ki:
sudo sed -i 's/--print-uris --simulate update/--print-uris update/' /usr/share/pyshared/apt_offline_core/AptOfflineCoreLib.py

Most már használható az apt-offline parancs a következő módon.
Repository frissítésnél
  1. Az Offline gép termináljában:
    sudo apt-offline set /tmp/apt-offline.sig

    (A sig fájlot másold a pendrive-ra!)
  2. Az Online gép termináljában (a sig fájl pendrive-ról /tmp-be való másolása után)
    sudo apt-offline get /tmp/apt-offline.sig --bundle /tmp/apt-offline.zip --bug-reports --threads 5
    (A zip fájlot másold a pendrive-ra!)
  3. Az Offline gép termináljában (a zip fájl /tmp-be való másolása után)
    sudo apt-offline install /tmp/apt-offline.zip

Egy csomag installálásánál (a példában ez a csomag az vlc médialejátszó)

  1. Az Offline gép termináljában
    sudo apt-offline set /tmp/vlc-offline.sig --install-packages vlc

    (A sig fájlot másold a pendrive-ra!)
  2. Az Online gép termináljában (a sig fájl pendrive-ról /tmp-be való másolása után)
    sudo apt-offline get /tmp/vlc-offline.sig --no-checksum --bundle /tmp/vlc-offline.zip
    (A zip fájlot másold a pendrive-ra!)
  3. Az Offline gép termináljában (a zip fájl /tmp-be való másolása után)
    sudo apt-offline install /tmp/vlc-offline.zip

2013. június 5., szerda

LG GT540 frissítés

Hamarosan magyarul is...

ToDo with 2.1 factory SW (no rooted, network locked)
3 steps are needed:
i) FranceOrange SW install to enable fastboot
ii) Recovery toolkit install in fastboot mode
iii) xda-cm-9.1.0-IceCreamSwift-28102012 install
i)
1. Install LG drivers from the official LG site
2. Download FranceOrangeV20C_Fastboot.kdz
3. Download KDZ updater (KDZ_FW_UPD_EN.7z)
4. Install MSXML and KDZ updater in a same round with KDZ updater installer
5. Put FranceOrangeV20C_Fastboot.kdz into the KDZ updater directory
6. Turn off USB mass storage mode and turn on USB debugging on the phone
7. Launch KDZ updater (with administrative privileges, if necessary - Vista & Win7)
8. Set 3GQCT & PhoneMode=DIAG
9. Select FranceOrangeV20C_Fastboot.kdz as the update file
10. Connect the phone to the computer
11. Wait for Windows to install drivers, if needed
12. Press UPDATE
13. Reboot the phone after disconnected from the computer
ii)
1. Download CWM_Recovery_6.0.2.7_Flasheable.zip
2. Download AIO-Android-Toolkit
3. Unzip AIO-Android-Toolkit into C:\ (Can be placed anywhere else, but this case the script must be modified)
4. Unzip file recovery.img from CWM_Recovery_6.0.2.7_Flasheable.zip and copy it to folder Flash_Folder under AIO-Android-Toolkit
5. Turn off the phone
6. Press the camera button with the power button together until a black screen appears with backlight on after the LG logo screen - this is the fastboot mode
7. Connect the phone to the computer again
8. Wait for the new drivers (Android Bootloader Interface - WdfCoInstaller01007.dll in XP) to be installed on the computer. If necessary help Windows finding the files (Under C:\AIO-Android-Toolkit\files)
9. Launch AIO-Android-Toolkit
10. Select menuitem "3: FASTBOOT TOOLKIT" & press Enter
11. Select menuitem "2: YEAH!, LET'S START! :D" & press Enter
12. Select menuitem "3: FLASH SOMETHING TO MY PHONE" & press Enter
13. Select menuitem "5- Flash Recovery.img Only" & press Enter
14. Wait for message "RECOVERY FLASHED!"
15. Press any key
16. Select menuitem "6- Back to Fastboot Tool Main Menu."
17. Select menuitem "4: REBOOT MY PHONE, I'M FINISHED!"
iii)
1. Upload file xda-cm-9.1.0-IceCreamSwift-28102012.zip to the SDcard of the phone
2. Turn off the phone
3. Press HOME + POWER button for 15s, the phone will restart in Recovery Menu
4. Select "wipe data / factory reset" and select "yes".
5. Select "wipe cache partition" and select "yes".
6. Select "advanced" then "wipe Dalvik cache" and select "yes".
7. Select "install from sdcard zip" 'after "choose zip from sdcard", find the file xda-cm-9.1.0-IceCreamSwift-28102012.zip, select it and select "yes".
8. Wait until message "Install from sdcard complete".
9. Select "reboot system now"