$ screen /dev/cu.usbserial 115200
The documentation says that the port is called /dev/cu.PL2303-00001004
, but my port was /dev/cu.usbserial
. $ sudo screen /dev/ttyUSB0 115200
Uncompressing Linux... done, booting the kernel. Welcome to the rescue system recovery login:
login: root password: raspberry
# mount -o remount,rw /dev/mmcblk0p1 /mnt
# cd /mnt/os # rm -r Arch/ Pidora/ RaspBMC/ data_partition/ OpenELEC/ RISC_OS/
We reserve the only option to install Raspbian in / mnt/os/Raspbian/flavours.json
{ "flavours": [ { "name": "Raspbian - Boot to Scratch", "description": "A version of Raspbian that boots straight into Scratch", "feature_level": 123900 }, { "name": "Raspbian", "description": "A Debian wheezy port, optimised for the Raspberry Pi", "feature_level": 123900 } ] }
after editing: # cat /mnt/os/Raspbian/flavours.json { "flavours": [ { "name": "Raspbian", "description": "A Debian wheezy port, optimised for the Raspberry Pi", "feature_level": 123900 } ] } #
# vi /mnt/os/Raspbian/flavours.json
dd
- delete the line;5dd
- delete 5 lines;<esc>:x
- exit with saving;<esc>:q!
- exit without saving changes./mnt/recovery.cmdline
adding a runinstaller
to the beginning (if it is not there) and silentinstall
to the end: # vi /mnt/recovery.cmdline
i
- switch to insert mode;a
- switch to insert mode with the next character;<esc>
- exit edit mode. # cat /mnt/recovery.cmdline runinstaller quiet vt.cur_default=1 coherent_pool=6M elevator=deadline silentinstall
top
command - after the installation is completed, a reboot will occur and now Raspbian will boot: ... [ 13.281406] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null) [ 13.785784] EXT4-fs (mmcblk0p6): re-mounted. Opts: (null) Raspbian GNU/Linux 7 raspberrypi ttyAMA0 raspberrypi login:
login: pi password: raspberry
Linux raspberrypi 3.12.22+ #691 PREEMPT Wed Jun 18 18:29:58 BST 2014 armv6l The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. NOTICE: the software on this Raspberry Pi has not been fully configured. Please run 'sudo raspi-config' pi@raspberrypi:~$
raspi-config
ssh
and make further settings by connecting via ssh via a local network. $ sudo apt-get update $ sudo apt-get upgrade -y
$ sudo apt-get install wpasupplicant wireless-tools $ sudo vi /etc/wpa_supplicant/wpa_supplicant.conf
network={ ssid="<ssid>" psk="<>" key_mgmt=WPA-PSK }
Scratch
, with whom, unlike a python, my son is already familiar, I need a GUI.x2go
- unfortunately, while there is only a client in the repository for Raspberry, the server had to be collected from the sources a little by updating the instructions from here : sudo apt-get install -y debhelper libpng-dev libjpeg-dev zlib1g-dev quilt libfontconfig1-dev libfontenc-dev libfreetype6-dev libxmltok1-dev libxml2-dev autoconf pkg-config x11proto-core-dev man2html-base git clone http://code.x2go.org/git/nx-libs.git cd nx-libs/ git checkout redist-server/3.5.0.27 dpkg-buildpackage -us -uc cd .. git clone http://code.x2go.org/git/x2goserver.git cd x2goserver/ git checkout 4.0.1.18 dpkg-buildpackage -us -uc cd .. git clone git://code.x2go.org/cups-x2go.git cd cups-x2go/ git checkout 3.0.1.0 dpkg-buildpackage -us -uc cd .. sudo apt-get install -y autotools-dev libqt4-gui libglib2.0-dev m4 qt4-qmake libqt4-dev dh-autoreconf git clone git://code.x2go.org/pinentry-x2go.git cd pinentry-x2go git checkout 0.7.5.7 dpkg-buildpackage -us -uc cd .. sudo apt-get install -y libc6 lsof bc openssh-server openssh-client libconfig-simple-perl pwgen libdbd-pg-perl libdbd-sqlite3-perl libfile-basedir-perl libcapture-tiny-perl adduser xauth psmisc net-tools sshfs x11-apps x11-session-utils x11-utils x11-xfs-utils x11-xkb-utils x11-xserver-utils fontconfig xinit xfonts-base x11-common sudo apt-get install -y libxml2 libjpeg8 libpng12-0 libstdc++6 zlib1g libgcc1 sudo dpkg -i x2goagent_*.deb nxagent_*.deb libnx-x11_*.deb libxcomp3_*.deb libxcompext3_*.deb libxcompshad3_*.deb sudo dpkg -i x2goserver_*.deb x2goserver-xsession_*.deb x2goserver-extensions_*.deb
Source: https://habr.com/ru/post/240283/
All Articles