воскресенье, 20 сентября 2020 г.

SP Flash Tool, Linux и фриз при прошивке

В консоли имеем: 
connect DA end stage: 2, enable DRAM in 1st DA: 0
COM port is open. Trying to sync with the target...

 

проблема в modemmanager - можно снести на время прошивки

sudo dpkg --remove --force-all modemmanager

sudo systemctl restart udev

понедельник, 12 августа 2019 г.

Mint reminder and stickynotes

sudo apt-add-repository ppa:umang/indicator-stickynotes
sudo apt update
sudo apt install indicator-stickynotes
Alt+F2  - indicator-stickynotes



indicator-stickynotes
sudo apt install alarm-clock-applet
Alt+F2  - alarm-clock-applet

вторник, 16 апреля 2019 г.

NFS share directory

On server (192.168.1.2)

apt-get install nfs-kernel-server nfs-common

/etc/exports
/data 192.168.1.3(rw,insecure,nohide,all_squash,anonuid=1000,anongid=1000,no_subtree_check)

/data - shared directory (server)
192.168.1.3 - remote server (client)

sudo /etc/init.d/nfs-kernel-server restart
or refresh config
sudo exportfs -a


On client (192.168.1.3)

apt-get install nfs-common

sudo mount -t nfs -O uid=1000,iocharset=utf-8 192.168.1.2:/data /Nfs_Mount

/Nfs_Mount - mount point for shared directory

пятница, 12 апреля 2019 г.

Mint postinstall

Appearance

Menu -> Settings -> Appearance ->
Style = Mint-X-Teal
Icons = Mint-X-Aqua
Fonts = Ubuntu (Light) 11-12, Monospace 10-11. Disable anti-aliasing, Hinting Full, 96 DPI



Apt

/etc/apt/sources.list.d/official-package-repositories.list - change ftp.byfly.by/pub/ubuntu

apt install aptitude mc ssh x2x libreoffice xscreensaver

apt install ttf-mscorefonts-installer



Chrome

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'

sudo apt-get update

sudo apt-get install google-chrome-stable



Java

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install maven gradle oracle-java8-installer oracle-java8-set-default

add to /etc/environment or /etc/profile

JAVA_HOME=/usr/lib/jvm/java-8-oracle

reload in terminal: source /etc/environment




Idea

echo "fs.inotify.max_user_watches = 524288" >  /etc/sysctl.d/90-idea.conf

sysctl -p --system


Maven issue "Loading archetype list..." : http://mldav.blogspot.com.by/2015/12/intellij-idea-loading-archetype-list.html

Build,Execution,Deployment → Build Tools → Maven → Importing need to set "VM options for importer = -Xmx1024m"


понедельник, 1 октября 2018 г.

Mysql 5.7 root empty password and Ubuntu

sudo mysql -u root

mysql> use mysql;

mysql> update user set plugin='mysql_native_password' where User='root';

mysql> set password = password('_new_root_password_');

[mysql] flush privileges;

check:

mysql -u root -p
enter new root password

пятница, 21 сентября 2018 г.

Diff for binary files

diff -y <(xxd foo1.bin) <(xxd foo2.bin) | colordiff

среда, 19 сентября 2018 г.

Viber and Ubuntu 18.04

Download Viber
sudo dpkg -i viber.deb
sudo aptitude install -f
sudo aptitude install libqt5gui5


1. After executing command
sudo dpkg -i viber.deb

....
dpkg: dependency problems prevent configuration of viber:
 viber depends on libcurl3; however:
  Package libcurl3 is not installed.
 viber depends on gstreamer1.0-pulseaudio; however:
  Package gstreamer1.0-pulseaudio is not installed.
....

2. So now we have to fix dependencies
sudo aptitude install -f

Try to start Viber

/opt/viber/Viber
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.
Reinstalling the application may fix this problem.
Aborted
3. Install Qt5
sudo aptitude install libqt5gui5