May 9, 2008
You need to edit
- First of all, find a mirror closes to you, which you know is also fastest for you, from the list of Ubuntu mirrors at Ubuntu Wiki. There are tools to benchmark the server speed, e.g., see
- Copy the link of your selected mirror and change appropriately the
- As an example, have a look at my sources.lst file below with only Swiss mirrors used:
deb http://mirror.switch.ch/ftp/mirror/ubuntu/ gutsy main restricted
deb http://mirror.switch.ch/ftp/mirror/ubuntu/ gutsy-updates main restricted
deb http://mirror.switch.ch/ftp/mirror/ubuntu/ gutsy-security main restricted
deb http://mirror.switch.ch/ftp/mirror/ubuntu/ gutsy universe multiverse
deb http://mirror.switch.ch/ftp/mirror/ubuntu/ gutsy-updates universe multiverse
deb http://mirror.switch.ch/ftp/mirror/ubuntu/ gutsy-security universe multiverse
May 8, 2008
- Stop the andLinux service and make sure no colinux daemon is running.
- Download dd for windows and put in the same folder as base.drv or wherever your “/” drive image is located.
- The following command extends a 4 GB partition to 16 GB:
dd bs=16384 if=/dev/zero of=base.drv seek=262144 count=786432
seek=262144tells dd that it should start filling zeros starting from this address which is the size of your 4GB image divided by 16384. In my case it is
4294967296/16384=262144number of 16K blocks.
count=786432tells dd that it should fill 12GB of zeros. This is just (1024)^3/16384 number of blocks.
- After it has increased the file size, start the andLinux service and at the command prompt in Linux, type the following:
apt-get install ext2resize
- Now you should have the new expanded hard disk image. To check, type:
at the command prompt and you will see that /dev/cobd0 is now new size.
May 7, 2008
If you encounter this error, you should check the following:
- that the given IP address, which indicates your display, is reachable, either using ping, telnet, or some other approach
- that Xming.exe is running. You can check it using Windows Task Manager.
- If everything seems working, then you may try killing the Xming.exe from Task Manager and restarting it using the following command:
<PATH-TO>\Xming.exe :0 -dpi 85 -clipboard -notrayicon -c -multiwindow -reset -terminate -unixkill -logfile Xming.log
It solved this problem for me.
May 6, 2008
Follow these steps:
apt-get install gcc-3.4
ln -s /usr/bin/gcc-3.4 /usr/bin/gcc34
apt-get install libsdl1.2-dev
apt-get install libsdl1.2debian-all
tar -xvzf qemu-0.9.1.tar.gz
./configure (This selects all available targets)
May 5, 2008
If Samba share fails to mount during boot-up and you are a domain user, do the following:
- Edit /etc/smbpasswd
- Change the first line to
username = <Domain>/<Username>. e.g., devel-net/andy
- The password in the second line should be the domain password
Now restart the andLinux service. The share should mount okay.
May 2, 2008
Use the following command to configure default command-line programs, e.g., pager, editor, ssh, etc.:
update-alternatives --config editor
allows you to change the default editor
nano in ubuntu, to e.g.,
emacs, if installed.
May 2, 2008
Execute the following command:
M - x customize <ENTER>
to customize emacs in a user-friendly way.
How to enable syntax-highlighting:
- Search for
Facesgroup and press
Go to Groupt.
- Next go to
Global Font Lock Modeto on to enable global syntax-highlighting.
Save for Future Sessionsto save the changes.
May 1, 2008
- Download and run Cygwin setup.
- Select Unix/Binary file types during installation.
- Select appropriate development packages, at least the gcc, make, automake, and autoconf.
- In Editors, choose
emacsif you like to use it.
ruby. You will need it for Terminator, a GPL terminal emulator.
- Complete the Cygwin installation. It will take some time until it downloads and installs the required packages.
- Go to My Computer -> right click -> Properties -> Advanced(tab) -> Environment Variables and create a new system-wide variable named “CYGWIN”. Give it the value “ntsec tty”. ntsec is for file permissions, and tty is needed for emacs to function properly.
- Edit the PATH variable in the Environment Variables and add “C:\Cygwin\bin”, assuming it is the correction Cygwin location.
- When you first get into the Cygwin, type the following commands to make appropriate passwd and group files:
mkpasswd -l -c > /etc/passwd
mkgroup -l -d > /etc/group
- Download and install Terminator. You have desktop icon as well but it does not work for me. So, if this is also the case for you, enter
terminatorat the command prompt. You shall have terminator running.
This installs a basic cygwin system with a decent terminal in the form of Terminator.
April 29, 2008
You get this message when you start Cygwin:
Your group is currently “mkpasswd”. This indicates that
the /etc/passwd (and possibly /etc/group) files should be rebuilt.
See the man pages for mkpasswd and mkgroup then, for example, run
mkpasswd -l [-d] > /etc/passwd
mkgroup -l [-d] > /etc/group
Note that the -d switch is necessary for domain users.
Issue the following commands to fix it:
mkpasswd -l -c > /etc/passwd
mkgroup -l -d > /etc/group
It will create a local user based on the current logged on user. The groups will be fetched from the domain. For the local installation the “-d” option can be omitted from mkgroup command.
Thanks to sinewalker for this tip.
April 27, 2008
Yesterday, I installed Ubuntu 8.04 to my second SATA II drive. I explicitly selected that grub be installed to second drive. After restarting, the computer failed to boot in both windows or linux and “GRUB” continued flooding on the screen. Here is how to solve this:
- Fix the XP boot record first: Boot with windows XP CD and when prompted press “R” to enter recovery console. Once in the console, enter:
to fix the master boot record of windows partition.
- Reboot the computer into windows and download the latest version of grub4dos. Do not be alarmed by the name, it is equally useful for XP NTFS partitions. Extract to a convenient location.
- In windows, go to Control Panel->System->Advanced->Startup and Recovery, click Settings
- In System Startup, click Edit
- Add the following line to the end of the opened (boot.ini) file:
and save the file.
grldrto the same location where boot.ini is located. It is usually found in C: drive and is a hidden and system file. You need to make it visible using appropriate folder view options.
- Download and install Ext2IFS for windows. Run the program and map ext3 based Ubuntu partition into windows.
- Copy menu.lst from /boot/grub from the Ubuntu partition to the same location as windows boot.ini file.
- Open menu.lst in wordpad and edit the following lines to your need:
title Ubuntu 8.04, kernel 2.6.24-16-genericIt was
hd0,0and I had to make it
hd1,0to refer to the second harddisk. This should boot Ubuntu fine, but you may want to make other changes in menu.lst file to your needs. Save and close menu.lst file.
- Now reboot your computer, press F8 at reboot to get to OS choice menu. Select
Start GRUB4DOS. Now you should see the usual grub menu. Select the first choice for Ubuntu and this should boot you in Ubuntu.
- If you are unable to get to grub menu after selecting
Start GRUB4DOSfrom the menu, please check again the location of
menu.lstfiles. You may try putting them in the C: root as well, if boot.ini location is different.