亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
123下一頁
最近訪問板塊 發(fā)新帖
查看: 39117 | 回復(fù): 23
打印 上一主題 下一主題

[SCO UNIX] 一個(gè)關(guān)于SGI機(jī)身號(hào)的討論 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2003-07-17 12:19 |只看該作者 |倒序?yàn)g覽
前段時(shí)間聽說有一種方法可以更改SGI上的機(jī)身號(hào),哪位知道的朋友能否討論一下

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2003-07-17 13:24 |只看該作者

一個(gè)關(guān)于SGI機(jī)身號(hào)的討論

具體指機(jī)器的什么值?改了對(duì)你有什么用?讓sgi公司認(rèn)為這臺(tái)機(jī)器是剛買的嗎?

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2003-07-17 15:04 |只看該作者

一個(gè)關(guān)于SGI機(jī)身號(hào)的討論

機(jī)身號(hào)就是
Serial Number:XXXX XXXX XXXX     

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2003-07-17 15:12 |只看該作者

一個(gè)關(guān)于SGI機(jī)身號(hào)的討論

[quote]原帖由 "sgi"]具體指機(jī)器的什么值?改了對(duì)你有什么用?讓sgi公司認(rèn)為這臺(tái)機(jī)器是剛買的嗎?[/quote 發(fā)表:
     

好多軟件是通過機(jī)器的機(jī)器號(hào)來算軟件的注冊(cè)碼的!!
也許是想改變機(jī)器號(hào)來實(shí)現(xiàn)軟件的應(yīng)用吧!
不過我知道,機(jī)器號(hào)是在機(jī)器的背板上的一塊電池上的,你可以換電池就可以將機(jī)器號(hào)對(duì)調(diào)了!

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2003-07-17 16:07 |只看該作者

一個(gè)關(guān)于SGI機(jī)身號(hào)的討論

為了軟件的應(yīng)用,請(qǐng)問如何改sgi的hostid.謝謝!

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2003-07-17 16:33 |只看該作者

一個(gè)關(guān)于SGI機(jī)身號(hào)的討論

這個(gè)不好在這里講吧?

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2003-07-17 17:51 |只看該作者

一個(gè)關(guān)于SGI機(jī)身號(hào)的討論

原帖由 "szh" 發(fā)表:
   

不過我知道,機(jī)器號(hào)是在機(jī)器的背板上的一塊電池上的,你可以換電池就可以將機(jī)器號(hào)對(duì)調(diào)了!
   


我想知道如果電池沒電的話,是否會(huì)有影響

論壇徽章:
0
8 [報(bào)告]
發(fā)表于 2003-07-17 17:58 |只看該作者

一個(gè)關(guān)于SGI機(jī)身號(hào)的討論

我所知道的電池不會(huì)沒有電的!

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2003-07-17 19:35 |只看該作者

一個(gè)關(guān)于SGI機(jī)身號(hào)的討論

我找了好久沒發(fā)現(xiàn)SGI上有電池

論壇徽章:
0
10 [報(bào)告]
發(fā)表于 2003-07-19 19:00 |只看該作者

一個(gè)關(guān)于SGI機(jī)身號(hào)的討論

# cc -o change-sid change-sid.c -lmld
# sysinfo
System ID:
de  ad  12  34  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
rodent 44# ./change-sid
hexadecimal system id seems to be dead1234
rodent 45# ./change-sid 12345678
rodent 46# ./change-sid
hexadecimal system id seems to be 12345678
rodent 47# sysinfo
System ID:
12  34  56  78  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  

-- change-sid.c --

/*
* change system id on IRIX 5.3 - only minimally tested on one machine
* consider this pre-pre-alpha - USE AT YOUR OWN RISK
* compile by   --  cc -o change-sid change-sid.c -lmld
* placed in the public domain by the author - Nov 1996
* Mark Henderson <mch@squirrel.com>;
*/

#include <fcntl.h>;
#include <unistd.h>;
#include <stdio.h>;
#include <sys/types.h>;
#include <sys/uio.h>;
#include <nlist.h>;
struct nlist nl[2];

main(argc,argv)
int argc;
char *argv[];
{
    int kmem;
    int just_read = 0;
    unsigned int new_id, cur_id;
    off_t where;
    just_read = (argc <= 1);
    if (argc >; 1)
         new_id = strtoul(argv[1], NULL, 16);

    if ((kmem = open("/dev/kmem", O_RDWR)) < 0) {
        fprintf(stderr, "cannot open /dev/kmem\n";
        exit(1);
    }
    nl[0].n_name="eccf_addr";
    nl[1].n_name = NULL;
    if (nlist("/unix", nl) < 0) {
        fprintf(stderr, "cannot read namelist out of /dev/ksyms\n";
        exit(1);
    }
    if ((where = nl[0].n_value) == 0) {
        fprintf(stderr, "unknown kernel variable eccf_addr\n";
        exit(1);
    }
    if (lseek(kmem, where + 4, SEEK_SET) == (-1)) {
        fprintf(stderr, "lseek on /dev/kmem failed\n";
        exit(1);
    }
    if (!just_read) {
        if (write (kmem, &new_id, 4) < 4) {
            fprintf(stderr, "write to /dev/kmem failed\n";
            exit(1);
        }
    }
    else {
        if (read(kmem, &cur_id, 4) < 4) {
            fprintf(stderr, "read failed\n";
            exit(1);
        }
        printf("hexadecimal system id seems to be %08x\n", cur_id);
    }
    close(kmem);
    exit(0);
}
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP