Honda introduces iOS in the Car mirroring in new 2014 Civic, promised Siri Eyes Free updates incoming

Originally posted on 9to5Mac:

Honda-2014-Civic-Coupe

Update: A source close to the company tells us the feature is “more than just simple mirroring” and indeed part of Honda’s implementation of iOS in the Car. Collaboration with Apple first started in 2011 and Honda initially announced Siri Eyes Free, but the new 2014 Civic will be the first of its vehicles to expand its collaboration with Apple to the new iOS in the Car features. We’re told Honda plans to announce new iOS integration features the first week of December and that the hardware will enable a full roll out of iOS in the Car for the 14 Civic when Apple is ready with the feature later this year. We’ve reached out to Honda for an official comment and we’ll update if we hear back.

Update 2:It’s official.

After announcing back in January that it would begin supporting the Siri Eyes Free feature as an…

View original 204 more words

Comments Off Posted in Linux

How to merge compressed files under Linux/Unix/Windows

If you want to merge several compressed files into one file, do as follow:

Under Linux/Unix

cat “<filename1>” “<filename2>” “<filenamen>” > “<filename>”

example

# cat “NetBackup_7.1_CLIENTS_tar-gz.1of2″ “NetBackup_7.1_CLIENTS_tar-gz.2of2″ > “NetBackup_7.1_CLIENTS.tar.gz”
# ls -lrt
total 7867428
-rw-r–r–. 1 root root 1430244430 Dec  8 17:39 NetBackup_7.1_LinuxR_x86_64.tar.gz
-rw-r–r–. 1 root root 1866465280 Dec  8 17:43 NetBackup_7.1_CLIENTS_tar-gz.1of2
-rw-r–r–. 1 root root 1446523985 Dec  8 17:43 NetBackup_7.1_CLIENTS_tar-gz.2of2
-rw-r–r–. 1 root root 3312989265 Feb 22 12:26 NetBackup_7.1_CLIENTS.tar.gz
# file NetBackup_7.1_CLIENTS.tar.gz
NetBackup_7.1_CLIENTS.tar.gz: gzip compressed data, was “NetBackup_7.1_CLIENTS.tar”, from Unix, last modified: Mon Feb 14 19:44:10 2011

Under Windows

copy /B  “<filename1>” +  “<filename2>” + “<filenamen>” “<filename>”

or

copy /B  “<filename1>” +  “<filename2>” + “<filenamen>” PATH:\”<filename>”

example

F:\Symantec\NetBackup\7.1\Pkgs>copy /B “NetBackup_7.1_Win_zip.1of2″ + “NetBackup_7.1_Win_zip.2of2″ “Netbackup_7.1.zip”
NetBackup_7.1_Win_zip.1of2
NetBackup_7.1_Win_zip.2of2
        1 file(s) copied.

or

F:\Symantec\NetBackup\7.1\Pkgs>copy /B “NetBackup_7.1_Win_zip.1of2″ + “NetBackup_7.1_Win_zip.2of2″ d:\”NetBackup_7_1.zip”
NetBackup_7.1_Win_zip.1of2
NetBackup_7.1_Win_zip.2of2
        1 file(s) copied.

 

You’re done!

How to create Partition larger than 2TB on RHEL6

Because you cannot create partition larger than 2TB with fdisk utility, you need to use GNU parted with GPT (http://en.wikipedia.org/wiki/File:GUID_Partition_Table_Scheme.svg).

Suppose you have a logical volume  /dev/sdb which size is 7TB. Here is the procedure on how to create a partition of 7B under Linux

1) logon as root on your system

2) launch parted utility from command line

# parted /dev/sdb
GNU Parted 2.1
Using /dev/sdb
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted)

3) Label the disk with gpt flag

(parted) mklabel gpt
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? yes
(parted)

4) Specify the unit

(parted) unit TB

5) Create the partition

(parted) mkpart primary 0.00TB 7.20TB

or

(parted) mkpart primary 0 7

6) verify the partition was created successfully

(parted) p
Model: LSI RAID 5/6 SAS 6G (scsi)
Disk /dev/sdb: 7.20TB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 0.00TB 7.20TB 7.20TB primary

7) exit from parted utility. When you exit from parted, it will automatically save the configuration and label the disk automatically

