Last active
December 25, 2017 11:54
-
-
Save alptugan/bfd094c2f74832c1496858b6aa7748eb to your computer and use it in GitHub Desktop.
Setup Guide Cross Compiler on RPI (Ubuntu Mate) & Mac Virtual Box (Linux Kali)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment