- 浏览: 3506594 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
wanglf1207:
EJB的确是个不错的产品,只是因为用起来有点门槛,招来太多人吐 ...
weblogic-ejb-jar.xml的元素解析 -
qwfys200:
总结的不错。
Spring Web Flow 2.0 入门 -
u011577913:
u011577913 写道也能给我发一份翻译文档? 邮件437 ...
Hazelcast 参考文档-4 -
u011577913:
也能给我发一份翻译文档?
Hazelcast 参考文档-4 -
songzj001:
DbUnit入门实战
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
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
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 中的程序打开文件~
发表评论
-
微软内部补丁(非正式发布)之取得方式(20110713)
2011-08-06 13:58 10688http://support.micr ... -
当您尝试登录到 Telnet 服务器正在运行 Windows Server 2003,与 Service Pack 1 或 Service Pack 2 时出现
2011-08-06 13:41 3095http://support.microsoft.com/kb ... -
collectd
2011-08-03 14:27 2284collectd是一个守护(daemon)进程,用来收集系 ... -
rhel5的xen内核无法使用串口的原因和解决方法
2011-03-20 19:10 2495公司有一台服务器安装的了rhel5系统,默认的内核是带 ... -
RDM与VMFS 对比与解释
2010-12-25 17:53 2444在一个存储区域网络 ... -
通过VMWare的Webservice API连接ESX|ESXi主机的JAVA源码
2010-12-25 17:52 5582参考VMWare的Webservice API的文档,连接到E ... -
修改 ESX Server IP 地址
2010-12-25 17:51 11408修改 ESX Server IP 地址 ... -
Debian Linux下如何以root账号登录桌面
2010-12-22 12:51 6259I Debian Linux 方法有两种,一是图 ... -
coLinux
2010-11-02 22:11 9119coLinux是我极其喜爱的一款虚拟机。它快速而灵巧,最为方便 ... -
Linux操作下的进程管理利器 Supervise
2010-10-19 21:02 2833[摘要] Supervise是daemontoo ... -
andLinux介绍:
2010-08-22 20:51 39771:来自linuxtoy:是一个基 ... -
andlinux root 密码修改
2010-08-21 09:54 3172安装andlinux后发现root密码不知道,后发现,输入当前 ... -
RHEL
2010-08-02 17:46 2779Red Hat Enterprise Linux Advan ... -
coLinux ExpandingRootedit
2010-03-18 01:45 2702Contents 1 First backu ... -
andLinux 在系统重装后手工修复
2010-03-15 22:21 2836话说“家有一老,如有一宝”,而手边有一个linux,也可以 ... -
寻找最快的 ubuntu / debian 源 及 建立局域网deb 更新服务器和安装初步
2010-03-15 01:51 4684寻找最快的 ubuntu / debian 源 寻找最快的 ... -
colinux的安装与网络配置
2010-03-15 00:37 9390在windows上模拟linux ... -
使用colinux在windows上虚拟linux
2010-03-12 13:44 5317Cooperative Linux is th ... -
Linux发行版大全
2010-03-06 03:20 3414基于Debian Adamantix: ... -
Linux发行版Tiny Core Linux介绍
2010-03-06 03:19 8237Tiny Core Linux Tiny Core ...
相关推荐
UNIX and Linux System Administration Handbook: UNIX Linux Syste Admin Han_5 5th Edition, 英文版,带书签
Greetings, and welcome to Unix and Linux! In this book, you’ll find the information you need to get started with the operating system, advance your skills, and make Linux or Unix do the hard work ...
《UNIX and Linux System Administration Handbook》是一本关于UNIX和Linux系统管理的权威手册,由Evi Nemeth, Garth Snyder, Trent R. Hein以及Ben Whaley合著,并由Terry Morreale, Ned McClain, Ron Jachim, ...
UNIX® and Linux® System Administration Handbook, Fifth Edition, is today’s definitive guide to installing, configuring, and maintaining any UNIX or Linux system, including systems that supply core ...
Share between windows and linux
UNIX and Linux System Administration Handbook - Fifth Edition epub
### 关于《HARLEY HAHN’S GUIDE TO UNIX AND LINUX》的知识点解析 #### 一、Unix与Linux的历史及重要性 - **Unix的诞生与发展**:Unix由美国贝尔实验室于1970年代初开发,起初是为了满足内部计算需求而设计的一种...
UNIX AND LINUX SYSTEM ADMINISTRATION HANDBOOK(FIFTH EDITION)第五版
UNIX and Linux System Administration Handbook.pdf
UNIX and Linux System Administration Handbook 4th Edition 英文版PDF
《Unix & Linux大学教程》是由Harley Hahn撰写的指导书籍,旨在为读者提供Unix和Linux系统的全面介绍和深入理解。Harley Hahn是一位著名的计算机专家和作家,其书籍以深入浅出、通俗易懂而广受读者欢迎。 在书中,...
Python for Unix and Linux System Administration 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如...
UNIX® and Linux® System Administration Handbook, Fifth Edition, is today’s definitive guide to installing, configuring, and maintaining any UNIX or Linux system, including systems that supply core ...
本人补上目录书签。pdf版本时间:2018-02-20。官网pdf下载地址 http://www.denx.de/wiki/publish/DULG/ 。该pdf对应的在线版 http://www.denx.de/wiki/DULG/Manual 。
标题中的“Android and Linux Kernel”指向了两个核心概念:Android操作系统和Linux内核。Android是一种基于Linux内核的开源操作系统,主要用于移动设备如智能手机和平板电脑。它由Google主导开发,并在开源社区中...
In this sense, Unix is, without a doubt, the very best computer system ever invented (and Linux is a type of Unix). When you use Unix, you are not working with a machine. You are working with the ...
标题"windows Dos and Linux 最全命令大全"所指的,就是一份包含全面的Windows DOS命令和Linux命令的参考资料。CHM(Microsoft Compiled HTML Help)格式是一种微软开发的帮助文件格式,它将HTML页面打包成单一文件...
虚拟内存是操作系统中的一种核心机制,它在Linux系统中扮演着至关重要的角色。虚拟内存提供了一种抽象,使得每个进程都拥有独立的、私有的地址空间,即使它们共享同一物理内存资源。这种机制大大增强了系统的安全性...
Veritas NetBackup Commands UNIX and Linux Release 6.5 本节知识点将围绕 Veritas NetBackup Commands UNIX and Linux Release 6.5 展开,涵盖 NetBackup 的基本概念、命令行接口、 UNIX 和 Linux 平台上的实现、...