วันอังคารที่ 1 กรกฎาคม พ.ศ. 2551


Quick Install Guide for Untangle for Ubuntu

http://wiki.untangle.com/index.php/Quick_Install_Guide_for_Untangle_for_Ubuntu

ไว้แปลในวันว่าง ๆ อิ อิ

From UntangleWiki

Jump to: navigation, search

Contents

[hide]


What is Untangle for Ubuntu?

Starting with the Untangle Server 5.2 release, you can install the Untangle Server onto an existing Linux systems of specific distributions. Untangle Server no longer needs to have its own operating system. Basically, now there are two ways to install an Untangle Server:

Product Install Method GUI Advantage
Untangle Gateway (Traditional) Untangle ISO

ISO distribution that installs Untangle Gateway and a base Linux distribution (sarge). In this case, Untangle delivers bootable ISO distribution installer. The installer checks your machine for compatibility, partitions the drive, installs the base Linux distribution (sarge), then reboots the Untangle Server. Your new Untangle Server is ready!

The Untangle Gateway's Untangle Kiosk (untangle-kiosk) consists of:

  • Launch button for the Untangle client.
  • Recovery tools.
  • Shutdown/restart/screensaver buttons.
Figure, Untangle Kiosk
Enlarge
Figure, Untangle Kiosk
This solution is perfect for those that don't want to fuss with an operating system.
Untangle for Ubuntu (NEW) Untangle install script

In this case, you boot the Linux ISO. The installer partitions your disk and installs the Linux distribution. Then, you check your machine for compatibility and install Untangle Server. The server becomes a fully functioning Untangle Gateway. All core Untangle Server services and the administration client are supported.

Instead of the traditional Untangle Kiosk, use the Untangle Gateway default desktop manager to launch Untangle Client, backup and restore your Untangle Server, shutdown/restart your Untangle Server, and to launch screensaver.

Figure, Untangle Gateway Lite Default Desktop
Enlarge
Figure, Untangle Gateway Lite Default Desktop

This solution is especially useful to MSPs that have internal business requirements that mandate a specific Linux distribution. This solution is also useful for open-source developers.

  • Untangle Server fits into the existing system, rather than owning it as the normal ISO install does.
  • Supports your desktop manager of choice.

About Automatic Logon & Session Management

The main part of the Untangle kiosk is the automatic login and X session management. There is a user created named kiosk, and this user is automatically logged into a minimal appliance-like X desktop. The user has an invalid password, so the user cannot log into the system in any other way (such as ssh). Your existing Linux system already has a login mechanism—the original user that Linux created at during initial distribution install time. For Debian, you can also log on as root. So the Untangle Gateway Lite, Untangle install script doesn't change the login system. You'll need to login after rebooting if you need to launch the administration client. Note that the virtual machine (untangle-vm) runs even if you never log on.

Note: Be aware that Untangle Server is designed for deployment on network gateways, where logins to the system are restricted to only authorized users. Do not give untrusted users accounts on the system.

Supported Linux Distributions

Untangle supports the Untangle Server on the following Linux distributions:

Known Issues

Description: Upgrading to a newer upstream kernel may cause the system to no longer run the Untangle tested kernel.

Workaround: After upgraded edit /boot/grub/menu.lst to use the Untangle kernel.

Description: Email configuration tab is greyed out

Workaround: This is because the email relay setup is handled by the OS (Debian/Ubuntu) - typically this is done via exim and can be reconfigured using 'dpkg-reconfigure exim4-config'


(Etch) Non-Free Distribution Required

Description: An Etch bug requires that you have a non-free distribution. If you don't, the install script will fail quite early complaining that packages cannot be found.

Workaround: Before running the install script on etch, edit /etc/apt/sources.list. Add contrib and non-free to the first two lines, and non-free to the second two lines. Server names can vary, but here's an example:

Before:

 deb http://mirrors.kernel.org/debian/ etch main
deb-src http://mirrors.kernel.org/debian/ etch main

deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib

After:

 deb http://mirrors.kernel.org/debian/ etch main contrib non-free
deb-src http://mirrors.kernel.org/debian/ etch main contrib non-free

deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free

(Hardy) Monitor Resolution Limited to 800 x 600

Description: When you install Untangle Server in a virtual machine (VMWare guest), and proceed to use the Untangle Setup Wizard to configure your Untangle Server, the wizard's text boxes don't display properly, preventing you from using the wizard. This problem is the result of Ubuntu bug #172821, which causes screen resolution to be limited to 800 x 600.

