Tag : Linux

switching servers

572 days were accounted for in the output of uptimed but I had this same Linode allocated to me since oct 20th 2008, thats about 30 months that it has been up and run a variety of distros starting with Gentoo, then CentOS 5, Debian, and now I am switching to a new linode running Ubuntu server LTE 10.04.


root@steni / $uprecords
     #               Uptime | System                                     Boot up
----------------------------+---------------------------------------------------
     1   236 days, 23:10:44 | Linux 2.6.18.8-x86_64-li  Tue Oct 27 18:48:32 2009
     2   220 days, 09:51:07 | Linux 2.6.18.8-x86_64-li  Mon Jun 21 19:00:39 2010
     3   109 days, 15:10:44 | Linux 2.6.18.8-x86_64-li  Fri Jul 10 00:29:42 2009
->   4    11 days, 05:28:18 | Linux 2.6.18.8-x86_64-li  Fri Jan 28 09:14:53 2011
----------------------------+---------------------------------------------------
1up in    98 days, 09:42:27 | at                        Wed May 18 01:28:29 2011
no1 in   225 days, 17:42:27 | at                        Thu Sep 22 09:28:29 2011

The justification for deploying to another server instead of keeping this one came from the fact that I wanted to switch to a 32bit OS and also wanted to run Nginx ...

 

Syncing a Nokia N95 with Ubuntu Lucid Lynx aka 10.4

Getting your SyncML phone working with Ubuntu just got a lot harder in their newest release, but fortunately it is still possible with a bit of work.  In the latest release, they moved from libsoup 2.2 to 2.4 and didn't leave the old version in the repositories, so to get it working, you need to download the .deb packages for karmic and install them side by side.


When installing libsyncml0, i had to install libwbxml2-0 which can be gotten from aptitude.  Also there are a couple of other programs you should also get.

So, to get your phone working (in my case a Nokia Symbian 3rd edition phone) you need to do the following things.

aptitude install libwbxml2-0 multisync-tools multisync0.90 opensync-plugin-evolution


and then install the deb packages from the previous links in their listed order.  From there on you can use hcitool scan to get the MAC address of your phone, and then sdptool browse MAC to make sure that your phone uses channel 10 for syncing with SyncML.

After you have that information you can go ...

 

Overview of Unix Process Managers

When you first turn on your computer the BIOS kicks in and searches for instructions on your master boot record or MBR. From there it is able to locate the boot loader which in turn figures out which kernel to run and then loads it into memory and that is the point you start actually running your flavor of UNIX. At this stage your computer is just running a kernel and has no interactivity or running services.

You are most likely used to using your computer to do something, and to do that, you need to run processes. While at this point you could have your computer launch a shell, you would still have a lot of setting up to do such as mounting hard drives, bringing up your network adapters, starting services, launching a GUI or what ever else you want to do. This is tedious and beyond the ability of most people so instead of running a shell the first process your computer runs is some kind of process manager. Traditionally this has been the init program which is the parent of every process that is executing.

Init is controlled by a handful of scripts that in turn ...

 

about the server

Just sent to PROD a copy of my personal site.  PROD is a 20$ vps currently hosting two websites and it is running open source software which is important.  thanks to jamescarnley[http://jamescarnley.com] for doing some beta testing.

 

syslog-ng logserver using centOS/RHEL 5.1

My department has several linux computers and auditing the logs is very tiresome if they are all localized to each computer. While the vanilla syslog offers remote logging features it uses udp and thus many things can affect the chance of log messages reaching their destination. the message dropping problem is not as widespread in syslog-ng since it uses tcp to transmit log packets.

Compiling syslog-ng is required as the only syslog-ng binaries are licensed and require a contract to purchase. under rhel/centos the eventlog compilation goes as planed, but things start going wrong when auto configuring syslog-ng itself. it will complain. configure: error: Cannot find eventlog version >= 0.2: is pkg-config in path? this is a easy problem that can be fixed with running configure in the following way:

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure –sysconfdir=/etc

this causes the syslog-ng.conf file to go to /etc/syslog-ng.conf and adhere to the layout choices of rhel/centos.

to get the init scripts working correctly copy the sample that comes with syslog-ng.

cp contrib/init.d.RedHat-7.3 /etc/init.d/syslog-ng

after that its time to configure syslog-ng on the loghost.

my syslog-ng.conf file looks something ...

 

using nfs/nis to connect to a linux server on solaris

linux server: leif

solaris client: sisu

export the shares on leif to sisu and then exportfs -r

add an entry in /etc/hosts.allow on leif

on sisu modify the file /etc/auto_master and add the line

/- auto_direct

in /etc/auto_direct add lines like

/home -rw leif:/home

reboot and celebrate

if that is working its now time to set up nis to get remote logins

first set up the domainname in /etc/defaultdomain and use the domainname tool to set it

Create a directory named /var/yp/binding/domain

3. If you want the NIS client to broadcast for a NIS server (note: there must be a NIS server on your subnet), start NIS with /usr/lib/netsvc/yp/ypstart. If you want to manually specify one or more NIS server(s) to use, run ypinit -c and then /usr/lib/netsvc/yp/ypstart. Note that each manually specified NIS server must have an entry in /etc/hosts.

4. Modify the name service switch file (/etc/nsswitch.conf) to use the NIS databases. You may want to copy /etc/nsswitch.nis over /etc/nsswitch.conf. Make sure to modify the “hosts:” line in /etc/nsswitch.conf if you want ...

 

linux quotas

when the sun tech installed the hard drive array he made one big 4TB partition. when i finally made my mind up about which size quota to give each user i realized that i needed to have a separate partition for the quotas. i used lvm to resize the partition and created an additional partition for the mail server to use. in /etc/fstab there needed to be an option to enable usrquota. after any changes are made to fstab the partitions need to be remounted. once this is done the quota files need to be generated. use the command “time /sbin/quotacheck -vguma” after the quota files have been set up, the quotas need to be set for all users

[root@babbage space1]# time /sbin/quotacheck -vguma quotacheck: Scanning /dev/mapper/volgroup1-homedirs [/space1] quotacheck: Cannot stat old user quota file: No such file or directory quotacheck: Old group file not found. Usage will not be substracted. done quotacheck: Checked 12 directories and 226 files quotacheck: Old file not found. quotacheck: Scanning /dev/mapper/volgroup1-www [/www] quotacheck: Cannot stat old user quota file: No such file or directory quotacheck: Old group file not found. Usage will not be substracted. done ...

 

Cardinal Blue

I am responsible for imaging all the linux workstations this summer and i
was trying to make it more personal this time. Usually they are all
default installations where a lot of stuff doesn’t work the right way.
This time i want to put a lot of effort into it and do it right. One of
the small things i wanted was a boot theme like i saw at LSU. I choose
centOS because of the long term support it offered and the targeted use.
centOS uses a program called rhgb, Red Hat Graphical Boot, to display
the start up sequence on boot. I was able to easily change the images
and i was able to get my schools logo and seal on there but i would like
to have the colors match as well. Right now the background is the
centOS blue, which if i cant change, will become cardinal blue. I might
have to go to a student government association next week and ask them to
change the schools colors to more match this labs computers. As a
backup plan i am still working on changing the background color to red. I
have asked a couple of ...