vi: Global Search and Replace
Posted in Linux on October 2nd, 2007 No Comments »
Hit escape to enter command mode, then type this in:
:%s/old text to replace/replace with this new text/g
Posted in Linux on October 2nd, 2007 No Comments »
Hit escape to enter command mode, then type this in:
:%s/old text to replace/replace with this new text/g
Posted in Linux on October 1st, 2007 No Comments »
After installing vsFTPd on RHEL, I got the following error while trying to log in:
500 OOPS: cannot change directory:/home/curreri
The problem is that SELinux is standing in the way. I told it in English: “I know FTP isn’t secure SELinux, but I promise I’ll stay behind the hardware firewall.” Unfortunately SELinux doesn’t understand English. […]
Posted in Linux, Web on June 6th, 2007 No Comments »
You have a webserver, and you want several users to be able to log in and edit files in the /var/www/html directory. Here’s some handy commands.
After copying new files to the directory, try this command to fix up the permissions.
sudo /sbin/restorecon -R -v /var/www/html
You want all your web authoring users to be in the […]
Posted in Linux, Web on May 18th, 2007 No Comments »
You can safely use PHPMyAdmin to export a database, just save it to a file on your computer.
Then use a program in WinSCP to upload that file to your Web Server.
Next, edit your /etc/my.cnf to include the following line:
set-variable=max_allowed_packet=64M
Then start the MySQL command console ‘mysql -u root -p’, and type ’source localhost.sql’
Posted in Linux on March 13th, 2007 No Comments »
There are gui’s for configuration, but you have to find them and install them, when you could just edit the files in half the time. These instructions are for Red Hat Enterprise Linux (RHEL) but will probably work on most distros with IPTables, on which you wish to host Samba (SMB) shares. Yay […]
Posted in Linux on March 12th, 2007 No Comments »
Well I installed and updated Red Hat Enterprise Linux (RHEL) AS, and installed PHPMyAdmin.
But wait! PHPMyAdmin says:
The mbstring PHP extension was not found and you seem to be using a multibyte charset. Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results.
I need this mbstring package. […]
Posted in Linux on March 9th, 2007 No Comments »
Apparently Red Hat Enterprise Linux is free to use at the University of Washington! The only cavat being that you must use UW’s Servers to get updates using up2date. The setup isn’t too bad if you follow the Instructions. CAC even says they might help you out if you have Linux problems, […]
Posted in Linux on March 1st, 2007 1 Comment »
That’s right, I use VI, not EMACS! Here’s my .vimrc:
set nocompatible
set tabstop=2
set visualbell
That tabstop bit is magic.
Posted in Linux on October 23rd, 2006 No Comments »
I’ve been resisting the geeky, and helping save the environment by not running a server in my house all day. There are two projects now that I can’t do by ssh’ing into 1and1’s servers, so it’s time to run a linux box again. I decided to run SUSE. It’s Novell’s version of […]