Figure, Ubuntu Bug 172821
Enlarge
Figure, Ubuntu Bug 172821

Workaround: You have two options:

  • Manually increase the resolution.
Figure, Using Desktop Manager to Increase Monitor Resolution
Enlarge
Figure, Using Desktop Manager to Increase Monitor Resolution
  • Edit the Monitor section of /etc/X11/xorg.conf, adding the following lines:
 HorizSync  31.5 - 50.0
VertRefresh 50.0 - 60.0

(Gutsy/Etch) Must Answer X11 Resolution Question

Description: Untangle Gateway Lite needs to pre-configure X11. There is an upstream bug that prevents full pre-configuration of X11, even when you run the Untangle install script with -y option.

Workaround: Answer yes to the X resolution question.

(Hardy) Network Manager Removal Returns Error

Description: During installation on a Linux system with a pre-existing desktop, Untangle install script removes Network Manager. During this process, an error is returned. There is a minor upstream bug that produces this error.

Workaround: Simply ignore the message.

Figure, Network Manager Error
Enlarge
Figure, Network Manager Error


Installing Untangle for Ubuntu (...and Debian!)

This installation runs for one hour and has a few interactive prompts, so consider using the shortcut installation below. Also, you can run the Untangle install script more than once if necessary. All install actions are idempotent, so if you need to quit the install—no problem. The results will be unchanged.

For the impatient:

  1. From your existing Linux system:
  2.  $ wget http://www.untangle.com/download/install52.sh
  3. Run the Untangle install script:
  4.  $ sudo bash install52.sh -y

    The -y option tells the install script not to ask for confirmations, but to just do the install. If you run without the -y option, answer yes to all questions asked during the install.

For the meticulous:

  1. Verify that you meet all CPU and memory requirements. These requirements are the same regardless of the Untangle Server platform. Go to Hardware Requirements.
  2. (Recommended) Install a fresh base supported Linux distribution, and select the default Linux install options.
  3. (Ubuntu Server Edition) Install your favorite desktop manager. Ubuntu Server Edition does not install a desktop. If you install Ubuntu Server Edition, the Untangle install script automatically installs a lightweight desktop manager.
  4. Fluxbox:

     $ sudo apt-get install fluxbox x-window-system-core xdm

    Default GNOME desktop:

     $ sudo apt-get install ubuntu-desktop 
    $ sudo apt-get install gdm
    $ sudo /etc/init.d/gdm start
    (Optional) $ sudo dpkg-reconfigure xserver-xorg
    Figure, Ubuntu Desktop
    Enlarge
    Figure, Ubuntu Desktop
  5. Update your Linux system by doing one of the following:
  6.  $ sudo apt-get update;sudo apt-get dist-upgrade
  7. Get Untangle install script by doing one of the following:
    • (Easiest!) Directly from your Linux system:
    •  $ wget http://www.untangle.com/download/install52.sh
    • Click here to download the Untangle install script (install52.sh), then transfer the Untangle install script to the system using SCP, or a USB key. Also, install the SCP packages on your Linux system, if you haven't already:
      • If you want to install the server:
       $ sudo apt-get install ssh
      • If you don't want the server running, only the client:
       $ sudo apt-get install openssh-client

      Note: After installing the ssh package, you might need to use the rehash command, or log in again so that your shell recognizes the newly installed scp binary.

  8. Determine if you need to perform any workarounds in advance of running the Untangle install script. Browse Known Issues.
  9. Run the Untangle install script, by doing one of the following:
    • If you want to see the install step-by-step, run the following command, then answer yes to all questions asked during the install:
     $ sudo bash install52.sh
    • If you do not want the install script to prompt you for confirmations, run the command with the -y:
     $ sudo bash install52.sh -y
    • Downloads a library key from Untangle
    • Adds Untangle package server to system's configured package servers (/etc/apt/sources.list.d)
    • Installs the untangle package server key into the system.
    Figure, Activation Key & Untangle Package Server
    Enlarge
    Figure, Activation Key & Untangle Package Server
    Identifies what's already on your Linux system to determine what additional packages need to be installed (for example, desktop).
    Figure, Booting into Untangle Kernel
    Enlarge
    Figure, Booting into Untangle Kernel
    Automatically pre-configures packages (for example, ddclient, slapd) that are managed by Untangle Server.
    Figure, Preconfiguring SLAPD
    Enlarge
    Figure, Preconfiguring SLAPD
    Figure, Preconfiguring DCLIENT
    Enlarge
    Figure, Preconfiguring DCLIENT
    Adds all additional packages, the Untangle Linux kernel, and the Untangle light gateway itself (untangle-gateway-light) are downloaded and installed.
    Figure, Downloading Untangle Packages
    Enlarge
    Figure, Downloading Untangle Packages
    Figure, Adding Untangle Packages
    Enlarge
    Figure, Adding Untangle Packages
    Figure, Installing Untangle VM
    Enlarge
    Figure, Installing Untangle VM
    Congratulations! You successfully installed Untangle Gateway Lite
    Figure, Successful Install
    Enlarge
    Figure, Successful Install
  10. Verify that Untangle Server is the first kernel in the list of kernels:
  11.  $ vi /boot/grub/menu.lst

    Linux keeps a list of kernels that it can boot. Linux is normally configured to boot the first kernel on its list. In most cases, Untangle Server is the first kernel on the list, so a simple reboot works fine. However, it is possible that the Untangle kernel is not the first kernel on the list, and so won't be automatically selected at boot time.

    • If Untangle Server is the first kernel in the list, then reboot your system to boot the Untangle kernel:
     $ sudo reboot
    • If Untangle Server isn't the first kernel in the list, adjust the default line in the /boot/grub/menu.lst file, then reboot your system to boot the Untangle kernel.
    Figure, Verifying Kernel List
    Enlarge
    Figure, Verifying Kernel List
    Figure, Booting into Untangle Kernel
    Enlarge
    Figure, Booting into Untangle Kernel

Configuring Untangle Gateway Lite

  1. Log on to your Linux system—soon to be your Untangle Server, if you aren't already logged on.
  2. Launch the Untangle Client. The first time that you launch the Untangle Client the Setup Wizard appears.
  3. Follow the Setup Wizard's on-screen instructions to configure your Untangle Server.
  4. Note: Since your system already had network settings and a name, the Setup Wizard automatically displays this information. Simply click Next to approve. You can also adjust the values as needed.

  5. Add Software products. Go to Choosing Which Products To Install.

Administering Untangle for Ubuntu

Launching Untangle Client from Untangle for Ubuntu

  1. Log on to your Linux system.
  2. Do one of the following to launch the setup wizard:
    • (If Your Didn't Have a Desktop Manager) Right-click on the desktop manager background and select Network > Untangle Gateway Administration.
    • (If You Had a Desktop Manager) Click on the Untangle client in the Applications menu.
Figure, Launching Untangle Gateway Admin GUI
Enlarge
Figure, Launching Untangle Gateway Admin GUI
Figure, Launching Untangle Client from Command Line
Enlarge
Figure, Launching Untangle Client from Command Line

Launching Terminal Window from Default Desktop

To launch a terminal window:

From the default Desktop Manager, right-click on the desktop manager background and select Accessories > Terminal.

Figure, Launching Terminal Window
Enlarge
Figure, Launching Terminal Window

Shutting Down/Rebooting Untangle for Ubuntu

To shut down:

Do one of the following:

  • (From Default Desktop) Right-click on desktop:
Figure, Shutting Down Untangle Gateway Lite from Default Desktop
Enlarge
Figure, Shutting Down Untangle Gateway Lite from Default Desktop
 $ init -0

To reboot:

Do one of the following:

  • (From Default Desktop) Right-click on desktop:
Figure, Rebooting Untangle Gateway Lite from Default Desktop
Enlarge
Figure, Rebooting Untangle Gateway Lite from Default Desktop
 $ reboot

Backing Up Untangle for Ubuntu Configuration

Unlike with Untangle Gateway, Untangle Gateway Lite doesn't provide console-based recovery tools (untangle-restore-tools) for recovery of the system. In the light install, most of these tools (returning to factory defaults, for example) do not exist.

However, the Untangle Gateway Lite provides an on-system backup & restore utility. Also, backup and restore are still available off-system from the regular administration client.

To backup all Untangle settings to the local hard drive:

 & sudo /usr/share/untangle/bin/backup-ut /usr/share/untangle/dump

To backup all Untangle settings to a local drive, mounted in /media/flashdrive:

 & sudo /usr/share/untangle/bin/backup-ut /media/flashdrive


Upgrading Your Untangle for Ubuntu Instance

With Untangle Gateway Lite, Untangle Server is being installed on an existing system, and the selected package servers (called software sources on Ubuntu) include both the Untangle Server and the original distribution (Ubuntu or Debian) servers. So Untangle Server's automatic upgrade mechanism, which can ask no questions of the user, is not appropriate.

Automatic upgrading is initially turned off for Untangle Gateway Lite, and Untangle does not recommend turning it on. Instead, upgrade your Untangle Server using your usual distribution upgrade method, usually the Upgrade manager or the Synaptic package manager. When upgrading, there are two simple rules to remember:

  • A non-Untangle package has a package name that does not start with untangle. When upgrading a non-Untangle package, answer n (the default) if the manager asks about a configuration file modified by Untangle.
  • An Untangle package has a package name that starts with untangle. When upgrading an Untangle package, answer y (allow new Untangle package to replace the configuration file) if the manager asks about a configuration file not modified by Untangle.

วันเสาร์ที่ 23 กุมภาพันธ์ พ.ศ. 2551

การ Install Picasa บน Ubuntu


วันนี้ 23-02-2008 ได้ลองทดสอบติดตั้ง โปรแกรม Picasa บน Xubuntu ดูครับ
พอดีโปรแกรมที่ดูรูปไม่มีมาให้ใน Xubuntu ไหน ๆ ก็ สมัคร Gmail แล้วเลยลองใช้บริการ
ของ Picasa ดูครับ

Homepage ของ Picasa ครับ ที่รองรับ Linux http://picasa.google.com/linux/index.html
โดยแบ่ง Package ให้เลือก ดังนี้ครับ ผมใช้ Xubuntu ก็เลือก .deb มา

Picasa 2.2 for Linux

Select the file type you want to download by picking one of the first two links below. Pick the third file type (.bin) if the others don't work for you.

This will open the File Download screen and give you specific installation instructions.

This software uses these open source technologies: WINE, Mozilla.
Please read the System Requirements.

วิธีการ Install ดังนี้ครับ ง่าย ลองใช้งานดูครับ

Installing Picasa

If you have a Picasa window open, or you have the Picasa icon in your toolbar, please close them before installing a new version.

If you're using a recent version of Linux, you should be able to pick "Open With Default Application" or double-click on the downloaded .deb file to install.

If that doesn't work, save the file in the /tmp directory, then open a terminal window and install with a command like

$ sudo dpkg -i /tmp/picasa_2.2.2820-5_i386.deb

or

$ su
# dpkg -i /tmp/picasa_2.2.2820-5_i386.deb
# exit

Starting Picasa

Start Picasa by looking in your Linux distribution's Graphics menu. If you can't find it there, give the command /usr/bin/picasa in a terminal window.

Tips

  • If you use NFS, when Picasa first starts, tell it to scan just your desktop! Otherwise Picasa gets real slow while it scans all your NFS directories!
  • To get Picasa to see pictures on your hard drive, click "File / Add Folder" (NOT "Import").
  • When adding a folder to Picasa, the default action is to remove the folder from Picasa. You have to actively choose Scan once or Scan always.
  • Picasa is not supported over remote X connections.

Wow, Picasa found all my photos!

When you start Picasa, it instantly goes to work, organizing all the pictures on your hard drive by date in the "Folders on Disk" collection. If Picasa finds folders you don't want, go into Tools > Folder Manager to tell it which folders to scan once, scan always or remove. To remove individual pictures from your library, simply select a photo and right-click to delete it permanently from your computer or hide it from Picasa.

Visit the Picasa for Linux FAQs

วันอังคารที่ 5 กุมภาพันธ์ พ.ศ. 2551

aMSN ทางเลือกใหม่สำหรับคนรัก MSN

สำหรับคนรัก MSN เป็นชีวิตจิตใจอย่างผม เพื่อนผมหลายคนเคยติดตั้ง amsn แล้วไม่คอยสบอารมณ์กับภาษาไทยของมันเท่าไหร่

เมื่อคืนเพิ่งลง Gutsy Gibbon ไปครับรู้สึกว่าเล่น Pidgin มันไม่ค่อยมันมือเหมือน amsn เลยหาวิธีลงก็เพิ่งได้เมื่อไม่กี่ชั่วโมงนี้เอง

ตอนแรกก็ลง

$sudo apt-get install amsn

แล้วเจอปัญหาภาษาไทยไม่ค่อย Work เลยหาวิธีทำให้มันใช้ภาษาไทยได้อย่างสมบูรณ์ Search google แล้ว Search อีก

สุดท้ายเข้าเว็ป http://ubuntuforums.org แล้ว Search คำว่า amsn เท่านั้นแหละครับเจอของดีเข้าให้เลยครับ

เป็น shell script สำหรับติดตั้ง amsn ลองๆ อ่านที่เค้าเขียนไว้ดูน่ะครับ

Automatic Script for Anti-Aliasing aMSN



This is a fully automated script to add anti-aliasing support to aMSN. This will compile the latest beta of Tcl and Tk and recompile the latest stable aMSN
release for it. This will NOT replace your existing Tcl/Tk
installation, so this method is much safer to use and easier to revert
than other non-compilation methods. This script works on Edgy, Feisty
and Gutsy
,
and works on both 32-bit and 64-bit processors.

ขั้นตอนวิธีติดตั้งก็มีดังนี้ครับ

แนะนำว่าให้ลบ amsn ที่มีเติมอยู่ออกก่อนน่ะครับ

$sudo apt-get autoremove amsn

ดาวน์โหลด fixamsn.sh <- ได้จากที่นี่(ตัวนี้ผม modify ให้เป็น 0.97 แล้วครับ จากเดิม 0.97RC1)

แตกไฟล์ด้วยคำสั่ง tar

$tar zxvf fixamsn.sh.tar.gz

จากนั้น run shell script fixamsn.sh

$bash fixamsn.sh

รอสักไม่เกิน 10 นาทีก็จะได้ aMSN ที่สามารถใช้ภาษาไทยมาแชทกับเพื่อนแล้วละครับ

Refer : http://ubuntuforums.org/showthread.php?t=297676&highlight=amsn


Credit : http://learners.in.th/blog/mrgill/64489 Mr.mrGilL


ถ้าไม่ Work ไง ลองแบบนี้ก็แล้วกันครับ แต่ต้องใช้กับ Ubuntu 7.10 เท่านั้น

ลองมาแล้วครับ Work !!!!


Credit http://ubuntuforums.org/showthread.php?t=649364

Amsn with tcl/tk8.5 stable PACKAGES HERE


Hi there!

It's been a couple of day since the stable version of tcl/tk8.5. This version is already in the debian sid repos, and I've backported it to ubuntu. It shouldn't harm anything and it shouldn't conflict with any previous tcl/tk version, as the packages should be compliant with the debian packaging rules.

I've also done a package from the latest amsn version. The package isn't a standard amsn one, but it has some extra skins and plugins and some configuration tweaks. It supports drag and drop: drag a file into the conversation and it will be sent to you contact!

UPDATE: new package is tcltls1.50. Repackaged from the package from the repos, against tcl8.5, so that it doesn't require tcl8.3 anymore.

INSTALL ORDER: tcl8.5, tk8.5, tcltls, amsn. If you install amsn before tcltls, you will also install tcl8.3, which isn't necessary with my tcltls package.

For all stuff to work correctly, you MUST INSTALL ALL OF MY THREE PACKAGES (install them using gdebi). If you install my tcl/tk8.5 and the amsn from the repos chances are that it won't work or, at best, you will have the ugly and "old" aMsn.

WARNING, please read: The packages are made for gutsy. If you have amsn installed from the ubuntu oficial repos this will replace that one. For other installations you could have done, better ask if you don't know what to do. The same aplies to tcl/tk8.5: it won't conflict with tcl/tk 8.4 or 8.3, but if you already have a 8.5 version installed, you should uninstall that one first. If you don't know anything about how you installed amsn and/or tcl/tk, better don't do anything.

IF YOU HAVE PROBLEMS: open synaptic and there remove tcl8.5, tk8.5 and amsn. Then install again my three packages. First tcl8.5, then tk8.5 and at last amsn.

SCREENSHOT:


LINKS: **ปล. Install ตามขั้นตอน ตั้งแต่ตัวแรก เลยครับ ถ้า โปรแกรไหนมีการ update packet ไหนก็ up ให้หมดครับ
แล้ว สุดท้ายให้ install AMSN เป็นขั้นตอนสุดท้าย นิ **


1. TCL8.5: http://in.solit.us/archives/download/114664
1.1 tcl8.5-dev: http://in.solit.us/archives/download/118167

2. TK8.5: http://chronos.solit.us/archives/download/113979
2.1 tk8.5-dev: http://in.solit.us/archives/download/118166

3. TCLTLS1.50 http://in.solit.us/archives/download/115681
4. AMSN 0.97 stable: http://in.solit.us/archives/download/114530

CHEEERS!