Below you will find pages that utilize the taxonomy term “Systems”
SAP Hybris platform sizing guidelines
Hybris is a very widely used platform for eCommerce. It is a somewhat complex piece of software, with multiple interacting components.
When trying to obtain optimal performance, there are a few guidelines you’ll need to follow. We’ll review them in this post.
Linux RedHat / CentOS / Fedora : Uninstall a package along with dependencies
If you’ve been wondering how to delete a package you mistakenly installed (or which is no longer needed) along with all its dependencies, here’s a neat way to achieve just that.
The idea is that whenever you use yum to perform some operation on packages, a transaction is created. If you installed a package along with its dependencies, then you can undo just that by undoing that transaction.
Fedora 20 Linux + bitcoind : Setting up firewalld for running a full bitcoin node
If you feel like running a full bitcoin node on your Fedora Linux server (and it’s a great way to help the bitcoin network if you have spare capacity / bandwidth), you’ll need to update the firewalld rules in order to allow foreign nodes to connect to yours.
Here’s how…
Docker 101 : Creating an Elasticsearch image
Creating an image in Docker is rather easy and well documented.
You start by editing a file which describes the image, then run a few commands, and voilà .
In this post we’ll cover how to create a very basic Docker image which will let us spawn elasticsearch instances very easily.
Linux : Encrypted LVM quick and easy howto
The goal of this tutorial is to show you how to create an encrypted LVM on Linux. This will help you keep your data safe in the event of, for example, your laptop computer being stolen.
OpenBSD : Read only Compact Flash installation
Here are a couple of pointers to perform an installation of OpenBSD on a media which will be read-only most of the times. I hope I didn’t forget anything otherwise I’ll be in trouble next time I reinstall… 🙂
Unix 101 : Shell wildcards expansion, to quote or not to quote
Or why you usually use ls -l *txt without quotes, but use quotes in find . -name “*txt”.
Unix 101 : Showing non-printing characters in text files (ex : DOS files)
A non-printing character is a character which won’t actually get directly printed (or displayed) but rather interpreted. Such non-printing characters are for example line-feed or tabulation. The interpretation of those characters can differ from one system to the next. For example the line-feed character is different on Unix or DOS.
If you need an easy way to confirm that a text file is DOS or UNIX formatted (they differ with respect to the end of line character(s) for example) or if you wish to display normally non-printing characters of a text file, you can use the -vET command line switches of the cat utility.
As explained in the man page :
- -v : will use the ^ and M- notation for control and multibytes characters
- -E : will make ends of lines visible
- -T : will make tabulations visible
For example :
Unix 101 : Filesystem basics & Special files
This post is meant to clarify a few key concepts about Unix filesystems such as directory permissions, hardlinks and symlinks.
Linux + Xorg : Remapping caps lock key to escape
In this post I’ll revisit the classical “how to remap caps lock into something useful” once again. In this post, I’ll show how to remap the caps lock key to have an extra Escape key, which is very useful for all VI/Vim users.
Bash / zsh : Using the history expansion
One of the features of bash I’ve too long overlooked is its history expansion. In this post I’ll show a few examples to get a grip at it.
AIX : Use sar to check cpu usage
If you’re looking for CPU usage statistics and system performance on IBM AIX, sar might just be the tool your looking for. It’ll display information for 5 minutes intervals from midnight to current time. The output looks like this :
Linux / Unix : Disk usage and identifying biggest files
When working as a systems administrator, you’ll always end up having to solve a file system full error in a hurry. Here are a few commands and hints to help you get out of it quickly on a UNIX like system.
Gentoo Linux / Portage : How to know which package provided an installed file
If there’s a file installed on your disk for which you’d like to know what package provided it, you can use the equery command like below :
VirtualBox : Cloning a virtual hard disk
If you’ve got a VirtualBox VM already installed and you wish to clone/copy it, follow the steps below :
OpenSolaris : Exporting a ZFS filesystem with CIFS
If you need to export ZFS volumes through CIFS, follow this simple step by step procedure.
OpenSolaris : Switching to the /dev development branch
In OpenSolaris, switching to the /dev development branch is a bit like switching to the testing branch for some linux distros. So you might want to think twice before doing so, as it might sometimes break things.
If you still want to do that, follow those instructions :
Gentoo : Xorg X Server 3D hardware acceleration
You need to have read/write permissions to /dev/dri/cardX to benefit from 3D hardware acceleration in Xorg X Server. On a Gentoo linux machine, this file has the following permissions set by default :
ls -l /dev/dri/card0
crw-rw---- 1 root video 226, 0 2009-10-14 16:12 /dev/dri/card0
HAL + Xorg X server : Using HAL to set hardware specific configurations for Xorg Xserver
The Xorg X Server can now rely on HAL to get information about the hardware the machine is running. This allows the X Server to auto-configure most of its components such as keyboard / mouse / screen / graphic adapter. But there is still room for tweaking it if needed.
This post explains how to configure extra properties for a keyboard at the HAL level, so that X Server will correctly auto-configure it for you.
Linux : SATA hot plug / unplug
I have 3 hard disks in SATA-to-eSATA external enclosure which I occasionally need to plug to perform backups and to unplug when done. I found it annoying to have to restart the whole computer at every turn, especially when SATA is supposed to bring hotplug abilities. If you mainboard / SATA chipset and disks support hot plugging and unplugging, you can do this by following those instructions.
Xen : OpenSolaris 2008.11 DomU running on a Linux Dom0
This post is a step by step explanation about how to get an OpenSolaris 2008.11 run as a Xen DomU on a Linux Dom0.
To follow this, you’ll need a Linux machine ready for Xen (I run Xen 3.3.0), with vncviewer installed.
This post doesn’t explain the basics of Xen, so you might want to start by learning Xen if you don’t already know a bit of it.
shell tip : identify broken symlinks
If you need to identify broken symlinks, you can do the following :
find -L . -type l
The -L options instructs find to follow symlinks when possible. Hence no “working symlink” will ever get returned as the targets won’t match -type l (meaning “file is a symlink”).
On the other hand, find will not be able to follow broken symlinks, so the information will be taken from the symlink itself and not from the non-existent or otherwise unreachable target. The -type l will then be a match and the broken symlink filename will be returned.
Gentoo : Managing software packages
In this post I’ll cover the basics one needs to know to install, upgrade and remove packages on a Gentoo linux system.
Gentoo : First thoughts after the switch
I’ve recently switched to the Gentoo Linux distribution (mostly to experiment with this Linux distro) and I don’t regret it so far. This post is about my first impressions about Gentoo.
Ubuntu 8.04.1 : Xen 3.2 package broken ?
I’m trying to install xen on Ubuntu 8.04.1 and here is what I get :
spaghetti% sudo apt-get install ubuntu-xen-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
ubuntu-xen-server: Depends: python-xen-3.2 but it is not going to be installed
Depends: xen-utils-3.2 but it is not going to be installed
E: Broken packages
spaghetti%
I’ve tried to follow the package dependencies but without success. As for now I’m growing tired of Ubuntu and I’m considering moving away to a more robust distribution … I’d be glad to hear your point of view about that too.
Linux : find out the kernel command line
If you have multiple linux kernels with differents options in the command line in your bootloader (grub, lilo or other) and you wonder which one was used to boot, you can find out by looking in /proc/cmdline. Ex :
[root@picolo:~]# cat /proc/cmdline<br /> ro root=LABEL=/<br /> [root@picolo:~]#
NFS : see what’s exported from an NFS server
To know what directories are exported by a NFS server, you can use the showmount -e nfs_server from a NFS client.
[root@client:~]# showmount -e server<br /> Export list for server:<br /> /data/dir1 (everyone)<br /> /data/dir2 client1 client2 client3
(The /data/dir2 is exported only to specified clients)
Backups : a personnal implementation
If you’ve been following my blog for a while, you might have seen posts about SSH, RSYNC, ZFS Snapshots and so on. This article aims at describing the big picture, and to explain how I’ve been using those tools and technologies to build my own home backup system.
Sun Solaris 10 : Creating snapshots with ZFS
ZFS is a great filesystem. Amongst its many features, it has snapshots. Let’s see how to use them.
OpenSolaris 2008.05 released today
OpenSolaris 2008.05 is released today, you can grab it from the OpenSolaris website.
The distribution is a bootable CD which will let you try it before installing. It includes most of the big hits of Solaris 10 (zfs, dtrace, containers and so on).
If you never tried Solaris or OpenSolaris, this might be a good kick start !
SSH slow to connect to a Solaris 10 host
If you experience a slow SSH connection to a Solaris 10 host while after connection everything works fine, then read on !
Ubuntu 8.04 + IBM T40 = No sound
If you upgraded your Ubuntu on an IBM T40 Laptop only to find out that there is no sound anymore, you’re not alone in this 😉
Follow the bug report for more information !
Edit 2008-05-11 : As of today I don’t have this problem anymore … update your machine if you haven’t yet !
Edit 2008-06-22 : Sound vanished again … I really need to look into this before this drives me crazy !!
OpenBSD : Release 4.3 is out
The twice-a-year release of OpenBSD is out today (More details on Undeadly). You can buy the CD set or get it by FTP (in this case consider donating to the project as CD sales are the main source of income to the project).
Enjoy.
CFEngine : Checking for processes
CFEngine can do wonders to keep a cluster in shape, but it can be very useful for a single server as well. Here is a configuration sample to monitor a few common services and restart them should they fail.
Unix : shell tips
I ran into this into the following article, “Learn 10 good UNIX usage habits“. This article is mainly common sense, but there are interesting points, such as :
- avoid piping when you can, in order to save performance (the classical construct grep | wc to count the lines is useless as most versions of grep can count with grep -c)
- use awk to “grep” on a specific field of a line with “… | awk ‘$1 == “XXX”‘ which is cool and I never use
- the find | xargs construct (I’d add “find -print0 | xargs -0”, useful if your find brings back filenames with a space inside …)
All in all it is worth a reading, if only to refresh your memory.
dsh : a distributed shell
A common problem when you deal with a pool of servers (clusters or server farms, you name it) is to execute the same command line on each server. It is usual to solve this with a “for” construct such as :
for i in server1 server2 ; do ssh $i "uname -a"; done
But this is basically re-inventing the wheel everytime. Here comes Distributed Shell (DSH).
Linux : Clusters, Vitualization, High Availability, Load balancing
I’m back from a 3-day-training about clusters with Linux which was pretty exciting, and here are the main points which were covered :
- Vitualization with Xen
- Sharing data with GFS / GNBD
- Clusters with RedHat Cluster Suite
- Load Balancing with Linux Virtual Server (LVS)
Linux : Using loop devices (eg : mounting an ISO file)
If you downloaded an ISO file and you want to mount it into your filesystem, you can proceed as follows :
spaghetti% sudo losetup /dev/loop0 cdrom.iso<br /> spaghetti% sudo mount /dev/loop0 /mnt<br /> spaghetti% ls /mnt<br /> Autorun.inf setup.exe setup.ico<br /> spaghetti%<br /> [...]<br /> spaghetti% sudo umount /mnt<br /> spaghetti% sudo losetup -d /dev/loop0
This will use the feature known as “loop devices”, which lets you use a file as a device, and subsequently mount it as it would be one.
Linux + GSM : How to access your cell phone innards with Linux
This article explores your options to access your GSM cell phone from a linux system, and manipulate SMS and phonebook entries.
Doesn’t provide hints about how to unlock a GSM cell phone though 😉
Linux : Taking control of Virtual Terminals (VT) from command line
When you use Linux in text mode (as opposed to with an X server), you readily have access to multiple Virtual Terminals (aka VT for short) by hitting one of your
This lets you access one of the VTs which are initialized at boot time, but won’t let you create new ones even if your kernel configuration would allow more VTs. Furthermore, what if you want to deal with VTs from a script ?
This post covers the 3 commands which will let you control your VTs from the command line or from a script.
awk : one-liner to select a field
Getting a specific field of a line with awk is really simple. For example :
spaghetti% echo "test1 test2 test3" | awk '{print $2}'<br /> test2
A more “real life” example is as following, which will find in /etc/hosts the IP address of localhost (pick another host if you wish 🙂 ) :
spaghetti% cat /etc/hosts | awk '/localhost/ { print $1;}'<br /> 127.0.0.1<br /> ::1<br />
If the field separator is not a space, awk will let you change it with the FS variable :
spaghetti% echo "test1:test2:test3" | awk 'BEGIN { FS = ":"} { print $2 }'<br /> test2<br />
sed : replacing a text in a file
To replace a text in a file, you can invoke sed as in the following example :
% cat file.txt | sed -e 's/text/replacement/g' > result.txt
This will change all the occurences of “text” to “replacement” in “file.txt” and output the result in “result.txt”
Note : As suggested by Matthias from adminlife in the comments, if you wanted to do “in place” text replacement (that is modify the file without a temporary file in between), you can do the following :
Linux – RedHat (or CentOS) : update system and packages with yum
In order to keep your system updates (especially important for security fixes) on a RedHat linux system (or CentOS), you can simply perform the following command :
yum update
You’ll then be presented with a list of available updates for your system.
Doing so from time to time will help you to keep your system secure and to get the latest versions of your softwares.
If you wonder how to do the same with a Debian Linux system, check out my previous post about Apt, the Debian package manager.
Linux – RedHat (or CentOS) : list installed packages
If you need to list packages which are installed on a RedHat system, you can do so by issuing the following command :
rpm -aq
Alternatively, if you prefer to use the package manager, you can try this command :
yum list installed
if you want to know how to do this on Debian, check out my previous post on Apt.
Unix : Cron daemon, crontabs and where to find them
Cron is a fairly standard daemon which you’ll find on most (if not all) Unix machines. Its purpose is to schedule the execution of commands at a specified time.
Sometime you’ll log at some performance graph (CPU load for example) and find out that every day/week/month/other there is an unexpected peak and you’d like to know why. Of course if this is regular you’ll think of Cron as a good trail to follow.
Linux LVM : A short intro
If you are running Linux, then you can use LVM (Logical Volume Manager) to get an extra flexibility in the way you allocate your disk space.
Physical disks are wrapped in Physical Volumes (PVs), which are grouped in Volume Groups (VGs). Logical Volumes (LVs) can then be laid over a VG.
So, if you want do manage a disk through LVM, you start by creating a PV for it ( with pvcreate ).
Debian : update a dynamic DNS
A bit of context : I have a bind 9 DNS allowing DNS updates from clients on the LAN (ok this is fairly insecure, but still my LAN is my home LAN composed of 4 machines … let’s say that’s good enough for me ! 🙂 )
The named.conf allows those updates with this config directive in the zone config block :
allow-update {mynet; };<br />
and mynet is defined an acl directive to be my LAN.
Solaris 10 : installing … and starting SSHD
First of, you’ll have to locate and install the following packages :
- SUNWsshcu
- SUNWsshdr
- SUNWsshdu
- SUNWsshr
- SUNWsshu
The two last are the SSH client parts, it doesn’t hurt to install them.
You need to have the server keys generated in /etc/ssh. Those are the 4 files :
- ssh_host_dsa
- ssh_host_dsa.pub
- ssh_host_rsa
- ssh_host_rsa.pub
Should they not to be there, you can still generate by issuing the following command : /lib/svc/method/sshd -c.
Solaris 10: easily deal with removable media
Solaris provides vold (Volume Management Daemon) which lets you deal easily with removable media such as CDs and DVDs.
This tool is provided by the SUNWvolr and SUNWvolu packages. Once you have found those packages and installed them, accessing to your removable medias becomes a bliss : All you have to do is insert your media, and go in the configured directory (ex : /cdrom).
Solaris 10 : great doc about package management
I stumbled on the Solaris 10 training & tutorials and it holds a really nice doc about package management in Sun Solaris 10, broken in 2 parts :
- Performing Solaris 10 OS Package Administration (part1)
- Performing Solaris 10 OS Package Administration (part2)
Amongst all the information, I was especially interested in those which I always forget like how to check package installation integrity (or how to know if files have been tampered with since it was installed) with pkgchk PACKAGE_NAME (eg : pkgchk SUNWcsu) or how to check integrity of a file with pkgchk -p /path/to/file (you’ll get extra information such as which package it was installed from by adding the -l flag).
Solaris 10: On which CD is that XYZ package ?
If you want to know on which CD is a package, without :
- Mounting CD
- Searching
- Unmounting
- Swear and
- Go back to 1
Then you can :
- Mount CD #1 (mount -F hsfs /dev/dsk/
/mnt or, if you have automount cd /cdrom/cdrom0 or something like that) - Go in the Solaris_10/Product directory of the CD
- Do grep -l
.virtual_packagetoc_* which will output the .virtual_packagetoc_N where N is the number of the CD holding that package.
Exemple :
Zsh is cool : brace expansion
Quoting the zshexpn man page :
An expression of the form {n1..n2}, where n1 and n2 are integers, is expanded to every number between n1 and n2, inclusive. If either number begins with a zero, all the resulting numbers will be padded with leading zeroes to that minimum width. If the numbers are in decreasing order the resulting sequence will also be in decreasing order.
Check out this :
spaghetti% for i in {8..11}; do echo $i; done<br /> 8<br /> 9<br /> 10<br /> 11<br /> spaghetti%
ZFS = zpools + zfs filesystems : concepts of a killer filesystem
ZFS, Sun’s latest filesystem, got a well deserved fame because of it’s ease of use and powerful features.
The ZFS community at the OpenSolaris.org website provides a great introduction to Sun’s ZFS.
Those of you who have actually already setup a software RAID with Solstice DiskSuite will truly appreciate how much simpler Sun made it with ZFS. The concepts of volume management and filesystems behind ZFS are not new, but Sun brought an unprecedented ease of use administration to those.
To understand Sun’s ZFS philosophy, you have to understand that it is built over two concepts : pools and filesystems. Let’s see what they are.
Apache : using SSI
“Server Side Includes” (SSI for short) are a mechanism which will let you have Apache pre-process html pages before sending them to the browser.
OpenBSD : 4.1 is out !
As stated in the mailing list, the twice a year release of OpenBSD went out today ! Follow the link below for the full announce.
‘OpenBSD 4.1 Released’ – MARC
May 1, 2007. We are pleased to announce the official release of OpenBSD 4.1. This is our 21st release on CD-ROM (and 22nd via FTP). We remain proud of OpenBSD’s record of ten years with only two remote holes in the default install. As in our previous releases, 4.1 provides significant improvements, including new features, in nearly all areas of the system: […]
CFEngine – Installing on Debian GNU/Linux
In this post we’ll install CFEngine on a Debian system. Debian make is really simple to install any packages, so let’s follow the “standard” package installation procedure (I’ll assume that apt is correctly setup on your system ! If you have troubles with it, let me know, I’ll write a post on this topic).
CFEngine – What is it ?
CFEngine is a configuration management engine. I’m going to write a series of short posts as I’m going to use CFEngine in a current project. Let’s start with a short description of CFEngine purpose and main features.
OpenBSD : Using spamd to avoid spam (and hurt spammers)
Linux.com runs a good introduction to spamd, the spam fighting daemon which ships by default with OpenBSD.
X11: Exporting a display
How can I make my X11 display go to another machine ?
Oh well, something everyone should know, but sometimes you have surprises !
Instructions follow …
Damn Small Linux : Linux on the run
Damn Small Linux (DSL) is a Linux distribution with full blown graphical user interface, which was first designed to be small enough to fit on a business card sized CD-ROM (50MB). It still does, but it does much more !
Active Directory : User account repeatedly locked for no reason ?
There are few situations that can lead to a user account being locked out in an Active Directory environment. The following two situations are worth mentionning, because at first sight, it might have seemed like the user account was locked out “for no reason”.
Windows : Clear saved Windows networking passwords
If you sometimes access a network share and check that “remember password” box, then you might have wondered how to delete that password as well.
James Geurts gives us the trick
NetApp : SNMP request timeout ?
If you try to make an SNMP request and get a time out like this :
% snmpwalk -v 1 -c public netapp-name<br /> Timeout: No Response from netapp-name<br />
Check that SNMP is enabled (options snmp.enable) and that your host is allowed to perform SNMP queries to the netapp (options snmp.access).
By the way, do use -v 1 ( protocol version 1) : I had timeouts while using -v 2c as well…
Debian network configuration
Network configuration, on a Debian System, is stored in /etc/network.
In this directory you’ll find :
- interfaces : this file describe your NICs according to interfaces(5) (check this man page to see how to setup the interface, fixed IP or DHCP, gateway, netmask, and so on)
- if-pre-up.d : directory with scripts which will get run before bringing up an interface
- if-up.d : directory with scripts which will get run right after bringing up an interface
- if-down.d : directory with scripts which will get run before bringing down an interface
- if-post-down.d : directory with scripts which will get run after bringing down an interface
- run/ifstate : the current state of the NICs
You’ll mostly want to tweak with the interfaces file, and probably put some scripts in the various hook directories. For example the /etc/network/if-pre-up.d is great to put the script which will setup your firewall (with iptables commands and ruleset).
Keeping track of changes with cfengine and SubVersioN
Cfengine is a tool which purpose is to describe what is a healthy system and how to bring it back to normal when something fails.
I won’t go into an explanation about how cfengine works, because the project webpage already has a neat tutorial and complete reference. Instead of that, I’ll explain how I used cfengine to build a fool proof Linux firewall.
Debian GNU/Linux : apt
Debian GNU/Linux systems come with a handy tool to manage packages : apt.
These are the commands I use the most.
Active Directory : PDC Emulator FSMO role
In an Active Directory Domain, there is a special Domain Controller which holds the FSMO Role “PDC Emulator”.
As its name suggests, it is there to ease migration from NT 4 domains to Active Directory 2000 and up domains by letting this PDC Emulator DC behave like a NT4 Primary Domain Controller. This allows to keep running NT4 BDC (Backup Domain Controllers) and NT4 Clients while you migrate core DCs to Windows 2000 and up.
Solaris 10: “logical-units” for network cards (NIC)
The “interface name” part of an ifconfig command can be a simple interface name, such as eri0, bge0 and such, or a logical unit such as eri0:1, eri0:2 and so on.
This makes it easy to setup more than 1 ip address on a network card, and hence to make virtual servers.
Solaris 10: managing services with SMF
In Solaris 10, services are managed by SMF. The scripts in /etc/rcX.d are only there for legacy (and so is inetd).
To manage the services, you mainly use 2 commands : svcadm and svcs. Below are the most useful commands.
disable services :
# svcadm disable network/finger
enable services :
# svcadm enable network/finger
list all enabled services :
# svcs
list all services:
#svcs -a
list error conditions for services:
#svcs -x
Solaris : Shared libraries search path
crle is the tool which lets you manage the way Solaris searches the shares libraries.
crle -l path1:path2:path3 will make Solaris lookup for shared libraries in path1, 2 and 3.
Beware that this replaces the previous settings !!! Easy to mess with your system…
Unix : transfering a filesystem or directory
to transfer a filesystem or directory while preserving permissions, special files and such, you can use the following :
# cd sourceDirectory
# tar cpf – . | (cd destinationDirectory && tar xpf – )
The first tar will archive the source directory and pipe it out to the second one which operates the extraction in the destination directory.
OpenBSD : Creating a transparent bridge
This post will be short, because it is actually easier than I expected … Anyway, considering my memory, better blog out that for later reference 😉
A bridge is a network device used to connect two or more network segments. You can achieve this easily on OpenBSD with the following commands :
`# echo ‘up’ > /etc/hostname.if0
echo ‘up’ > /etc/hostname.if1
echo ‘add if0 add if1 up’ > /etc/bridgename.bridge0
`
Windows XP – Disable administrative shares
Windows has a bad habit of enabling by default some shares on a new installation. These are, for example, C$, D$ (they give access to your partition roots) … ADMIN$, IPC$
Those shares are accessible by the administrators, but they could be a useless security breach.
Even worse, if you delete them, they will come back at the next start of the Server service starts…
If you wish to permanently disable them then create the following key in the registry (if it already exists, set the value to 0) :
Windows XP – Repair the boot block
if your boot block got corrupted (virus, or installation which went wrong), you may want to try to repair it by using the Recovery Console of Windows XP.
To do so, boot on the Windows XP CD and when asked, choose to repair the Windows XP installation by pushing R.
This will lead you to the Recovery Console. You will be asked for the installation to repair (ex : 1: C:\Windows), and then to enter the administrator’s password.
OpenBSD : Give money !!
not to me !! 😀
The OpenBSD project needs money to hold its events (such as hackaton, where developpers gather to implement features, or usual running costs).
If you think you don’t use OpenBSD, think again ! The project OpenSSH, which implements a free, and secure SSH implementation, comes from OpenBSD. It is widely used in many OSes and appliances …
We need OpenBSD !! Don’t hesitate to make a donation !
The original post
The OpenBSD project
The OpenSSH sister project
Proxying HTTPS throught Apache/mod_proxy
To allow a proxy to act as a tunnel for SSL connection as in HTTPS, you actually need to provide the HTTP method CONNECT. It took me some time to realize 😉
If you do this with Apache/mod_proxy, that means that you have to use the mod_proxy_connect and allow the CONNECT method.
Few pointers :
- CONNECT method
- Apache mod_proxy_connect
Add disk in an AIX machine
few useful commandes :
- lsdev : allows you to list the hardware in your machine AIX knows about. For example
lsdev -C | grep scsi
will list all the SCSI interfaces of your machine
- cfgmgr : lets you change the hardware settings. For example
cfgmgr -l scsi0
will rescan the scsi0 bus to find and configure any newly attached SCSI peripheral.
Printer Setup on a Solaris 8 Workstation
Here is a little post to give a hint about setting up a printer on a Solaris 8 Workstation :
# lpadmin -p printerName -s printServer # lpadmin -p printerName -D "Printer description text" # lpadmin -d printerName # lpstat -p printerName
and then check you can print with :
# echo test | lp
Checkout this great Solaris 8 docs repository at Sun.com.
Sun T3 StorEdge : Batteries refresh …
if you get this kind of “error” :
Dec 14 02:36:31 hostname StoreX (Dec 14, 2005 2:36:31 AM FQDN):P3:System hostname-t3 (XX.XX.XX.XX) - Unit-unit-1 - Power-Module-2 (u1pcu2) : Power supply unit has switched to battery. Fru ID: u1pcu2, Model: 300-1454-01(50), Serial Number: XXXXXX<br /> Dec 14 02:58:31 hostname StoreX (Dec 14, 2005 2:58:30 AM FQDN):P3:System hostname-t3 (XX.XX.XX.XX) - Unit-unit-1 - Power-Module-2 (u1pcu2) : The FRU has some error. Fru ID: u1pcu2, Model: 300-1454-01(50), Serial Number: XXXXX
then be aware that a T3 performs a battery refresh every so and then (this is by default every 28 days, but can be modified in /etc/schd.conf). This battery refresh can provoke this kind of error messages which are no error at all …
Sun T3 StorEdge : Identifying a failure
when logged on the T3, you can see the state of each FRU with the command
fru stat
Example :
hostname-t3:/:fru stat CTLR STATUS STATE ROLE PARTNER TEMP ------ ------- ---------- ---------- ------- ---- u1ctr ready enabled master - 32.5 DISK STATUS STATE ROLE PORT1 PORT2 TEMP VOLUME ------ ------- ---------- ---------- --------- --------- ---- ------ u1d1 ready enabled data disk ready ready 34 v0 u1d2 ready enabled data disk ready ready 30 v0 u1d3 ready enabled data disk ready ready 43 v0 u1d4 ready enabled data disk ready ready 31 v0 u1d5 ready enabled data disk ready ready 39 v0 u1d6 ready enabled data disk ready ready 31 v0 u1d7 ready enabled data disk ready ready 32 v0 u1d8 ready enabled data disk ready ready 30 v0 u1d9 ready enabled standby ready ready 31 v0 LOOP STATUS STATE MODE CABLE1 CABLE2 TEMP ------ ------- ---------- ------- --------- --------- ---- u1l1 ready enabled master - - 27.5 u1l2 ready enabled slave - - 30.0 POWER STATUS STATE SOURCE OUTPUT BATTERY TEMP FAN1 FAN2 ------ ------- --------- ------ ------ ------- ------ ------ ------ u1pcu1 ready enabled line normal normal normal normal normal u1pcu2 ready enabled line normal normal normal normal normal