MarioNote

December 4, 2011

X11 Forwarding Fails When IPv6 is Disabled [Resolved]

Filed under: Ubuntu — mariojump @ 5:49 pm
Tags: , , ,

After disabling Ubuntu 11.10’s IPv6 by putting the following lines in /etc/sysctl.conf, I found that X11 Forwarding (ssh -X option) stopped working.
#Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

Ubuntu Forum had an exact same case and workaround.

http://ubuntuforums.org/showthread.php?t=1649657

So, I put the following lines in remoet host’s /etc/ssh/sshd_config file.

$ cat /etc/ssh/sshd_config

………………………………

# Workaround to have X forwarding work when ipv6 is disabled
# http://ubuntuforums.org/showthread.php?t=1649657
AddressFamily inet

————-

It worked.

November 13, 2011

Linux rdesktop (Remote Desktop) with ClearType font smoothing enabled

Filed under: Linux,Ubuntu,Windows — mariojump @ 9:41 pm
Tags: , ,

I was looking for ways to make fonts look better in connecting to Windows from Linux via rdesktop.

The following page shows a great resolution/workaround.

http://katastrophos.net/andre/blog/2008/03/10/rdesktop-connect-to-windows-vista-with-cleartype-font-smoothing-enabled/

$ rdesktop -u mywinusername -k en-us -g 93% -x 80 -r sound myhostipaddress

Two other options than -x 80 are shown in the page above, -x 81 and -x 8f.  (Refer to the page above.)

 

 

August 27, 2011

Trang – Multi-format schema converter based on RELAX NG

Filed under: Java,Software Development,Ubuntu,XML — mariojump @ 10:53 am

Trang is a schema converter.

Install Trang on Ubuntu 10.04 LTS.
$ sudo apt-get install trang

This time, I used Trang to generate an XSD file from an XML file.

$ trang -I xml -O xsd InputXmlFile.xml OutputXSDFile.xsd

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 .

Reference:
https://help.ubuntu.com/10.04/serverguide/C/cvs-server.html

# 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
type = UNLISTED
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.
http://ubuntuforums.org/showthread.php?t=1354952

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
EndSection

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

EndSection

September 4, 2010

Using AirTunes-AirMac Express from Ubuntu Linux

Filed under: Ubuntu — mariojump @ 9:22 pm

Install pulseaudio-module-raop
$ sudo apt-get install pulseaudio-module-raop

Install paprefs
$ sudo apt-get install paprefs

$ paprefs
In “Network Access Tab”, check both:
Make discoverable PulseAudio network sound devices available locally
Make discoverable Apple AirTunes sound devices available locally

System’s sound setting allows you to choose AirTunes sound device as output.

May 13, 2010

GCJ (GNU Compiler for Java) Installation and Usage How-To

Filed under: Java,Ubuntu — mariojump @ 1:30 pm

GCJ (GNU Compiler for Java) can be installed on Ubuntu Linux with the following command.

$ sudo apt-get install gcj

This worked on Ubuntu 9.10 and 10.04.

To use it, (assuming you have a package and classes as specified,)

$ gcj -o yourcommandname –main=packagename.MainClassName packagename/OtherClassName.java packagename/MainClassName.java

April 8, 2010

Ubuntu Linux Diskless Boot with DRBL (Diskless Remote Boot in Linux)

Filed under: Linux,Ubuntu — mariojump @ 1:55 pm
Tags: , , , ,

DRBL Package makes it much easier to implement Linux diskless client environment than setting up TFTP, DHCP, NFS, NAT-router, netboot-enabled kernels, and so on individually.

For complete steps, refer to http://drbl.sourceforge.net/ .

Here’s the step-by-step record of mine.
I used Xubuntu 9.10 as a host, however, other Ubuntu 9.10 (Karmic) should be very similar, unless identical.

DRBL is also available for other distributions such as Fedora, Debian, etc.
———————————————
If you need to use proxy, set $http_proxy and $ftp_proxy.

$ export http_proxy=http://proxy.yourdomain.com:3128
$ export ftp_proxy=http://proxy.yourdomain.com:3128

$ sudo apt-get remove network-manager
$ sudo cp /etc/network/interfaces /etc/network/interfaces.backup

$ sudo vi /etc/network/interfaces

$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1
auto eth1
iface eth1 inet static
address 192.168.100.254
netmask 255.255.255.0

$ wget -q http://drbl.sourceforge.net/GPG-KEY-DRBL -O- | sudo apt-key add –

