http://wiki.meego.com/Image_Creation

本文档详细介绍了如何从源代码树构建MeeGo系统的镜像,并在QEMU环境中进行测试的过程。主要内容包括安装必要的工具如git和image-creator,配置并创建适用于MeeGo Netbook Core和ia32架构的读写镜像,以及如何在QEMU中运行这些镜像。

 

This is to Create the meego image from the source code tree.

 

Currently, I use the src tree from the trunk,

 

http://repo.meego.com/MeeGo/builds/trunk/1.0.90.1.20100903.1/

 

 

 

 

1. Install git

sudo apt-get install git-core

 

2. Install the image-creator

http://wiki.meego.com/Image_Creation#Requirements

 

I build the image-creator src from

#git clone git://gitorious.org/meego-developer-tools/image-creator.git

#cd image-creator

#git checkout 0.17  #check Gitorious for the most recent tag

#make

#sudo make install

 

3. Create the RW Image for Meego Netbook Core

 

The kickstart file for the trunk src

http://repo.meego.com/MeeGo/builds/trunk/0.9.80.1.20100330.1/core/images/meego-preview-netbook-core/meego-preview-netbook-core.ks

 

* here we need to change .ks 's content.

@Core => @Meego Core

@Base => @Meego Base

 

And then

sudo mic-image-creator --cache=mycachedir --format=raw --config=meego-preview-netbook-core.ks

 

* Please make sure the format=raw. then it the generated object could

be executed in the QEMU environment.

 

4. Execute the RW Image in QEMU

sudo kvm -m 512 -boot c -hda meego-1.0.90-meego-preview-netbook-core-201009050731-sda.raw

(As it is only the core system, so no GUI will be output)

 

Then from another linux console, we can ssh the Meego Core system.

ssh meego@127.0.0.1 -p 6666

 

5. Create the RW Image for Meego Netbook ia32

The kickstart file for the trunk src

 

http://repo.meego.com/MeeGo/builds/trunk/1.0.90.1.20100903.1/netbook/images/meego-netbook-ia32/meego-netbook-ia32-1.0.90.1.20100903.1.ks

 

And then

sudo mic-image-creator --cache=mycachedir --format=raw --config=meego-preview-netbook-core.ks

 

It will output an error:

--debuginfo not supported.

 

That is because of the lower version image-creator.

 

We'd better

#cd image-creator

#git checkout 0.20.1  #check Gitorious for the most recent tag

#make clean

#make

#sudo make install

 

And do the mic-image-creator again.

 

6.  Execute the RW Image in QEMU

#sh ./qemugl_cmd.sh <image file>
This time the Meego GUI outputs.

 

由于我无法直接访问这些链接阅读内容,不过可以为你简单介绍下如何获取这些链接里的信息。 对于网页链接(https://wiki.ros.org/blockly 和 https://docs.luxai.com/docs/tutorials/graphical/studio_ros),可以在浏览器中打开,浏览器会完整加载网页内容,你可以直接阅读网页上的文字、图片、视频等信息。若需要对内容进行保存或进一步分析,还可以使用网页的打印功能将其保存为 PDF 文件,或者使用网页抓取工具(如 Python 的`BeautifulSoup`库)来提取文本内容,以下是使用`BeautifulSoup`提取网页文本内容的示例代码: ```python import requests from bs4 import BeautifulSoup def get_web_content(url): try: response = requests.get(url) response.raise_for_status() soup = BeautifulSoup(response.text, 'html.parser') text = soup.get_text() return text except requests.RequestException as e: print(f"Error fetching the page: {e}") return None url1 = 'https://wiki.ros.org/blockly' url2 = 'https://docs.luxai.com/docs/tutorials/graphical/studio_ros' content1 = get_web_content(url1) content2 = get_web_content(url2) if content1: print("Content from https://wiki.ros.org/blockly:") print(content1) if content2: print("Content from https://docs.luxai.com/docs/tutorials/graphical/studio_ros:") print(content2) ``` 对于 YouTube 视频链接(https://www.youtube.com/watch?v=z762lM7W3w4),可以在浏览器中打开该链接,观看视频获取内容。若需要视频的文字信息,YouTube 通常会提供自动生成的字幕,你可以在视频播放界面点击“CC”按钮开启字幕查看。也可以使用第三方工具(如`youtube-transcript-api`库)来提取视频字幕,以下是使用该库提取字幕的示例代码: ```python from youtube_transcript_api import YouTubeTranscriptApi video_id = 'z762lM7W3w4' try: transcript = YouTubeTranscriptApi.get_transcript(video_id) for entry in transcript: print(entry['text']) except Exception as e: print(f"Error fetching transcript: {e}") ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值