23 stycznia 2014
ESX WMware TIME
- Launch vSphere Client.
- Go to Configuration > Time Configuration > Properties.
- Input the correct Time and Date.
- Click Options.
- Click Restart on the Service Commands box.
-
Connect to an ESX host using an SSH client.
-
Log in with an user having administrative privileges.
-
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.
-
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 pool.ntp.org
ntpdate -u north-america.pool.ntp.org
ntpdate -u 0.us.pool.ntp.org
Or for example, if your internal ntp server was called ntp.yourdomain.com, you would issue the command: ntpdate -u ntp.yourdomain.com 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. -
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`
-
Create a new ntp.conf file that contains this information: restrict 127.0.0.1
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org
server north-america.pool.ntp.org
server pool.ntp.org
server 127.127.1.0 # local clock
fudge 127.127.1.0 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: restrict 127.0.0.1
server ntp.yourdomain.com
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift
broadcastdelay 0.008 -
Restart the ntpd service using any of these commands: service ntpd restart
/etc/init.d/ntpd restart -
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
Source:
22 stycznia 2014
OVM and VMWare comparison.
Migrate from vSphere into Oracle VM 3.0
By Steen Schmidt on Dec 06, 2011
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.
Source:
http://www.davemalpass.com/how-to-migrate-vmware-appliances-to-ovm-3/
ORACLE – archive log mode.
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.
17 stycznia 2014
Windows – prawa administratora
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.
http://www.serverintellect.com/support/windowsserver/2008-uac/
Na marginesie:
tak się uruchamia at:
at 22:00 /every:M,T,W,Th,F C:\ora_back_skrypty\orabck_personel.bat
lub
at 22:00 /every:Pn,Wt,Sr,Cz,Pt C:\ora_back_skrypty\orabck_personel.bat
kasowanie
at 7 /delete
11 stycznia 2014
8 stycznia 2014
Linux Wacom Bamboo
Instalacja:
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”
xrandr
xsetwacom set “device name” MapToOutput VGA1
xsetwacom set “Wacom Bamboo 2FG 6×8 SE Pen stylus” MapToOutput VGA1