Skip to main content

Posts

Installing VirtualBox guest additions in Fedora 11 guest

This is a short guide on how to install VirtualBox 3.0.6 guest additions in Fedora 11. It is always a good practice to update your system before installing VirtualBox guest additions, so let us do just that. Open a terminal in Fedora guest, thus say, Login as root: $: su Check for updates and install as necessary #: yum check-update #: yum update Note that when I installed Fedora 11, I selected Development machine, so most of the common development tools are already installed by default. But if you have selected Destkop machine, then you have to do the following: #: yum -y install gcc kernel-devel You probably need to reboot after all the updates. It is now time to install the Virtual Box guest additions. From the host machine, using Virtual Box main application do, "Devices > Install Guest Additions..." or You should note that in the guest machine, Fedora 11, will mount the guest addition automatically. Now it is time to install the much needed software. Open a t

Creating new user in Fedora Linux

Creating a user in Fedora now is so much easier that it used to 5 years ago. To do this, do "System > Administration > Users and Group" or through console command "system-config-users" as regular user. Once the program is run it should ask for root password. Once the required password is entered, you should see a window as shown below. Now to create the new user either do "File > Add User" or click on Add User button. Let us try to create a new user with the corresponding information: User Name: timus Full Name: Timus Tunes Password : password Confirm Password : password Login Shell: /bin/bash Leave the rest with the default values. Enjoy! ~ts

Fedora 11 Fatal boot failure on vbox

I tried installing Fedora 11 on Virtual Box 3.0.6 and really surprised of the result after the first reboot, I was presented with following fatal error message: Booting from local disk... FATAL: INT18: BOOT FAILURE Or this image capture: Though the issue is easy to work-around, thus say, unmount the DVDROM from VirtualBox but this got me thinking why is it that this issue is not present in Ubuntu 9.04 nor OpenSUSE 11.1? Was this a regression in Fedora or due to VirtualBox? Note that this issue was  reported in Virtual Box and claimed to be an issue with Fedora installer. But this issue was reported way back Fedora 10? :(... I wish I am brave enough to mess around with probably GRUB or Linux kernel to help fix this minor hiccup. ~ts

Windows name to ip resolution order

Oder of resolution for TCP/IP names to IP for Windows environment:  Local cached information. Can be cleared using ipconfig /flushdns.  Hosts file DNS server NetBIOS over TCP/IP In older versions of Windows up to NT 4.0, the priority can be configured through system.ini section [DNS]. The said section cannot be found in XP SP3, it might be still working and defaults normal resolution order if the section is not defined. Resources: Link 1 Link 2 ~ts

SHGetFolderLocation C++ sample code

Original code is from MSDN . Sample code demonstrates how to use  SHGetFolderLocation in C++. #include #include #include #include int main() {     IShellFolder *psfParent = NULL;     LPITEMIDLIST pidlSystem = NULL;     LPCITEMIDLIST pidlRelative = NULL;     STRRET strDispName;     TCHAR szDisplayName[MAX_PATH];     HRESULT hr;     hr = SHGetFolderLocation(NULL, CSIDL_DESKTOP, NULL, NULL, &pidlSystem);     if (!SUCCEEDED(hr))     {         std::cout << "hr bad" << std::endl;         return -1;     }     hr = SHBindToParent(pidlSystem, IID_IShellFolder, (void **) &psfParent, &pidlRelative);     if(SUCCEEDED(hr))     {         hr = psfParent->GetDisplayNameOf(pidlRelative, SHGDN_NORMAL, &strDispName);         hr = StrRetToBuf(&strDispName, pidlSystem, szDisplayName, sizeof(szDisplayName));         std::wcout << "SHGDN_NORMAL - " < << '\n';     }     psfParent->Release();     CoTaskMemFree(pidlSyste