User Tools

Site Tools


jessy:virtualbox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
jessy:virtualbox [2016/09/01 11:23] – [Guest Additions (for shared folders)] slackjessy:virtualbox [2019/11/07 17:58] (current) – external edit 127.0.0.1
Line 10: Line 10:
  
 ===== Networking ===== ===== Networking =====
 +
 +Select bridged mode for bidirectional access to the LAN.
  
 Edit ''/etc/network/interfaces'' for a static IP: Edit ''/etc/network/interfaces'' for a static IP:
Line 23: Line 25:
 Then ''root@alito:/etc/network# ../init.d/networking restart'' (and get kicked off). Then ''root@alito:/etc/network# ../init.d/networking restart'' (and get kicked off).
  
-===== Guest Additions (for shared folders) =====+===== Samba for shared folders ===== 
 + 
 +==== Client/Guest ==== 
 + 
 +  apt-get install cifs-utils 
 + 
 +Create ''/etc/samba/credentials'' chmod 400 as root containing 
 + 
 +  username=samba_user 
 +  password=samba_password 
 + 
 +and add to fstab 
 + 
 +  //10.0.0.1/slack  /alan  cifs  credentials=/etc/samba/credentials  0 0 
 + 
 +  cd /home 
 +  mv slack slack.old 
 +  ln -s /alan/alito slack 
 + 
 +==== Server/Host ==== 
 + 
 +To reenable symlinks despite the [[https://odzangba.wordpress.com/2011/01/02/fix-samba-not-following-symlinks-error/|security implications]], edit /etc/samba/smb.conf 
 + 
 +  follow symlinks = yes 
 +  wide links = yes 
 + 
 +And add the user if you're not using an existing one 
 + 
 +  smbpasswd -a slack 
 + 
 +===== Guest Additions (for shared folders) -- DON'T DO THIS, IT'S JUST A TOY =====
  
 No longer downloaded as an .iso, download, open with VirtualBox and they are added to the controller.  They can be installed to a specific machine firstly by inserting the imaginary iso in the imaginary drive (Devices --> Insert ISO into drive...) and then by running the executable in '/media/cdrom0' as root. No longer downloaded as an .iso, download, open with VirtualBox and they are added to the controller.  They can be installed to a specific machine firstly by inserting the imaginary iso in the imaginary drive (Devices --> Insert ISO into drive...) and then by running the executable in '/media/cdrom0' as root.
Line 48: Line 80:
   adduser vboxsf slack   adduser vboxsf slack
  
-and log out and in again.+and log out and in again.  Rm /home/slack and ln it to ''/media/sf_whatever''
 + 
 +===== NFS -- DON'T DO THIS, NFS AND DEBIAN HAVE BECOME A COMPLETE SHITSHOW ===== 
 + 
 +Install ''nfs-common nfs-kernel-server portmap''
 + 
 +==== Server ==== 
 + 
 +Config in ''/etc/exports'' 
 + 
 +  /home/slack/alito  10.0.0.14(rw,subtree_check) 
 + 
 +Restart with ''root@alan:/etc# init.d/nfs-kernel-server reload'' 
 + 
 +==== Client ==== 
 + 
 +Config in ''/etc/fstab'' 
 + 
 +  alan:/home/slack/alito  /home/slack  nfs  rw,user,auto  0  0
jessy/virtualbox.1472728990.txt.gz · Last modified: 2019/11/07 17:58 (external edit)