Monday, June 30, 2008

Cisco VPN

This is how I was able to set up VPNC to connect to a Cisco VPN network.

First of all make sure VPNC is installed. It was in Fedora 9 (vpnc-0.5.1-5).

Then you need to edit the /etc/vpnc/default.conf with the settings for the network you want to connect to. Mine looks like this:
IPSec gateway gateway.to.use
IPSec ID groupname
IPSec secret passwordforgroup
Xauth username myusername
Xauth password mypassword

You can translate the group password here: http://www.debuntu.org/how-to-connect-to-a-cisco-vpn-using-vpnc

To connect simply type $ sudo vpnc
or to disconnect type $ sudo vpnc-disconnect

Wednesday, June 18, 2008

Java

I had quite a few failed attempts at getting Java to work in Firefox 3. Finally I found a solution here: http://easylife.dulinux.com/

It gives you a graphical utility to install popular applications in Fedora 9. The only one I used was Java, but it worked perfectly!

Friday, June 6, 2008

VNC Viewer

VNC Viewer is always a pain to setup. To connect to a Windows box from Fedora 9 follow my RDP instructions.
To connect to a Fedora 9 box from Windows (XP) is a little more difficult. I first tried my VNC setup from Fedora 7 but ended up with a grey desktop with a black X for the mouse pointer and nothing else. Then I found THESE INSTRUCTIONS for using VNC with XINETD and I must say they are excellent! You may need to first do the VNC setup, then the XINETD setup, or you may not. Thats just the way that it worked out for me.

Update: I have found that with Fedora 9 all you actually have to do to set up VNC is go to SYSTEM ->PREFERENCES ->INTERNET and NETWORK ->Remote Desktop, and follow the instructions there. You may also have to open the port in IPTABLES.

Wednesday, June 4, 2008

Yum behind proxy server

To configure yum when you are on a network that has a proxy server between you and the internet do this:
sudo vi /etc/yum.conf
Insert this line:
proxy=http://fqdn of proxy server:port

For me it looks like this:
proxy=http://webcache.ptl.na.cascorp.biz:3128

Friday, May 30, 2008

SeLinux

Here is a good write up on how to deal with selinux:
http://www.crypt.gen.nz/selinux/disable_selinux.html

NetworkManager

Fedora 9 comes with the new NetworkManager on by default. This works fine for laptops, but for a wired desktop you may not want to use it. Here is how to disable it and set up the old Network service.
Run these commands:
sudo /etc/init.d/NetworkManager stop
(This disables NetworkManager)
sudo /sbin/chkconfig --level 35 NetworkManager off
(This stops it from starting on boot)
sudo /etc/init.d/network start
(This starts Network service)
sudo /sbin/chkconfig --level 35 network on
(This sets it to start on boot)

Wednesday, May 28, 2008

Connect to Windows machine with RDP

I found this one very exciting (yeah, I guess I still find Windows somewhat useful).
All you need to do is install a couple programs and you can RDP (remote desktop) to Windows machines just like you do from one Windows box to another using Remote Desktop Connection.

From Fedora run these two commands as root:
yum install rdesktop
yum install tsclient

After the installs finish you will then have "Terminal Server Client" under the Applications>Accessories drop down menu. The application is self explanatory and very easy to use.