<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://sys64738.dk/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://sys64738.dk/feed.php">
        <title>sys64738</title>
        <description></description>
        <link>http://sys64738.dk/</link>
        <image rdf:resource="http://sys64738.dk/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-04-29T18:36:22+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=aix&amp;rev=1370605555&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=building_and_signing_rpm_packages&amp;rev=1317043493&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=cluster_ssh&amp;rev=1306933115&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=copy_files_with_rsync&amp;rev=1329506505&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=create_new_mysql_user&amp;rev=1332414651&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=deprecated_linux_networking_commands_and_their_replacements&amp;rev=1336649287&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=determine_engine_type_for_all_tables&amp;rev=1306933115&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=determine_firmware_model_version&amp;rev=1316434847&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=determine_network_driver_in_use&amp;rev=1314000229&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=determine_public_ip&amp;rev=1365436210&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=disk_usage_by_size_order&amp;rev=1359550234&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=encrypt_file_container_with_cryptsetup-luks&amp;rev=1306933115&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=generate_cpu_load&amp;rev=1332511017&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=generate_hashed_password_string&amp;rev=1384421258&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=hot_add_memory_cpu_for_vmware_linux_guests&amp;rev=1323251356&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=hp_rpm_repository&amp;rev=1306933115&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=installing_doku_wiki&amp;rev=1308293537&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=installing_fedora_16&amp;rev=1383901597&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=installing_red_hat_from_nfs_server&amp;rev=1332772416&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=interface_bonding&amp;rev=1338373292&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=iso_handling&amp;rev=1306933115&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=itm_agent&amp;rev=1320137038&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=kernel_module_information&amp;rev=1306933115&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=linux_goodies&amp;rev=1561634119&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=list_harddrive_information&amp;rev=1308392852&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=list_webserver_information&amp;rev=1384961784&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=local_red_hat_repository&amp;rev=1321624204&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=lvm_handling&amp;rev=1492386641&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=make_snmp_quiet_in_messages_log&amp;rev=1314795190&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=misc_nix_goodies&amp;rev=1318666063&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=multipath_handling&amp;rev=1349945817&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=mysql&amp;rev=1306933116&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=nfs_server_and_client_configuration&amp;rev=1326208245&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=oracle&amp;rev=1346222896&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=outgoing_mails_from_postfix_to_relayhost&amp;rev=1308921337&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=port_scanning&amp;rev=1561639274&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=prevent_ssh_brute_force_attacks&amp;rev=1322227444&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=process_start_date_and_time&amp;rev=1347007418&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=prtdiag_hanging_solaris_10&amp;rev=1306933116&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=raid_controller_utils&amp;rev=1413972305&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=re-read_partition_table&amp;rev=1306933116&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=read_comma_separated_file_csv_within_bash_script&amp;rev=1351155071&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=remove_files_directories_with_strange_names&amp;rev=1306933116&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=rescan_scsi_bus&amp;rev=1317642608&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=san_fc&amp;rev=1387370427&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=san_lun_id_s_-_ibm_sdd&amp;rev=1306933116&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=san_san_lun_information&amp;rev=1352369042&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=script_to_determine_red_hat_fedora_version&amp;rev=1313408421&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=security_enhanced_linux&amp;rev=1322141928&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=serial_communication&amp;rev=1306933116&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=simple_user_handling&amp;rev=1306933116&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=simple_vi_vim_handling&amp;rev=1326371950&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=solaris_goodies&amp;rev=1308643499&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=solaris_user_handling&amp;rev=1306933116&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=sorting&amp;rev=1412848233&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=ssl_handling_with_openssl&amp;rev=1386243852&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=start&amp;rev=1428859493&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=static_route&amp;rev=1331212847&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=svm_needs_maintenance&amp;rev=1306933117&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=tcpdump&amp;rev=1318600099&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=time_calculations&amp;rev=1379578641&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=tmux&amp;rev=1317818672&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=tsm_handling&amp;rev=1372156824&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=udev_handling&amp;rev=1368694682&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=update_tsm_and_cfg2html&amp;rev=1306933117&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=update_vmware-tools&amp;rev=1358524541&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=user_login_information&amp;rev=1335790156&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=vpn_using_vpnc&amp;rev=1306933117&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=x_over_ssh&amp;rev=1334670453&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=x_over_ssh_with_sudo_su&amp;rev=1306933117&amp;do=diff"/>
                <rdf:li rdf:resource="http://sys64738.dk/doku.php?id=yum_rpm_handling&amp;rev=1380279312&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://sys64738.dk/lib/tpl/dokuwiki/images/favicon.ico">
        <title>sys64738</title>
        <link>http://sys64738.dk/</link>
        <url>http://sys64738.dk/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="http://sys64738.dk/doku.php?id=aix&amp;rev=1370605555&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-06-07T11:45:55+00:00</dc:date>
        <title>aix</title>
        <link>http://sys64738.dk/doku.php?id=aix&amp;rev=1370605555&amp;do=diff</link>
        <description>chsec -f /etc/security/lastlog -s &lt;username&gt; -a unsuccessful_login_count=0
mktcpip -i en2 -h power1 -g 192.168.2.2 -a 192.168.4.6 -m 255.255.255.0
         |                |              |              |
         Interface        Gateway        Address        Netmaskchdev -l en0 -a alias=192.168.1.1,255.255.255.0chdev -l en0 -a delalias=192.168.1.1,255.255.255.0
perl -e 'use LWP::Simple; getprint($ARGV[0]);'&lt;http://myserver.com/xxxx/xxx.html&gt; &gt; file.iso</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=building_and_signing_rpm_packages&amp;rev=1317043493&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-09-26T13:24:53+00:00</dc:date>
        <title>building_and_signing_rpm_packages</title>
        <link>http://sys64738.dk/doku.php?id=building_and_signing_rpm_packages&amp;rev=1317043493&amp;do=diff</link>
        <description>Create RPM build environment
# yum install rpm-build

Build the needed directories.
# mkdir -p /usr/src/redhat/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
Create SPEC file

Place spec file in /usr/src/redhat/SPECS

Example:

Summary: Check for simple HW errors

Name: hw-check

Version: 1.0

Release: 0

License: GPL

Group: Applications/Internet

Vendor: &lt;Vendor or personal name&gt;

Buildroot: %{_tmppath}/hw-check-%{version}

BuildArch: noarch</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=cluster_ssh&amp;rev=1306933115&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:35+00:00</dc:date>
        <title>cluster_ssh</title>
        <link>http://sys64738.dk/doku.php?id=cluster_ssh&amp;rev=1306933115&amp;do=diff</link>
        <description>Same SSH session to multiple servers
cssh

Global config file in /etc/clusters 

&lt;http://sourceforge.net/apps/mediawiki/clusterssh&gt;</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=copy_files_with_rsync&amp;rev=1329506505&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-02-17T19:21:45+00:00</dc:date>
        <title>copy_files_with_rsync</title>
        <link>http://sys64738.dk/doku.php?id=copy_files_with_rsync&amp;rev=1329506505&amp;do=diff</link>
        <description>rsync can be used for both local and remote file transfer.

This example will copy the file testfile to the /tmp folder. If the transfer is interrupted transfer will be resumed if command is applied again.
rsync -haP --append testfile /tmp/

-h output numbers in a human-readable format
-a archive mode; equals -rlptgoD
-P = --progres --partial
Where
--progress show progress during transfer
--partial keep partially transferred files</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=create_new_mysql_user&amp;rev=1332414651&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-03-22T11:10:51+00:00</dc:date>
        <title>create_new_mysql_user</title>
        <link>http://sys64738.dk/doku.php?id=create_new_mysql_user&amp;rev=1332414651&amp;do=diff</link>
        <description>First create user:
 CREATE USER '&lt;username&gt;'@'&lt;host to connect from&gt;' IDENTIFIED BY 'clear text password&gt;';
 or
 CREATE USER '&lt;username&gt;'@'&lt;host to connect from&gt;' IDENTIFIED BY PASSWORD '&lt;encrypted password&gt;';

Grant some rights to the user (here all as * is used):</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=deprecated_linux_networking_commands_and_their_replacements&amp;rev=1336649287&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-05-10T11:28:07+00:00</dc:date>
        <title>deprecated_linux_networking_commands_and_their_replacements</title>
        <link>http://sys64738.dk/doku.php?id=deprecated_linux_networking_commands_and_their_replacements&amp;rev=1336649287&amp;do=diff</link>
        <description>Doug Vitale has done a splendid article.
Further comments not needed.

&lt;http://dougvitale.wordpress.com/2011/12/21/deprecated-linux-networking-commands-and-their-replacements/&gt;

I still strugle to get ifconfig and netstat out of my fingers.....
alias ifconfig=&quot;echo No no. Use ip&quot;
alias netstat=&quot;echo No way. Use ss or ip&quot;</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=determine_engine_type_for_all_tables&amp;rev=1306933115&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:35+00:00</dc:date>
        <title>determine_engine_type_for_all_tables</title>
        <link>http://sys64738.dk/doku.php?id=determine_engine_type_for_all_tables&amp;rev=1306933115&amp;do=diff</link>
        <description>mysql&gt; SELECT TABLE_NAME, ENGINE FROM information_schema.TABLES;</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=determine_firmware_model_version&amp;rev=1316434847&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-09-19T12:20:47+00:00</dc:date>
        <title>determine_firmware_model_version</title>
        <link>http://sys64738.dk/doku.php?id=determine_firmware_model_version&amp;rev=1316434847&amp;do=diff</link>
        <description>Kernel driver version:
modinfo
Model and OBP version:
prtdiag -v

For detailed HBA info
fcinfo hba-port

To show Sun/Qlogic HBA's
luxadm qlgc</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=determine_network_driver_in_use&amp;rev=1314000229&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-08-22T08:03:49+00:00</dc:date>
        <title>determine_network_driver_in_use</title>
        <link>http://sys64738.dk/doku.php?id=determine_network_driver_in_use&amp;rev=1314000229&amp;do=diff</link>
        <description>ethtool -i &lt;network card&gt;

&lt;network card&gt; can be eth0 etc.
Example output:

driver: e1000\\
version: 7.3.21-k4.1-NAPI\\
firmware-version: N/A\\
bus-info: 0000:02:00.0
The bus-info can be coupled with lspci
 lspci -s -v &quot;2:&quot;
Where 2: is taken from ethtool bus-info.</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=determine_public_ip&amp;rev=1365436210&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-04-08T15:50:10+00:00</dc:date>
        <title>determine_public_ip</title>
        <link>http://sys64738.dk/doku.php?id=determine_public_ip&amp;rev=1365436210&amp;do=diff</link>
        <description>If one is behind a NAT device determine your public IP:
