新电脑装机与搭建局域网备忘,nvidia 黑 一篇 - Jacky Liu's Blog

新电脑装机与搭建局域网备忘,nvidia 黑 一篇

Jacky Liu posted @ 2012年6月21日 00:07 in with tags nvidia , 3493 阅读

    ---- 又弄了一台电脑,要跟原来那台组一个网络,因为交易系统前端必须跑在 Windows 上面。打算是:一台电脑作前端,跑 Windows,负责代理行情和持仓信息,执行交易指令;另一台 Linux 电脑作后端,负责数据和模式开发,开盘时的即时分析,发出交易指令。附带有手动交易功能。UI 特性包括查看行情、持仓信息,显示定制分析结果和系统运行状态等等,仍然用 Vim 来当 UI。

 

装机备忘

    ---- 安装 Windows 7:

    [1] 用 disk genius 给硬盘重新分区第一个用主分区,安装系统;第二个用扩展分区,作为 D 盘。完了以后在扩展分区上再建一个逻辑分区,并且格式化。如果不格式化,后面装 Ubuntu 时会认不到。

    [2] 装好系统以后安装显卡驱动和安全软件。

    ---- 安装 Ubuntu:

    [1] 一定要用英文版。
    [2] 安装时不要联网。否则会下载更新,极慢。
    [3] 安装好后头两件事是安装 nvidia 驱动和语言支持

    ---- 安装 nvidia 驱动: 安装好以后在 terminal 里
        sudo nvidia-settings
    然后在图形界面里设置。

    但是很狗血的问题,安装了 nvidia 驱动以后从图形界面关机,电脑似乎没法完全关闭。光驱有反应,蓝牙灯还亮,必须长按 Power 键关机,真狗血。网上有抱怨同样问题的:
        http://askubuntu.com/questions/125844/shutdown-does-not-power-off-computer
        https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/940564
        https://bugs.launchpad.net/ubuntu/+source/indicator-session/+bug/987220
        https://bugs.launchpad.net/ubuntu/+source/linux/+bug/987933

    ---- 要安装的软件列表:

        *. Synaptic Package Manager
        *. fcitx
        *. python3
            *. lxml for py3
            *. numpy for py3
            *. wxWidget for py3
            *. matplotlib
        *. checkinstall
        *. vim(with py3 interface)
            *. python3-dev (lib)
            *. ncurses (lib)
            *. libx11 (lib)
            *. libxt (lib)
            *. libgtk2 (lib)
        *. mysql

    注意在安装 vim 的最后一步:sudo checkinstall 之前要先执行 sudo dpkg --configure -a 一下。

    ---- 安装 mysql 之后转移 StockData 数据:
        1. 新电脑安装 mysql,以 root 身份登录:
            mysql -h localhost -u root -p
        2. 然后建立新用户:
            GRANT ALL ON *.* TO 'jacky'@'localhost' IDENTIFIED BY 'xxxxxxxxx'
        3. 将原电脑上的 /var/lib/mysql/StockData 复制到新电脑上,其他文件不用。然后在新电脑上更改属性:
            sudo chown -R mysql:mysql /var/lib/mysql/StockData
        就可以了。

 

配置局域网备忘:


    ---- 两台电脑以普通网线(非交叉网线)直连的方式建立微型局域网,可以用普通网线是因为现在的网卡有自适应功能。Windows 好像什么也不用设置,自己给自己赋予了一个 IP: 10.1.1.1,然后就说已连接上。Ubuntu 这边编辑新的有线连接,“method”一项不能用现成的,必须手动设置 IP,例如 '10.1.1.2'。然后用 ping 互相可以找到对方,就行了。

    ---- 通过外接 Internet 的局域网直接进行网络传输也是可以的,但是有两个问题:一是挤占带宽不好,开盘时的行情数据对实时性有要求;另一个是防火墙问题。Windows 上的网络安全软件具有防火墙功能,一般都把外连到 Internet 的局域网视为不受信任的公共网络,会阻止该网络上的一些可疑操作,包括 ping。所以在安全软件开着的情况下用 ping 去连 Windows 是连不上的。或许可以人为添加一些例外配置,但是麻烦。再说现在的笔记本都标配有线和无线,多一块网卡不用也是闲着,所以建两个局域网比较好。

    ---- 文件共享的设置: Windows 这边,先到 我的电脑>>属性 里面,把计算机名和工作组都改成合适的名称,重启。然后检查 Windows 防火墙(在控制面板里)和安全软件的防火墙设置,确保文件和打印共享都已启用。Ubuntu 这边,安装 samba 和它的 GUI(system-config-samba),通过 GUI 设置一下就行了。

    1. 把工作组名设成和 Windows 一样,

    2. 挑选共享的文件夹,

    3. 建立用户和密码(从 Windows 登录),或者直接对所有人开放。好了以后 '桌面>>Go>>Network' 在里面就应该能看见 Windows 机器上的共享内容,在 Windows 里通过网上邻居,也应该能看到 Ubuntu 上的共享内容。参考文章在这里:
        http://www.liberiangeek.net/2010/11/enable-file-sharing-windows-xp-ubuntu-10-10-maverick-meerkat/

 

