今天把所有的CPCI大机箱搬下来换成了有8TB的2U服务器当然以后还可能会扩展。
一天都在实验室,其实一直以为全部搞定网络操作会很麻烦,还会出不少的问题特别是在回放的时候,当小于很犀利地找到问题,一切告一段落的时候,哦耶,今天完美下班。
加油!
Search From 郭大侠
分类
- Linux (17)
- Personally Experience (3)
- PGPLOT (7)
- Uncategorized (24)
- Windows (5)
- 编程语言 (2)
时间
LogIn
今天把所有的CPCI大机箱搬下来换成了有8TB的2U服务器当然以后还可能会扩展。
一天都在实验室,其实一直以为全部搞定网络操作会很麻烦,还会出不少的问题特别是在回放的时候,当小于很犀利地找到问题,一切告一段落的时候,哦耶,今天完美下班。
加油!
refer from:http://www.kuqin.com/humor/20110926/312208.html
写字楼里写字间,写字间中程序员;
程序人员写程序,又将程序换酒钱;
酒醒只在屏前坐,酒醉还来屏下眠;
酒醉酒醒日复日,屏前屏下年复年;
但愿老死电脑间,不愿鞠躬老板前;
奔驰宝马贵者趣,公交自行程序员;
别人笑我太疯癫,我笑自己命太贱;
但见满街漂亮妹,哪个归得程序员?
refer from:http://www.itworld.com/data-centerservers/256430/linux-servers-which-distro-you
When it comes to clothes, I’m a normal guy. I just want to walk into a store, grab something that fits, buy it (What, try it on? Are you kidding!?), and head home. Well, that’s what I want to do. I’ve learned over the years that just because something should fit doesn’t mean that it will fit. It’s the same with Linux servers. Sure, they’re all built on the same code base and can run the same applications, but one may fit you perfectly while another may make you look like a clown.
So, how can you tell which is which? Well, let’s start with that basic question you should bring to any computing decision: “What is it that you really want to do?”
Let’s say you have a company with several hundred to several tens of thousands of users. What do you want? This one is actually a pretty easy call. Your first choice should be Red Hat Enterprise Linux.
[ Free download: Linux loses its luster as a darling among developers ]
Red Hat has big business support down to a fine art, and it’s easy to find certified technicians, administrators, and engineers who know their way around RHEL. It’s also supported on a wide variety of hardware. Whether you’re running x86 servers on racks, blade servers, IBM POWER systems, or mainframes, there’s a RHEL for you. In short, Red Hat is the gold standard of business Linux.
Is RHEL is too expensive for your taste? Well, you get what you pay for, but there are two other worthy business Linux distributions that deserve corporate attention. These are Oracle Linux and SUSE Linux Enterprise Server (SLES).
Oracle Linux is essentially a copycat version of RHEL. While I know a few people who prefer it to its parent distribution, most of the folks I know who’ve tried it find little to recommend it over RHEL. SLES, on the other hand, has a handy setup and administration tool, YaST, that I find very useful for setting up branch office-sized deployments.
Let’s say you already have a real team of Linux experts on staff who aren’t wedded to RHEL, Oracle, or SLES. In that case, you might want to consider Debian. This is a community Linux, but, for those who know its ins and outs, it works extremely well. Debian is not, however, a Linux for non-experts.
OK, let’s say you have only a few hundred people in your organization. Or a few dozen. Heck, maybe it’s just you and the dog. What do you do now? Well, all the choices above are still valid. Here, though, I see it as being more of a dead heat between RHEL and SLES for your IT dollars. In my experience, RHEL is easier to manage on numerous servers scattered across multiple locations, but SLES has always done well for me in small offices. I recommend trying them both and making up your own mind.
At this point, if you already have some strong Linux administrators at hand and you want to save some money, I’d recommend looking into Red Hat and SUSE’s community distributions as well: Fedora and openSUSE (http://www.opensuse.org/en/), respectively. What you won’t get with either is support from their sponsoring companies. In other words, you’re on your own with these distributions. But, if your IT staff know Linux well, you may not need help for the demands of a small business. For my own small office — twenty desktops and four servers — openSUSE works just fine.
What about Ubuntu, the brand of what may be the most popular of the desktop Linux distributions? There’s Ubuntu Linux Server as well. You could use Ubuntu Server for bigger businesses, but for enterprise-sized loads I prefer knowing that I have a company behind me, like Oracle, Red Hat, or SUSE, that has lots of experience in dealing with data-center sized installations. For a rack or two of servers (at most), Ubuntu should do just fine.
1.对大型企业而言,当然首选Red Hat Enterprise Linux(RHEL);
2.也许你觉得RHEL太贵,那么我们也可以选择Oracle Linux或SUSE Linux Enterprise Server (SLES)作为替代。
3.如果我们有强有力技术团队,并且不想为Linux付费,那么可以使用Fedora或OpenSUSE,Debian也是不错的选择。
4.Ubuntu是非常流行的桌面版本,Ubuntu Server也是非常好的服务器版本。
5.如果你想寻找一款Linux,以构建低成本的Web服务,CentOS是一个不错的选择,它是RHEL的社区克隆版本。
refer from:http://webinsightlab.com/freebie/free-lightweight-linux-distributions/
Open Source Operating Systems like UNIX and Linux are a huge success despite other available options like Apple Mac OS or Windows OS. It might be obvious thing that other two major OSs are pure commercial software whereas Linux is popular because it’s available for free with great device and media supports. One more major reason behind Linux popularity might be its availability in different taste and types.
There are various Linux versions available with different look and feel having major features of Open Source OS. Some of them are quite heavy and need proper installation to use them correctly while some are in small size but big surprise package in terms of services. It might be a hard decision to switch your existing OS to new one, because it generated lots of headache with all boring installation procedures.
Here, we are listing 5 super cool, full of services but lightweight Linux distributions which don’t need any hectic installation. Just burn them onto CDs and play with the all new interface of Linux.
Damn Small Linux is a business card size (50MB) live CD Linux distribution. Despite its minuscule size it strives to have a functional and easy to use desktop. Damn Small Linux has a nearly complete desktop, including XMMS (MP3, and MPEG), FTP client, links-hacked web browser, spreadsheet, email, spellcheck (US English), a word-processor, three editors (Nedit, nVi, Zile [emacs clone]), Xpdf, Worker (file manager), Naim (AIM, ICQ, IRC), VNCviwer, SSH/SCP server and client, DHCP client, PPP, PPPoE, a web server, calculator, Fluxbox window manager, system monitoring apps, USB support, and soon it will have PCMCIA support as well. If you like Damn Small Linux you can install it on your hard drive. Because all the applications are small and light it makes a very good choice for older hardware.
Linux Mint 11′s new features at a glance: One click install for multimedia codecs and extra applications The Software Manager UI improvements New splash screen Fonts category More accurate package information More application icons by default More accurate search by default.
Puppy Linux is yet another Linux distribution. What’s different here is that Puppy is extraordinarily small, yet quite full-featured. Puppy boots into a ram-disk and, unlike live CD distributions that have to keep pulling stuff off the CD, it loads into RAM. This means that all applications start in the blink of an eye and respond to user input instantly. Puppy Linux has the ability to boot off a flash card or any USB memory device, CDROM, Zip disk or LS/120/240 Super-disk, floppy disks, internal hard drive. It can even use a multisession formatted CD-RW/DVD-RW to save everything back to the CD/DVD with no hard drive required at all.
SliTaz GNU/Linux is a mini distribution and live CD designed to run speedily on hardware with 256 MB of RAM. SliTaz uses BusyBox, a recent Linux kernel and GNU software. It boots with Syslinux and provides more than 200 Linux commands, the lighttpd web server, SQLite database, rescue tools, IRC client, SSH client and server powered by Dropbear, X window system, JWM (Joe’s Window Manager), gFTP, Geany IDE, Mozilla Firefox, AlsaPlayer, GParted, a sound file editor and more. The SliTaz ISO image fits on a less than 30 MB media and takes just 80 MB of hard disk space.
Tiny Core Linux is a 10 MB graphical Linux desktop. It is based on the Linux 2.6 kernel, BusyBox, Tiny X, Fltk, and Flwm. The core runs entirely in memory and boots very quickly. The user has complete control over which applications and/or additional hardware to have supported, be it for a desktop, a nettop, an appliance or server; selectable from the project’s online repository.
详细情况:
开机后画面停留在白色MI,然后就是死等也等不开机。如此这般,设置无法关机,只能拔掉电板。
解决方法:
1.按住开机键 和 音量+ ;
2.选择(按电源键选择)简体中文,选择重启手机;
3.这时候提示两个系统 选择后缀没有注释最近的选项,然后OK。
PS.有注释的也就是无法启动的OS,我的问题应该是在MIUI上安装busybox导致的。
本来打算重新刷机的,看来不用了。
嘻嘻。
故障:“远程计算机需要网络级别身份验证,而您的计算机不支持该验证,请联系您的系统管理员或者技术人员来获得帮助”
故障症状:当您使用Windows XP“远程桌面连接”工具去连接Windows Vistas或Windows Server 2008的远程桌面、终端服务时,出现上述故障。
故障产生环境:远程桌面连接工具6.0以下版本,或者Windows XP Profressional SP1、SP2、SP3
解决方法:
1、请升级“远程桌面连接”工具最新6.1版本。
2、请把XP升级到最新SP3补丁包。
3、运行“regedit”打开注册表编辑器,进入 “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa”,双击右边栏中的 “Security Packages”,打开“编辑多字符串”对话框,在列表框光标处增加“tspkg”字符。
4、然后定位到 “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders”,双击右侧的“SecurityProviders”字符串,打开“编辑字符串”对话框,在数值末端中添加“, credssp.dll”,注意逗号后有一个英文的空格。
5、退出注册表程序,重启计算机后故障排除。
重启比较重要:不然可能会出现error:远程桌面连接 发生身份验证错误 代码0×507
重启系统后,然后再运行mstsc查看关于信息已经显示为支持网络级别身份验证了。
不知是所谓的无法识别还是应该说没有AHCI驱动所致,在Windows7下安装XP,着实费劲不少。
所以应该在安装SCSI or Raid的时候,就果断的F6安装驱动。
亦或者先采取这种方案,CMOS中将AHCI更改为ATA,安装好OS后,安装驱动,RESET CMOS即可。
1. 采用ATA模式安装Windows xp操作系统
a. 修改BIOS的硬盘操作模式为ATA模式并关闭Flash Cache
b. 安装Window xp操作系统
c. 操作系统安装完成后再强制安装Intel Matrix Storage Manager对应于windows xp的驱动程序
d. 将BIOS修改回AHCI操作模式并启动Flash Cache
e. 享受AHCI硬盘操作模式和Flash Cache给你带来的高速硬盘的快感
2.采用AHCI模式安装Windows xp操作系统
a. 修改BIOS的硬盘操作模式为AHCI模式并启动Flash Cache
b. 安装Window xp操作系统,并在Windows xp操作系统的安装过程中提示“Press F6 if you need to install a third party SCSI or RAID driver……”,时按F6键并在系统提示安装驱动时,插入驱动盘安装驱动
c. 在系统提示插入系统盘时换系统安装盘
d. 享受AHCI硬盘操作模式和Flash Cache给你带来的高速硬盘的快感
程序长了,又因为提前做了一些优化,导致参数就不是正确的。
所以看来宏定义还是蛮好的,前面被老板批了一顿,定义宏太多,现在把宏定义直接改成计算好的数据,在尝试修改变量的时候就出现了,这样那样的问题。
应该考虑使用C++的const了,这几天看的心动的要把程序从c转成c++了,不错貌似工作量不小呀。
看看错误和正确的结果,相差甚远呀。
另外,碰到了很诡异的too many unmatched PGSAVE bug提示,不晓得,怎么回事,google了一下,只有可怜的4个结果,还都不是我需要的,在研究研究PG吧。
refer to http://guoshaoguang.com/?p=27
linux各个发行版,比如Ubuntu、Debian、Fedora、Redhat和CentOS都做过相关的测试。
为了使PGPLOT在上述平台正常工作,需要进行两步操作:
1.安装图形库,比如X11
2.设置一些环境变量,这是保证PGPLOT正常工作的前提。
做完上述两部就可以测试一些Demo程序,如果显示出图形,就表示已经可以使用改了。
Linux 各个发行版预安装软件包
下载源码包– pgplot5.2.tar.gz,安装X11支持包和Fortran编译器gfortran。
$ sudo yum install libX11-devel$ sudo yum install gcc-gfortran
$ sudo apt-get install xorg-dev$ sudo apt-get install gfortran
$ sudo yum install libX11-devel$ sudo yum install gcc-gfortran
$ sudo zypper install xorg-X11-devel$ sudo zypper install gcc-fortran
$ sudo apt-get install libX11-dev$ sudo apt-get install gfortran
安装PGPLOT详细步骤
# cd /usr/local/src# mv ~/Downloads/pgplot5.2.tar.gz .# tar zxvf pgplot5.2.tar.gz
最后一个命令将建立 /usr/local/src/pgplot 子目录。
3. 创建安装pgplot的目标文件夹
# mkdir /usr/local/pgplot# cd /usr/local/pgplot
4. 将drives.list从源码文件夹拷贝到安装文件夹
# cp /usr/local/src/pgplot/drivers.list .
5. 编辑drives.list文件,并将下述图形设备的感叹号去掉。其中包括/PS, /VPS, /CPS, /VCPS and /XServe /XWINDOW. 修改好后的文件可以参阅 drives.list 。
6. 在/usr/local/pgplot 目录中执行下述命令,创建makefile文件:
# /usr/local/src/pgplot/makemake /usr/local/src/pgplot linux g77_gcc_aout
7. 编辑makefile,将文件中的FCOMPL=g77用FCOMPL=gfortran来代替。
8. 编译源文件,执行下述命令:
# make# make cpg# make clean
上述安装结束后,特别重要并要确认的是一定要配置好相应的环境变量。
在home目录中添加下述配置项到.bashrc 文件。
$ export PGPLOT_DIR=/usr/local/pgplot$ export PGPLOT_DEV=/Xserve
测试
所有事情结束后,可以执行pgplot自带的示例程序进行测试,如果出现下述图像就证明已经安装成功了。
$ /usr/local/pgplot/pgdemo1
$ /usr/local/pgplot/pgdemo2
$ /usr/local/pgplot/pgdemo3
...
pgdemo3执行效果