(parted) quit
Information: You may need to update /etc/fstab.

8) Re-read the partition table

# partprobe /dev/sdb

9) Print the partition table again

# parted /dev/sdb print
Model: LSI RAID 5/6 SAS 6G (scsi)
Disk /dev/sdb: 7196GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 1049kB 7196GB 7196GB primary

10) format the partition in ext4

# mkfs.ext4 /dev/sdb1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
439230464 inodes, 1756909568 blocks
87845478 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
53617 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

11) verify the blockID

# blkid
/dev/sda1: UUID=”a1766d87-966f-4dab-ac66-c0849fed93dd” TYPE=”ext4″
/dev/sda2: UUID=”9e45fb76-52d0-4354-8dee-a48ac96a87ef” TYPE=”swap”
/dev/sda3: UUID=”dd865595-70de-493f-80f7-3acfe502f584″ TYPE=”ext4″
/dev/sda5: UUID=”3d83eb71-4cd5-409b-8a7c-52f2cbb80bb7″ TYPE=”ext4″
/dev/sdb1: UUID=”d55ca767-3199-4c17-983c-c6598e3e7a4b” TYPE=”ext4″

12) Label the disk (you can name as you want, i have labelled it ‘SPData’

[root@linwbp32 ~]# e2label /dev/sdb1 SPData

13) verify it has been labelled correctly with blkid and findfs command
# blkid
/dev/sda1: UUID=”a1766d87-966f-4dab-ac66-c0849fed93dd” TYPE=”ext4″
/dev/sda2: UUID=”9e45fb76-52d0-4354-8dee-a48ac96a87ef” TYPE=”swap”
/dev/sda3: UUID=”dd865595-70de-493f-80f7-3acfe502f584″ TYPE=”ext4″
/dev/sda5: UUID=”3d83eb71-4cd5-409b-8a7c-52f2cbb80bb7″ TYPE=”ext4″
/dev/sdb1: UUID=”d55ca767-3199-4c17-983c-c6598e3e7a4b” TYPE=”ext4″ LABEL=”SPData”
# findfs LABEL=SPData
/dev/sdb1

14) create a mount point call ‘Data’

# mkdir /Data

15) mount the partition on /Data and verify the diskspace

# mount LABEL=SPData /data
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 25G 1.3G 22G 6% /
tmpfs 71G 0 71G 0% /dev/shm
/dev/sda1 194M 31M 154M 17% /boot
/dev/sda5 28G 297M 26G 2% /var
/dev/sdb1 6.5T 181M 6.2T 1% /data

16) Add the following lines in /etc/fstab

LABEL=SPData /data                    ext4    defaults,nodev       1 2

17) reboot your system and make sure SPData is mounted on /Data properly

#init 6

Your’re done!

Comments Off Posted in RedHat

How to install Linux RedHat 5.x or 6.x using kickstart with TFTP (PXE) method

A. TFTP (PXE) Kickstart installation method

This post will not cover basic windows or Linux command that you must know before following this procedure.

1) Install Apache packages

rpm -ivh apr-util-1.2.7-11.el5_5.2.i386.rpm
rpm -ivh apr-1.2.7-11.el5_6.5.i386.rpm
rpm -ivh httpd-2.2.3-45.el5.i386.rpm

or

yum install apr-util
yum install apr
yum install httpd

2) install dnsmasq (if not alreay installed)

rpm -ivh dnsmasq-2.45-1.1.el5_3.i386.rpm

or

yum install dnsmasq

3) Add the following entry in /etc/httpd/conf/httpd.conf for Apache server

ServerName localhost:80

<Directory /var/www/html/pub>
    Options +Indexes
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
</Directory>

4) uncomment and modify the following lines in /etc/dnsmasq.conf for DHCP server

domain-needed
bogus-priv
expand-hosts
domain=mydomain.com
dhcp-range=<start_ip_address>,<endt_ip_address>,24H
dhcp-host=08:00:27:54:10:17,<ip_address>
dhcp-boot=linux-install/pxelinux.0
log-queries
log-dhcp
conf-dir=/etc/dnsmasq.d

5) run the following command to create the RHEL directory and necessary kernel/ram disk files

pxeos -a -i “PXE installation” -p HTTP -D 0 -s <ip_address> -K http://<ip_address>/pub/kickstart/ks.cfg -L /pub RHEL

verify with the command

pxeos -l

example:

pxeos -l

RHEL5
        Description:    PXE installation
        Protocol:       HTTP
        isDiskless:     False
        Server:         10.10.10.1
        Location:       /pub

ls -lrt /tftpboot/linux-install/RHEL
total 9400
-rw-r–r– 1 root root 1888084 Sep 20 14:46 vmlinuz
-rw-r–r– 1 root root      61 Sep 20 14:46 ks.cfg
-rw-r–r– 1 root root 7700914 Sep 20 14:46 initrd.img

6) run the following command to create specific boot configuration which will overide the default boot configuration files

pxeboot -a -K http://<ip_address>/pub/kickstart/ks.cfg -O RHEL <ip_address>

verify with the command

pxeboot -l

example:

pxeboot -l

pxelinux client: 10.10.10.1
default RHEL
label RHEL
    kernel RHEL/vmlinuz
    append initrd=RHEL/initrd.img  ramdisk_size=9322 method=http://10.10.10.1/pub ip=dhcp

ls -lrt /tftpboot/linux-install/pxelinux.cfg

total 24
-rw-r–r– 1 root root 276 Sep 20 14:46 pxeos.xml
-rw-r–r– 1 root root 345 Sep 20 14:46 default
-rw-r–r– 1 root root 148 Sep 23 11:14 0A0A0A01

cat /tftpboot/linux-install/pxelinux.cfg/0A0A0A01

default RHEL

label RHEL

    kernel RHEL/vmlinuz
    append initrd=RHEL/initrd.img  ramdisk_size=9322 ks=http://10.10.10.1/pub/kickstart/ks.cfg

7) turn on dnsmasq and httpd sercices

chkconfig dnsmasq on
chkconfig httpd on

8) copy the complete RedHat DVD to the public location of your Apache server (In this case, copy the content of the DVD to /var/www/html/pub)

Modify the file /var/www/html/pub/kickstart/ks.cfg as follow:

install
text
url –url http://<ip_address>/pub
key –skip
lang en_US.UTF-8
keyboard be-latin1
network –bootproto=dhcp –device=eth0 –noipv6

9) start apache server

/usr/sbin/apachectl -k start

Test your connection to HTTP server and make sure you can download files :

wget http://<ip_address>/pub/kickstart/ks.cfg

example:

wget http://10.29.1.11/pub/kickstart/ks.cfg

–2011-09-20 14:36:32–  http://10.29.1.11/pub/kickstart/ks.cfg
Connecting to 10.29.1.11:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 6211 (6.1K) [text/plain]
Saving to: `ks.cfg’
100%[==============================================================================>] 6,211       –.-K/s   in 0s
2011-09-20 14:36:32 (127 MB/s) – `ks.cfg’ saved [6211/6211]

10) start dnsmasq daemon

/etc/init.d/dnsmasq start

11) from another terminal session on your kickstart server, monitor /var/log/messages to see messages from DHCP server  and /var/log/httpd/access.log to see message from Apache server:

tail -f /var/log/messages
tail -f /var/log/httpd/access.log

12) change the boot order of the linux client

Network -> Harddisk

13) if you are using VirtualBox, Make sure both VM are in “internal network (inet)” mode

14) if you are using VirtualBox, Make sure the client use the following Network interface

PCnet-Fast III (Am 79c973)

15) Power on your virtual machine

16) At boot option, choose option 1 (PXE installation)

17) the installation will start automatically:

to see system log, do ALt+F3
to see kernel log, do ALt+F4
to access graphical view, do ALT+F1
to access shell prompt, do ALT+F2

18) At the End of the installation, power off the virtual machine (kickstart configuration will only shutdown after full installation automatically)  and change the boot order to :

HardDisk -> CD-ROM and disable network boot

19) power on your virtual machine

20) You are done!

B. TFTP method is not working with static IP address:

“Considerations when using static IP addresses:

- It is not possible to use PXE; you must use diskettes/CD/DVD
- You must designate a pool of IP addresses in advance by either assigning a permanent static IP address or reusing a deployment pool of static IP addresses
- Changing addresses requires that individual computers are modified
- A security risk exists if intruders know the available IP addresses

Mitigating risks associated with using static IPs include:

