-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcentos6.3-64bit-dev-server-setup
81 lines (62 loc) · 2.15 KB
/
centos6.3-64bit-dev-server-setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
VirtualBox-4.2.6-82870-Win
CentOS-6.3-x86_64-LiveDVD.iso
Disable screensaver
System > preference > Screensaver - uncheck "Screensaver active when computer idle"
Run the LIVE CD & install to Disk
applications > System Tools > Terminal > /usr/bin/liveinst
Network Adapters > Bridged Adapter
Restart VM for network change to take effect
If using NAT for Network Adapters
Port should be > 1024
Host: 127.0.0.1 Host Port: 2222 Guest IP: 10.0.2.15 Guest Port:22
http://superuser.com/questions/323424/unable-to-do-port-forwarding-in-virtual-box
http://www.virtualbox.org/manual/ch06.html
Disable screensave in new VM
System > preference > Screensaver - uncheck "Screensaver active when computer idle"
Guest Additions
----------------
yum install gcc kernel-devel-2.6.32-279.el6.x86_64
Devices > Install Guest Additions
cd /media/VBOXADDITIONS_4.2.6_82870
sudo ./VBoxLinuxAdditions.run
Restart VM
Devices > Shared Clipboard > Bidirectional
Devices > Drag'n'drop > Bidirectional
add user to sudo group
-------------------------
vi /etc/sudoers
uncomment -
# %wheel ALL=(ALL) NOPASSWD:ALL
usermod -a -G wheel dmadmin
VIM Setup with python support
==============================
https://github.com/vinodpandey/blog/blob/master/vim7.3-centos-with-python-2.7.3-support.txt
httpd
======
https://github.com/vinodpandey/blog/blob/master/httpd-on-centos
mysql
======
https://github.com/vinodpandey/blog/blob/master/mysql-on-centos
ssh
=====
sudo /etc/init.d/sshd start
sudo chkconfig sshd on
putty timeout issue
--------------------
http://www.smerret.com/computers/linux/how-to-prevent-an-ssh-timeout-in-putty
Disable firewall (for accessing website outside VM)
---------------------------------------------------
sudo /etc/init.d/iptables save
sudo /etc/init.d/iptables stop
sudo chkconfig iptables off
key-based-login-to-machine
---------------------------
1. Create a key-pair on local machine
ssh-keygen -t rsa -C "your_email@example.com"
2. Copy public key to remote server
on mac - brew install ssh-copy-id
ssh-copy-id -i ~/.ssh/id_rsa.pub user@remote-host
on a non standard port
ssh-copy-id -i ~/.ssh/id_rsa.pub '-p 57777 user@remote-host'
3. login to remote server
ssh user@remote-host