Archive

Archive for April, 2009

How to Monitor Multi-Core CPU Usage on Linux

April 9th, 2009 Masao No comments

Here’s how to monitor multiple cores on Linux:

# mpstat -P ALL

Example:

Monitor all CPU’s in 1 second intervals forever

# mpstat -P ALL 1

Categories: Bash, Linux, Monitoring Tags:

How to Renew Your DHCP IP Address on Linux

April 7th, 2009 Masao No comments

If Synergy fails for you with this error: “Server refused client with name XXX”, then your IP might conflict with another machine on the same network.

Here’s how to renew your IP on Linux:

### Release your current IP
$ sudo dhclient -r

### Request a new IP
$ sudo dhclient
Categories: Linux, Synergy Tags:

How to Connect Vista and Samba on Fedora 10

April 6th, 2009 Masao No comments
  1. Go through the usual setup at Samba.org or use YUM (yum install -y samba)
  2. By default, the smb.conf allows sharing of home directories.
  3. Add a Samba user (smbpasswd -a myusername)
  4. On Fedora, run SELinux Administration
  5. On the left menu, click “Boolean”.
  6. Scroll down to “samba”, and check the box next to “Allow samba to share users home directories”.
  7. Also on Fedora, make sure your Firewall allows the Samba ports 139 and 445.
  8. On Windows Vista, now map the network drive.

Sample smb.conf:

[homes]
        comment = Home Directories
        browseable = no
        writable = yes
;       valid users = %S
;       valid users = MYDOMAIN\%S
Categories: Linux, Samba, Troubleshooting, Windows Tags: