Styczeń « 2014 « Różności …

Różności …

23 stycznia 2014

Do zobaczenia i przemyślenia.

Zaszufladkowany do: Z sieci — Tagi: — Jacek @ 16:09


Zaszufladkowany do: VMware — Tagi: — Jacek @ 15:03
To set the time from vSphere Client:
  1. Launch vSphere Client.
  2. Go to Configuration > Time Configuration > Properties.
  3. Input the correct Time and Date.
  4. Click Options.
  5. Click Restart on the Service Commands box.
etting time on your ESX host:
  1. Connect to an ESX host using an SSH client.
  2. Log in with an user having administrative privileges.
  3. To open up the ntpClient port in the internal ESX host firewall, run the commands:

    esxcfg-firewall -q ntpClient
    esxcfg-firewall -e ntpClient
    esxcfg-firewall -q ntpClient

    Note: The first line tells the status of the ntpClient port. The second line enables the ntpClient port. The third line shows you that it is open.

  4. Now set the system time to the right time. If your ESX host has ntp access to the Internet, you can just issue the ntpdate command, with the -u switch, and point it at an ntp server. If your ESX host is blocked by your corporate firewall, you have to point it at an internal ntp server. If you do not have one, you have to set one up.  Any of these ntpdate command should work:

    ntpdate -u
    ntpdate -u
    ntpdate -u

    Or for example, if your internal ntp server was called, you would issue the command:

    ntpdate -u

    Note: Some programs react badly to sudden large changes in system time. For this reason, just updating and restarting ntpd as described below is preferred by some ntpd updates the system clock slowly for this reason.

  5. Configure the ESX host as an ntp client. Make a backup copy of /etc/ntp.conf using the command:

    cp /etc/ntp.conf /etc/ntp.conf.bak.`date +%d%m%y`

  6. Create a new ntp.conf file that contains this information:

    server     # local clock
    fudge stratum 10
    driftfile /var/lib/ntp/drift
    broadcastdelay  0.008

    Note: This ntp.conf assumes that the ESX host can send an ntp request out to the Internet. If you have outgoing ntp traffic blocked by your corporate firewall, you must instead set up an internal ntp server and make sure that it has access to the Internet so it can get an accurate time. While it is possible for you to configure one of your ESX hosts as an ntp server as well as a client, we recommend that ESX hosts be used solely as ESX hosts, and that they not be used for supporting IT infrastructure needs like ntp.

    If your corporate firewall has ntp access blocked to the Internet, then your ntp.conf file should contain something like this, under the assumption that you have an internal ntp server, which separately has Internet ntp access:

    server     # local clock
    fudge stratum 10
    driftfile /var/lib/ntp/drift
    broadcastdelay  0.008

  7. Restart the ntpd service using any of these commands:

    service ntpd restart
    /etc/init.d/ntpd restart

  8. Update the hardware clock with the current time of the system clock. Even though the system clock is updated from a known ntp server which has the right time and reconfigured ntp and restarted ntpd service, when the machine reboots, it sets its system clock based upon the time from the internal hardware clock.

    /sbin/hwclock –systohc


ntpdate – linux time

Zaszufladkowany do: Linux — Tagi: — Jacek @ 14:17

ntpdate -q my.ntp.server

ntpdate -u

22 stycznia 2014

OVM and VMWare comparison.

Zaszufladkowany do: Oracle — Tagi: — Jacek @ 22:59

Migrate from vSphere into Oracle VM 3.0

Zaszufladkowany do: Oracle — Tagi: — Jacek @ 21:49

By Steen Schmidt on Dec 06, 2011

I have had so many question “Can we do an import of vmware VM into Oracle VM 3.0″, and the answer is yes. But as you properly have found out I like to see how it works.

So I just took a vmware image of a Linux converte into a ova (Open Virtualization Archive) file, then I was able to do a import through the OVM manager. When this assemblies had been loaded, it was unpack and the next step was to create a Clone from my new Template.

And “voila”, I had a running VM with Linux in Oracle VM 3.0, imported from VMware.

So it could not be more simple, and it works.


This article covers the steps to migrate a VMware ESX virtual machine over to an Oracle Virtual Machine. These steps should work with either OVM 2.x or 3.x

Step 1.
Download and install “VMware OVFTOOL 1.0” from the VMware site. You must register to get it.

Step 2.
Unzip your VMware appliance into a directory on your windows or linux machine.

Step 3.
Run the following command to export the vmx file to ovf

C:Program FilesVMwareVMware OVF Tool>ovftool.exe –skipManifestCheck c:temp
opsview-applianceopsview-appliance.vmx c:tempjohn.ova
Opening VMX source: c:tempopsview-applianceopsview-appliance.vmx
Opening OVA target: c:tempjohn.ova
Writing OVA package: c:tempjohn.ova
Disk Transfer Completed

