1, You need hold down the Shift key during bootup.
2, From the boot menu, select recovery mode.
3, After you select recovery mode, then select "root shell prompt".
4, add user and passwd
Thursday, May 31, 2012
Tuesday, May 29, 2012
max width for image
<style type="text/css">
.my_img {
max-width: 500px;
/* Resize the image for IE6 */
width: expression(this.width > 500 ? 500: true);
}
</style>
.my_img {
max-width: 500px;
/* Resize the image for IE6 */
width: expression(this.width > 500 ? 500: true);
}
</style>
Thursday, May 24, 2012
squid add Password Authentication Using NCSA
1, generate /etc/squid/squid_passwd file
2, [root@localhost ~]# vim /etc/squid/squid.conf
a, Add this to the auth_param section of squid.conf
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
b, add this line in the buttom of acl
acl ncsa_users proxy_auth REQUIRED
c, add this line in the top of http_access
http_access allow ncsa_users
htpasswd -c /etc/squid/squid_passwd www
2, [root@localhost ~]# vim /etc/squid/squid.conf
a, Add this to the auth_param section of squid.conf
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_passwd
b, add this line in the buttom of acl
acl ncsa_users proxy_auth REQUIRED
c, add this line in the top of http_access
http_access allow ncsa_users
Saturday, May 19, 2012
start cvs
[root@NTRCVS ~]# CVSROOT=/cvs/CVSROOT/
[root@NTRCVS ~]# export CVSROOT
[root@NTRCVS ~]# /etc/init.d/xinetd stop
Stopping xinetd: [ OK ]
[root@NTRCVS ~]# /etc/init.d/xinetd start
Wednesday, May 16, 2012
cvs Permission denied
Error message:
Logging in to :pserver:wu@172.22.113.181: 2401/cvs
CVS password:
[zh@localhost ~]$ rm -rf DRS-1.0/
[zh@localhost ~]$ cvs checkout -r flbranch DRS-1.0
cvs checkout: failed to create lock directory for `/cvs/DRS-1.0' (/cvs/DRS-1.0/#cvs.lock): Permission denied
cvs checkout: failed to obtain dir lock in repository `/cvs/DRS-1.0'
cvs [checkout aborted]: read lock failed - giving up
CVS password:
[zh@localhost ~]$ rm -rf DRS-1.0/
[zh@localhost ~]$ cvs checkout -r flbranch DRS-1.0
cvs checkout: failed to create lock directory for `/cvs/DRS-1.0' (/cvs/DRS-1.0/#cvs.lock): Permission denied
cvs checkout: failed to obtain dir lock in repository `/cvs/DRS-1.0'
cvs [checkout aborted]: read lock failed - giving up
Solution:
Need to add user to cvs group
[root@NTRCVS ~]# usermod -a -G cvs wu
[root@NTRCVS ~]# id wu
uid=501(wu) gid=501(wu) groups=501(wu),502(cvs)
[root@NTRCVS ~]# id wu
uid=501(wu) gid=501(wu) groups=501(wu),502(cvs)
Tuesday, May 15, 2012
Move CVS
Instruction for Move CVS to different box or backup CVS - CentOS
1, install CVS
yum install cvs
2, create cvs group and user
useradd -G cvs cvs
3, set CVSROOT environment variable
CVSROOT=/cvs/CVSROOT/
export CVSROOT
4, generate CVSROOT
cvs -d /cvs/CVSROOT init
5 setup the CVS server. It will be launched by Xinetd
[root@NTRCVS ~]# vim /etc/xinetd.d/cvs
# default: off
# description: The CVS service can record the history of your source \
# files. CVS stores all the versions of a file in a single \
# file in a clever way that only stores the differences \
# between versions.
service cvspserver
{
disable = no
port = 2401
socket_type = stream
protocol = tcp
wait = no
user = root
passenv = PATH
server = /usr/bin/cvs
env = HOME=/cvs
server_args = -f --allow-root=/cvs pserver
# bind = 127.0.0.1
}
6,run cvs server
/etc/init.d/xinetd restart
1, install CVS
yum install cvs
2, create cvs group and user
useradd -G cvs cvs
3, set CVSROOT environment variable
CVSROOT=/cvs/CVSROOT/
export CVSROOT
4, generate CVSROOT
cvs -d /cvs/CVSROOT init
5 setup the CVS server. It will be launched by Xinetd
[root@NTRCVS ~]# vim /etc/xinetd.d/cvs
# default: off
# description: The CVS service can record the history of your source \
# files. CVS stores all the versions of a file in a single \
# file in a clever way that only stores the differences \
# between versions.
service cvspserver
{
disable = no
port = 2401
socket_type = stream
protocol = tcp
wait = no
user = root
passenv = PATH
server = /usr/bin/cvs
env = HOME=/cvs
server_args = -f --allow-root=/cvs pserver
# bind = 127.0.0.1
}
6,run cvs server
/etc/init.d/xinetd restart
Subscribe to:
Posts (Atom)
-
Step 1, New a project rails new demo Step 2, Update Gemfile add paperclip, mysql2 gem, enable JavaScript runtime gem 'mysql2' ...
-
Disk is out of space [root@reyotest stat]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda3 231825...
-
When trying to access transmission from web-browswer i got the message : 403: Forbidden Unauthorized IP Address. Either disable the IP ad...