D.Y.S based on armbian.img


  • 0

    “How to install Mate” Download Image from “Mega” https://mega.nz/#F!gRslDSyA!V38QMj8__wT9qPB6hBB_-A password : orangepi

    D.Y.S. for Orange PI PC2 and any other PI based on “armbian”.img. Remember PI it’s not a cookie lagging not acceptable!
    Gratings. Please support developers.!!! They are done marvelous job! P lase donate at-lise $5 to Armbiam they deserving it. If you being hesitating to bay Orange PI PC or PC2 now is the right Time !!!

    Disclaimer: I’m not developer and not a programmer I’m only user.
    This “How to” designated to man like me “GUI and SU” or copy and paste.

    1. Please read all article to the end before starting commit, and to know when to stop.
    2. Mining of > # < is acknowledgment or explanation or option.
    3. If you are using XFCE4 and desired to upgrade to Ubuntu 17.10 or 18 it is impassable in different attempts -system end-ups totally broken, an solution for it is to install MATE witch will speed-up PI enormously for micro-board!
      From the start you need 4GB SD micro-card (with porpoise to have small
      size of backup image) on PC;
      Armbian Desktop Image from https://www.armbian.com/download/
      @@@ login:root password 1234
      and Orange PI << in my instances is Orange PI PC2 > Pleas put heat sink on it 3cm x 3.5cm will be OK>, Assembly don’t have Mali450 and focused on stability and usefulness of board.
      This assembly of Mate on top of xfce4, and it is not main line Mate from repository as is.{which one is very glitchy and slow}. By the way my favorite app. on PI is KiCAD and FreeCAD. Armbian image came with Swap of 499MB installed. From my observation from HTOP system hanging out (look like Swap is temporary file dump, not a memory expansion), be cause of it I put additional swap 512MB act as RAM and it relieved the CPU from hanging. Make your experiment and you will see what I’m talking about.

    OK lets begin:
    Write image to SD card with: in Linux Disks app, Etcher https://etcher.io/ ;windows Win32DiskImager , insert in OPI board and fire the “cracker”.

    #login:root password 1234
    Change root password and create a User (it’s YOU) >user and root password can be the same remember IT. as you need it for SU (super user)

    At first start plug-in INTERNET “Wifi” and go to >Armbian config< to activate
    network, change Time Zone. etc.
    and from now on you will need ‘XFCE’ Terminal. {Copy and Paste commands in to Terminal}

    To change screen size:

    sudo h3disp 
    [sudo] password for (user): 
    Usage: h3disp [-h/-H] -m [video mode] [-d] [-c [0-2]]
    sudo apt-get update
    sudo apt-get install synaptic menu deborphan apt-xapian-index tasksel software-properties-gtk gdebi
    sudo apt-get upgrade

    #>go to Applications->Settings->Software & Updates→Ubuntu Software < and unlock all repos.< → Updates < and unlock all repos.< → Developer Options < and unlock all repos.< → Close → Reload.

    sudo apt-get update
    sudo reboot
    #Optional
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    #SWAP for 512M needed for virtual RAM expansion! PI’s low on RAM.
    #For working PI not for Back-up .img add swap if you work with 512MB or 1024MB of #RAM: (It take same time wait for it). Look in
    sudo htop
    #PI came to be alive!
    sudo dd if=/dev/zero of=/swapmem bs=1024 count=524288
    sudo chown root:root /swapmem
    sudo chmod 0600 /swapmem
    sudo mkswap /swapmem
    sudo swapon /swapmem
    sudo nano /etc/fstab

    add line file /etc/fstab:(/ ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro 0 1
    tmpfs /tmp tmpfs defaults,nosuid 0 0
    /swapmem none swap sw 0 0

    /swapmem none swap sw 0 0
    #inside of nano: Ctrl+O →Enter→Ctrl+X
    reboot

    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    #This info about SWAP totally optional, just for options!
    #SWAP of 2GB
    sudo apt-get install dphys-swapfile

    SWAP To disable:

    sudo apt-get purge dphys-swapfile dphys-config
    sudo chmod -x /etc/init.d/dphys-swapfile
    sudo swapoff -a
    sudo rm /var/swap
    sudo systemctl disable dphys-swapfile

    #Check SWAP with
    sudo systemctl status dphys-swapfile

    #Then to re-enable it looks like all you have to do is:
    sudo chmod +x /etc/init.d/dphys-swapfile
    sudo nano /etc/dphys-swapfile
    sudo dphys-swapfile setup
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
    #Now installing programs for future integration to Mate 1.12
    sudo htop (to see performans of PI)

    sudo apt install rtmpdump xserver-xorg-video-amdgpu va-driver-all ubuntu-mate-lightdm-theme mate-session-manager libwacom-bin libllvm3.8 libinput10 libimlib2 ffmpeg engrampa-common libcaja-extension1 gvfs-bin caja-common caja libpoppler-glib8 libatrilview3 atril libsoup2.4 lshw ntpdate module-init-tools libdrm-exynos1 libdrm-omap1 libssh2-1 libsoup-gnome2.4-1 libnl-3-200 libndp0 libnl-genl-3-200

    sudo apt-get install libvdpau1 libvdpau-sunxi1 xserver-xorg-video-fbturbo libump p7zip-full p7zip-rar libcedrus1 a10disp

    sudo apt update
    sudo apt upgrade

    #do not reboot!!!

    #This will install the complete MATE desktop including a few extras (Most Users Will Want This)
    sudo apt-get install mate-desktop-environment-extras

    #Now need to modefy /etc/lightdm/lightdm.conf

    as su edit file /lightdm-gtk-greeter.conf with # ALL FILE except [greeter]

    sudo nano /etc/lightdm/lightdm-gtk-greeter.conf
    #it will be like this after editing:

    [greeter]
    #background = #888a85
    #theme-name = Numix
    #icon-theme-name = Numix
    #default-user-image=/usr/share/pixmaps/armbian.png
    #indicators = ~language;~power
    #screensaver-timeout = 0
    #font-name = Sans 11
    #user-background = false

    Ctrl+O→ Enter→ Ctrl+X to Exit

    sudo dpkg-reconfigure lightdm
    sudo dpkg-reconfigure lightdm-gtk-greeter
    sync
    sudo sync
    #do not reboot!!!
    #Now need to remove nodm (<nodm> is alaud to go in GUI without #login window - and #creates huge mess)
    sudo systemctl disable nodm
    sudo systemctl enable lightdm

    sudo nano /etc/default/nodm
    #Edit it
    NODM_ENABLED=false

    sudo update-alternatives --config x-session-manager

    make choise of -1 (no NODM)

    #If it goin to make a problem in >APT< then just remove it by:
    sudo apt remove nodm
    sudo dpkg-reconfigure lightdm-gtk-greeter
    sudo dpkg-reconfigure lightdm
    sync
    sudo sync
    sudo service lightdm restart

    #login and restart
    reboot
    sudo apt install xdg-user-dirs
    xdg-user-dirs-update

    sudo apt install caja-gksu debfoster bleachbit pluma
    reboot

    #From now on tutorial will load to text editor by refold, it make easier to copy and paste.

    #Right now you have fast and stable xfce4 integrated in Mate1.16 environment, check it in “System->About Mate”, lovely is’t it?
    #Go and test Armbian config from “System->Control Center->Armbian config.”
    #Go Bleachbit and clean, Bleachbit(as-root) clean – to make SD card slim.
    #Now make backup image of SD card with OS on your computer.{Linux by Disks app, windows Win32DiskImager}
    #If you are satisfied install your favorite apps and be happy.
    #If not yet lets move forward!

    #Go in Control Center->Synaptic in Synaptic
    #Settings→Filters→New→De-select All. mark Residual-config, Orphaned.{and rename it} Orphaned {save it by} OK
    #Go Custom Filters->Orphaned and clean it or live it. If You continiu to Mate 1.18 then live it!

    #Now go Bleachbit (in setings do not touch >APT<;in System >Free disk space< >Localizations< >Memory< >Rotated logs< and everything els mark it ->Preview-> Clean
    #Now go Bleachbit (as root) mark every thing except >Free disk space< and >Memory< ->Preview-> Clean
    #to make SD card slim.
    sync
    sudo sync
    #shutdown
    #Now make backup image of SD card with OS on your computer.
    #{Linux by Disks app, windows Win32DiskImager}
    #If you are satisfied install your favorite apps and be happy.
    #If not yet lets move forward.!

    #How to Install MATE 1.18 and ubuntu 17.10

    Now on will be tricky.

    #System->Control Center->Software & Updates->Other Software->Add…
    #insert per line:

    deb http://ports.ubuntu.com/ artful main

    deb http://ports.ubuntu.com/ artful main restricted universe multiverse

    deb http://ports.ubuntu.com/ artful-updates main restricted universe multiverse

    deb http://ports.ubuntu.com/ artful-backports main restricted universe multiverse

    deb http://ports.ubuntu.com/ artful-security main restricted universe multiverse

    #-> XClose->Reload.

    NOW is up to you if you want to “expand” your OS on SD card! From 4GB->6GB.

    #OK start Synaptic in Control Center next to Reload and mark upgrades under #“python” apply and

    #next in Synaptic to Reload and mark #upgrades under “libx” apply and

    #next in Synaptic to Reload and mark #upgrades under “libd” apply and restart.

    ##After restart I’m noticed, from HTOP CPU running now as multi-trading!##

    #next start Synaptic in Control Center next to Reload and mark #all upgrades in #section >Apply< choose ONLY DOWNLOAD, after download completed, shut down and make #back-up image. Be save.
    #now you can apply ALMOST all upgrades.(IT well ask you to remove >xserver-xorg-#video-fbturbo< and #>sunxi4< IT IS ESSENTIAL DRIVERS without IT hole work going to toilet!!!(Need to find what is trying to remove it in section >Quick filter< type >“xserver”< fined the >xserver-xorg-#video-fbturbo< then click on it and goto upper bar to->Package->Lock Version and mark it., same to >xserver-xorg-video-armsoc-sun4i< and >libnm-util2< and >libnm-glib4<.( Other wize no internet and no video) close Sinaptic.
    #Next go to System->Welcome->Software->Fixes->Resolve Broken Packages->Config Interrupted Pack-s ->Update Sources List->Upgrade Installed Pack-s.

    ##In time of upgrade use of RAM 989MB and SWAP 774MB CPU load 60% of 1.2 GHz#

    #Next: in time of upgrade will be change of configuration every where.>change< accept ,
    #if wifi go down - after reboor start xfce and armbian-config in wifi section clear 3 times and start to connect it’s OK.

    sudo apt install xdg-user-dirs
    xdg-user-dirs-update
    sync
    sudo dpkg-reconfigure lightdm-gtk-greeter
    sudo dpkg-reconfigure lightdm
    sudo service lightdm restart
    reboot

    #Now go Bleachbit (in setting do not touch >APT<;in System >Free disk space< >Localizations< >Memory< >Rotated logs< and everything els mark it ->Preview-> Clean
    #Now go Bleachbit (as root) mark every thing except >Free disk space< and >Memory< ->Preview-> Clean

    ########################################################################
    After words:
    Now we have Mate-1.18.0 GTK3 and as I sed from the begining no
    Mali450 unlocked, little bet lagy. CPU usage 1% and RAM 219MB

    Pleas support developers and pressure them to unlock full potential of hardware as Mali450, no credits to me .
    All credits to developers -they are brilliant!!!
    ########################################################################

    Now you can make image from SD.
    And after install your favored apps.

    #optional to slim SD card
    sudo debfoster (pulseaudeo) Y to keep

    #Little more for pure man who dont have 4GB SD cart
    #Shrinking images on Linux, all credits to
    ##https://softwarebakery.com/shrinking-images-on-linux##
    #1 enable loopback:
    sudo modprobe loop
    sudo losetup -f
    #now put yor image on desktop for drag and drop, by replaising 'myimage.img’
    sudo losetup /dev/loop0 myimage.img
    sudo partprobe /dev/loop0
    #load the device using GParted:
    sudo gparted /dev/loop0
    #the gparted window loaded with image, you need to resized it <Warning>
    #in table first # 4 -make shore it is kept 4, or your image never be bootable
    now choose to resize and drag a slider with giving aloance of 500MB at lease
    #or you will get error.If error happend give it more (dont be scrudge)
    #let it finish operation and clouse window.
    #loopback-device unmount:
    sudo losetup -d /dev/loop0
    #Shaving (triming) the image:
    fdisk -l myimage.img

    my output:

    #fdisk -l ‘/home/z/Desktop/OPI-PC2-MATE1.18-SWAP512MB.img’
    #Disk /home/z/Desktop/OPI-PC2-MATE1.18-SWAP512MB.img: 14.9 GiB, 15931539456 bytes, 31116288 sectors
    #Units: sectors of 1 * 512 = 512 bytes
    #Sector size (logical/physical): 512 bytes / 512 bytes
    #I/O size (minimum/optimal): 512 bytes / 512 bytes
    #Disklabel type: dos
    #Disk identifier: 0xe0f52a96

    #Device Boot Start End Sectors Size Id Type
    #/home/z/Desktop/OPI-PC2-MATE1.18-SWAP512MB.img1 8192 12828671 12820480 6.1G 83 Linux
    #Pay attention to numbers, we interested in >End<
    my output: >truncate --size=$[(12828671+1)*512] ‘/home/z/Desktop/OPI-PC2-MATE1.18-SWAP512MB.img’<

    in next comand [(#######+1)*512] replayce aproperly!

    truncate --size=$[(#######+1)*512] myimage.img

    #Now check propertis of .img

    ###############################################################################

    #Same comon apps for use : Download-manager Uget with integrated aria2
    #for Cromium, Youtube downloader with GUI, Smplayer and Smtube, Qbittorrent

    #How to Install YouTube-DL GUI via PPA in Ubuntu:

    sudo add-apt-repository ppa:flexiondotorg/youtube-dl-gui
    sudo apt update
    sudo apt install youtube-dlg

    #Install the uget-chrome-wrapper:

    sudo add-apt-repository ppa:slgobinath/uget-chrome-wrapper
    sudo apt update
    wget https://raw.githubusercontent.com/slgobinath/uget-chrome-wrapper/master/build/linux/install_uget_chrome_wrapper.sh
    sudo sh install_uget_chrome_wrapper.sh

    #to install uget in chom go to>>>
    #https://chrome.google.com/webstore/detail/uget-integration/efjgjleilhflffpbnkaofpmdnajdpepi

    sudo apt install uget aria2 qbittorrent

    #smplayerdev / smplayer

    sudo sh -c "echo ‘deb http://download.opensuse.org/repositories/home:/smplayerdev/xUbuntu_16.04/ /’ > /etc/apt/sources.list.d/smplayer.list"
    sudo apt-get update
    wget -nv https://download.opensuse.org/repositories/home:smplayerdev/xUbuntu_16.04/Release.key -O Release.key
    sudo apt-key add - < Release.key
    sudo apt-get update
    sudo apt-get install smplayer

    sudo add-apt-repository ppa:rvm/smplayer
    sudo apt-get update
    sudo apt-get install smtube

    #add APT in Software & Updates fix If missing akey
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <PUBKEY>
    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

    if broken APT:

    sudo rm /var/lib/apt/lists/* -vf
    sudo apt-get clean
    sudo apt-get update
    sudo apt-get upgrade

    WARNING: TO RESIZE FILESYSTEM RUN (incrise in size):
    sudo fs_resize or sudo /usr/local/bin/fs_resize

    1. Test:

    run a basic test

    glxgears

    install and run a GL benchmark

    sudo apt-get -y install globs
    /usr/lib/globs/benchmarks/GL_pointz/gl_pointz

    try to run a real game

    sudo apt-get -y install billard-gl
    billard-gl

    If you decided to go Ubuntu Bionic -then go beck to tutorial part when we add repository and change from artful to bionic, end visit Welcome Center.

    artful/bionic is the next LTS distro.

    Add software - Direct Install .deb file
    Using dpkg from command line

    sudo dpkg -i package_name
    In case of dependency problems are reported, after using dpkg, install dependencies using

    #Force to install
    sudo apt-get install -f

    for network
    sudo dpkg-reconfigure resolvconf

    sudo apt install network-tools

    ###################################################################################@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    How to alter CPU frequency?
    Some boards allow to adjust CPU speed.

    nano /etc/default/cpufrequtils
    Alter min_speed or max_speed variable.

    service cpufrequtils restart

    ######################################################################################################################################################################



  • 1

    Working link for .img : https://mega.nz/#F!gRslDSyA!V38QMj8__wT9qPB6hBB_-A

    Happy New Year Russia!!!





Похоже, подключение к PiBoard было разорвано, подождите, пока мы пытаемся восстановить соединение.