wget -qO - whatismyip.org
alternative
wget http://ipecho.net/plain -O - -q ; echo</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=disk_usage_by_size_order&amp;rev=1359550234&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-30T12:50:34+00:00</dc:date>
        <title>disk_usage_by_size_order</title>
        <link>http://sys64738.dk/doku.php?id=disk_usage_by_size_order&amp;rev=1359550234&amp;do=diff</link>
        <description>du -sk /var/crash/* | sort -n
du | sort -nr | cut -f2- | xargs du -hs | head -10
find . -type f -name &quot;*.dbf&quot; -print0 | xargs -0 du -ch</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=encrypt_file_container_with_cryptsetup-luks&amp;rev=1306933115&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:35+00:00</dc:date>
        <title>encrypt_file_container_with_cryptsetup-luks</title>
        <link>http://sys64738.dk/doku.php?id=encrypt_file_container_with_cryptsetup-luks&amp;rev=1306933115&amp;do=diff</link>
        <description>Make sure you have the package cryptsetup-luks installed.

As root.

Prepare an empty file container. Here 10MB.
# dd if=/dev/zero of=encrypted_file.bin bs=1024k count=10
Find the first available loop device:
# losetup -f
/dev/loop0
Map file container with loop device (in this case /dev/loop0):</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=generate_cpu_load&amp;rev=1332511017&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-03-23T13:56:57+00:00</dc:date>
        <title>generate_cpu_load</title>
        <link>http://sys64738.dk/doku.php?id=generate_cpu_load&amp;rev=1332511017&amp;do=diff</link>
        <description>A few ways to generate high CPU load from command line. Does not need any particular application installed. 

In case CPU got more cores, start one session pr. core
md5sum &lt; /dev/urandomwhile :  ; do sh -c '`yes`' ; donecat /dev/urandom | gzip &gt; /dev/nullwhile true ; do openssl speed ; done</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=generate_hashed_password_string&amp;rev=1384421258&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-11-14T09:27:38+00:00</dc:date>
        <title>generate_hashed_password_string</title>
        <link>http://sys64738.dk/doku.php?id=generate_hashed_password_string&amp;rev=1384421258&amp;do=diff</link>
        <description>If you manually want to change the password field in the shadow file, the md5 hashed string can be generated like this:
# openssl passwd -1 &lt;strongpassword&gt;
Where the parameter &lt;strongpassword&gt; is the password in clear text.
Output will be a md5 hashed string like this:
$1$t/Y0/ENi$PccO/XwuuZb4q/uhfh4Yf0

For RHEL6 following python code can be used:</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=hot_add_memory_cpu_for_vmware_linux_guests&amp;rev=1323251356&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-12-07T09:49:16+00:00</dc:date>
        <title>hot_add_memory_cpu_for_vmware_linux_guests</title>
        <link>http://sys64738.dk/doku.php?id=hot_add_memory_cpu_for_vmware_linux_guests&amp;rev=1323251356&amp;do=diff</link>
        <description>Hot add Memory

Add memory via the vSphere Client / Virtual Machine properties.

For RHEL 5 add the memory and make the new memory online (available for the kernel).
echo &quot;online&quot; &gt; /sys/device/system/memory/memoryX/state
Alternatively use the script found in the link.</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=hp_rpm_repository&amp;rev=1306933115&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:35+00:00</dc:date>
        <title>hp_rpm_repository</title>
        <link>http://sys64738.dk/doku.php?id=hp_rpm_repository&amp;rev=1306933115&amp;do=diff</link>
        <description>As I sometime install RedHat to some HP servers it's nice to know how to add the HP SW repository.

Download and install HP GPG key:
cd /tmp
wget http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/GPG-KEY-ProLiantSupportPack
rpm --import GPG-KEY-ProLiantSupportPack

Add the repository so yum can find it.
Create a repository file and add RPM location.</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=installing_doku_wiki&amp;rev=1308293537&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-17T06:52:17+00:00</dc:date>
        <title>installing_doku_wiki</title>
        <link>http://sys64738.dk/doku.php?id=installing_doku_wiki&amp;rev=1308293537&amp;do=diff</link>
        <description>Not the easiest task in the world.
By default dokuwiki webpages in Fedora 15 is only accessible for localhost.

In order to make dokuwiki webpages global readable and to make it a named virtual host add/change following in /etc/httpd/conf.d/dokuwiki.conf.
Change the ServerName and ServerAlias to suit your needs.</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=installing_fedora_16&amp;rev=1383901597&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-11-08T09:06:37+00:00</dc:date>
        <title>installing_fedora_16</title>
        <link>http://sys64738.dk/doku.php?id=installing_fedora_16&amp;rev=1383901597&amp;do=diff</link>
        <description>Please note: No guarantees it will work for you.

Activate RPMfusion repositories:
su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'yum install bluefish
yum install smplayer
yum install clusterssh
yum install k3b-extras-freeworld
yum install gstreamer-plugins-bad gstreamer-ffmpeg gstreamer-plugins-ugly
yum install kate
yum install keepa…</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=installing_red_hat_from_nfs_server&amp;rev=1332772416&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-03-26T14:33:36+00:00</dc:date>
        <title>installing_red_hat_from_nfs_server</title>
        <link>http://sys64738.dk/doku.php?id=installing_red_hat_from_nfs_server&amp;rev=1332772416&amp;do=diff</link>
        <description>Place your kickstart file on the NFS server. NFS share must - of course - be readable by the server you want to install.

Boot on Red Hat ISO image.

Press esc key to return to boot: prompt

enter the NFS server IP and path to kickstart file
boot: linux ks=nfs:&lt;ip of NFS server&gt;:/&lt;path&gt;/&lt;kickstart file name&gt; hostname=&lt;hostname&gt;
Press enter and enjoy installation of Red Hat server</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=interface_bonding&amp;rev=1338373292&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-05-30T10:21:32+00:00</dc:date>
        <title>interface_bonding</title>
        <link>http://sys64738.dk/doku.php?id=interface_bonding&amp;rev=1338373292&amp;do=diff</link>
        <description>Bonding two network interfaces in active/passive configuration

Directory /etc/sysconfig/network-scripts
ifcfg-bond0:
DEVICE=bond0
IPADDR=&lt;Server IP&gt;
NETMASK=&lt;Server Netmask&gt;
GATEWAY=&lt;Server Gateway&gt;
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BONDING_OPTS=&quot;mode=1 miimon=100&quot;
TYPE=Ethernet

ifcfg-eth0:
DEVICE=eth0                                                                                                                                    
BOOTPROTO=none                                             …</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=iso_handling&amp;rev=1306933115&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:35+00:00</dc:date>
        <title>iso_handling</title>
        <link>http://sys64738.dk/doku.php?id=iso_handling&amp;rev=1306933115&amp;do=diff</link>
        <description>A lot of dvd/cd burning programs exists for Linux.
Here is the ones I use for Fedora.

Burn a ISO image to DVD-RW

Find the scanbus device
cdrecord -scanbus

If a RW media is used it needs to be erased:
cdrecord blank=fast dev=5,0,0
Use the device found with scanbus</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=itm_agent&amp;rev=1320137038&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-11-01T08:43:58+00:00</dc:date>
        <title>itm_agent</title>
        <link>http://sys64738.dk/doku.php?id=itm_agent&amp;rev=1320137038&amp;do=diff</link>
        <description>For some strange reason IBM does not supply  the 6.2.2 ITM Linux agent as RPM package(s).

Instead a tremendous number of files with a size of 2.7G is supplied!

If SE-Linux in enabled IBM suggests to disable SE-Linux! But hang on there is help in the darkness :-)</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=kernel_module_information&amp;rev=1306933115&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:35+00:00</dc:date>
        <title>kernel_module_information</title>
        <link>http://sys64738.dk/doku.php?id=kernel_module_information&amp;rev=1306933115&amp;do=diff</link>
        <description>List loaded modules
# lsmod
Detailed module information
# modinfo &lt;modulename&gt;</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=linux_goodies&amp;rev=1561634119&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-06-27T11:15:19+00:00</dc:date>
        <title>linux_goodies</title>
        <link>http://sys64738.dk/doku.php?id=linux_goodies&amp;rev=1561634119&amp;do=diff</link>
        <description>A collection of nice Linux commands/tips &amp; Tricks.
Mostly for Red Hat and Red Hat based distributions.

	*  Building and signing RPM packages

	*  Cluster SSH

	*  Deprecated Linux networking commands and their replacements

	*  Determine network driver in use</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=list_harddrive_information&amp;rev=1308392852&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-18T10:27:32+00:00</dc:date>
        <title>list_harddrive_information</title>
        <link>http://sys64738.dk/doku.php?id=list_harddrive_information&amp;rev=1308392852&amp;do=diff</link>
        <description>List harddrive serial number

This command is only applicable for ccis Hardware Raid Controller (Smart Array controller from HP)

List information for disk “0”:
# smartctl -d cciss,0 -a /dev/cciss/c0d0

To list information for disk “1”:
# smartctl -d cciss,1 -a /dev/cciss/c0d0

You might have to adjust device number and disk reference (c0d0) to suit your needs.</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=list_webserver_information&amp;rev=1384961784&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-11-20T15:36:24+00:00</dc:date>
        <title>list_webserver_information</title>
        <link>http://sys64738.dk/doku.php?id=list_webserver_information&amp;rev=1384961784&amp;do=diff</link>
        <description>In case you want to determine webserver and OS information for a given site use curl or wget.
Some sites will reveal a lot of information some is not so informative.
# curl -I http://&lt;domain&gt;# wget --server-response --spider http://&lt;domain&gt;
https can be used as well</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=local_red_hat_repository&amp;rev=1321624204&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-11-18T13:50:04+00:00</dc:date>
        <title>local_red_hat_repository</title>
        <link>http://sys64738.dk/doku.php?id=local_red_hat_repository&amp;rev=1321624204&amp;do=diff</link>
        <description>Download and Install mrepo RPM from
&lt;http://pkgs.repoforge.org/mrepo/&gt;
yum localinstall --nogpgcheck mrepo-0.8.8-0.pre1.el6.rft.noarch.rpm
Edit /etc/mrepo.conf to suit your needs:
### Configuration file for mrepo
### The [main] section allows to override mrepo's default settings\\
### The mrepo-example.conf gives an overview of all the possible settings\\
[main]
srcdir = /var/www/html/yum/mrepo
wwwdir = /var/www/html/yum/repo
confdir = /etc/mrepo.conf.d
arch =  x86_64
# Default is sha256. RHEL5 …</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=lvm_handling&amp;rev=1492386641&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-04-16T23:50:41+00:00</dc:date>
        <title>lvm_handling</title>
        <link>http://sys64738.dk/doku.php?id=lvm_handling&amp;rev=1492386641&amp;do=diff</link>
        <description>Prepare new disk/VolumeGroup/Logical Volume

Add disk/LUN to server. Have a look at Rescan SCSI bus for scanning the SCSI bus online. Alternative reboot the server.

Prepare PV's with
pvcreate /dev/&lt;device&gt;
For FC LUN's use /dev/mapper/mpath&lt;x&gt; according to Red Hat DM Multipath Configuration &amp; Administration</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=make_snmp_quiet_in_messages_log&amp;rev=1314795190&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-08-31T12:53:10+00:00</dc:date>
        <title>make_snmp_quiet_in_messages_log</title>
        <link>http://sys64738.dk/doku.php?id=make_snmp_quiet_in_messages_log&amp;rev=1314795190&amp;do=diff</link>
        <description>SNMP daemon will by default generate a lot of noise in /var/log/messages:

Aug 28 04:08:50 &lt;hostname&gt; snmpd[3664]: Connection from UDP: [&lt;IP&gt;]:1921

Aug 28 04:10:22 &lt;hostname&gt; last message repeated 3 times

Aug 28 04:11:25 &lt;hostname&gt; last message repeated 50 times

Aug 28 04:11:41 &lt;hostname&gt; last message repeated 33 times</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=misc_nix_goodies&amp;rev=1318666063&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-10-15T08:07:43+00:00</dc:date>
        <title>misc_nix_goodies</title>
        <link>http://sys64738.dk/doku.php?id=misc_nix_goodies&amp;rev=1318666063&amp;do=diff</link>
        <description>* Disk usage by size order

* Simple vi/vim handling

* X over SSH with sudo/su

* Remove files/directories with strange names</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=multipath_handling&amp;rev=1349945817&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-10-11T08:56:57+00:00</dc:date>
        <title>multipath_handling</title>
        <link>http://sys64738.dk/doku.php?id=multipath_handling&amp;rev=1349945817&amp;do=diff</link>
        <description>*  Check the fstab for the devices that has to be removed.
	*  Be sure to unmount them!
	*  Check that you have uncommented or removed all ref. in /etc/fstab to the SAN LUN (Volume Group / Logical Volume)
	*  If LVM is used:

a.	Remove the logical volumes</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=mysql&amp;rev=1306933116&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:36+00:00</dc:date>
        <title>mysql</title>
        <link>http://sys64738.dk/doku.php?id=mysql&amp;rev=1306933116&amp;do=diff</link>
        <description>*  Determine Engine type for all tables

	*  Create new MySQL user</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=nfs_server_and_client_configuration&amp;rev=1326208245&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-01-10T15:10:45+00:00</dc:date>
        <title>nfs_server_and_client_configuration</title>
        <link>http://sys64738.dk/doku.php?id=nfs_server_and_client_configuration&amp;rev=1326208245&amp;do=diff</link>
        <description>NFS server

Install following packages:
yum install nfs-utils rpcbind
Make sure services start at boot:
chkconfig nfs on
chkconfig nfslock on 
chkconfig rpcbind on
Start services:
service nfs start
service nfslock start
service rpcbind start

Create proper /etc/exports</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=oracle&amp;rev=1346222896&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-08-29T06:48:16+00:00</dc:date>
        <title>oracle</title>
        <link>http://sys64738.dk/doku.php?id=oracle&amp;rev=1346222896&amp;do=diff</link>
        <description>Log into Oracle
sqlplus '/ as sysdba'
Show control files
select name from v$controlfile;

Show log files
select member from v$logfile;

Show data files
select file_name from dba_data_files order by file_name asc;
Show Oracle status
select status from v$instance;
select * from v$instance;

Show Oracle version
select * from v$version;</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=outgoing_mails_from_postfix_to_relayhost&amp;rev=1308921337&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-24T13:15:37+00:00</dc:date>
        <title>outgoing_mails_from_postfix_to_relayhost</title>
        <link>http://sys64738.dk/doku.php?id=outgoing_mails_from_postfix_to_relayhost&amp;rev=1308921337&amp;do=diff</link>
        <description>In order to let another mail server handle your outgoing mail traffic you need basically two things:

Relayhost should allow your server to relay mails to it (not in this description)

Postfix should forward all mails to relayhost.

Edit /etc/postfix/main.cf
add following line</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=port_scanning&amp;rev=1561639274&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-06-27T12:41:14+00:00</dc:date>
        <title>port_scanning</title>
        <link>http://sys64738.dk/doku.php?id=port_scanning&amp;rev=1561639274&amp;do=diff</link>
        <description>timeout 1 bash -c &quot;&lt;/dev/tcp/&lt;IP&gt;/&lt;PORT&gt;&quot; &amp;&amp; echo Port open. || echo Port closed</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=prevent_ssh_brute_force_attacks&amp;rev=1322227444&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-11-25T13:24:04+00:00</dc:date>
        <title>prevent_ssh_brute_force_attacks</title>
        <link>http://sys64738.dk/doku.php?id=prevent_ssh_brute_force_attacks&amp;rev=1322227444&amp;do=diff</link>
        <description>If you see a lot of these messages in /var/log/secure you might consider blocking SSH based on time and source IP.


sshd[30138]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=119.188.7.185  user=root

sshd[30138]: Failed password for root from 119.188.7.185 port 9482 ssh2

Received disconnect from 119.188.7.185: 11: Bye Bye

Invalid user oracle from 119.188.7.185

input_userauth_request: invalid user oracle

pam_unix(sshd:auth): check pass; user unknown…</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=process_start_date_and_time&amp;rev=1347007418&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-09-07T08:43:38+00:00</dc:date>
        <title>process_start_date_and_time</title>
        <link>http://sys64738.dk/doku.php?id=process_start_date_and_time&amp;rev=1347007418&amp;do=diff</link>
        <description># ps -eo pid,lstart,cmd

Example Output:
  PID                  STARTED CMD
  1 Wed Dec 28 16:30:48 2011 init [3] 
  #  (cat /proc/&lt;PID&gt;/environ; echo) | tr &quot;\000&quot; &quot;\n&quot;

Example output:
(cat /proc/27704/environ; echo) | tr &quot;\000&quot; &quot;\n&quot;
TERM=xterm
PATH=/sbin:/usr/sbin:/bin:/usr/bin
PWD=/
LANG=en_US.UTF-8
SHLVL=2
_=/usr/sbin/yum-updatesd
#  (cat /proc/&lt;PID&gt;/cmdline

Example output:
# cat /proc/27704/cmdline;echo
/usr/bin/python-tt/usr/sbin/yum-updatesd</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=prtdiag_hanging_solaris_10&amp;rev=1306933116&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:36+00:00</dc:date>
        <title>prtdiag_hanging_solaris_10</title>
        <link>http://sys64738.dk/doku.php?id=prtdiag_hanging_solaris_10&amp;rev=1306933116&amp;do=diff</link>
        <description>Kill all hanging prtdiag sessions
pkill prtdiag
Restart The Platform Information and Control Library (PICL) daemon
svcadm restart picl

Re-Run prtdiag -v</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=raid_controller_utils&amp;rev=1413972305&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-22T10:05:05+00:00</dc:date>
        <title>raid_controller_utils</title>
        <link>http://sys64738.dk/doku.php?id=raid_controller_utils&amp;rev=1413972305&amp;do=diff</link>
        <description>HP has replaced command tool hpacucli with hpssacli for later versions of HP Raid Controllers. This is really stupid done by HP. The genius changing a command name should be punished by whip.

In order to get my existing scripts to work, I have created a soft link from hpacucli -&gt; hpssacli in /usr/sbin.</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=re-read_partition_table&amp;rev=1306933116&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:36+00:00</dc:date>
        <title>re-read_partition_table</title>
        <link>http://sys64738.dk/doku.php?id=re-read_partition_table&amp;rev=1306933116&amp;do=diff</link>
        <description>Re-read the partition table without rebooting Linux system
partprobe
Alternatively :
hdparm -z /dev/sda
sfdisk -R /dev/sda

&lt;http://www.cyberciti.biz/tips/re-read-the-partition-table-without-rebooting-linux-system.html&gt;</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=read_comma_separated_file_csv_within_bash_script&amp;rev=1351155071&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-10-25T08:51:11+00:00</dc:date>
        <title>read_comma_separated_file_csv_within_bash_script</title>
        <link>http://sys64738.dk/doku.php?id=read_comma_separated_file_csv_within_bash_script&amp;rev=1351155071&amp;do=diff</link>
        <description>#!/bin/bash
IFS=,
while read field1 field2
do
echo &quot;field1 : $field1&quot;
echo &quot;field2 : $field2&quot;
done &lt; filename.csv
References

&lt;http://www.cyberciti.biz/faq/linux-unix-appleosx-bsd-shell-parse-text-file/&gt;

&lt;http://www.cyberciti.biz/faq/unix-linux-bash-read-comma-separated-cvsfile/&gt;</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=remove_files_directories_with_strange_names&amp;rev=1306933116&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:36+00:00</dc:date>
        <title>remove_files_directories_with_strange_names</title>
        <link>http://sys64738.dk/doku.php?id=remove_files_directories_with_strange_names&amp;rev=1306933116&amp;do=diff</link>
        <description>You sometime encounter files/directories with none printable characters in the name.
In order to remove such files/directories use the inode reference.

First find the inode of the file/directory
ls -il

Output (example):

 73302 drwx------. 2 root root 4096 May 14 14:10  05??</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=rescan_scsi_bus&amp;rev=1317642608&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-10-03T11:50:08+00:00</dc:date>
        <title>rescan_scsi_bus</title>
        <link>http://sys64738.dk/doku.php?id=rescan_scsi_bus&amp;rev=1317642608&amp;do=diff</link>
        <description>There is no need to reboot in order to rescan SCSI/FC bus

Rescan SCSI bus
echo &quot;- - -&quot; &gt; /sys/class/scsi_host/host&lt;#&gt;/scan

If many hosts exists take them in one go:
 for hosts in  /sys/class/scsi_host/*; do echo &quot;- - -&quot; &gt; $hosts/scan ; done  echo &quot;1&quot; &gt; /sys/class/fc_host/host#/issue_lip
If several hosts exists take them in one go:</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=san_fc&amp;rev=1387370427&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-18T12:40:27+00:00</dc:date>
        <title>san_fc</title>
        <link>http://sys64738.dk/doku.php?id=san_fc&amp;rev=1387370427&amp;do=diff</link>
        <description>Determine FC ID (WWN)

RHEL 4.x or earlier

To find the WWN run the cat /proc/scsi/adapter_type/n command, where adapter_type is the host adapter type, and n is the host adapter number for your card. In most cases, the adapter type is qla2xxx.
cat /proc/scsi/adapter_type/&lt;n&gt;
RHEL 5.x or later

The adapter WWN information can be found:</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=san_lun_id_s_-_ibm_sdd&amp;rev=1306933116&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:36+00:00</dc:date>
        <title>san_lun_id_s_-_ibm_sdd</title>
        <link>http://sys64738.dk/doku.php?id=san_lun_id_s_-_ibm_sdd&amp;rev=1306933116&amp;do=diff</link>
        <description># /opt/IBMsdd/bin/datapath query device | grep Serial | sort -u
Serial: 600507680181826FB800000000000079
Serial: 600507680181826FB80000000000007A
Serial: 600507680181826FB80000000000007B
Serial: 600507680181826FB80000000000007C</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=san_san_lun_information&amp;rev=1352369042&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-11-08T10:04:02+00:00</dc:date>
        <title>san_san_lun_information</title>
        <link>http://sys64738.dk/doku.php?id=san_san_lun_information&amp;rev=1352369042&amp;do=diff</link>
        <description>List the multipathing support
mpathadm list mpath-support
mpath-support:  libmpscsi_vhci.so

Choose the mpath support name from the output list

List the multipathing support properties
mpathadm show mpath-support libmpscsi_vhci.so
mpath-support:  libmpscsi_vhci.so
      Vendor:  Sun Microsystems
      Driver Name:  scsi_vhci
      Default Load Balance:  round-robin
      Supported Load Balance Types:  
              round-robin
              logical-block
      Allows To Activate Target Port Gr…</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=script_to_determine_red_hat_fedora_version&amp;rev=1313408421&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-08-15T11:40:21+00:00</dc:date>
        <title>script_to_determine_red_hat_fedora_version</title>
        <link>http://sys64738.dk/doku.php?id=script_to_determine_red_hat_fedora_version&amp;rev=1313408421&amp;do=diff</link>
        <description>Note only for Red Hat or Fedora

Ditribution
DIST=$(sed s/\ release.*// /etc/redhat-release)
Version including minor version
VER=$(sed s/.*release\ // /etc/redhat-release | sed s/\ .*//)

Major version only
MAJOR=$(sed s/.*release\ // /etc/redhat-release | awk -F. '{print $1}')</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=security_enhanced_linux&amp;rev=1322141928&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-11-24T13:38:48+00:00</dc:date>
        <title>security_enhanced_linux</title>
        <link>http://sys64738.dk/doku.php?id=security_enhanced_linux&amp;rev=1322141928&amp;do=diff</link>
        <description>Never turn off Security Enhanced Linux without a hard fight!!

Peter Boysen

From the maintainer of the targeted policy:

SELinux is all about labeling - Dan Walsh


Determine changed booleans
# cat /etc/selinux/targeted/modules/active/booleans.local
Determine changed file contexts
# cat /etc/selinux/targeted/modules/active/file_contexts.local
# cat  /etc/selinux/targeted/contexts/files/file_contexts.local</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=serial_communication&amp;rev=1306933116&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:36+00:00</dc:date>
        <title>serial_communication</title>
        <link>http://sys64738.dk/doku.php?id=serial_communication&amp;rev=1306933116&amp;do=diff</link>
        <description>Following small apps can be handy:
minicom
miniterm.py
cu -l /dev/ttyS0 -s 9600 (com1 - 9600 Baud)
cu command is a component of the uucp rpm.</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=simple_user_handling&amp;rev=1306933116&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:36+00:00</dc:date>
        <title>simple_user_handling</title>
        <link>http://sys64738.dk/doku.php?id=simple_user_handling&amp;rev=1306933116&amp;do=diff</link>
        <description>Create user, user directory and add comment:
useradd -c &quot;Comment&quot; -m &lt;username&gt;

Force change of password at next login:
chage -d 0 &lt;username&gt;

Force locking of user account:
passwd -l &lt;username&gt;</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=simple_vi_vim_handling&amp;rev=1326371950&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-01-12T12:39:10+00:00</dc:date>
        <title>simple_vi_vim_handling</title>
        <link>http://sys64738.dk/doku.php?id=simple_vi_vim_handling&amp;rev=1326371950&amp;do=diff</link>
        <description>Line numbers

Show line numbers:
:set nu
“Unshow” line numbers:
:set nonu
Vim show line numbers with F12 shortcut

Add show/unshow line numbering in vim (F12 key)
Add following to /etc/vimrc

nmap &lt;F12&gt; :set number!&lt;CR&gt;
Search and replace

Current line = .</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=solaris_goodies&amp;rev=1308643499&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-21T08:04:59+00:00</dc:date>
        <title>solaris_goodies</title>
        <link>http://sys64738.dk/doku.php?id=solaris_goodies&amp;rev=1308643499&amp;do=diff</link>
        <description>*  SVM needs maintenance

	*  SAN LUN ID's - IBM SDD  

	*  SAN / SAN LUN information  

	*  Determine Firmware/Model version

	*  prtdiag hanging / Solaris 10

	*  Solaris user handling</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=solaris_user_handling&amp;rev=1306933116&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:36+00:00</dc:date>
        <title>solaris_user_handling</title>
        <link>http://sys64738.dk/doku.php?id=solaris_user_handling&amp;rev=1306933116&amp;do=diff</link>
        <description>Force change of password at first login
passwd -f &lt;username&gt;</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=sorting&amp;rev=1412848233&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-10-09T09:50:33+00:00</dc:date>
        <title>sorting</title>
        <link>http://sys64738.dk/doku.php?id=sorting&amp;rev=1412848233&amp;do=diff</link>
        <description>sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n

&lt;http://www.cyberciti.biz/faq/unix-linux-shell-script-sorting-ip-addresses/&gt;</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=ssl_handling_with_openssl&amp;rev=1386243852&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-05T11:44:12+00:00</dc:date>
        <title>ssl_handling_with_openssl</title>
        <link>http://sys64738.dk/doku.php?id=ssl_handling_with_openssl&amp;rev=1386243852&amp;do=diff</link>
        <description>Generate private key

Generate private key with a bit lenght of 2048. 2048 bits is minimum for this time of writing.
openssl genrsa -out &lt;Filename of private key.key&gt; 2048
Generate CSR

Generate CSR (Customer Signing request) using private key.
openssl req -new -key &lt;Filename of private key.key&gt; -out &lt;Filename of CSR.csr&gt;

Fill out questions when asked. CN is very important. Provide CSR to CA for signing.</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=start&amp;rev=1428859493&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2015-04-12T17:24:53+00:00</dc:date>
        <title>start</title>
        <link>http://sys64738.dk/doku.php?id=start&amp;rev=1428859493&amp;do=diff</link>
        <description>This wiki is most about Linux/Unix stuff but all respect to the good old C64..

Linux Goodies

Solaris Goodies

Misc *NIX Goodies

MySQL

Oracle

AIX

Greetings from Peter Boysen alias pebo.</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=static_route&amp;rev=1331212847&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-03-08T13:20:47+00:00</dc:date>
        <title>static_route</title>
        <link>http://sys64738.dk/doku.php?id=static_route&amp;rev=1331212847&amp;do=diff</link>
        <description>Add pesistence static route

In this case the interface is called eth0. Same procedure with bonded interfaces. Eg. bond0
/etc/sysconfig/network-scripts/route-eth0:
GATEWAY0=192.168.1.254
NETMASK0=255.255.255.0
ADDRESS0=192.168.55.0
GATEWAY1=10.164.234.112
NETMASK1= 255.255.255.240
ADDRESS1=10.164.234.132
Alternative use this notation in route-eth0:</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=svm_needs_maintenance&amp;rev=1306933117&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:37+00:00</dc:date>
        <title>svm_needs_maintenance</title>
        <link>http://sys64738.dk/doku.php?id=svm_needs_maintenance&amp;rev=1306933117&amp;do=diff</link>
        <description># metastat d200                                                                                                                                                                                    
  d200: Mirror
    Submirror 0: d201
      State: Needs maintenance         
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 209682432 blocks
  d201: Submirror of d200
    State: Okay         
    Size: 209682432 blocks
    Stripe 0:
        Device    Sta…</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=tcpdump&amp;rev=1318600099&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-10-14T13:48:19+00:00</dc:date>
        <title>tcpdump</title>
        <link>http://sys64738.dk/doku.php?id=tcpdump&amp;rev=1318600099&amp;do=diff</link>
        <description>DHCP

Filter on DHCP messages:

tcpdump -i eth0 -n port 67 and port 68</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=time_calculations&amp;rev=1379578641&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-09-19T08:17:21+00:00</dc:date>
        <title>time_calculations</title>
        <link>http://sys64738.dk/doku.php?id=time_calculations&amp;rev=1379578641&amp;do=diff</link>
        <description>Epoch time calculations

Days since Epoch
echo $(date +%s)/86400 | bc
echo $(($(date +%s)/86400))
let days=$(date +%s)/86400 ; echo $days
Days since Epoch without GNU date

If perl is installed:
perl -e ' $days=int(time()/86400);print &quot;$days\n&quot;; '
Current Epoch time on system without GNU date
perl -e 'print time(), &quot;\n&quot; '

Convert from Epoch to date with GNU date
date -d @&lt;EPOCH time&gt;
Example:
date -d @1368023418
Wed May  8 16:30:18 CEST 2013
Convert from Epoch to date with perl

perl -e &quot;print …</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=tmux&amp;rev=1317818672&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-10-05T12:44:32+00:00</dc:date>
        <title>tmux</title>
        <link>http://sys64738.dk/doku.php?id=tmux&amp;rev=1317818672&amp;do=diff</link>
        <description>This is my ~.tmux.conf in order to use konsole scroll bar
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
In order to use Control+Arrow for forward/previous word in tmux, you need to add following to your /etc/inputrc:
# for tmux
&quot;\C-[OD&quot; backward-word
&quot;\C-[OC&quot; forward-word</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=tsm_handling&amp;rev=1372156824&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-06-25T10:40:24+00:00</dc:date>
        <title>tsm_handling</title>
        <link>http://sys64738.dk/doku.php?id=tsm_handling&amp;rev=1372156824&amp;do=diff</link>
        <description>Restore

Restore include inactive files. Pick from list.
dsmc restore -inactive -pick &lt;filesystem/file&gt; &lt;/restore_dest/&gt;
Query

List available management classes.
dsmc query mgmtclass

List default management class Name and detailed information about all management classes.</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=udev_handling&amp;rev=1368694682&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-05-16T08:58:02+00:00</dc:date>
        <title>udev_handling</title>
        <link>http://sys64738.dk/doku.php?id=udev_handling&amp;rev=1368694682&amp;do=diff</link>
        <description>Reload udev rules without rebooting
udevadm control --reload-rules

If udev has been stopped:
start_udev
Retrigger udev:
udevadm trigger</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=update_tsm_and_cfg2html&amp;rev=1306933117&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:37+00:00</dc:date>
        <title>update_tsm_and_cfg2html</title>
        <link>http://sys64738.dk/doku.php?id=update_tsm_and_cfg2html&amp;rev=1306933117&amp;do=diff</link>
        <description>Record TSM-server &amp; Node name:
# cat /opt/tivoli/tsm/client/ba/bin/dsm.sys
Remove old TSM client:
# yum remove TIVsm-BA-* TIVsm-API-* TIVsm-API64-*
Remove old TSM config files
# rm /opt/tivoli/tsm/client/ba/bin/*
Disable old backup jobs in cron
crontab -e
(delete all lines related to backup)</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=update_vmware-tools&amp;rev=1358524541&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-01-18T15:55:41+00:00</dc:date>
        <title>update_vmware-tools</title>
        <link>http://sys64738.dk/doku.php?id=update_vmware-tools&amp;rev=1358524541&amp;do=diff</link>
        <description>Uninstall old vmware tools
#  locate vmware-uninstall-tools.pl
# ./&lt;path and filename from above&gt;Uninstalling the tar installation of VMware Tools.
Stopping VMware Tools services in the virtual machine:
 Guest operating system daemon:                          [  OK  ]
 Unmounting HGFS shares:                                 [  OK  ]
 Guest filesystem driver:                                [  OK  ]
 Guest memory manager:                                   [  OK  ]
File /etc/X11/xorg.conf is backed…</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=user_login_information&amp;rev=1335790156&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-04-30T12:49:16+00:00</dc:date>
        <title>user_login_information</title>
        <link>http://sys64738.dk/doku.php?id=user_login_information&amp;rev=1335790156&amp;do=diff</link>
        <description>Last

show listing of last logged in users
last
username   pts/0        192.168.1.1    Fri Apr 27 13:30 - 13:30  (00:00)    
username   pts/0        192.168.1.1    Fri Apr 27 13:29 - 13:29  (00:00)    
username   pts/0        192.168.1.1    Fri Apr 27 13:28 - 13:28  (00:00)    
reboot   system boot  2.6.32-220.13.1. Fri Apr 27 13:27 - 13:31 (3+00:03)   
username   pts/0        192.168.1.1    Fri Apr 27 13:02 - down   (00:21)    
root     tty1                          Fri Apr 27 11:07 - 11:07  (0…</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=vpn_using_vpnc&amp;rev=1306933117&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:37+00:00</dc:date>
        <title>vpn_using_vpnc</title>
        <link>http://sys64738.dk/doku.php?id=vpn_using_vpnc&amp;rev=1306933117&amp;do=diff</link>
        <description>The company I'm working for is using a Cisco VPN concentrator for ingoing VPN connections to the company.

Using VPNC it's possible to connect from your Linux Fedora client.

With fedora 14 VPNC is supplied as a NetworkManager plugin in package NetworkManager-vpnc. I have although not been able to get a working VPN connection using the VPNC NetworkManager plugin.

But VPNC is working from the command line......</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=x_over_ssh&amp;rev=1334670453&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-04-17T13:47:33+00:00</dc:date>
        <title>x_over_ssh</title>
        <link>http://sys64738.dk/doku.php?id=x_over_ssh&amp;rev=1334670453&amp;do=diff</link>
        <description>Following packages must be installed:
xorg-x11-utils
xorg-x11-xauth
xorg-x11-apps (will provide xclock)
Log into server:
ssh -X &lt;username&gt;@&lt;hostname&gt;

Test X
xclock

A small X-window with analog clock should be displayed.
If sudo or su needs to be executed consult this page X over SSH with sudo/su</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=x_over_ssh_with_sudo_su&amp;rev=1306933117&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-06-01T12:58:37+00:00</dc:date>
        <title>x_over_ssh_with_sudo_su</title>
        <link>http://sys64738.dk/doku.php?id=x_over_ssh_with_sudo_su&amp;rev=1306933117&amp;do=diff</link>
        <description>X over SSH is a nice feature which allow the X traffic to be encrypted in the SSH tunnel.

Executing su / sudo will although break the X traffic and result in a error


X11 connection rejected because of wrong authentication.

X connection to localhost:10.0 broken (explicit kill or server shutdown).</description>
    </item>
    <item rdf:about="http://sys64738.dk/doku.php?id=yum_rpm_handling&amp;rev=1380279312&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-09-27T10:55:12+00:00</dc:date>
        <title>yum_rpm_handling</title>
        <link>http://sys64738.dk/doku.php?id=yum_rpm_handling&amp;rev=1380279312&amp;do=diff</link>
        <description>List query tags
rpm --querytags
List package that provide file
rpm -q --whatprovides &lt;filename&gt;
Example:
rpm -q --whatprovides /usr/bin/lsscsi
lsscsi-0.23-2.el6.x86_64

List files provided by installed rpm package
rpm -ql *package*

List files provided by rpm package placed in current folder
rpm -qlp *package*
List scripts provided by installed rpm package

rpm -q --scripts *package*

List scripts provided by rpm package placed in current folder

rpm -qp --scripts *package*
List package vendors
…</description>
    </item>
</rdf:RDF>
