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.

Advertisements

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.

Blog at WordPress.com.