- Establish a small pool of static IP addresses that are used exclusively for deployment, using permanent IP addresses for deployed systems
- Create a set of boot diskettes for as many systems as you will deploy at one time
- Use virtual computers (import computers) to preassign tasks and computer names or permanent IP addresses before computers are powered on
- Install the BootWorks hidden or embedded partition after the system is deployed to enable easy remote management and imaging. 
  This method uses a permanent IP address.”

How to upgrade Linux RedHat 5.x or 6.x using kickstart over HTTP or CD-ROM (or .iso)

The following kickstart upgrade procedure apply for RedHat version 5.x or 6.x.
If you plan to upgrade from a version 5.x to 6.x, it will not work (you must reinstall your system from scratch!).
If you plan to upgrade from a release 5.x to a latest one, it will work (example from 5.5 to 5.6, and so on …).
This post will not cover basic windows or Linux command that you must know before following this procedure.

If you plan to upgrade your linux system, please refer first to my previous post to know how kickstart work
and then follow those instructions:

1) modify the file ks.cfg as follow

=> If you plan to use a static IP (modify the text between <> with your data):

upgrade
text
url –url http://<ip_address>/pub/
lang en_US.UTF-8
keyboard be-latin1
network –device eth0 –bootproto static –ip=<ip_address> –netmask=<netmask> –gateway=<gateway> –nameserver=<nameserver1,nameserver2> –hostname=<hostanme> –noipv6
bootloader –upgrade –location mbr
shutdown
clearpart –none

=> If you plan to use a DHCP IP (modify the text between <> with your data):

upgrade
text
url –url http://<ip_address>/pub/
lang en_US.UTF-8
keyboard be-latin1
network –device eth0 –bootproto dhcp –noipv6
bootloader –upgrade –location mbr
shutdown
clearpart –none

2) at boot menu (spalshscreen RedHat) type F2 if you install RedHat 5.x (or esc if you install RedHat 6.x)
3) at the boot prompt, type the following command:

=> If you plan to install over HTTP with DHCP address for the client, type the following command (modify the text between <> with your data)

linux ks=http://<ip_address>/pub/kickstart/ks.cfg

=> If you plan to install over HTTP with Static address for the client, type the following command (modify the text between <> with your data)

linux ks=http://<ip_address>/pub/kickstart/ks.cfg append ip=<ip_address> netmask=<netmask>

4) Once your upgradeis complete, logon to your linux system as root and check the file upgrade.log in the root directory. It contains the list of packages that have been upgraded during the installation:
  
[root@linux_kick01 ~]# ls -lrt
total 60
-rw-r–r– 1 root root  3329 Sep 27 10:15 install.log.syslog
-rw-r–r– 1 root root 19899 Sep 27 10:15 install.log
-rw——- 1 root root  1059 Sep 27 10:15 anaconda-ks.cfg
-rw-r–r– 1 root root  4613 Sep 27 10:22 upgrade.log
-rw-r–r– 1 root root   897 Sep 27 10:23 upgrade.log.syslog
[root@linux_kick01 ~]# more upgrade.log

Upgrading tzdata-2011g-1.el5.i386
warning: tzdata-2011g-1.el5: Header V3 DSA signature: NOKEY, key ID 37017186
Upgrading glibc-common-2.5-65.i386
warning: glibc-common-2.5-65: Header V3 DSA signature: NOKEY, key ID 897da07a
Upgrading nash-5.1.19.6-71.el5.i386
Upgrading yum-security-1.1.16-15.el5.noarch
Upgrading hwdata-0.213.23-1.el5.noarch
Upgrading emacs-leim-21.4-24.el5.i386
Upgrading libgcc-4.1.2-51.el5.i386
Upgrading glibc-2.5-65.i686
Upgrading bash-3.2-32.el5.i386
Upgrading coreutils-5.97-34.el5.i386

Upgrading rhn-client-tools-0.4.20-53.el5.noarch
Upgrading rhn-setup-0.4.20-53.el5.noarch
Upgrading yum-rhn-plugin-0.5.4-20.el5.noarch
Upgrading rhn-check-0.4.20-53.el5.noarch
Upgrading rhnsd-4.7.0-10.el5.i386
Upgrading rhn-setup-gnome-0.4.20-53.el5.noarch

5) You are done!

