Monday, 28 July 2008

nLite for SATA

Windows still fails to work with SATA or RAID adaptor without additional piece of driver. When you have a SATA or RAID in your PC it is a nightmare for Windows installation without a floppy drive. Linux can easily recognize the configured RAID or SATA without asking for extra driver.

nLite is a very good free tool for solving this problem by integrating the drivers into the installation CD. It is good to make Windows free from floppy drive.

But why MS Windows just cannot improve their products!

Tuesday, 15 July 2008

Ubuntu behind proxy server

Computer service department just cannot do anything right. Restricting people using Internet makes them feel that they are doing the job. Now I have to go through the proxy server to connect Ubuntu to the internet.

This link is useful. (http://ubuntuforums.org/showpost.php?p=3340662&postcount=25)

Install NTLMAPS first from http://packages.ubuntu.com/feisty/web/ntlmaps

Make some change of /etc/ntlmaps/server.cfg

1. Provide proxy IP for PARENT_PROXY
2. Give the right port number to PARENT_PROXY_PORT
3. Leave LISTEN_PORT: 5865
4. Under the [CLIENT_HEADER] section, comment out the first Accept and User-Agent part (Windows 9x, and then uncomment the next part (Windows 2000 emulation).
5. Fill in NT_HOSTNAME and NT_DOMAIN
6. Put the username in USER and password in PASSWORD
7. Restart ntlmaps: /etc/init.d/ntlmaps restart
8. Make a file: /etc/apt/apt.conf
Acquire::http::Proxy "http://127.0.0.1:5865";
9. Insert 8 into: System -> Preferences -> Network Proxy
10. In Synaptics: System -> Administration -> Synaptics -> Settings -> Preferences -> Network:
Manual proxy configuration: 127.0.0.1 port 5865 (no authentication)

Job done. Damn the ICT!

Thursday, 10 July 2008

Ubuntu Dialin

In work, I was asked to set up a dialin server.

Ubuntu 8.04 LTS, Hardy Heron, is the OS installed on the PC. Modem is USB modem MT5634ZBA from MultiTech.

Googled for help to set up the service, this is the one very useful, http://ubuntuforums.org/showthread.php?t=150339.

Install mgetty first.

Ubuntu does not have inittab any more, so in my case add this file under /etc does not work at all.

The usb modem is ttyACM0. Add a file called ttyACM0 under /etc/event.d and the contents are,

start on runlevel-2
start on runlevel-3
start on runlevel-4
start on runlevel-5

stop on shutdown

respawn /sbin/mgetty ttyS0

Then restart the service and it works!

For Ubuntu 10.04, there is no event.d any more.
Under /etc/init, create a new file called ttyACM0.conf and add following into this file.

start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]

respawn
exec /sbin/mgetty -n 2 ttyACM0

Start mgetty by "start ttyACM0".

Friday, 4 July 2008

Screen resolution

Original source: https://help.ubuntu.com/community/FixVideoResolutionHowto

Just installed the new version of Ubuntu, 8.04 LTS. The system only give 1024x768. To improve the resolution, I follow the instructions.

dpkg-reconfigure xserver-xorg does not work for me, so I go for the next solution.

Backup the /etc/X11/xorg.conf first. Then look for the section "Monitor". Google your monitor's HorizSync and VertRefresh, then add them into the file.

For example,

Section "Monitor"
Identifier "FLATRON 995F"
Option "DPMS"
HorizSync 30-96
VertRefresh 50-160
EndSection

By the way I found rdesktop is a quick cool tool under Linux which allows you to login the Windows system remotely. If you want to have the full screen, type
rdesktop -f ipaddress.