Mail Beyond Logo
Feed on
Posts
Comments

Archive for the 'Linux' Category

vi: Global Search and Replace

Hit escape to enter command mode, then type this in:
:%s/old text to replace/replace with this new text/g

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. […]

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 […]

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’

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 […]

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. […]

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, […]

My VimRC

That’s right, I use VI, not EMACS! Here’s my .vimrc:
set nocompatible
set tabstop=2
set visualbell
That tabstop bit is magic.

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 […]