Re: Replicating a Squeeze system on Wheezy

2013-07-03 Thread Michael Tsang
dpkg --get-selections  file

dpkg --set-selections  file

On Wednesday 03 July 2013 18:26:30 Tony van der Hoff wrote:
 So my outline plan is to do a standard netinst for wheezy on the new
 box, and then wave a magic wand to get it to install all the missing
 packages. All I'm missing is the magic wand.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201307031858.50050.mikl...@gmail.com



Re: Debian is the best!

2013-06-18 Thread Michael Tsang
On Tuesday 18 June 2013 00:01:49 Dirk wrote:
  Grub 2.00 (unstable) failed me the 2nd time now and resulted in a
  unuseable system showing only the grub rescue console that does
  *nothing*
  
  Grub 2.00 does everything now and nothing right... not even load a
  kernel..
  
  That is shit.
  
  So... how can we help?  Without any more details, we are left in
  suspense and can only guess...
 
 i updated from the old unstable to the new unstable during the last
 stable release... everything went smooth except the grub 2.00 update...
 after reboot it ended up showing the worthless grub rescue console...
 
 so i downgraded grub to 1.99 from stable... yesterday i tried again with
 the same results...
 
 i haven't tried installing unstable from scratch yet... but i guess it
 will work then so it would be pointless to do that...
 
 it is bad when linux stops working before the kernel was even loaded...
 
 so i advice to ditch grub in favor of lilo since it does nothing much
 except what it is supposed to do... it doesn't even troll users with a
 worthless rescue console that doesn't rescue shit...
 

The *only* situation I would consider installing lilo instead of grub is when 
building an embedded system. lilo is too primitive and too hard to configure, 
grub has so many features! I love it!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201306182023.06102.mikl...@gmail.com



Re: Debian in a VMware VM and LVM

2012-03-16 Thread Michael Tsang
On Tuesday 13 March 2012 22:52:01 Bonno Bloksma wrote:
 
 Using the 6.0.4 amd netinst CD I created a small 10GB virtual machine (VM).
 I then realized I needed it to be a bit bigger so I wanted to extend the
 LVM environment and add that space to the /var logical volume. Of course
 as this is a new VM I just could have started from scratch but I am trying
 to learn something as well. ;-)
 
 First I had a look at the current disk layout using fdisk -l
 
 root@wwwgw:~# fdisk -l
 
 Disk /dev/sda: 10.7 GB, 10737418240 bytes
 255 heads, 63 sectors/track, 1305 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x000d6e97
 
Device Boot  Start End  Blocks   Id  System
 /dev/sda1   1  37  291840   83  Linux
 Partition 1 does not end on cylinder boundary.
 /dev/sda2  371306101908495  Extended
 /dev/sda5  37130610190848   8e  Linux LVM
 
 1)
 Why the warning about the 300MB /boot partition not ending on a cylinder
 boundary? I used the manual setup in the Debian 6.0.4 installation and
 told it to create a 300MB partition at the beginning of the disk. Did the
 installation software do something wrong or should I have know something I
 do not know yet?
Older versions of fdisk by default aligns to cylinder. This is deprecated and 
not the case now. Simply suppress this warning by using -cu
 
 2)
 After that came a lot of warnings about /dev/dm-0, /dev/dm-1, /dev/dm-2,
 /dev/dm-3 and /dev/dm-4. I know those are LVM2 devices but... Why is fdisk
 (still) seeing them as disks/partitions it has to show during a listing,
 and then complain they are not valid?
 
I think this is a bug in fdisk.
 
 At the VMware level I increased the disk from 10GB to 12GB. Using cfdisk,
 which in my opinion gives less cause for a user error, I created a new
 logical sda6 partition in the free space. The end result is: root@wwwgw:~#
 fdisk -l
 
 Disk /dev/sda: 12.9 GB, 12884901888 bytes
 255 heads, 63 sectors/track, 1566 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x000d6e97
 
Device Boot  Start End  Blocks   Id  System
 /dev/sda1   1  37  291840   83  Linux
 Partition 1 does not end on cylinder boundary.
 /dev/sda2  371566122850085  Extended
 /dev/sda5  37130610190848   8e  Linux LVM
 /dev/sda613061566 2094127+  8e  Linux
 
 3)
 Why is there a + at the end of the number of blocks?
In fdisk, a block is 1024 bytes. The partition does not contain integral 
number of blocks, hence the + sign.
 
 I then want to make the sda6 partition a LVM physical volume using
 root@wwwgw:~# pvcreate /dev/sda6
   Device /dev/sda6 not found (or ignored by filtering).
 root@wwwgw:~#
 indeed, there is no /dev/sda6 yet.
 
 4)
 Why is /dev/sda6 not there yet? What step am I missing?
You should run partprobe(8) or reboot your machine.
 
 
 Ok, after a reboot (it is not a production server yet) the /dev/sda6 is
 there. Form here on it was (almost) straight sailing. ;-)
 
 root@wwwgw:~# pvcreate /dev/sda6
   Physical volume /dev/sda6 successfully created
 root@wwwgw:~# vgextend vgroup1 /dev/sda6
   Volume group vgroup1 successfully extended
 
 Then to runlevel 1 to make sure (almost) nothing is using the /var
 directory tree and
 root@wwwgw:~# lvextend -l+2G /dev/vgroup1/lvvar
   Extending logical volume lvvar to 3.86GiB
   Logical volume lvvar successfully resized
 
 root@wwwgw:~# umount /var
 Then first a filesystem check as that seems to be needed before resizing.
 Not doing so will give me a warning although this was not mentioned in the
 HOWTOs I have read. root@wwwgw:~# fsck -f /dev/vgroup1/lvvar
 root@wwwgw:~# resize2fs /dev/vgroup1/lvvar
 root@wwwgw:~# mount /var
 
 and back to runlevel 2
 
 
 Anything else I missed?
 
 Bonno Bloksma


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201203161916.32502.mikl...@gmail.com



Re: PHP5 scripts not served by apache2 on Squeeze

2012-01-04 Thread Michael Tsang

On Wednesday, January 04, 2012 05:28 PM, Kristian Lampen wrote:

Hello,

I have a fresh install of apache2 and php on my server and I can not 
get php to work, php-scripts are not executed by apache, just the 
plain script is served to the browser.


The problem looks similar to this one: Can't execute PHP script 
http://lists.debian.org/debian-user/2007/09/msg01063.html. But it is 
unsolved and from 2007 on Lenny, so I opened a new one in hope of help.


I have the following packages installed:

apache2.2-bin
apache2-mpm-prefork
apache2.2-common
apache2-utils
libapache2-mod-php5
php5-cli
php5-common
php5-suhosin

Apache is up and running:

root@server:~# ps ax | grep apache2
12306 pts/0S+ 0:00 grep apache2
24913 ?Ss 0:01 /usr/sbin/apache2 -k start
25047 ?S  0:00 /usr/sbin/apache2 -k start
25048 ?S  0:00 /usr/sbin/apache2 -k start
25049 ?S  0:00 /usr/sbin/apache2 -k start
25050 ?S  0:00 /usr/sbin/apache2 -k start
25051 ?S  0:00 /usr/sbin/apache2 -k start
25183 ?S  0:00 /usr/sbin/apache2 -k start

The PHP Module is loaded and linked in /etc/apache2/mods-enabled/:

root@server:~# a2enmod php5
Module php5 already enabled

root@server:~# ls -l /etc/apache2/mods-enabled/php*
lrwxrwxrwx 1 root root 27 Jan  3 21:45 
/etc/apache2/mods-enabled/php5.conf - ../mods-available/php5.conf
lrwxrwxrwx 1 root root 27 Jan  3 21:45 
/etc/apache2/mods-enabled/php5.load - ../mods-available/php5.load


root@server:~# apache2ctl -M
Loaded Modules:
 core_module (static)
 log_config_module (static)
 logio_module (static)
 mpm_prefork_module (static)
 http_module (static)
 so_module (static)
 alias_module (shared)
 auth_basic_module (shared)
 authn_file_module (shared)
 authz_default_module (shared)
 authz_groupfile_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgi_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 mime_module (shared)
 negotiation_module (shared)
 php5_module (shared)
 reqtimeout_module (shared)
 setenvif_module (shared)
 status_module (shared)
Syntax OK

Seems to be all correct:

Now I have a PHP Test file:

root@server:~# echo ?php phpinfo(); ?  /var/www/test.php
root@server:~# chmod 755 /var/www/test.php

Now when I try to open it with any web-browser from the network I get 
the plain PHP-script shown on the screen. The local lynx on the server 
gives me the option to download the php-file.


root@server:~# lynx --dump http://localhost/test.php
?php phpinfo(); ?

Here the logs:

access.log

127.0.0.1 - - [04/Jan/2012:10:18:27 +0100] GET /test.php HTTP/1.0 
200 284 - Lynx/2.8.8dev.5 libwww-FM/2.14 SSL-MM/1.4.1 GNUTLS/2.8.6


root@server:~# cat /var/log/apache2/error.log
[Tue Jan 03 21:44:59 2012] [notice] Apache/2.2.16 (Debian) configured 
-- resuming normal operations
[Tue Jan 03 21:45:01 2012] [notice] Graceful restart requested, doing 
restart
[Tue Jan 03 21:45:01 2012] [notice] Apache/2.2.16 (Debian) configured 
-- resuming normal operations


A simple purge of all related packages and reinstalling changes nothing.

I hope this problem is solved already, but I have not found any 
solution yet.


What have I or the server done wrong?

Thanks


What's your content of /etc/apache2/mods-available/php5.{conf,load} ?


Re: apache vhost: remote document root

2012-01-04 Thread Michael Tsang

On Wednesday, January 04, 2012 05:20 PM, Victor Nitu wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi all,

I have a minor configuration problem, and I need your help.

On my home network, apache is working fine with vhosts, but I need a
way to redirect inbound traffic requiring a specific address to another
host on my LAN.
The problem seems to be quite simple: from my point of view, it's as
easy as declaring a remote document root for my vhost, but I don't know
if there exists such feature in apache web server.

The setup:

  [system1]   [system2]
INTERNET   - [NAT]   [   ]
via PPPoE[gateway] - [ client]
  =domain1=   =domain2=

- - system1 is connected directly to internet via PPPoE, and is acting
like a gateway, with NAT enabled and other network services running
- - I have two domain names (domain1,domain2), both operated by
freedns.afraid.org service which allows me to reach my machines from
the web. Update is done on ifup by inadyn on both systems
- - there I have system2 in my LAN, who needs to be accessed from
exterior via domain2, but the request reaches my system1 first, and I
need to redirect somehow the traffic to domain2

Right now, both domains point to the same IP, which is the way it
should be.
I got myself a bit tangled in this setup, so I need some guidance
please.


TIA,
- -- 
Victor Nitu

.
  vic...@debian-linux.ro
