Monday, June 04, 2012

cygwin shell setting for windows

add set Term=cygwin to Cygwin.bat 

Labels:

Friday, February 10, 2012

Ocr Feeder

Tried to install ocr feeder in ubuntu. The ocr feeder requires python package which has been installed by default. However, there are several packages that required to be installed. apt-get is enought for the job. The packages are: python-gtk, python-imaging-sane, python-reportlab, python-enchant, python-gtkspell, gnome-docs-utils etc. An update of package intltool is required as well. 

Labels:

Friday, November 12, 2010

It just doesn't work

Every time when I want to use find or grep in bash shell, it just doesn't work. Not even after I check the man page. I have to find examples online eventually. It's kinda weird. I'm not trying to make full use of them. The most simple function would suit me just fine. I always get the sequence of the arguments wrong or miss some controller. Sometimes, you have to write it down to memorize something. That's what I'm trying to do. Here are the examples of these two commands.

find files: find -iname '*' ./*(path) -r(search subdirs)

find text within files: grep -i(ignore cases) *(patterns to search) ./*(path) -r(search subdirs)

Labels:

Tuesday, November 09, 2010

Virtual Disk Expansion

In the other day, a problem popped out when I wanted to upgrade the system. It said that the disk space is not enough although i already set the disk to expansible. The successful solution is doing it from inside the system. I used GParted iso to boot the virtual machine instead of the hard disk and expanded the partition. After that, upgrade could be done using system application. 

However, there were two problems after the upgrade. First one is described in the previous post. The other one I encountered today is that it said no swap space available in the system monitor application. I guess it caused by changing the partition information expanding the disk. Here is the solution.

  • Check the UUID of swap partition in /etc/fstab
  • Check the UUID of /dev/disk/by-uuid
  • Compare the UUIDs between the two locations
  • Write the right one in fstab and reboot.

Labels: , ,

Monday, November 08, 2010

Guest Additions for VirtualBox

After several upgrade process, the Kubuntu system won't install guest additions properly until I tried this.

1 load VBoxGuestAdditions.iso in VirtualBox

2 start the guest system (Kubuntu)

3 run these commands

bash$ sudo mount /dev/sr0 -t iso9660 -r /cdrom
bash$ cd /cdrom
bash$ sudo ./VBoxLinuxAdditions-x86.run

4 reboot the guest system 

Thursday, October 28, 2010

some commands

1. sudo dpkg -i package.deb

2. tar xzvf package.gz

3. Share files through VirtualBox on Windows host and Kubuntu client

  • Add sharing folders through Menu Devices
  • Install guest additions through Menu Devices
  • mkdir dirname
  • sudo mount -t vboxsf foldername dirname (sudo mount.vboxsf foldername dirname)

Dropbox installation on Kubuntu (KDE)

Labels:

Wednesday, June 07, 2006

Network.

As I said before, the network should not be a problem. The truth is it is, and it's a big annoying one. The dhcp server at home is not the same one in my office. I installed my debian in my office which means the dhcp works there and not at home. It's not enough. The static IP address doesn't work either. Some article said it could be the problem of the ether card driver. I only want to say, "yeah, I wish." The windows xp system in the very same computer works fine everywhere.

Unlike fedora, you cannot login as root from the start under debian. It's more secure and much convient. I could raise a cow before I get used to it.

Chinese font. I get the information from here. http://sps.nus.edu.sg/~huyihuyi/debian-chinese-zh.html The chinese font looks pretty in firefox or nautilus etc., only I havn't figured out the chinese input yet. And The chinese font on fat32 partition doesn't work either. Still need some work.

I let the debian run autodetection on my graphic card and display screen. She gives me 800x600. In order to make it 1024x768, 24bits, I set the HorizSync to 31.5-67, VertRefresh to 50-90 and resolution to "1024x768" in etc/X11/XF86Config-4 according to some guy's experience on T22. It works.

All right, it seems I can go on with the configuration work on my IBM T23 now. One of the most important thing at the moment, the Netbeans, which doesn't work under Fedora 4, works and thank god.

I was trying to give some space to the windows xp system partition by PQ Magic. Obviously, the grub didn't like it. So I get my linux reinstalled,...again. I choose debian this time. Why? I probably thought the icon of debian is ugly.

I burned a net-install CD and ran the installation. The procedure is easy if you don't choose to select every single package yourself. I put my trust to the debian and it works very well. Oh, I forgot one thing, you have to make sure that your dhcp sever's ready and your ethernet card works OK with that.