Archive for the ‘CentOS’ Category

CentOS 5

Friday, November 23rd, 2007

I’ve been using the CentOS Linux distribution for almost two years now. CentOS is based on Red Hat Enterprise. The reason I started using it in fact was that we were using RHEL on a project at work and I wanted to start using it at home so that I could become more adept with the OS, but of course I was not willing to pay for the commercial version on my own dime. To be fair though, I recommend RHEL to clients.
CentOS 4 has worked very nicely for me and now I have a chance to set up a new machine and I see that CentOS 5 is out.

SMB set up

Sunday, July 15th, 2007

I’d like to mount my Linux web directories on my Mac. SMB would seem appropriate.I think I have enabled SMB on linux, but I can not seem to get the finder to connect.smb://yyy.yyy.yyy.yyy which is not a valid address gets me nowhere.smb://xxx.xxx.xxx.xxx is valid and I can not connect because name or password is incorrect.smb://xxx.xxx.xxx.xxx/html where html is the share name also fails.SMBClient may be useful for debugging.Ok, it seems to be a firewall/selinux issue. When I turn those off I can connect.System Settings:Security Level:

  1. Firewall Options: Disable
  2. Enabled, Enforcing Current

Something broke. Ok, I needed smb://192.168.1.22/html in the dialog.

VNC and CentOS

Tuesday, November 14th, 2006

I had some trouble getting VNC to connect to my CentOS box. The firewall prevented the connection.

The fix is simple enough:
[root]#/sbin/iptables -I RH-Firewall-1-INPUT -m state --state NEW -p tcp --destination-port 5901 -j ACCEPT

Saving the fix so it remains on boot seems a little more challenging; naturally I am mixed between the command line and graphical. I would like to know why my VNC connection seems to hang sometimes.

[root@sv ~]# apropos vnc
Xvnc (1) - the X VNC server
vncconfig (1) - configure and control a VNC server
vncpasswd (1) - change a VNC password
vncserver (1) - start or stop a VNC server
x0vncserver (1) - VNC server which continuously polls an X display

Prefer vncserver to Xvnc

Seems like the desktop from my vnc server gets hosed after a few months. I assume it is gnome, but I would think I get a new gnome session with each login. vncserver -kill :1 did the trick.

vncserver :1 -name G5 -depth 16 -geometry 1400x1000