Nvidia 黑

    ---- 关于 nvidia 提供的版权驱动造成电脑无法完全关机的问题,印象中在 08 ~ 09 年间的 Ubuntu 上就遇到过,可能是 9.04 版。但那时刚开始“体验”Linux 不久,不知道是显卡驱动的关系,于是归结到 Ubuntu 头上,觉得“免费的东西还是差一点”。此时查明缘由,自然免不了要喷 nvidia 一下。时隔三年多又再度回锅,这还只是我一个人遇上的。这不是技术问题,这是腹黑问题。你能想像这种问题出在 Windows 上面吗?那样的话被兼并的可能就是 英伟达 而不是 ATI 了。请问 英伟达 你们是怎么想的?
        “我叫你用 OpenGL,我叫你用 Linux,我整死你 。。。
是不是?

    ---- 另外,如果你觉得 英伟达 用来黑小白用户的只有软件,那你可就太天真了,那只是初级黑而已。这里是关于 英伟达 G84、G86 显卡设计缺陷的报道:

        http://www.theinquirer.net/inquirer/news/1028703/all-nvidia-g84-g86s-bad

另外可能还包括 G92、G94。这也就是市面上那些 gee-faulse 8×00, 8×50, 9×00 之类的。对于不想纠结英文或技术细节的人来说,搜中文“显卡门”即可。

    ---- 在一台电脑上被 nvidia 黑了两次,一次软件,一次硬件,我对这家公司的看法完全颠覆了。前几天我一直忿忿地在网上搜 英伟达 的黑材料,终于功夫不负有心人。我当然是个小角色,英伟达 没必要鸟我。不过看看下面这位,我要拿他来做结尾。谢谢你 英伟达,眼下我已经扔掉你那些会导致硬件损害的闭源驱动,改用 nouveau。你可能觉得只有收费的软件和操作系统才值得你理会,但是对我这种既是 3D 游戏玩家也是 Linux 用户的人来说,我往后会尽量避开你那些电脑里的定时炸弹的。

  • 无匹配
Avatar_small
Wayne 说:
2012年6月21日 14:38

G92,G94这些都是过时很久的老显卡了啊……

Avatar_small
Jacky Liu 说:
2012年6月21日 17:56

@Wayne: 三年前的。我的电脑是 thinkpad t61p。显卡门 现在还在不断爆发,大多是笔记本。

Avatar_small
wuxiaworld 说:
2018年7月27日 17:25

Indeed you provided really great article. I was actually looking for the same kind of information.

Avatar_small
Arunachal Pradesh 10 说:
2022年7月13日 21:43

Arunachal Pradesh 6th, 7th, 8th, 9th, 10th Textbooks 2023 is Available on the Official website at www.Arunachal Pradesh.nic.in, Arunachal Pradesh Secondary School Every Year Academic Year close Month of April After Open Month of Jun Students 1st, 2nd , 3rd, 4th, 5th Study class in Bengali, Arunachal Pradesh 10th Class Textbook English and Urdu Medium, Various Class Join Fresh Students can Download Arunachal Pradesh 6th, 7th, 8th, 9th, 10th Textbooks 2023 Pdf Format are This Web page. Arunachal Pradesh 6th, 7th, 8th, 9th, 10th Textbooks 2023 Pdf Format Available on the our Website, Arunachal Pradesh High Schools Adopet by Arunachal Pradesh Books.

Avatar_small
twitter card validat 说:
2022年7月23日 21:36

Twitter Card validator obviously used in Twitter and to know more about the validator. It is merely important to understand about the Twitter Card. In this article, we will come up with details of Twitter Card and Twitter Card validator and different type of cards available to make you understand better along with its usage. twitter card validator Twitter Card goes gives a link between your tweets by adding designed structured look and attracting more audience. In simple terms, the code must add to webpage and when someone shares your tweets link will display as Twitter Card.

Avatar_small
how to close SBI cre 说:
2022年8月03日 18:36

Customers of State Bank of India can close their active credit card anytime, where the request to close the credit card should be taken through offline or online mode after completion of all necessary checks by the authority. For this the customer may first submit their application for closure of active credit card, then the process will be as follows Once a request has been placed, how to close SBI credit card the customer should cut the SBI Card into two prices and thus the process of cancellation will be done once due amounts being calculated , and SBI provides an easy way to use all its features using Credit Card and if you are willing to get this closed, then you can move with Online Process or Offline Process or closer as preferred.

Avatar_small
anonymous 说:
2023年8月06日 15:16

It is quite beneficial, although think about the facts when it reaches this target. Kissimmee Bed Bug Treatment

Avatar_small
anonymous 说:
2023年8月12日 15:21

You should mainly superior together with well-performing material, which means that see it: Orlando Termite Control

Avatar_small
anonymous 说:
2023年8月12日 15:23

On my website you'll see similar texts, write what you think.  Oviedo Termite Control

Avatar_small
seo service UK 说:
2024年1月16日 17:26

This is actually the kind of information I have been trying to find. Thank you for writing this information


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee