`
yangzb
  • 浏览: 3506594 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
阅读更多

AndLinux http://andlinux.org

个人评价:

我安装的是 xfce mini 版,通过更改源竟然可以用 Ubuntu 源升级,

例如可以用 apt-get install language-support-zh 安装中文支持,很好。

用起来很舒服,但是仍有不如意的地方,可能我还不会用吧。

中文输入法不能使用,剪切版可以与windows共享,而文件却不能,可以上网。

默认使用 root 打开终端,不知道怎么更改。

通过修改 menulist 文本文件可以更改 xfce menu (andlinux) 的菜单项,

比如添加 xfce4-panel 的启动项,LinuxQQ 的启动项,等。

声音正常。

Trouble Shooting / FAQ

This section covers only the most important issues resp. frequent questions. If you don't find your answer here, please head to the forums.

Startup Problems

In case andLinux does not fully startup, please check your firewall settings. Many firewalls apply restrictive default permissions to newly created network interfaces, which often results in incoming traffic for the "TAP-Colinux" network adapter being blocked. Please ensure that your firewall does not block traffic on the "TAP-Colinux" interface! Furthermore, the executables Xming.exe and pulseaudio.exe are often blocked by software firewalls.

Note: Even if andLinux does not fully startup, you might be able to login to andLinux using FLTK or NT console for debugging purposes.

Samba Access

If you're not able to access your Windows files via Samba, please check that you don't have any errors in your username or password (they're stored in /etc/smbpasswd ). Furthermore, please verify that file and printer sharing is enabled for the "TAP-Colinux" network adapter and that your firewall does not block file and printer sharing for this network adapter.

Other Languages / Time Zones

You may install other languages; for example, to install German, execute the command locale-gen de_DE@euro and add a line with LANG=de_DE@euro to /etc/environment . Additionally, it may be necessary to install the language pack: apt-get install language-pack-de . If you're using the KDE version, you may want to install the KDE translation packages furthermore: apt-get install kde-i18n-de koffice-i18n-de kile-i18n-de . Finally, you'll have to reboot to activate your changes. This procedure should also work with other languages than German by replacing "de" and "de_DE@euro" in the commands appropriately.

In order to correct the time zone, link the appropriate file under /usr/share/zoneinfo/ to /etc/localtime , e.g., for Central European Time (CET) you would run: ln -fs /usr/share/zoneinfo/CET /etc/localtime

Printer Setup

First install some required packages (and their dependencies): apt-get install cupsddk cupsddk-drivers cupsys cupsys-client cupsys-common cupsys-driver-gutenprint foomatic-db foomatic-db-engine foomatic-filters openprinting-ppds openprinting-ppds-extra Next, enable sharing for your Windows printer(s) and ensure that your firewall does not block traffic on the TCP ports 137-139 and 445 on the TAP-Colinux Adapter in either direction (incoming + outgoing). Now, you are ready to connect to your Windows printer(s) via Samba. In the KDE control center (kcontrol), section "Peripherals", subsection "Printers", select CUPS as the "Print system currently used" and then add a printer. In the add-printer-wizard, choose "SMB shared printer", enter your full Windows login and password as option "Normal Account", enter the TAP-Colinux IP (192.168.11.1 by default) as "Server" (don't use the hostname, it can't be properly resolved) and the name of your Windows printer share as "Printer". Finally select the correct printing driver, print a test page, optionally configure the printer's default settings, and complete the wizard.

Changing the Launcher Port

In case you want to change the port of the andLinux Launcher (port 81), open the Windows Registry (command regedit ), and below the key \\HKEY_LOCAL_MACHINE\SOFTWARE\andLinux\Launcher\ (note that, by default, only the key \\HKEY_LOCAL_MACHINE\SOFTWARE\ exists; you'll have to create the subkeys andLinux and Launcher yourself), create a value "IP" of type "REG_SZ" with the IP address (default 192.168.11.150) and a value "Port" of type "REG_DWORD" (be careful to enter the port as decimal value; default is hexadecimal). Finally, you have to change the value of "LocalPort" in file /usr/local/sbin/launcher.pl (and restart). Note: this feature exists since andLinux Beta 1.

Howto: keep your base.drv during update

From andLinux

Jump to: navigation , search

If you want to keep your customized base.drv when updating andLinux, you'll have to perform the following steps. It's easier to do it before the upgrade.

The procedure before the upgrade

When updating to andLinux Beta 1 (final), you'll have to run these commands:

wget http://www.henrynestler.com.sixxs.org/colinux/testing/stable-0.7.3/20080524-Snapshot/packages/modules-2.6.22.18-co-0.7.3-20080524.tgz
tar -xzf modules-2.6.22.18-co-0.7.3-20080524.tgz -C /

Then

  • uninstall andLinux, reboot, remove possible remainders (except base.drv, of course),
  • install the new andLinux release, reboot, let andLinux boot up,
  • shutdown andLinux again, replace the new base.drv by your existing one, boot andLinux again, and you're done.

If you already did the upgrade

In case you've already installed the new version and kept your old base.drv in a different folder, the procedure is a bit more complicated:

  • shutdown andLinux, add a line to settings.txt
cobd2=C:\path\to\old\base.drv
  • boot andLinux again, mount the old drive
mkdir /mnt/old
mount /dev/cobd2 /mnt/old
  • install the new kernel modules to the mounted old base drv, similar to the case above, i.e.
wget http://www.henrynestler.com.sixxs.org/colinux/testing/stable-0.7.3/20080524-Snapshot/packages/modules-2.6.22.18-co-0.7.3-20080524.tgz
tar -xzf modules-2.6.22.18-co-0.7.3-20080524.tgz -C /mnt/old/
  • shutdown andLinux again, replace the new base.drv by your existing one, boot andLinux again, and you're done.

Notes

  • Just in case something might go wrong, it's recommended to make backup copies of base.drv (while andLinux is not running).
  • When updating from andLinux Beta 1 rc6 to andLinux Beta 1 (final), the procedure above is sufficient (as all other changes in the new version are installation related). When updating from an older version, it may be necessary to perform additional tasks such as updating/installing packages, adapting script files, etc.

Howto: change default user

From andLinux

Jump to: navigation , search

Contents

[hide ]

How to change the default user

The andLinux startup scripts will eventually invoke a script at /usr/bin/X11/s tartw indowst erminals ession. The last lines of this script are

termcommand=`cat /etc/winterm`
 sux - root
 ${termcommand}


The root user is the default user for launching programs on the andLinux VM. To change the default user, you need to replace the user name in this file, and restart andLinux. However, there is a catch. If you are replacing root with a non-privileged user, the launcher.pl daemon will not be able to open port 81 (the default, recall) for listening, because the first 1024 ports require super-user privileges to access.

So to replace root with some other privileged user simply requires changing the name, while replacing it with a non-privileged user requires more work. We'll create a user joachim for our example.

Step 1: Create the user

root@andLinux:~# adduser joachim

 Adding user `joachim' ...
 Adding new group `joachim' (1001) ...
 Adding new user `joachim' (1001) with group `joachim' ...
 Creating home directory `/home/joachim' ...
 Copying files from `/etc/skel' ...
 Enter new UNIX password:
 Retype new UNIX password:
 passwd: password updated successfully
 Changing the user information for joachim
 Enter the new value, or press ENTER for the default
       Full Name []: Joachim von Paderborn
       Room Number []:
       Work Phone []:
       Home Phone []:
       Other []:
 Is the information correct? [y/N] y

If you are creating a privileged user, you'll need to do more than this--you'll want to override the userid, setting it to 0, or create an administrative group and add the new account to it. For the rest of us, it's probably enough to create a "plain old user" and then give them sudo privileges with visudo.

Step 2: Change the name used by andLinux

Now you'll need to edit the /usr/bin/startwindowsterminalsession file. Change the last lines from this:

termcommand=`cat /etc/winterm`
 sux - root ${termcommand}

to this:

termcommand=`cat /etc/winterm`
 #sux - root ${termcommand}
 sux - joachim
 ${termcommand}

Note that if you created joachim as a privileged user, you are done at this point. But you didn't, so keep reading.

Step 3: Change launcher port

Now you need to change the port number used by the launcher, because non-privileged logins cannot access port numbers below 1k. First, edit the /usr/local/sbin/launcher.pl script. At or near line #10, you will see:

$sock = new IO::Socket::INET(LocalPort => 81,
 Reuse => 1, Listen => 20) or die("Error creating local socket: $@\n");

Change the LocalPort from 81 to some other value. For this example, let's use 8181:

$sock = new IO::Socket::INET(LocalPort => 8181,
 Reuse => 1, Listen => 20) or die("Error creating local socket: $@\n");


At this point, the script is fixed but nothing will happen until you restart the andLinux server. Just run reboot and let's fix up the Windows side.

Step 4: Change port used by Windows launcher apps

As documented here , the default andLinux configuration expects the andLinux VM to be at IP address 192.168.11.150 and expects the launcher.pl script to listen on port 81.

From the Windows desktop, select Start → Run... then enter regedit in the Run dialog box. Browse the registry tree to open a registry key called HKEY_LOCAL_MACHINE\SOFTWARE.

At this point, you will have to right-click on the SOFTWARE entry, and select New > Key . Create a new key andLinux then right-click the andLinux key to create a new key Launcher beneath it. Finally, right-click to create two new entries below \HKEY_LOCAL_MACHINE\SOFTWARE\andLinux\Launcher:

New > String Value

 Rename this value "IP"
 Double-click "IP", and set the "Value data" to "192.168.11.150"
 
 New > DWORD Value

 Rename this value "Port"
 Double-click "Port" and set the "Value data" to 8181. Be sure and choose "Decimal" for the base.
 
 Exit the registry editor.

At this point, your Windows launchers will connect to andLinux using 192.168.11.150:8181, instead of the default ...:81. Your VM should have finished rebooting, so start the andKonsole launcher as a test.

--------转载---------

要在 Windows 下运行 Linux 程序,虚拟机是不错的选择,不过虚拟机的占用资源比较大,安装比较花费时间,对于只是想在 Linux 下测试一下程序,或是想体验一下 Linux 的初学者来说,似乎有点大动干戈。

andLinux 是一个可以运行在 Windows 上的 Linux 发行版,他基于 Ubuntu。和虚拟机不同的是,andLinux 运行在 Linux 内核的 Windows 移植版 CoLinux 之上,并以 Xming 为 X server,以 PluseAudio 作为声音服务器,所以可以在 Windows 下无缝的运行 Linux 程序,对系统资源的占用也非常少。

andLinux 有两个版本,基于 Xfce 的 mini 版,和基于 KDE 的完整版,并以标准的 Windows Installer 的方式安装,简单的做些设置和点击 Next 就可以完成安装,非常的简便~

安装之后,系统就自带了 Synaptic,你就可以像在 Ubuntu 下那样安装你想要的软件了~ 通过 Samba 可以在 andLinux 和 Windows 直接交换文件,在 Windows 的“我的电脑”中,你甚至可以在右键菜单中,直接用 andLinux 中的程序打开文件~

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics