Ubuntu Server 12.04: LAMP VirtualBox settings

Опубликовано: 01 Ноябрь 2024
на канале: Chris Walker (technoblogical)
6,052
8

Supplemental video showing the required settings on VirtualBox to follow along with the Ubuntu 12.04 LAMP server videos.

http://www.technoblogical.com/linux/
Providing training videos since last Tuesday
http://www.technoblogical.com
Thanks for watching!

Commands used...
sudo vim /boot/grub/grub.cfg

sudo apt-get update
sudo apt-get upgrade

Need to assign static IP

cd /etc/network/
sudo vim interfaces

IPv4
auto eth0
iface eth0 inet static
address 192.168.1.250
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.100
dns-nameservers 8.8.8.8 8.8.4.4

IPv6
Directions for IPv6
iface eth0 inet6 static
address FE80::1
netmask 16

sudo ifconfig eth0 dn
sudo ifconfig etho up
sudo /etc/init.d/networking restart

sudo apt-get -f upgrade
wget http://prdownloads.sourceforge.net/we...
sudo dpkg --i webmin_1.580_all.deb
sudo apt-get --f upgrade

create a Samba share
sudo useradd pstibbons
sudo passwd pstibbonscd
sudo smbpasswd pstibbons
cd /
sudo mkdir realname
sudo chown realname pstibbons:pstibbons realname
sudo chmod 770 realname

sudo vim /etc/samba/smb.conf
workgroup = workgroup
enable security = user

settings for the share
[sharedname]
path = /realname
available = yes
valid users = pstibbons
read only = no
browsable = yes
public = yes
writable = yes

sudo service smbd restart

sudo useradd FTP
sudo apt-get install vsftpd
sudo chown YOUR_USERNAME:www-data /var/www
sudo chmod 775 /var/www
sudo chmod g+s /var/www
cd /var/www
umask 0002
Type "sudo vim /etc/vsftpd.conf"
Remove the # before "local_enable=YES"
Remove the # before "write_enable=YES"
Remove the # before "local_umask=002" Change to "local_umask=0002"

sudo /etc/init.d/vsftpd restart
sudo restart vsftpd

phpMyAdmin
sudo apt-get intstall phpmyadmin