Search:

Type: Posts; User: moonhk; Keyword(s):

Search: Search took 0.00 seconds.

  1. [ubuntu] Re: Change Disk portition and reload image file

    For Partimage, I get the answer as below
    http://www.partimage.org/Partimage-FAQ#Can_I_restore_it_to_a_smaller_or_bigger_partition_.3F

    You can't restore to a smaller partition (you will have an...
  2. [ubuntu] Re: Change Disk portition and reload image file

    Hi All

    Step 1.
    For Create partimage file by
    YMD=`date +%Y%m%d`
    TAR=/mnt/image/ubuntu104_${YMD}.gz
    partimage -z1 -o -d save /dev/sda1 $TAR

    Step 2.
    Reformat HD
  3. [ubuntu] Change Disk portition and reload image file

    Hi All
    My ubuntu partition is 19GB on 80GB hard disk. Then Reformat Hard Disk to 50GB and reload partimage image file. After reload the image file, using df to check Still 19GB.

    How to fix my...
  4. Replies
    0
    Views
    248

    [other] Mount dev after boot from RescueCD

    Hi All

    I am using USB-Sticks boot Rescue CD. I want to know how to mount dev after boot ?

    e.g. I want run below command after boot
    mkdir /mnt/disk2
    mount -t vfat /dev/hda3 /mnt/disk2

    Also,...
  5. [ubuntu] Hard disk will be demaged, Just 4 mins , the system reboot

    Hi All

    My Hard disk will be damaged. System will be reboot after 4 mins.
    The ubuntu Linux just for personal use.
    I have 2009/05/30 Image backup and my home directory Backup.

    I want to know,...
  6. Replies
    9
    Views
    977

    [ubuntu] Re: ssh on window connect ubuntu

    Tried. OK Not.
  7. Replies
    9
    Views
    977

    [ubuntu] ssh on window connect ubuntu

    Hi All

    ubuntu before is 6.06. Now Upgraded to 8.04

    Below problem how to fix ?

    It try to remove /home/Administrator/.ssh/known_hosts. Not ok

    c:\temp>ssh moonhk@hex...
  8. Replies
    1
    Views
    335

    [ubuntu] Why Monitor Resolution Change

    Hi All

    Do you know why the Monitor Resolution change after reboot ?
    My default setting is 1024x 768 ,Now 800 x 600

    Release ubuntu 8.04

    moonhk
  9. Replies
    1
    Views
    369

    [ubuntu] how to config ssh for port 22

    Hi All

    How to open port 22 for ssh ?

    moonhk@hex:~$ ssh moonhk@hex
    ssh: connect to host hex port 22: Connection refused
    moonhk@hex:~$


    moonhk
  10. Replies
    1
    Views
    347

    [ubuntu] Install Sun Java

    Hi ALl

    Some day before, I install sun-java. But have below error.
    How to fix ?
    Each time update my system. Following error prompted.

    Ubuntu Release 8.04

    This package is an installer...
  11. [ubuntu] How to get repository for my location hongkong

    Hi All
    How to get repository for my location hongkong ?
    ubuntu 6.06

    moonhk
  12. Replies
    2
    Views
    1,090

    [ubuntu] Re: How to allow telnet

    Thank. OK now.
  13. Replies
    3
    Views
    354

    [ubuntu] Re: Upgrade from 6.06 LTS to 6.10

    I try direct upgrade to 8.04. can not able to boot it.So, I try to Upgrade one by one.
  14. Replies
    3
    Views
    354

    [ubuntu] Upgrade from 6.06 LTS to 6.10

    Hi All

    I try to update 6.06 to 6.10 by gksu "update-manager -c" ,
    try "Update" button, can not able to see 6.10 Update ?

    moonhk@hex:~$ lsb_release -a
    No LSB modules are available....
  15. Replies
    2
    Views
    1,090

    [ubuntu] How to allow telnet

    Hi All

    How to allow telnet for my ubuntu ? I want windows can telnet my ubuntu.


    moonhk@hex:~$ telnet 192.168.0.110
    Trying 192.168.0.110...
    telnet: Unable to connect to remote host:...
  16. Replies
    17
    Views
    1,392

    Re: python *,py search path for my python program

    Just add #!/usr/bin/python on first line and set PATH.
    I can call python without input "python and setup path"

    moonhk@hex:~/python$ app01.py
    import mprint
    call mprint.p(4)
    8
    call mprint.q(4)...
  17. Replies
    17
    Views
    1,392

    Re: python *,py search path for my python program

    Thank All ubuntu users.

    Below is my solution.

    #!/bin/bash
    # ph.ksh
    # 2007/01/29 moonhk,eric
    PARA=$@
    SP1=/home/moonhk/python
    SP2=/home/moonhk/shell
  18. Replies
    17
    Views
    1,392

    Re: python *,py search path for my python program

    Thank jblebrun.
    Yes. You are correctly. I try to find that python can lookup particluar path for my python programs. Now, I just find that only import can search defined path.

    moonhk
  19. Replies
    17
    Views
    1,392

    python *,py search path for my python program

    Dear Reader

    All my python program in below directory
    /home/moonhk/python


    Is it possible to search *.py in mentioned directory

    e.g.
    moonhk@hex:~$ python hello.py
  20. Replies
    0
    Views
    306

    Testing email function problem

    I want to testing email function, but I need below problem

    where email module at below location
    /usr/lib/python2.4/email


    # Import smtplib for the actual sending function
    import smtplib

    #...
  21. Replies
    10
    Views
    46,415

    Re: can python call unix/linux command ?

    Tried. OK. I try to learn about python.

    Try using IDEL , the echo seem not work.
    Output in IDEL
    IDLE 1.1.3 ==== No Subprocess ====

    >>> import os
    >>> os.system('echo "HELLO"')
    0
    >>>
  22. Replies
    10
    Views
    46,415

    can python call unix/linux command ?

    In shell script can using unix/linux command. How about python can call unix/linux command ?

    In my shell script change *.jpg to 2007*.jpg , Can python do like below ?

    ymd=`date +%Y%m%d`...
Results 1 to 22 of 22