Wednesday, September 21, 2011
Wednesday, September 7, 2011
How to create and display a new form, window or activity
Friday, August 26, 2011
SQUID - The requested URL could not be retrieved
Error from squid is that it can not retrieve the url "/",
but the browser's url is http://google.com
the fix :
in squid.conf :
http_port 3128 transparent
but the browser's url is http://google.com
ERROR
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: /
Invalid URL
Some aspect of the requested URL is incorrect.
Some possible problems are:
- Missing or incorrect access protocol (should be
http://
or similar) - Missing hostname
- Illegal double-escape in the URL-Path
- Illegal character in hostname; underscores are not allowed.
Your cache administrator is .
Generated Fri, 26 Aug 2011 15:44:39 GMT by (squid/3.1.14)
the fix :
in squid.conf :
http_port 3128 transparent
Saturday, August 13, 2011
Ubuntu kdm gdm lxdm
I have installed Kubuntu-desktop and Lubuntu-desktop on top of Ubuntu
If I want to switch from gdm to kdm or lxdm :
In a terminal window one of the following commands can be used :
sudo dpkg-reconfigure gdm
sudo dpkg-reconfigure kdm
sudo dpkg-reconfigure lxdm
If I want to switch from gdm to kdm or lxdm :
In a terminal window one of the following commands can be used :
sudo dpkg-reconfigure gdm
sudo dpkg-reconfigure kdm
sudo dpkg-reconfigure lxdm
How to Switch Between GDM and KDM on Ubuntu
Sunday, August 7, 2011
Change SQL Server Password by Windows Authentication
Change SQL Server Password
Change SQL Server Password by Windows Authentication
If Builtin/Administrator is present in SQL Server, you can login with an ID which is member of Administrators group and reset sa password in SQL Server. Just do as follows:- 1. Login into SQL server using Windows Authentication.
- 2. In Object Explorer, open Security folder, open Logins folder. Right Click on sa account and go to Properties.
- 3. Type a new SQL sa password, and confirm it. Click OK to finish.
VirtualBox VBoxManage
In NAT mode, the guest network interface is assigned to the IPv4 range 10.0.x.0/24 by default where x corresponds to the instance of the NAT interface +2. So x is 2 when there is only one NAT instance active. In that case the guest is assigned to the address 10.0.2.15, the gateway is set to 10.0.2.2 and the name server can be found at 10.0.2.3.
If, for any reason, the NAT network needs to be changed, this can be achieved with the following command:
VBoxManage modifyvm "VM name" --natnet1 "192.168.61/24"
This command would reserve the network addresses from 192.168.61.0 to 192.168.61.254 for the first NAT network instance of "VM name". The guest IP would be assigned to 192.168.61.15 and the default gateway could be found at 192.168.61.2.
VBoxManage startvm "New Saratele"
Waiting for the VM to power on...
VM has been successfully started.
Port forwarding with NAT
As the virtual machine is connected to a private network internal to VirtualBox and invisible to the host, network services on the guest are not accessible to the host machine or to other computers on the same network. However, like a physical router, VirtualBox can make selected services available to the world outside the guest through port forwarding. This means that VirtualBox listens to certain ports on the host and resends all packets which arrive there to the guest, on the same or a different port.
Network Interface in Virtual Machine ( Windows Server 2008 - guest ) has IP = 192.168.61.15
Network Interface on the HOST Machine has IP = 192.168.101.22
ping from guest to host is OK , but from host to guest KO ...
From Linux : to acces port 80 ( IIS service ) on the Windows Server 2008 guest :
1. VBoxManage modifyvm "New Saratele" --natpf1 "guest_iis,tcp,192.168.101.22,8000,192.168.61.15,80"
2. From host Browser :
http://192.168.101.22:8000
Network & sharing in VirtualBox - Full tutorial
VBoxManage modifyvm
Saturday, August 6, 2011
Android SDK, 64-bit linux & ia32-libs
Android SDK on a 64-bit linux machine
When installing Android SDK on Eclipse Indigo on Linux Mint 11 Katya amd64, appears an error
of shared libraries :
[2011-08-06 22:29:50 - SDK Manager] Created AVD 'a1' based on Android 1.5, ARM (armeabi) processor
[2011-08-06 22:36:34 - LocalPassport] /opt/android-sdk-linux_x86/platform-tools/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
The available SDK downloads seem to be just for 32-bit versions of Linux;
Is it possible to develop using the Android SDK on a 64-bit linux machine.
The solution is :
apt-get install ia32-libs
apt-get install sun-java6-jdk
Subscribe to:
Posts (Atom)