January 2012
5 posts
2 tags
Automatically set the hostname during Kickstart...
I hate having to manually set the hostname in kickstart file, so when I found a fix, I was very happy. I wish I can take credit, but it was originally made by somebody who was trying to figure out a way to automatically set the hostname for VMWare ESX machines. Unfortunately, I lost that link, so I can’t refer to the other page for credit. So the best I can do is to explain how it is done...
Updated to chef-client on FreeBSD (aka part III)
Found the solution.
Essentially, I just need to add this:
supports :status => true, :restart => true, :reload => true
This means that it will start up the service if isn’t running. Now it works as expected when I add chef-client to the run list.
Here is the updated code:
when "bsd"
case node['platform']
when "freebsd"
directory "/etc/rc.conf.d" do
owner...
3 tags
FreeBSD and chef-client - a part II (of sorts)
Finally changed chef-client with an updated recipe to support FreeBSD.
Under the chef-repo/chef-client directory, I added the following files:
./templates/freebsd/rc.d/chef-client.erb
./templates/freebsd/rc.conf.d/chef.erb
And updated:
./recipes/service.rb
The locations corresponds to the directory location under the default #{conf} directory, (which is apparently /etc) The templates are .erb...
FreeBSD and chef-client - a part I?
As I mentioned before, Chef appears to work well on mostly Debian and Ubuntu. You will have to do a bit more work on the other OSes: In the case of FreeBSD, a lot more.
Here is one example: The recipe chef-client is used to install startup scripts on the nodes (rc scripts for Red Hat, upstart for Ubuntu, etc). it works on most OSes - except for BSD systems. In fact, in the code, when it noticed...
Always Crispy: SSH Tunnels - 2 ways →
verycrispy:
Recently, I have been googling how to make tunnels so I thought I would post what I do. A SSH tunnel allows you to connect to server, A, through server B, from client C.
You generally only want to setup a tunnel when you need to connect to server A but only have access to server B from your…
2 tags
Installing Chef on CentOS
I have been playing around with Chef for the past week and while I liked it, it was a pain it setup. It seems to be work well if you run Debian and Ubuntu. Everything else … not so much.
First sign of trouble is when I attempt to bootstrap the install. The install calls for installing Ruby from the RBEL repo. Which I don’t have too much with trouble - in fact, they have binary RPMs of...
November 2011
3 posts
FreeBSD and OpenLDAP Grief
Finally got my FreeBSD client to authenticate against my OpenLDAP server.
The configuration is fairly straightforward. What took the time was compilation the dependencies (running it in a VM can do that to it). That and the following issues.
- It seems that Perl is not a requirement for a FreeBSD install. Not a big deal, (thinking about it, it make sense historically), but I needed to get the...
TLS problems with OpenLDAP Client
I ran into an interesting problem sometime back that I only now resolved.
Originally, I was running Scientific Linux on most of my VM. I have since upgraded most of them to Centos 6.0 - and converted on in particular to Centos CR.
That “broke” my ldap authentication - when connecting to the server with the ldapuser credentials, sssd returns with the following:
Could not start TLS...
Linux: ### openSUSE 12.1 released ###Version 12.1... →
reallinux:
### openSUSE 12.1 released ### Version 12.1 of the popular openSUSE distribution got released. It’s the first version numbered after the new numbering scheme and it brings some major changes. In version 12.1 of the distribution, Gnome now comes in version 3.2 (in openSUSE 11.4, Gnome 3 was only…
October 2011
2 posts
A Note on Installing FreeBSD on KVM + DHCP
If you install FreeBSD on KVM, you encounter a problem where you are able to install it over the network, but not be able to get it to obtain an IP address after the initial reboot.
The solution is to add the following in /etc/rc.conf:
synchronous_dhclient=”YES”
And restart the network with:
/etc/rc.d/netif restart
Restart your machine to ensure that it is able to obtain an IP...
September 2011
13 posts
1 tag
Linux: CentOS CR for CentOS 6.0 →
reallinux:
CentOS has been criticized heavily earlier this year, mainly because of the big delay their distribution normally has (compared to the original RHEL releases). One of the problems that comes with this delay is that security fixes that RedHat writes for their latest release are unavailable for…
3 tags
/dev/random/thoughts: Creating new LV and moving... →
hadret:
Recently I had some disk issues on my server and unfortunately it went to load average above 20 (which was killing for this machine). It forced me to power down the machine completely and to investigate it further. (It turned out that issue was with space on /home partition — sharing file system…
3 tags
Sys::Log: kill: Creating a core dump →
sys-log:
Sometimes when dealing with application problems you run into a point where logs and environmental data just don’t seem to provide you with the exact issue.
For this reason there are many times where a developer may ask you to create a core file for their application. Core files contain a lot of…
8 tags
The simple way of setting up NAT with iptables and...
I always feel intimidated with setting NAT. I knew, of course, how to filter packets with iptables, but I always felt that NAT to be just a tad bit confusing. Then I studied for the RHCE exam and it turns out that it is a lot easier than I expected, with a little help from Red Hat’s firewall tool.
With earlier releases of Red Hat, the firewall tool is limited to just filtering by ports with...
4 tags
bash: Field Separator Variable
sys-log:
By default when using a for loop in bash the field separator is set to a space.
Example:
[bcane@bcane ~]$ for x in list:like:this; do echo $x; done list:like:this
One of the cool things about bash is that you can change this by setting a simple variable $IFS
[bcane@bcane ~]$ IFS=”:” [bcane@bcane ~]$ for x in list:like:this; do echo $x; done list like this
2 tags
The exit code from a batch job is a standard Unix termination status, the same...
– (via arisawa)
3 tags
Sys::Log: mysql: Backup your user privileges →
sys-log:
While I am sure there are multiple ways to do this and some probably easier here is a way to backup your mysql user privileges to a CSV file.
First you will need to get to the mysql cli.
# mysql -uroot -p Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL…
5 tags
UNIX BASH scripting: Rename file to uppercase... →
lafuguedantoine asked: Welcome to Tumblr, Rilindo!
3 tags
CentOS 5.7
reallinux:
CentOS 5.7 is out: http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.7
CentOS is built from the original RHEL sources and aims to be binary compatible with the RedHat distribution.
4 tags
A Slightly Longer Guide to Setting up a Caching /...
Setting up a caching server on RHEL6, by default, works out of the box for a RHEL-type distributions. From there, it is just the matter of adding additional changes to make it either a forwarding, master or slave name server.
Of course, in our case, there were glitches.
Reviewing through Michael Jang’s RHCE prep book, the instructions for setting up the caching name server goes as...
9 tags
Configuring ISCSI with RHEL, Scientific Linux or...
I have been playing around with my new QNAP NAS appliance, getting the storage configured and the volumes setup with my Scientific Linux 6 virtual machines using Daniel’s articles as a reference point. While the articles worked well easily for me at the beginning, setting client VMs with authentication to multiple targets took a bit more effort. Hopefully, this post will help those who may...
tumblrbot asked: WHAT IS YOUR FAVORITE INANIMATE OBJECT?