OMG Sys Notes


Using fuse (sshfs) on Fedora Core 4

1. Install fuse-sshfs (using yum or yumex)
2. Add user to fuse group or edit fuse rules:
usermod -G fuse machine_local
will add the local user, machine_local, to the fuse group.

If you want sshfs to work for network accounts then, as root:
vi /etc/udev/rules.d/60-fuse.rules
And change the last entry (GROUP="fuse") to the network group you belong to (ex. GROUP="allusers"). (this w ill require a reboot).

3. Make a directory to 'mount' the fs to.
mkdir omg_steveb_home
Finally, mount the fs:
sshfs steve@hecla.omg.unb.ca: omg_steve_home
and enter your password.

To unmount the fs:
fusermount -u omg_steve_home/

You have the permissions of the user that you mounted it with (the username that comes before the @)


Getting html server running on chamcook (May 26, 2006)

1. Start server with:
/etc/init.d/httpd start
and/or
chkconfig --level 5 httpd on
Turn level 2,3,4,5 on.

2.The document root folder may be empty, so put in a test index.html file.
The root folder should be '/var/www/html', but this can be checked in the file: /etc/httpd/conf/httpd.conf (DocumentRoot "/var/www/html")

3. Open firewall. Backup the iptables file (located in /etc/sysconfig). Vi it, and copy the line for ssh (port 22) and change the port # to 80.
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
4. Reload the iptables:
/etc/init.d/iptables restart
5. Test it by entering http://chamcook.omg.unb.ca in firefox from a computer other than chamcook.


Getting mySQL running on chamcook (May 26, 2006)

1. Installed mySQL with yumex.
2. started it and did chkconfig stuff as above.
3. Check to see if it's running:
/usr/bin/mysqladmin status
4. Set the mysql root password:
/usr/bin/mysqladmin -u root password ******


Getting mediawiki running on chamcook (May 28, 2006)

1. Navigate to http://chamcook.omg.unb.ca/mediawiki
This should redirect you to the config script to setup the wiki.
Problem with this is that the mediawiki, by default, only allows someone on the local
machine to configure the wiki. So edit the config file that blocks you (if you are on another machine):
vi /etc/httpd/conf.d/mediawiki.conf
And add your ip address to the config section (ex. 'Allow from 55.15.223.209')
Restart the web server:
/etc/init.d/httpd restart
2. Configure the wiki...
3. Follow instructions about moving LocalSettings.php file:
mv /var/www/mediawiki/config/LocalSettings.php /var/www/mediawiki/




Created May 26, 2006 by Steve Brucker