Ubuntu How To

From J. Arrizza Wiki

Jump to: navigation, search

++ add a DNS server name ++ from http://askubuntu.com/questions/129089/dns-server-address-no-longer-stored-in-resolv-conf-where-is-it-now

  * Don't use /etc/resolv.conf it doesn't work in 12.04
  * show current DNS servers

[ nm-tool | grep DNS ]

  * Define a static DNS server in 

[

emacs /etc/dhcp/dhclient.conf
[uncomment the following line and change the ip address to the new nameserver]
prepend domain-name-servers 192.168.0.1;

]

  * restart network-manager

[ invoke-rc.d network-manager restart ]

  * use nm-tool to show the new list of nameservers

++Virtual box mount shared folder++ To get a VirtualBox shared folder to be rw and have normal userids (non-root), follow this procedure:

  • use vbox to create the shared folder
  * use Machine Folder
  * set Folder Path to the path on the Host (ubuntu). e.g. /home/hostuserid/projects/hostdir
  * set Folder Name to the name you'd like to use in the Guest e.g. myhostdir. Note the names don't have to match
  * make sure it is not read-only
  * do not auto-mount
  * make it permanent
  • in the Guest (ubuntu)

[

 mkdir /home/guestuserid/projects/guestdir
 sudo gedit /etc/fstab
 [add the following line]
 myhostdir /home/guestuserid/projects/guestdir vboxsf rw,gid=1000,uid=1000 0 0
 [save & close gedit]
 sudo mount -a
 [there should be no output]

]

  • test it on the Guest

[

 cd /home/guestuserid/projects/guestdir
 ls -la
 [the contents of the guestdir should match the contents of the host dir]
 [the owner and group should be the guest's userid]
 echo > hithere

]

  • test it on the Host

[

 cd /home/hostuserid/projects/hostdir
 ls -la
 [the file 'hithere' should exist]
 [the owner and group for all files should be the hosts's userid]

]


++To install DMD compiler++

  * go to http://www.digitalmars.com/d/download.html and select correct .deb file
  * test it :

[

      dmd
      DMD64 D Compiler v2.055

]

  * install eclipse INDIGO http://colinrrobinson.com/technology/install-eclipse-ubuntu/
  * install ddt for eclipse http://code.google.com/a/eclipselabs.org/p/ddt/
Personal tools