LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Writing a thread and finding the answer before actually posting it.

Posted 08-13-2012 at 06:16 AM by zhjim

I was about to start a thread about a problem I had with a "account" inside cyrus imap software. But like it sometimes is when you tell some your problem the solution just becomes obvious. This is one of those days. Just for anyone actually reading this heres the story.

This is the post I had written.

Quote:
Hi folks,

I am trying to delete a user within cyradm to now availe. I know that I have to give me the appropriate right as the admin user of
...
Senior Member
Posted in Uncategorized
Views 417 Comments 0 zhjim is offline
Old

SSH

Posted 06-25-2012 at 02:38 AM by zhjim
Updated 07-08-2013 at 07:55 AM by zhjim

Some reminders what can be done with ssh

Use password also we have a key login
Code:
ssh -o 'PubkeyAuthentication no' user@host
Notes for sshd:
Keybased login counts as one Authtry. Even when no key is used. That means when using MaxAuthTries 1 in sshd_config one needs to use -o 'pub...' with ssh client to even get to the password prompt. Or use PreferredAuthentication Password option for the client. This way it starts right away with password prompt. (No need...
Senior Member
Posted in Uncategorized
Views 493 Comments 0 zhjim is offline
Old

Merging two log files

Posted 11-14-2011 at 04:52 AM by zhjim

Today I needed to merge two log files in cronological together. Heres my way about.

copy the two files to one host. (scp file name@server:~userhome
get the hostname infront of each line. (sed -i s/^/hostname/g first_file; ...)
cat ./first_file ./second_file | sort -k 3 > ./new_log

-k in sort stands for key. In my turn the datetime was the third field.

Improvements:
Get some color into the diffrence hostsnames.
Senior Member
Posted in Uncategorized
Views 504 Comments 0 zhjim is offline
Old

Script to create a modified xen domU

Posted 02-04-2010 at 03:06 AM by zhjim

Just for me and all that can use it. Heres a script I wrote to create a domU filesystem from a directory. All values are taken from the xen config script for the domU and are later sed'ed.

Code:
#!/bin/bash
if [ $# -ne 1 ]; then
        echo "Usage: $0 /path/to/domU_config " #/dev/name | /path/to/dir"
        exit -1
fi

CONF=$1
TARGET=$2
IMG=./new_strap

#HOSTNAME=$(grep "name" $CONF)
...
Senior Member
Posted in Uncategorized
Views 772 Comments 0 zhjim is offline
Old

Apache2.2 ab with ssl

Posted 08-24-2009 at 03:54 AM by zhjim

For all of you who wonder why ab (a.k.a apachebenchmark) gives an error like this
Code:
SSL not compiled in; no https support
I finally found out how to enable ssl support in ab.

Here are two minimal configuration options for the httpd-2.2.13 from apache.org.

With working ssl-ab
Quote:
./configure --with-ssl --enable-ssl --with-mpm=prefork --prefix=/home/ase/non/install --with-mods-shared=most
Without working ssl-ab
Quote:
./configure --with-ssl
...
Senior Member
Posted in Uncategorized
Views 3495 Comments 0 zhjim is offline

  



All times are GMT -5. The time now is 10:49 AM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration