December 18, 2010

CVS Server Installation on Ubuntu Linux 10.04

Filed under: Linux memo,Ubuntu — mariojump @ 6:48 am

I installed CVS Server on Ubuntu 10.04.
CVS repository is copied from another machine, and it is placed in /opt/cvsroot .


# apt-get install xinetd
# apt-cache search git-cvs
# apt-get install git-cvs
# apt-cache search cvsps
# apt-get install cvsps

Edit /etc/xinetd.d/cvspserver .

# vi /etc/xinetd.d/cvspserver

The file now looks:

# cat /etc/xinetd.d/cvspserver
service cvspserver
port = 2401
socket_type = stream
protocol = tcp
user = root
wait = no
server = /usr/bin/cvs
server_args = -f –allow-root /opt/cvsroot pserver
disable = no

# /etc/init.d/xinetd restart

Ensure CVS server is running.

# netstat -tap | grep cvs
tcp 0 0 *:cvspserver *:* LISTEN 11676/xinetd

December 8, 2010

Ubuntu Screen Resolution on Toshiba Satellite Pro 4600 with Trident XP

Filed under: Linux memo,Ubuntu — mariojump @ 9:48 pm

I installed Ubuntu Linux 10.04 on Toshiba Satellite Pro 4600 with Trident XP 16MB video, which is about 10 years old.
At first, the screen resolution was 800×600 on 1024×768 LCD.

Finding the following entry, I made /etc/X11/xorg.conf as shown below.

Then, the screen resolution became 1024×768.

$ cat /etc/X11/xorg.conf
Section “Monitor”
Identifier “Configured Monitor”
Option “DPMS” “true”
HorizSync 30.0-60.0
VertRefresh 50.0-70.0

Section “Screen”
Identifier “Default Screen”
Monitor “Configured Monitor”
Device “Configured Video Device”
DefaultDepth 24
SubSection “Display”
Depth 24
Modes “1024×768” “800×600”


December 26, 2009

Re-installing GRUB Using Ubuntu Live USB

Filed under: Linux,Linux memo,Ubuntu — mariojump @ 1:24 am

GRUB can be re-installed using Ubuntu Live CD (or Live USB).
I had to do this after upgrading Vista to Windows 7, as Windows 7 installer wiped off the GRUB for Ubuntu and Vista.

Even if your HDD-Installed Ubuntu is 64bit, either 32bit or 64bit Live CD/USB can be used.

You need to know which partition you had GRUB. Mine had /boot in a partition /dev/sda6, and it made me enter:
root (hd0,5)

Here’s the step.

ubuntu@ubuntu:~$ sudo grub
Probing devices to guess BIOS drives. This may take a long time.

[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> device (hd0) /dev/sda
device (hd0) /dev/sda
grub> root (hd0,5)
root (hd0,5)
grub> setup (hd0)
setup (hd0)
Running “embed /grub/e2fs_stage1_5 (hd0)”… 17 sectors are embedded.
Running “install /grub/stage1 (hd0) (hd0)1+17 p (hd0,5)/grub/stage2
/grub/menu.lst”… succeeded

If you use Ubuntu 9.10 Live, whose default is GRUB2, you may need to use GRUB2, or install GRUB.
My Ubuntu 9.10 was originally upgraded from 9.04, so I installed GRUB to Ubuntu 9.10 live USB.

December 17, 2009

Allowing root to remote-login via ssh

Filed under: Linux,Linux memo — mariojump @ 2:16 pm

In order to allow a root user to ssh-login, modify:

In this file, find a line:
PermitRootLoging no

and change it to

PermitRootLoging yes

Then, restart sshd.
Because of the security reasons, it is recommended that this change is done temporarily.

December 12, 2009

system-config-display — X configuration tool

Filed under: Linux,Linux memo — mariojump @ 12:17 am

system-config-display is an X configuration tool.

It allows you to set the display resolution, etc.

Blog at