sip:victor.n...@ekiga.net
`
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Debian GNU/Linux - Romania

iQEcBAEBAgAGBQJPBBnQAAoJEMn1b0XNY6wKRf4H+wXOuRJzwY7s7HUzfQ6v/M0X
4elekc7VWqUcuXeVLynWTY7Uvx0uGKpECnzsY2A+o1kZ6TyR1isQkoK/bHptggQr
2FY7IzwWVzSy0V+3ISmqjvD/DfEFlOY5hUvjvMMmcscFzJFyLLTSeCA7w3+NoP3s
XMhSZc3XS8kVQplwiRUWX70mV6npwel8oYUYoxwDAQGHmaYjZetbXgwuzyaS44CP
cizX0gzzhwPhGeJ18h6H14/ZggiCY2Xk7NQSFM/B3zTihZdEAUXErKIfG+Jp8XP7
JLuf3CAgfMY8apY26N+phjpojpzAfuJxdH0DNcEq05128N2h39KDKoZ/y1fTVJE=
=Me41
-END PGP SIGNATURE-


Do you want system2 to be a file server only or a web server? They 
require complete different set-ups.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4f04228a.3080...@gmail.com



Re: Reboot and all I get is a grub prompt.

2011-12-05 Thread Michael Tsang
On Monday 05 December 2011 22:44:51 Harry Putnam wrote:
 Johann Spies jsp...@sun.ac.za writes:
  On Mon, Dec 05, 2011 at 03:38:22PM +0200, Harry Putnam wrote:
  I'm bunrning a systemRescue cd now... but any suggestions will be most
  welcome.
  
  Booting with a live CD (like systemRescue) or the standard Debian
  Install CD will help.
  
  'chroot' to the system and do an 'update-grub'.
 
 Writing this from chroot.
 
 When I run update-grub, it appears to be working but ends with
 something akin to an error:
 
   root # update-grub
   Generating grub.cfg ...
   Found background image:
   /usr/share/images/desktop-base/desktop-grub.png
   Found linux image: /boot/vmlinuz-3.0.0-1-686-pae
   Found initrd image: /boot/initrd.img-3.0.0-1-686-pae
   Cannot find list of partitions!  (Try mounting /sys.)
   done
 
 So its not clear if it has finished properly or what.
 
 Apparently /sys is not populated in a chroot, or there is something I
 needed to run before chroot.
 
 Anyway, I'm going to try booting manually again with ArntK's addition
 of adding the initrd line to the grub commands

you need to mount /proc, /sys and /dev before chrooting to the target


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201112052300.38340.mikl...@gmail.com



Help on packet forwarding

2011-10-27 Thread Michael Tsang
I'm now on a router in 3 networks, where eth0 and eth1 are in 2 LANs and eth2 
are in a WAN. Here are the details:

root@debian:/home/michael# ifconfig
eth0  Link encap:Ethernet  HWaddr 00:e0:4c:4d:77:06  
  inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
  inet6 addr: fe80::2e0:4cff:fe4d:7706/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:735444 errors:0 dropped:0 overruns:0 frame:0
  TX packets:1216737 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:89416295 (85.2 MiB)  TX bytes:1427122256 (1.3 GiB)
  Interrupt:20 Base address:0xcc00 

eth1  Link encap:Ethernet  HWaddr 00:50:bf:70:fc:e4  
  inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
  inet6 addr: fe80::250:bfff:fe70:fce4/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:81044 errors:0 dropped:0 overruns:0 frame:0
  TX packets:156456 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:6883331 (6.5 MiB)  TX bytes:226037112 (215.5 MiB)
  Interrupt:22 Base address:0xe800 

eth2  Link encap:Ethernet  HWaddr 00:1e:90:90:23:7d  
  inet addr:210.6.148.56  Bcast:210.6.148.127  Mask:255.255.255.128
  inet6 addr: fe80::21e:90ff:fe90:237d/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:3105649 errors:0 dropped:0 overruns:0 frame:0
  TX packets:1551451 errors:0 dropped:0 overruns:0 carrier:3
  collisions:0 txqueuelen:1000 
  RX bytes:2449847469 (2.2 GiB)  TX bytes:394544116 (376.2 MiB)

loLink encap:Local Loopback  
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:42718 errors:0 dropped:0 overruns:0 frame:0
  TX packets:42718 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0 
  RX bytes:6858552 (6.5 MiB)  TX bytes:6858552 (6.5 MiB)

root@debian:/home/michael# ip route show
default via 210.6.148.1 dev eth2 
192.168.0.0/24 dev eth1  proto kernel  scope link  src 192.168.0.1 
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.1 
210.6.148.0/25 dev eth2  proto kernel  scope link  src 210.6.148.56 
root@debian:/home/michael# sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1
root@debian:/home/michael# iptables --list-rules
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
root@debian:/home/michael# iptables -t nat --list-rules
-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
-A POSTROUTING -o eth2 -j MASQUERADE
root@debian:/home/michael# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
default 210006148001.ct 0.0.0.0 UG0  00 eth2
192.168.0.0 *   255.255.255.0   U 0  00 eth1
192.168.1.0 *   255.255.255.0   U 0  00 eth0
210.6.148.0 *   255.255.255.128 U 0  00 eth2

I can access all the 3 networks from the router. Moreover, I can access the 
Internet from all the LANs. However, I can't access the 192.168.1.0/24 network 
from the 192.168.0.0/24 network, and vice versa. That means the packets are 
not forwarded properly between eth0 and eth1 in the router.

Now I want to make the 2 LANs accessible to each other, what should I do?

-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201110271808.07096.mikl...@gmail.com



Done: Re: Help on packet forwarding

2011-10-27 Thread Michael Tsang
I found that it is the problem of routing on my test machine on the 
192.168.1.0/24 network, fixed.

On Thursday 27 October 2011 18:08:06 you wrote:
 I'm now on a router in 3 networks, where eth0 and eth1 are in 2 LANs and
 eth2 are in a WAN. Here are the details:
 
 root@debian:/home/michael# ifconfig
 eth0  Link encap:Ethernet  HWaddr 00:e0:4c:4d:77:06
   inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
   inet6 addr: fe80::2e0:4cff:fe4d:7706/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:735444 errors:0 dropped:0 overruns:0 frame:0
   TX packets:1216737 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:89416295 (85.2 MiB)  TX bytes:1427122256 (1.3 GiB)
   Interrupt:20 Base address:0xcc00
 
 eth1  Link encap:Ethernet  HWaddr 00:50:bf:70:fc:e4
   inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
   inet6 addr: fe80::250:bfff:fe70:fce4/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:81044 errors:0 dropped:0 overruns:0 frame:0
   TX packets:156456 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:6883331 (6.5 MiB)  TX bytes:226037112 (215.5 MiB)
   Interrupt:22 Base address:0xe800
 
 eth2  Link encap:Ethernet  HWaddr 00:1e:90:90:23:7d
   inet addr:210.6.148.56  Bcast:210.6.148.127  Mask:255.255.255.128
   inet6 addr: fe80::21e:90ff:fe90:237d/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:3105649 errors:0 dropped:0 overruns:0 frame:0
   TX packets:1551451 errors:0 dropped:0 overruns:0 carrier:3
   collisions:0 txqueuelen:1000
   RX bytes:2449847469 (2.2 GiB)  TX bytes:394544116 (376.2 MiB)
 
 loLink encap:Local Loopback
   inet addr:127.0.0.1  Mask:255.0.0.0
   inet6 addr: ::1/128 Scope:Host
   UP LOOPBACK RUNNING  MTU:16436  Metric:1
   RX packets:42718 errors:0 dropped:0 overruns:0 frame:0
   TX packets:42718 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:0
   RX bytes:6858552 (6.5 MiB)  TX bytes:6858552 (6.5 MiB)
 
 root@debian:/home/michael# ip route show
 default via 210.6.148.1 dev eth2
 192.168.0.0/24 dev eth1  proto kernel  scope link  src 192.168.0.1
 192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.1
 210.6.148.0/25 dev eth2  proto kernel  scope link  src 210.6.148.56
 root@debian:/home/michael# sysctl net.ipv4.ip_forward
 net.ipv4.ip_forward = 1
 root@debian:/home/michael# iptables --list-rules
 -P INPUT ACCEPT
 -P FORWARD ACCEPT
 -P OUTPUT ACCEPT
 root@debian:/home/michael# iptables -t nat --list-rules
 -P PREROUTING ACCEPT
 -P INPUT ACCEPT
 -P OUTPUT ACCEPT
 -P POSTROUTING ACCEPT
 -A POSTROUTING -o eth2 -j MASQUERADE
 root@debian:/home/michael# route
 Kernel IP routing table
 Destination Gateway Genmask Flags Metric RefUse
 Iface default 210006148001.ct 0.0.0.0 UG0  0  
  0 eth2 192.168.0.0 *   255.255.255.0   U 0  0
0 eth1 192.168.1.0 *   255.255.255.0   U 0  0  
  0 eth0 210.6.148.0 *   255.255.255.128 U 0  0
0 eth2
 
 I can access all the 3 networks from the router. Moreover, I can access the
 Internet from all the LANs. However, I can't access the 192.168.1.0/24
 network from the 192.168.0.0/24 network, and vice versa. That means the
 packets are not forwarded properly between eth0 and eth1 in the router.
 
 Now I want to make the 2 LANs accessible to each other, what should I do?
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201110271918.47024.mikl...@gmail.com



How can I input Chinese under the Linux console?

2011-04-06 Thread Michael Tsang
Hello everyone,

I'm trying to set up a Chinese environment under the framebuffer Linux console. 
I've already installed jfbterm and it can display Chinese for me. How can I 
input Chinese into jfbterm?

Also, I can't get jfbterm work with mouse. Can you suggest another framebuffer 
terminal which can display Chinese and use gpm mouse (both zhcon and bogl-
bterm cannot display my Chinese properly)?

Michael
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: How can I input Chinese under the Linux console?

2011-04-06 Thread Michael Tsang
On Wednesday 06 April 2011 21:31:29 张启德 wrote:
 2011/4/6 Michael Tsang mikl...@gmail.com:
 
 Try zchon or fbterm, you should run  zhcon --utf8 instead of zhcon
 . The default encoding in zhcon is GB2312,
  but you locale is set to utf8, so zhcon cannot display chinese
 properly. If you want to browse the webpage such
 as www.sina.com.cn using lynx or w3m in console, you should run
 zhon. Most of the webpage encoding in China website
 is set to GB2312,GBK, or  GB18030.
 
 If you more like fbterm , you can input Chinese using fbterm-ucimf
 in squeeze ( zhcon has its own input method).
zhcon --utf8 completely messes up my terminal so I can't use it.
jfbterm works well, if I can find an input method for it, then it is near 
perfect (but I still can't use the mouse in it).
fbterm works, but it makes w3m unable to display images in the framebuffer 
(jfbterm can). However, I still can't activate any input methods.
 
 If you have more questions about Chinese environmet in linux, you can
 get more help from chinese...@lists.debian.org (
 chinese-b...@lists.debian.org for Traditional Chinese).Join #ubuntu-cn
 in irc.freenode.net is also a good choice.
 
 Good Luck!
 

-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: German umlauts, never ending story

2011-03-18 Thread Michael Tsang
On Friday 18 March 2011 01:43:19 Hans-J. Ullrich wrote:
 And I mean NOT filenames with German umlauts, but filenames copied from a
 fat or ntfs with German umlauts, where those umlauts are not shown
 correctly.
 
Isn't your FAT or NTFS using UTF-8?! Isn't your system completely in UTF-8? I 
don't know how you can copy your ü to something that you cannot recognise.

Run fsck on your home filesystem (to check if there are any illegal file 
names), 
if you still can't rename them after doing this, file a bug on KDE.

-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: How do I tel SSL to trust a certificate?

2011-02-27 Thread Michael Tsang
On Monday 28 February 2011 05:51:21 Marc Shapiro wrote:
 I am trying to access my work computer from home using the Citrix
 client.  First, I connect to the companies web-site and log in.  I
 navigate from there to a link for remote login.  On selecting that, I
 should be presented with a login for my computer at work.  This has
 worked in the past, but I am now getting the following error:
 
 You have not chosen to trust VeriSign 3 Public Primary Certification
 Authority - G3, the issuer of the server's security certificate (SSL
 error 61).
Put that certificate (base64 encoded and ending in .crt) in 
/usr/local/share/ca-certificates and re-run dpkg-reconfigure ca-certificates
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: Unrecognized security certificate warning is gone

2011-02-25 Thread Michael Tsang
On Friday 25 February 2011 12:37:52 Marc Shapiro wrote:
 I am using Firefox, not Iceweasel, but I think this question should
 apply in either case.  I am trying to connect to work using the Citrix
 client.  I used to get a warning that the certificate was not recognized
 and do I want to continue, or not.  I am no longer getting the warning,
 but Firefox is assuming that I have said NOT to accept the certificate
 and it is closing the connection.  How do I get the warning and question
 back.
 
 BTW, this is happening with Opera and Kazehakase, as well, not just
 Firefox.  Is there some place that all of these browsers would look to
 define this behavior?
 
 Marc
Is that certificate installed in the system-wide database?
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: Can't Create SymLinks on CF Card

2011-02-22 Thread Michael Tsang
On Wednesday 23 February 2011 04:14:37 Hal Vaughan wrote:
 I found this when using tar to unpack an OS image archive.  I've been doing
 this for a while on another CF card and had no problem.  But now, when I
 untar the archive, I keep getting cannot create symlink and operation
 not permitted.
Is your drive read-only?
 
 I bypassed tar and tried creating some of the symlinks by hand and got the
 same error.  The CF card is mounted in /mnt/flash.  I umounted the drive,
 cd'ed back to /mnt/flash and ran the very same tar command again and it
 created the files and symlinks without any problem.
 
 So I can create the symlinks to that directory when nothing is mounted, but
 when I have a CF card mounted there, I can't create symlinks (and have
 other problems with tar).
What options have you used to mount the CF card? What is the filesystem on it?
 
 For example, if the boot directory is there, with the files in it, and
 vmlinuz is in /mnt/flash/boot, then I do cd /mnt/flash and ln -s
 boot/vmlinuz ./ I get the same error: Operation not permitted.

-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: cannot aptitude -t experimental install perl

2011-02-18 Thread Michael Tsang
On Friday 18 February 2011 08:57:34 jida...@jidanni.org wrote:
 Gentlemen, I find no way to install the experimental version of perl.
Are you using the unstable version of Debian?
 
 # aptitude -t experimental install ~i~nperl
 The following packages will be upgraded:
   perl  perl-base  perl-doc  perl-modules
 4 packages upgraded, 0 newly installed, 0 to remove and 89 not upgraded.
 The following packages have unmet dependencies:
   libcrypt-ssleay-perl: Depends: perlapi-5.10.0 which is a virtual package.
   libparams-validate-perl: Depends: perlapi-5.10.1 which is a virtual
 package. liblocale-gettext-perl: PreDepends: perlapi-5.10.0 which is a
 virtual package. libperl5.10: Depends: perl-base (= 5.10.1-17) but
 5.12.3-1 is to be installed. libunicode-string-perl: Depends:
 perlapi-5.10.0 which is a virtual package. etc.
 
 It gets tangled up with too many paths perl-base - perlapi-* etc.
Can you try dist-upgrading the system first?

-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: PHP Warning: PHP Startup: Unable to load dynamic library

2011-02-16 Thread Michael Tsang
On Wednesday 16 February 2011 17:34:39 Boblitz John wrote:
 I'm getting the following error every 30 to 60 minutes in my mail:
 
 PHP Warning: PHP Startup: Unable to load dynamic library
 '/usr/lib/php5/20090626/expect.so' - /usr/lib/php5/20090626/expect.so:
 cannot open shared object file: No such file or directory in Unknown on
 line 0
Dear John,

Can you try (re)installing libexpect-php5? After that, if you still can't get 
PHP to load it, please post the output of `dpkg -l libexpect-php5' here.

Michael
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: Unable to mount [device] Not Authorized

2011-02-16 Thread Michael Tsang
On Wednesday 16 February 2011 16:37:09 Chris wrote:
 Hi everyone,
 
 Since I do a normal update, I can't mount my flash drive from
 nautilus. It works before.
 The error message is:
 
 Unable to mount [device]
 Not Authorized
Is it something related to PolicyKit?
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: Trying to Switch from Ubuntu to Debian

2011-02-16 Thread Michael Tsang
On Wednesday 16 February 2011 11:47:35 Doug wrote:
 You might want to look at MINT before you commit to Debian.  It's derived
 from Ubuntu, but in general doesn't follow the craziness of Ubuntu.  Like,
 the windows buttons are on the right, where they belong.  And I doubt
 that they will go to some cockamamie GUI just because Ubuntu did.  They
 seem to be a bit saner over there.  I think Ubuntu is going to lose a lot
 of its regular users because of the way they are going and plan to go.
 Just my 2¢.
I've switched from Ubuntu to Debian last year for the following reasons:

1. Ubuntu is too unstable, even more unstable than Debian unstable.
2. The recent versions of Kubuntu includes so much annoying things such as the 
turtle-slow PackageKit, the inclusion of buggy PulseAudio, etc.
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: two surprises from testing install

2011-02-16 Thread Michael Tsang
On Wednesday 16 February 2011 06:13:15 Steve Kleene wrote:
 I just succeeded in installing today's version of testing and found two
 surprises.  Maybe these should be separate posts.  Anyway, here they are:
 
 1. /etc/apt/sources.list, which is:
 
 --
 #
 
 # deb cdrom:[Debian GNU/Linux testing _Wheezy_ - Official Snapshot i386 \
  NETINST Binary-1 20110215-15:58]/ wheezy main
 
 deb http://ftp.us.debian.org/debian/ squeeze main
 deb-src http://ftp.us.debian.org/debian/ squeeze main
 
 deb http://security.debian.org/ squeeze/updates main
 deb-src http://security.debian.org/ squeeze/updates main
 
 deb http://ftp.us.debian.org/debian/ squeeze-updates main
 deb-src http://ftp.us.debian.org/debian/ squeeze-updates main
 --
 
Shouldn't this list testing or wheezy in it somewhere?  As you see,
the CD was Wheezy.  I watched the installation, and all the packages
 were being requested from squeeze.
 
 2. On booting, I was surprised to see that no gnome, gdm, xinit, or
 evolution packages were there.  Of all of these, I will only need xinit
 (for fvwm). Still, I have used gnome for testing purposes and was
 surprised that it's no longer part of the standard installation.
 
 Thanks.

I think that the transition from Squeeze to Wheezy isn't complete yet. For the 
time being, please manually select wheezy during installation.
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: aptitude update/upgrade not syncing properly for a squeeze upgrade

2011-02-15 Thread Michael Tsang
On Wednesday 09 February 2011 23:02:32 Jeffrey B. Green wrote:
 On 02/09/2011 08:33 AM, Jeffrey B. Green wrote:
 [...snip...]
 
  Anyway, in a nutshell, I'm upgrading from a reprepro local repository
  that is currently up to date with the debian repositories.
 
 [...snip...]
 
 The reprepro Package list(s) seem to be the problem. Checking out the
 /v/l/dpkg/available after totally rebuilding it showed an i386 deb being
 provided for the armel aptitude package. Going to the local repository
 and looking at the Packages file there confirms it. So on to that
 problem...
 
 cheers,
 -jeff

Hi Jeff,

Can you please post the contents of /etc/apt/sources.list (after stripping out 
the comments) here for us to investigate the problem?

Regards,
Michael
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: Trouble PXE Boot After Kernel Starts Loading

2011-02-15 Thread Michael Tsang
On Tuesday 15 February 2011 16:17:27 Hal Vaughan wrote:
 I have a Soekris Net5501 and I'm using tftp to boot pxelinux.0 and,
 ultimately, from there, I want to install Squeeze.
 
 First, I have to thank Debian, since the PXE boot explanation (sorry, lost
 the link from earlier) was a very good explanation on how to set up PXE. 
 But since it was for Etch, I searched and also found an excellent one by
 Andy Smith here:
 
 http://andys.org.uk/wiki/Guide:PXE_network_booting_Debian_install
 
 that includes Squeeze.  I think it should be pointed out that there is
 excellent documentation out there for this.
 
 Now, on to where I'm stuck, which is, I think, more a part of the normal
 boot process.  I have the directory tree like this:
 
 
 tftpboot/debian/squeeze/i386/linux
 tftpboot/debian/squeeze/i386/initrd.gz
 tftpboot/pxelinux.cfg/default
 tftpboot/pxelinux.cfg/boot.txt
 
 It boots the kernel, but then I get:
 
 Probing EDD (edd=off to disable)... ok
 
 And after that, it freezes and I get nothing.  The default config file, in
 full, is after my signature (it's longer, and I don't think it's the
 issue).  I added edd=off to each kernel line in that config file because
 it was freezing up with the same message and suspected it was because (as
 best I know), there is no Enhanced Disk Drive.  But then there's the ...
 ok after it, which makes me think the edd issue isn't why it's freezing.
 
 Is this due to the edd probe (in which case the edd=off isn't working for
 some reason)?
 
 If not, what should I check next?
I think you should check the Linux documentation. EDD was OK but the next went 
wrong.
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


What does ${distro} and ${distro-codename} in apt.conf mean?

2011-02-13 Thread Michael Tsang
Hi all,

The meaning of these expansions in apt.conf seems to be undocumented in 
apt.conf(5). What do these mean? Also, is there a variable that expands to 
stable, testing, unstable, etc?

Regards,
Michael
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: Error updating from lenny to squeeze

2011-02-11 Thread Michael Tsang
On Friday 11 February 2011 17:52:53 Make Compile wrote:
 W: GPG error: http://security.debian.org stable/updates Release: The
 following signatures couldn't be verified because the public key is not
 available: NO_PUBKEY AED4B06F473041FA W: You may want to run apt-get
 update to correct these problems
 