$ sudo vi /etc/apt/sources.list
## add following lines
deb http://archive.ubuntu.com/ubuntu karmic main restricted universe multiverse # (Or any Ubuntu mirror site near you)
deb http://drbl.sourceforge.net/drbl-core drbl stable
## end

$ sudo apt-get update
$ apt-get install drbl

$ sudo /opt/drbl/sbin/drblsrv -i
## Selecting the default values worked.

$ sudo /opt/drbl/sbin/drblpush -i
## Selecting default values worked.
## When the server gets updated packages, the step above needs to be done again, according to the instruction.

Now, the server is ready for PXE-booting the clients.

April 3, 2010

Canon LBP3000 Printer on Ubuntu Linux 9.10 (Karmic Koala) and 10.04 (Lucid Lynx)

Filed under: Ubuntu — mariojump @ 10:18 pm
Tags: , , ,

This is my record when I installed Canon LaserShot LBP3000 Printer Driver on Ubuntu Linux 9.10 (Karmic Koala) 32bit.

[May 4, 2010] The following steps worked fine with Ubuntu 10.04 Lucid Lynx.

Download CAPT Printer Driver for Linux Version 2.00 from Canon.
http://cweb.canon.jp/drv-upd/lasershot/drv_linux.html

Just follow the steps written in the installation manual by Canon.
I encountered one minor error. See below.

$ sudo apt-get update
$ sudo apt-get install cupsys

$ sudo dpkg -i cndrvcups-common_2.00-2_i386.deb
$ sudo dpkg -i cndrvcups-capt_2.00-2_i386.deb

$ sudo /etc/init.d/cupsys restart
sudo: /etc/init.d/cupsys: command not found

I got an error at the step above. So, executed the following line.

$ sudo /etc/init.d/cups restart
* Restarting Common Unix Printing System: cupsd [ OK ]

$ sudo /usr/sbin/lpadmin -p LBP3000 -m CNCUPSLBP3000CAPTJ.ppd -v ccp://localhost:59687 -E

Register LBP3000 in the ccpd configuration file.

$ sudo /usr/sbin/ccpdadmin -p LBP3000 -o /dev/usblp0
CUPS_ConfigPath = /etc/cups/
LOG Path = None
UI Port = 59787

Entry Num : Spooler : Backend : FIFO path : Device Path : Status
—————————————————————————-
[0] : LBP3000 : ccp : //localhost:59687 : /dev/usblp0 : New!!

$ sudo /etc/init.d/ccpd start
Starting /usr/sbin/ccpd: .

Register ccpd as service.

$ sudo service ccpd restart
Shutting down /usr/sbin/ccpd: .
Starting /usr/sbin/ccpd: .

That’s all. Sharing the printer with Samba is fairly straightforward.
It’s as simple as:
1. Enable Samba Sharing. (If you enable one Samba Shared Folder with GUI, it will install Samba if you haven’t.)
2. Share the Printer on Samba – In the printer configuration menu, right click the printer and enable sharing.

March 7, 2010

Ubuntu XDMCP Access with Xephyr

Filed under: Linux,Ubuntu — mariojump @ 1:45 am

Ubuntu Linux can be remotely accessed via XDMCP as follows.

I used:
XDMCP Server: Ubuntu Linux 9.10 Netbook Remix
XDMCP Client: Ubuntu Linux 9.10 64bit
however, I believe this configuration can be used for other Ubuntu families, too.

[Server]
Edit /etc/gdm/custom.conf, and set [xdmcp] section as follows.

$ cat /etc/gdm/custom.conf
[xdmcp]
Enable=true

Restart gdm.
$ /etc/init.d/gdm restart
(If you are using local GNOME, it will restart your current GNOME Desktop, too.)

[Client]
With the info at: http://ubuntuforums.org/showthread.php?t=620003

$ sudo apt-get install xserver-xephyr
$ Xephyr -ac -screen 1280×768 -br -reset -terminate 2> /dev/null :2 &
$ echo $DISPLAY
— This is to restore the $DISPLAY later.

Set the $DISPLAY value to.
$ export DISPLAY=:2.0
This :2.0 needs to match with the Xephyr command line argument above.

$ ssh -XfC -c blowfish username@hostname_or_IPaddress gnome-session
will start the GNOME session in the Xephyr window.

Restore the $DISPLAY variable.
$ export DISPLAY=:0.0

Next Page »

Blog at WordPress.com.