How to install Linux RedHat 5.x or 6.x using kickstart over HTTP or CD-ROM (or .iso)

The following procedure apply for RedHat version 5.x or 6.x using a Windows or Linux webserver.
This post will not cover basic windows or Linux command that you must know before following this procedure.

=> installing linux system using Kickstart method over HTTP, ks.cfg and rpms will be downloaded from the server to the client. It is possible to configure DHCP or Static address for installation.

=> installing linux system using Kickstart method with local CD-ROM, ks.cfg will be downloaded from the server to the client and rpms will be readed locally from the CD-ROM. It is possible to configure DHCP or Static address for installation.

Please follow those steps in order to install Linux using kickstart method:

1) install VirtualBox
2) create a Linux VM
3) install WAMP if your kickstart server is running Windows or httpd package for Linux
4) modify the file http.conf as follow:

For Windows

<Directory “c:/wamp/www/pub/”>
    Options +Indexes
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all 
</Directory>

For Linux

<Directory /var/www/html/pub>
    Options +Indexes
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
</Directory>

5) create the directory

For Windows

c:\wamp\www\pub

For Linux

/var/www/html/pub

6) create the following sub-directories

For Windows under c:\wamp\www\pub

disc1
disc2
disc3
disc4
disc5
kickstart

For Linux under /var/www/html/pub

disc1
disc2
disc3
disc4
disc5
kickstart

(INFO: discs 3,4,5 are not necessary for installation , but it will fail if they are not present while running anaconda script)

7) copy the file ks.cfg under

For Windows

c:\wamp\www\pub\kickstart

For Linux

/var/www/html/pub/kickstart

8) modidfy the file ks.cfg as follow:

=> If you plan to install over HTTP with DHCP address for the client, then use the following template (modify the text between <> with your data):

install
text
url –url http://<ip_address>/pub
key –skip
lang en_US.UTF-8
keyboard be-latin1
network –bootproto=dhcp –device=eth0 –noipv6

=> If you plan to install over HTTP with static address for the client, then use the following template (modify the text between <> with your data):

install
text
url –url http://<ip_address>/pub
key –skip
lang en_US.UTF-8
keyboard be-latin1
network –device eth0 –bootproto static –ip=<ip_address> –netmask=<netmask> –gateway=<gateway> –nameserver=<nameserver1,nameserver2> –hostname=<hostanme> –noipv6

=> If you plan to install using CD-ROM with DHCP address for the client, then use the following template (modify the text between <> with your data):

install
text
cdrom
key –skip
lang en_US.UTF-8
keyboard be-latin1
network –bootproto=dhcp –device=eth0 –noipv6

=> If you plan to install using CD-ROM with static address for the client, then use the following template (modify the text between <> with your data):

install
text
cdrom
key –skip
lang en_US.UTF-8
keyboard be-latin1
network –device eth0 –bootproto static –ip=<ip_address> –netmask=<netmask> –gateway=<gateway> –nameserver=<nameserver1,nameserver2> –hostname=<hostanme> –noipv6

9) modify the boot order of the Virtual Machine

CD-ROM -> HardDisk

10) copy the complete DVDs (disc1, disc2, …) in the following location on your kickstart server:

For windows

c:\wamp\www\pub\disc1
c:\wamp\www\pub\disc2
….
c:\wamp\www\pub\disc5

For Linux

/var/www/html/pub/disc1
/var/www/html/pub/disc2

/var/www/html/pub/disc5
11) mount the .iso linux image on your virtual machine
12) Power on your virtual machine
13) At boot menu (spalshscreen RedHat) type F2 if you install RedHat 5.x or esc if you install RedHat 6.x
14) At the boot prompt, type the following command:

=> If you plan to install over HTTP with DHCP address for the client, type the following command (modify the text between <> with your data)

linux ks=http://<ip_address>/pub/kickstart/ks.cfg

=> If you plan to install over HTTP with Static address for the client, type the following command (modify the text between <> with your data)

linux ks=http://<ip_address>/pub/kickstart/ks.cfg append ip=<ip_address> netmask=<netmask>

15) At the End of the installation, power off the virtual machine (kickstart configuration will only shutdown after full installation automatically) and change the boot order to :

HardDisk -> CD-ROM

16) power on your virtual machine
17) you are done!