You may consider manually installing the latest debian-archive-keyring first
 
 Here's the sources.list
 
 deb http://ftp.us.debian.org/debian/ squeeze main
 deb-src http://ftp.us.debian.org/debian/ squeeze main
 deb http://security.debian.org stable/updates main contrib non-free
I think this line is problematic. Your system will gone wrong by this line 
after Wheezy release. Change stable to squeeze

-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: debian - ubuntu

2011-01-26 Thread Michael Tsang
On Wednesday 26 January 2011 19:45:46 artorius wrote:
 hi, it's my first post and i'm newbie on debian an ubuntu too.
 the prbolem is that i have tried to install ubuntu rigt after the setup
 of debian and the laptop (hp nc6000) gives me this message:
 
 (process:285) : Glib - warning xx : getpw id : failed due to unknown
 user (0) id.
 
 thank you very much.
 artorius
Can you give me more information about your system?
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: No lvm2 volumes after kernel update

2010-07-12 Thread Michael Tsang
On Monday 12 July 2010 17:53:56 Konstantin Kletschke wrote:
 Well the update itself did run very well, grub2 loads new kernel and
 ramdisk and iniiates to start userspace. There pvscan detects no
 physical volumes anymore all of a sudden. Booting the old kernel again
 runs well and the bos comes up and pvscan works and the logical volumes
 are mounted and working in the end.
 
 The old kernel is a debian packge:
 
 2.6.17-2-686 #1 SMP Thu Aug 31 12:53:18 UTC 2006 i686 GNU/Linux
 
 The new kernel is also debian package:
 
 linux-image-2.6.32-5-686
 
 Additional the versions of the following packages may be relevant:
 
 lvm2: 2.02.39-7
 libdevmapper1.02.1: 2:1.02.27-4
 udev: 0.098-2
 
 Kind Regards, Konsti
Are you using the kernel to autodetect the LVM volumes (using type 0xfd). It 
does not handle the volumes well, about a week ago, it *corrupted* my array 
because it couldn't distinguish the superblocks of /dev/sdb and /dev/sdb1. 
Finally, I used userspace tools (mdadm) to detect my array by specifying the 
arrays in /etc/mdadm/mdadm.conf

Also, did you specify any of /dev/hd? in /etc/mdadm/mdadm.conf? The new kernel 
treats IDE devices as SATA devices so you will use /dev/sd? to specify the 
hard disks.
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


apt package preference

2010-06-22 Thread Michael Tsang
Consider the following:
Package foo is installed (version 1.0). As it is not in any of the 
repositories, its priority is 100.
Package foo is available in both repo xyz and pqr. The version in xyz is 0.9 
and its priority is 990; the version in pqr is 1.1 and its priority is 500. 
Can foo be upgraded to 1.1 or it will be left intact?
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: Installing from businesscard ISO

2010-06-20 Thread Michael Tsang
On Sunday 20 June 2010 19:03:59 Disc Magnet wrote:
 If I install Debian from a businesscard ISOs, what am I going to miss
 as far as software and packages are concerned? Or does it work like a
 normal CD-1 iso install because it pulls down everything required from
 the Internet?
 
 Is there a way to prevent it from connecting to the internet and in
 that case what would I miss?

That 40 MB image contains the installer and the installer components (such as 
disk modules, etc). It does not contain the base system so you must connect to 
the Internet to install Debian. It differs from the netinst image as it does 
not contain the base system. The mini image is even smaller without the 
installer components so that you must connect to the Internet even to rescue 
the system.
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


How to change the console into UTF-8 mode for FreeBSD kernels?

2010-06-20 Thread Michael Tsang
It's really annoying if the console isn't in UTF-8 mode as every bit of my 
system is in Unicode to prevent any compatibility problems.
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.


Re: Installing from businesscard ISO

2010-06-20 Thread Michael Tsang
On Sunday 20 June 2010 19:53:42 Disc Magnet wrote:
 On Sun, Jun 20, 2010 at 4:58 PM, Greg Madden gomadtr...@gci.net wrote:
  The business card iso does not have  much, it sets up a network
  connection and downloads everything..so you need a net connection. The
  netinstall iso has the base system on it so you have a minimal install
  to work with, none of the 'standard' set of packages no X. So CD1 would
  be useful if you don't have a net connection.
 
 Thanks for your explanations, Greg and Michael. It was lucid and very
 helpful. I have one more question, Greg.
 
 Why do you say that CD1 would be useful if we don't have a net
 connection. It seems that the netinstall can install a base system as
 well. I hope netinstall would install a system with the basic tools
 like ls, aptitude, vim, etc. If so, netinstall is good enough to setup
 a minimal install and download the remaining packages from internet
 whenever I need using aptitude. Am I right?
The netinstall CD *does* contain the base system and aptitude but it does not 
contain vim, etc. so you need to connect to the Internet to install useful 
packages after installing the base system.
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html


signature.asc
Description: This is a digitally signed message part.