markdown 安装指南RPI(Ubuntu Mate)和Mac虚拟盒(Linux Kali)上的交叉编译器

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 安装指南RPI(Ubuntu Mate)和Mac虚拟盒(Linux Kali)上的交叉编译器相关的知识,希望对你有一定的参考价值。

## On Your Mac Computer
Disable .DS_STORE files to prevent Samba issues
> http://downloads.binaryage.com/Asepsis-1.5.2.dmg

### before installing please run this command in Terminal.app:
> touch ~/.no-asepsis-os-restriction

or Blue Harvest is good at removing these on the fly.

## On your RPI
### Install Samba Server 
Create a mount point
In order to avoid permissions problems in creating, deleting and moving files the following commands create a shortcut to the root file system and mount it as a virtual drive.

> cd /

> sudo -i

> mkdir /rootfs

> mount --bind / /rootfs

The following steps will allow the above mount command to run everytime the RPi is rebooted. Otherwise you will have to run it manually

> sudo nano /etc/fstab

add the line
> /               /rootfs         none    bind

It should look something like this:

> proc            /proc           proc    defaults          0       0

> /dev/mmcblk0p1  /boot           vfat    defaults          0       2

> /dev/mmcblk0p2  /               ext4    defaults,noatime  0       1

> /               /rootfs         none    bind

> \#a swapfile is not a swap partition, no line here

> \#   use  dphys-swapfile swap[on|off]  for that

Press CTRL+o to save the file
Press CTRL+x to exit nano

#### Install Samba
From a Shell run these commands

> sudo apt-get install samba samba-common-bin

The next command will prompt you for a password you will need to remember. Use raspberry if you want to keep the default as the pi user's defaults

> sudo smbpasswd -a pi

> sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.old

> sudo rm /etc/samba/smb.conf

> sudo nano /etc/samba/smb.conf

You should now be editing the configuration file. Paste this into it:
> [global]

> workgroup = HOME

> netbios name = SAMBA

> server string = Samba Server %v

> map to guest = Bad User

> log file = /var/log/samba/log.%m

> max log size = 50

> socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

> preferred master = No

> local master = No

> dns proxy = No

> security = User


> \# Share

> [Data]

> path = /rootfs

>  valid users = pi

> read only = No

> create mask = 0777

> directory mask = 0777

Press CTRL+o to save the file
Press CTRL+x to exit nano
> sudo /etc/init.d/samba restart

You should now be able to mount your Raspberry Pi via the address 
> smb://your.raspberry.pi.ip/Data

You user will be pi and the password will be raspberry or whatever you set it to above

Print LINUX_KERNEL_VERSION
> uname -r

PRINT BINUTILS_VERSION
> ld -v

PRINT GCC_VERSION
> gcc --version

GLIBC_VERSION
> ldd --version

MPFR_VERSION


GMP_VERSION

MPC_VERSION

ISL_VERSION

CLOOG_VERSION

以上是关于markdown 安装指南RPI(Ubuntu Mate)和Mac虚拟盒(Linux Kali)上的交叉编译器的主要内容,如果未能解决你的问题,请参考以下文章

树莓派ubuntu系统RPi引脚库权限问题 不使用sudo操控RPi库方法

树莓派安不了ubuntu

text 自定义bootscript从RPi2 / 3上的USB启动Ubuntu Core

markdown Elixir安装指南

FPV Camera(RPI3+V2.1) | wfb_ng Release 23.01 | Ubuntu 20.04 xfce软解测试

ubuntu20 安装markdown