Configuring VNC-SERVER And Squid Proxy Server in CentOS (32 & 64) based VPS
Installing GUI based Gnome-Desktop, squid, vnc, vnc-server, firefox in centos based VPS
NOTE :-
# stands for comment
$ denotes sshell commands
1st. Open SSH of your VPS with your Favorite SSH client.
2nd. In Shell Prompt >_ Write commands as described below.
Phase of Installing All Products...
# This will install 4 apps at once !
# 1 squid is advance proxy server
# 2 vnc is vnc viewer client
# 3 vnc-server is VNC server to operate remove computer's GUI interface of gnome from your desk.
# 4 firefox will unlease speed of internet as it is installed in VPS !
# Configuring VNC-SERVER in CentOS based VPS....
# Set Your VNC Password For login..
# Start vncserver to generate default config files...
# As files are generated, we need to terminate vnc process(s) in order to make custom gnome configs..
# Add gnome based configuration in this FILE via 'vi' editor..
# -To Edit Or Insert Text in vi editor Press 'i'
# -To Save Modified File Press 'Esc' > ':wq'
# -To Quit With-Out Saving 'Esc' > ':q!'
# -To break vi process 'Ctrl + C'
# Add below code into file 'xstartup'
-- CUT - PASTE--
-- CUT PASTE--
# To auto-start vnc server each time system boot.
# To start vnc-server at a time.
Now open vnc-viewer in your desktop and give IP of vps with :1
i.e 42.23.1.4:1
where :1 is port 5901 by default used by vnc-server in linux
# Configuring Squid Proxy Server in CentOS (32 & 64) based VPS....
# Switch to squid directory
# move default squid configuration as a backup file !
# Receive Pre-made squid.conf file..
-- NOTE | Caution --
Change directives like mentioned below for confort !
.
.
.
# Change the default port 3128 to 8080 or 80 ! as per your need.
# Check ur ip > tracemyip.org
# You should add your own range to get access to proxy server Or else it will show unauthorised access...
i.e.
.
.
-- End of NOTE | Caution --
_
# Make SQUID as service AS it should start at system-start (boot time)
# Starting squid proxy server
# Cross-Verify listening post via below command
open your browser & set proxy IP & PORT in your browser & Bingo!
i.e IP: 42.23.1.4 Port: 3128
Installing GUI based Gnome-Desktop, squid, vnc, vnc-server, firefox in centos based VPS
NOTE :-
# stands for comment
$ denotes sshell commands
1st. Open SSH of your VPS with your Favorite SSH client.
2nd. In Shell Prompt >_ Write commands as described below.
Code:
$ yum update -y
Phase of Installing All Products...
Code:
$ yum groupinstall gnome-desktop -y
# 1 squid is advance proxy server
# 2 vnc is vnc viewer client
# 3 vnc-server is VNC server to operate remove computer's GUI interface of gnome from your desk.
# 4 firefox will unlease speed of internet as it is installed in VPS !
Code:
$ yum install squid vnc vnc-server firefox -y
# Configuring VNC-SERVER in CentOS based VPS....
# Set Your VNC Password For login..
Code:
$ vncpasswd
Code:
$ vncserver
# As files are generated, we need to terminate vnc process(s) in order to make custom gnome configs..
Code:
$ pkill vncserver $ pkill Xvnc $ reboot
# Add gnome based configuration in this FILE via 'vi' editor..
# -To Edit Or Insert Text in vi editor Press 'i'
# -To Save Modified File Press 'Esc' > ':wq'
# -To Quit With-Out Saving 'Esc' > ':q!'
# -To break vi process 'Ctrl + C'
Code:
$ vi ~/.vnc/xstartup
# Add below code into file 'xstartup'
-- CUT - PASTE--
PHP Code:
#!/bin/sh
( while true; do xterm; done ) &
# Uncomment the following two lines for normal desktop: unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic & xterm -geometry 1024x768 -ls -name "$VNCDESKTOP Desktop" & gnome-session &
# To auto-start vnc server each time system boot.
Code:
$ chkconfig vncserver on
# To start vnc-server at a time.
Code:
$ service vncserver start
Now open vnc-viewer in your desktop and give IP of vps with :1
i.e 42.23.1.4:1
where :1 is port 5901 by default used by vnc-server in linux
# Configuring Squid Proxy Server in CentOS (32 & 64) based VPS....
# Switch to squid directory
Code:
$ cd /etc/squid
# move default squid configuration as a backup file !
Code:
$ mv squid.conf squid.conf.backup
# Receive Pre-made squid.conf file..
Code:
$ wget http://pastebin.com/download.php?i=Y8j35JS9 --output-document=/etc/squid/squid.conf
-- NOTE | Caution --
Change directives like mentioned below for confort !
.
.
.
# Change the default port 3128 to 8080 or 80 ! as per your need.
Code:
http_port 3128
# Check ur ip > tracemyip.org
# You should add your own range to get access to proxy server Or else it will show unauthorised access...
Code:
acl range_airtel src 122.0.0.0/255.0.0.0 ... http_access allow range_airtel
Code:
acl range_US src 209.0.0.0/255.0.0.0 ... http_access allow range_US
.
-- End of NOTE | Caution --
_
# Make SQUID as service AS it should start at system-start (boot time)
Code:
$ chkconfig squid on
# Starting squid proxy server
Code:
$ service squid start
# Cross-Verify listening post via below command
Code:
$ netstat -tulpn | grep 3128
open your browser & set proxy IP & PORT in your browser & Bingo!
i.e IP: 42.23.1.4 Port: 3128
0 comments:
Post a Comment