月度归档:2011年09月

Discuz登陆后台一直需要输入密码的解决方法

由于开启了验证管理员的 IP ,在用户更换本地网络的 IP 或者换个网络后,导致进入后台要求一直输入密码。

解决方法:

使用记事本打开 config.inc.php 文件,在 config.inc.php 文件内,查找

CODE: [COPY]
  • $admincp
    [
    'checkip'
    ] = 
    1
    ;        
    // 后台管理操作是否验证管理员的 IP, 1=是[安全], 0=否。仅在管理员无法登陆后台时设置 0。

修改为

CODE: [COPY]
  • $admincp
    [
    'checkip'
    ] = 
    0
    ;        
    // 后台管理操作是否验证管理员的 IP, 1=是[安全], 0=否。仅在管理员无法登陆后台时设置 0。

N900安装samba局域网共享文件

安装过程简单,直接去源里面找samba安装即可。

源里面有个配置工具,有26MB之多,浪费空间CPU内存,还是直接更改smb.conf来配置。

[global]
    workgroup = WORKGROUP
    netbios name = N900
    security = user

[MyDocs]
    path = /home/user/MyDocs
 writeable = yes
 delete readonly = yes
 write list = @root
 guest ok = no

Nokia-N900:~# smbpasswd -a root
New SMB password:
Retype new SMB password:
Added user root.
Nokia-N900:~# /etc/init.d/samba restart
 

搞定

麦当当的无线热点

点击查看原图
点击查看原图

Initiating OS detection (try #1) against 192.168.1.1
scan report for 192.168.1.1
Host is up (0.012s latency).
Not shown: 990 closed ports
PORT     STATE    SERVICE        VERSION
22/tcp   filtered ssh
53/tcp   open     domain?
80/tcp   filtered http
161/tcp  filtered snmp
443/tcp  filtered http
8080/tcp open     tcpwrapped
|_http-methods: No Allow or Public header in OPTIONS response (status code 400)
|_http-favicon: Unknown favicon MD5: F20DA5536A937A8681FB4A3E2D45121D
8081/tcp open     http           GoAhead-Webs httpd
|_http-methods: No Allow or Public header in OPTIONS response (status code 400)
| http-title: Site doesn't have a title (text/html).
|_Did not follow redirect to http://easson.y5zone.net/hotspot/prelogin.asp?customerip=192.168.1.161&gwip=192.168.10.2&ssid=McDonald's&mac=D8-75-33-86-C9-FD&nid=SG9400F0M9&err=&loginurl=http%3A%2F%2Fgw.y5zone.net%3A8090%2Fgoform%2FHtmlLoginRequest

8082/tcp open     tcpwrapped
8090/tcp open     ssl/tcpwrapped
|_sslv2: server still supports SSLv2
8093/tcp open     unknown
1 service unrecognized despite returning data. If you know the service/version, please submit the following fingerprint at http://www.insecure.org/cgi-bin/servicefp-submit.cgi
:
SF-Port8093-TCP:V=5.50%I=7%D=9/2%Time=4E60C8CA%P=arm-unknown-linux-gnueabi
SF:%r(NULL,3C,"421\x20Service\x20not\x20available\.\x20\x20Please\x20log\x
SF:20first\x20through\x20HTTP\.\r\n")%r(DNSVersionBindReq,3C,"421\x20Servi
SF:ce\x20not\x20available\.\x20\x20Please\x20log\x20first\x20through\x20HT
SF:TP\.\r\n")%r(SSLSessionReq,3C,"421\x20Service\x20not\x20available\.\x20
SF:\x20Please\x20log\x20first\x20through\x20HTTP\.\r\n")%r(FourOhFourReque
SF:st,3C,"421\x20Service\x20not\x20available\.\x20\x20Please\x20log\x20fir
SF:st\x20through\x20HTTP\.\r\n")%r(LDAPBindReq,3C,"421\x20Service\x20not\x
SF:20available\.\x20\x20Please\x20log\x20first\x20through\x20HTTP\.\r\n")%
SF:r(LANDesk-RC,3C,"421\x20Service\x20not\x20available\.\x20\x20Please\x20
SF:log\x20first\x20through\x20HTTP\.\r\n");
MAC Address: 00:0F:61:01:BD:64 (Hewlett Packard)
Device type: WAP
Running: HP embedded
OS details: HP ProCurve MSM422 WAP
Uptime guess: 1.674 days (since Thu Sep  1 04:05:32 2011)
Network Distance: 1 hop
TCP Sequence Prediction: Difficulty=203 (Good luck!)
IP ID Sequence Generation: All zeros

TRACEROUTE
HOP RTT      ADDRESS
1   11.77 ms 192.168.1.1
 

N900快速切换到Debian的方法

不用安装easydebian,直接挂载img格式的debian镜像,然后chroot即可,简单方便。

mount -t ext2 /home/user/MyDocs/debian-m5-v3d.img.ext2 /media/debian/

chroot /media/debian

mount /proc /proc -t proc

想用debian的bash就chroot /media/debian /bin/bash

退出:umount /proc

exit

umount /dev/loop0或umount/media/debian

点击查看原图