Step 4.
Import the charliebrown.ovf into OVM 3.x as an assembly. Once charlie has been imported create a vm from the template as usual.

Step 5.
Grab a glass of milk and a cookie.


ORACLE – archive log mode.

Zaszufladkowany do: Bazy danych,Oracle,Oracle — Tagi: — Jacek @ 20:49
SQL> startup mount
ORACLE instance started.

Total System Global Area  184549376 bytes
Fixed Size                  1300928 bytes
Variable Size             157820480 bytes
Database Buffers           25165824 bytes
Redo Buffers                 262144 bytes
Database mounted.

SQL> alter database archivelog;
Database altered.

ORACLE – Renaming and moving files.

Zaszufladkowany do: Bazy danych,Oracle — Tagi: — Jacek @ 09:15

17 stycznia 2014

Windows – prawa administratora

Zaszufladkowany do: Windows — Tagi: — Jacek @ 15:12

Ano tak … wracamy do super systemu :-) Jestem jego prawdziwym fanem, nie pozwala mi się nudzić.

Case study:
Windows 2008 Server Enterprise (brzmi dumnie)
grupa “administratorzy” – przytoczę opis (wzięty z systemu) – “Administratorzy mają pełny i nieograniczony dostęp do komputera/domeny”

Zajebiście – o to mi chodziło.
To uruchamiam polecenie “at”. No i skończyło się administrowanie, przywileje, radości … BRAWO!!! – Być adminem tylko z nazwy – to lubię!!!!

Czytamy … co zrobić, aby administrator był administratorem …
Usługa Harmonogram – sprawdzam – uruchomiona.

No tak UAC (pomógł telefon do przyjaciela – admina Windowsów) – prawy przycisk myszy na CMD -> uruchom jako administrator (kuźwa … a kim ja do tej pory byłem???) i problem rozwiązany

UAC – User Account Controll

Turning off UAC

Use the following procedure to disable UAC entirely.

To perform the following procedure, you must be able to log on with or provide the credentials of a member of the local Administrators group.

Important: Turning off UAC reduces the security of your computer and may expose you to increased risk from malicious software. Microsoft does not recommend leaving UAC disabled.

To turn off UAC

Click Start, and then click Control Panel.

In Control Panel, click User Accounts.

In the User Accounts window, click User Accounts.

In the User Accounts tasks window, click Turn User Account Control on or off.

If UAC is currently configured in Admin Approval Mode, the User Account Control message appears. ClickContinue.

Clear the Use User Account Control (UAC) to help protect your computer check box, and then click OK.

Click Restart Now to apply the change right away, or click Restart Later and close the User Accounts tasks window.

Disable Admin Approval Mode

Use the following procedure to disable Admin Approval Mode.

To disastrongle Admin Approval Mode

Click Start, click All Programs, click Accessories, click Run, type secpol.msc in the Open box, and then clickOK.

If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue

From the Local Security Settings console tree, double-click Local Policies, and then double-click Security Options.

Scroll down and double-click User Account Control: Run all administrators in Admin Approval Mode.

Select the Disabled option, and then click OK.

Close the Local Security Settings window.

Na marginesie:

tak się uruchamia at:
at 22:00 /every:M,T,W,Th,F C:\ora_back_skrypty\orabck_personel.bat
at 22:00 /every:Pn,Wt,Sr,Cz,Pt C:\ora_back_skrypty\orabck_personel.bat

at 7 /delete

11 stycznia 2014

Kolejny wpis z odrabiania lekcji …

Zaszufladkowany do: Matematyka — Tagi: — Jacek @ 22:31

8 stycznia 2014

Linux Wacom Bamboo

Zaszufladkowany do: Linux — Tagi: — Jacek @ 22:40


sudo add-apt-repository ppa:irie/wacom
sudo apt-get update
sudo apt-get install xserver-xorg-input-wacom
sudo apt-get install wacom-dkms

Disabling touch

xsetwacom --list devices

Wacom BambooPT 2FG 4x5 Pen eraser    id: 9    type: ERASER
Wacom BambooPT 2FG 4x5 Pen stylus    id: 10    type: STYLUS
Wacom BambooPT 2FG 4x5 Finger pad    id: 11    type: PAD
Wacom BambooPT 2FG 4x5 Finger touch    id: 12    type: TOUCH

xsetwacom set 12 touch off
xsetwacom set 12 touch on

Mulit monitors – working on single monitor

xinput –list

“Wacom BambooFun 2FG 6×8 Pen stylus”


xsetwacom set “device name” MapToOutput VGA1

xsetwacom set “Wacom Bamboo 2FG 6×8 SE Pen stylus” MapToOutput VGA1


5 stycznia 2014

Kąty w okręgu …

Zaszufladkowany do: Matematyka — Tagi: — Jacek @ 23:11

Strona startowa: