Avoid using the “same” name in SVN repository
May 23, 2007 on 1:25 pm | In SVN, Linux Admin | No CommentsIn Linux, the file name is case-sensitive whereas in Windows it is not.
When I commit two files like "file.php" and "File.php" under Linux, it is ok. However, when I update it under Windows, it cause problem.
Backup system for small network
May 22, 2007 on 10:42 pm | In Zend Framework, Linux Admin, Backup | No CommentsFrom my last post, I got an idea about center backup system for a small network. There are a lot small companies in town. The typical network is about around 10 computers runing Windows OS and all of them share one internet connection via a small switch and a router. They usually use CD/DVD-R/RW to backup their data. The problem is, at very beginning , everybody likes to do it, after a couple of weeks, most of them feel it boring and useless. After a couple of monthes, I can say, nobody likes it.
When I used the WinSCP since my last post. I am thinking of seting up a linux server with SSH server. In each Windows client, setup WinSCP. The linux server can be setup anywhere, even in the boss’s home as long as the Internet connection is stable. Not like Samba, scp is pretty easy to use and the WinSCP is powerful.
Copy files between two linux boxes
May 20, 2007 on 10:09 pm | In Linux Admin, command | No CommentsBoth NFS and FTP can do this job well. However the linux scp command can do it even better. scp is part of the OpenSSH package. It is installed by default on CentOS.
Scp’s usage is similar with cp, it does not support anonymous downloads.For example:
scp -rv user@host:/path/to/source/* /path/to/destination/
will copy all files/subdirectories under /path/to/source/ to /path/to/desination/
Note: WinSCP is also a powerful tool. It can be download here.
Upgrade Vim in CentOS 4
May 13, 2007 on 2:03 pm | In Linux Admin | 2 CommentsIn order to highlight the syntax in vi editor in CentOS 4, I tried : syntax on etc and all of them did not work.
Here is one simple method I have done and it works fine.
Step 1
# yum install vim-enhanced
or
# yum upgrade vim
Step 2
add alias vi="vim" in .bashrc ( I use bash)
it’s just simple amazing!
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^