Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
vms:python:django [2015/08/17 23:12] admin [Using a Shared Folder to Host your Projects] |
vms:python:django [2017/04/14 01:05] (current) admin [Using a Shared Folder to Host your Projects] |
||
---|---|---|---|
Line 25: | Line 25: | ||
----- | ----- | ||
===== Debian VM ===== | ===== Debian VM ===== | ||
- | We'll start with a [[debian|Debian template]].\\ | + | We'll start with a [[..:debian|Debian template]].\\ |
Then: | Then: | ||
<code> | <code> | ||
Line 59: | Line 59: | ||
> nano /etc/hostname | > nano /etc/hostname | ||
> nano /etc/hosts | > nano /etc/hosts | ||
- | > reboot | ||
</code> | </code> | ||
Line 76: | Line 75: | ||
=== Put your public rsa key for login === | === Put your public rsa key for login === | ||
- | (From your workstation) | + | (From the host system) |
<code> | <code> | ||
> ssh-copy-id -i root@<host.ip.address> | > ssh-copy-id -i root@<host.ip.address> | ||
</code> | </code> | ||
- | === Upgrade system & install sudo === | + | You might want to reboot the VM at this point and login through a terminal instead of using the VirtualBox restricted screen. |
+ | |||
+ | === Install sudo === | ||
As root: | As root: | ||
<code> | <code> | ||
- | > apt-get update | ||
- | > apt-get upgrade | ||
> apt-get install sudo | > apt-get install sudo | ||
</code> | </code> | ||
Line 189: | Line 188: | ||
> sudo mount -a | > sudo mount -a | ||
</code> | </code> | ||
+ | |||
+ | <WRAP center round tip 100%> | ||
+ | If the system crashes at boot time, you probably need to have the ''vboxsf'' module to be loaded early, before the mounting of file systems. | ||
+ | Simply add a line containing ''vboxsf'' to ''/etc/modules'' and reboot, this should fix the problem. | ||
+ | |||
+ | Another solution is to set ''noauto'' in ''/etc/fstab'' and manually mount drives in ''/etc/rc.local'', but other services are launched beforehand... | ||
+ | </WRAP> | ||
+ | |||
<WRAP center round important> | <WRAP center round important> |