• Home
  • About
  • Map
  • Gallery
  • Resume
  • Archives
Grab the RSS feed

spiralbound.net

spiralbound.net
  • Home
  • Adventures
  • Data and Technology
  • Et cetera
  • Highlights

Posts Tagged with "unix"

  • Data and Technology

    Posted on December 17th, 2007

    Written by cliff

    Tags

    connection, display, filesystem, fix, forward, full, linux, log, mac, rejected, unix, wrong authentication, X11, XWindows

    Strange X11 Forwarding Problem

    I started getting this error:
    X11 connection rejected because of wrong authentication
    when trying to forward X11 applications from a Linux server to my Mac. I had been forwarding the display on this server for years, so I was a little unsure what could be causing it. In the end, it turned out that I had filled [...]

  • Data and Technology

    Posted on December 12th, 2007

    Written by cliff

    Tags

    array, path, php, programming, sed, spaces, string, str_replace, substitution, unix, unix find

    PHP and Sed for String Substitution

    I needed to replace a string in several thousand files scattered all over the filesystem on one of our servers. I used find to create a list of files that needed to be changed, along with their complete path and called it "list.txt". It looked something like this:

    /path/to/file/one/fileone.html
    /path/to/file/two/filetwo.php
    /path/to/file/three/filethree.htm
    /path/to/directory with spaces/filefour.txt
    and so on...

    I worked out the [...]

  • Data and Technology

    Posted on October 26th, 2007

    Written by cliff

    Tags

    applications, computer, cover flow, filesystem, filesystem snapshots, launcher, mac, mac mini, MacOS 10.5, mative, OS, spaces, stacks, time machine, unix, upgrade, upgrade process

    Mac OSX 10.5 Upgrade

    I've just finished upgrading my Mac Mini to OSX 10.5, and I have to say, the upgrade could not be simpler. While it did take slightly over an hour to complete, there were fewer than 10 clicks throughout the entire upgrade process, so I can't imagine how anyone could mung it up. The one detail [...]

  • Data and Technology

    Posted on October 1st, 2007

    Written by cliff

    Tags

    accounts, corrupt, database, filesystem, local.nidb, mac, NetInfo, NetInfo database, network.nidb, osx, recover, server, single user, sysadmin, unix, users

    Recovering From a Corrupt NetInfo Database on OSX.4

    I managed to corrupt my NetInfo database on an OS 10.4 server a few weeks ago by not cleanly unmounting the drive after booting from DVD and resetting the admin password. Long story short, this left me with no users on the system at all. With no users, I could not log in to create [...]

  • Data and Technology, Highlights

    Posted on August 27th, 2007

    Written by cliff

    Tags

    apple, at&t, commands, george hotz, hacked iPhone, hacker, hacking, iphone, modem, steve jobs, unix

    iPhone Hacked; No Longer Bound to AT&T

    George Hotz, along with a team of hackers have come up with a method to break the chains binding the iPhone to AT&T, allowing it to be used with any carrier. The complete method can be found here on George's blog. While it does take some soldering skills and a bit of familiarity with UNIX [...]

  • Data and Technology

    Posted on July 25th, 2007

    Written by cliff

    Tags

    add user, cli, command line, computerr, linux, remember, rhel, server, syntax, unix, user, useradd

    RHEL useradd Syntax

    Unlike other flavors of UNIX, RHEL does not have a command like adduser which walks you through the process step-by-step, so you have to remember the four flags useradd requires, and in what order it expects to receive them. Since I don't manually add users unless I'm installing a new server, I don't run the [...]

  • Data and Technology

    Posted on July 23rd, 2007

    Written by cliff

    Tags

    chkconfig, init, linux, runlevel, script, scripts, services, startup, unix

    Example LINUX init Script

    From time to time, people want me to create LINUX init scripts for them. I usually just take an existing one for another service and change it up to work for my new application, but most of them have become so long these days that I end up having to hack out a ton of [...]

  • Data and Technology

    Posted on July 23rd, 2007

    Written by cliff

    Tags

    bash, csh, files, loop, programming, shell, unix

    Bash For loop Example

    I'm always forgetting the syntax to make "for" loops in Bash. I guess it serves me right for using foreach most of my UNIX life instead. Anyhow, I know I will have to come back here to find it, so I thought I would write put up this quick example with the hope that it [...]

  • Data and Technology

    Posted on July 16th, 2007

    Written by cliff

    Tags

    blank screen, display, export, Java, Java Swing, mac, ssh, ssh forwarding, SSH X11 forwarding, sshd_config, ssh_config, Swing, tunnel, unix, X11, X11 forwarding

    Blank Window When SSH Forwarding X11 Sessions

    There are a number of applications running on our servers that have GUI's that I need to display on the Mac in my office. While the traditional method of exporting the server-side display to my desktop works, it is inherently insecure because the entire session, including any passwords that may be sent are all transmitted [...]

  • Data and Technology

    Posted on December 19th, 2006

    Written by cliff

    Tags

    atomic clock, chkconfig, clock, date, internet time server, linux, ntpd, ntpdate, red hat, rhel, sysadmin, system clock, systems administration, time of day, time server, unix, xntpd

    Getting ntpd to work correctly on RHEL

    When many new servers are delivered from the factory, the system clock is way off. Most UNIX systems run "ntpd" to keep the time in sync with internet time servers, which are, in turn synchronized against an atomic clock. This results in a system time that is very very close to the "actual" time of [...]

  • Data and Technology

    Posted on December 15th, 2006

    Written by cliff

    Tags

    apache, cal, database, email, free, gnu, gpl, groupware, HowTo, httpd, ical, install, install software, ldap, ldif, linux, microsoft alternative, ms outlook, open ladap, open source, opengroupware, opengroupware.org, openldap, outlook, package, php, php_postgresql, PostgreSQL, rhel, rpm, skyrix, syadmin, systems administration, unix, web

    Installing OpenGroupWare 1.1.5 on RHEL 3

    OpenGroupWare is an open source groupware package intended as an alternative to proprietary applications such as Exchange and PostPath. It is fairly robust in its feature set, and even integrates well with MS Outlook.
    Its strongest points, in my opinion are that it does not depend in any way on Active Directory, and that it [...]

  • Data and Technology

    Posted on December 6th, 2006

    Written by cliff

    Tags

    auto.master, auto.misc, autofs, automountd, backups, chkconfig, computer, daemon, HowTo, intr, linux, mount options, mountd, mounts, network, nfs, options, overhead, rhel, server, service, soft, storage, unix

    Setting Up The Automounter Service on RHEL

    Mounting filesystems in RHEL is pretty straightforward and easy. Occasionally, however, you will not want the filesystem to remain mounted all the time, but rather to automatically mount for a set period of time only when it is needed. Because of networking overhead, and the general unreliability of networks, NFS mounts are a good [...]

  • Data and Technology

    Posted on November 27th, 2006

    Written by cliff

    Tags

    commands, computing, directory, directory sizes, disk, foreach, HowTo, linux, quota, repquota, server, size, sort, storage, unix, users

    Using Sort to List Directories by Size

    If you manage a UNIX system with a large number of directories that vary in size, chances are that you've needed to figure out which ones are using up the most disk space. Of course if the directories are user accounts, the best way to do this is to enable quotas and use the "repquota" [...]

  • Data and Technology

    Posted on September 22nd, 2005

    Written by cliff

    Tags

    apple, apple finder, error, file copy, finder, finder copy, HowTo, locking, mac, mac finder, mac osx, macintosh, macintosh finder, nfs, nfs locking, osx, posix, posix locking, samba, samba share, samba upgrade, smb.conf, unix, unix nfs

    Macintosh Finder Copy to Samba Share Problem

    With the last Samba upgrade, we started having problems copying files to our Samba share from the Mac OSX finder.When attempting the copy we received an error reading: "The operation cannot be completed because you do not have sufficient privileges for some of the items."
    There were no permissions issues, which was substantiated by our unhindered [...]

  • Data and Technology

    Posted on August 3rd, 2005

    Written by cliff

    Tags

    apache, HowTo, htaccess, htpasswd, passwd, password, secure, unix, web, webserver

    Quick and Easy Apache Password Protection

    Here is a quick and easy HOWTO for setting up .htaccess password protection on web-accessable directories. It's really easy, but it's always nice to have the syntax right at your fingertips.
    First, find your way into the directory you want to protect.
    % cd /path/to/secure/directory
    Next, create a file in this directory called ".htaccess" and insert the following [...]

  • Sponsor
  • Popular Posts
    • Bash For loop Example (889)
    • Why Did my Arm Fall Asleep? (461)
    • Fish Supposedly Washed Up By Asian Tsunami (249)
    • Spencer Tunick Photographs More Than 18000 Nudes In Mexico City (238)
    • Little Japanese Trucks (234)
    • Copy a Solaris Boot Drive to a New Disk (197)
    • Foreach Example in tcsh (188)
    • Solaris Disk Partition Layout & Mirroring Scripts (183)
    • Increase The Max Number of Processes Per UID in Solaris (150)
    • When Mac OSX SMB Connections Fail (145)
    • Bush Has Record Low I.Q. (136)
    • Using Sort to List Directories by Size (129)
    • RHEL Winbind Authentication Against Active Directory (128)
    • Giant Rabbits in North Korea (127)
    • Recovering From a Stuck Symantec Ghost Virtual Boot Partition (118)

Copyright © 2007 spiralbound.net // Proudly powered by Wordpress