AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-1792

Alexar's questions

Martin Hope
Alexar
Asked: 2011-02-18 09:43:40 +0800 CST

Wine:wininet.dll 向 127.0.0.1 发送任何域的请求

  • 2

感谢@Taylor 和@Olli,我完全修改了我的问题。

你好,

我正在 ubuntu 中开发一个 Windows 应用程序。一切都很好。唯一的问题是我执行的每个网络调用wininet.dll都发送到本地主机而不是目标服务器。

我不知道是什么问题以及如何强制 wininet.dll 正确解析域名。

我还在其中创建了 hosts 文件~/.wine/drive_c/windows/system32/drivers/etc/hosts并手动设置了域和 IP;但没有帮助。

任何想法?

wine
  • 2 个回答
  • 1826 Views
Martin Hope
Alexar
Asked: 2010-12-28 14:25:16 +0800 CST

是否建议应用新的说伟大的 200 行 Linux 内核补丁?

  • 3

现在我听到很多关于Linux 内核的新的 ~200 行路径,据说这在性能上产生了明显的差异。

现在,有没有人有在他的 Ubuntu 内核上应用这条路径的经验?

我还看到了另一种声称效果更好的方法:

wget http://launchpadlibrarian.net/59511828/cgroup_patch
chmod +x cgroup_patch
sudo ./cgroup_patch

你觉得这是什么?这是经过验证的吗?

我问这个问题是因为我需要更多的性能,但我不能冒稳定性的风险。

kernel patch
  • 6 个回答
  • 647 Views
Martin Hope
Alexar
Asked: 2010-12-27 20:15:30 +0800 CST

网络访问:我无法从 192.168.1.102 访问 192.168.1.101

  • 3

我在 IP 为 192.168.1.101 的 PC 上运行 Ubuntu 10.04。一切正常,例如我的 Web 服务器正在运行,我可以正常看到http://localhost/或http://192.168.1.101。

但问题是我无法在 192.168.1.102 的笔记本电脑上看到我的电脑,例如在我的笔记本电脑http://192.168.1.101上,浏览器中的连接超时。或尝试在任何端口上远程登录会导致:

telnet: Unable to connect to remote host: Connection timed out

笔记本电脑也在运行全新安装的 Ubuntu,并且两台计算机中都没有设置防火墙内容。

PS:

  • 两台电脑可以ping互相很好。

  • 路由器是一个 cicso linksys 无线 ADSL 调制解调器。

  • 目前,我可以毫无问题地从 192.168.1.101 连接到在 192.168.1.102 上运行的 Windows 上的 FTP 服务器。

  • 我用朋友的笔记本电脑(他们使用 Windows 7 和 XP)测试了地址http://192.168.1.101 。都收到“连接已重置”。它与我的笔记本电脑的响应不同。

  • 这些是在我的 PC 192.168.1.101 上运行的命令:

ifconfig:

adp@adp-desktop:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:26:18:e1:8e:cf  
          inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe70::226:18ff:fee1:8ecf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1831935 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1493786 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1996855925 (1.9 GB)  TX bytes:215288238 (215.2 MB)
          Interrupt:27 Base address:0xa000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:951742 errors:0 dropped:0 overruns:0 frame:0
          TX packets:951742 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:494351095 (494.3 MB)  TX bytes:494351095 (494.3 MB)

vmnet1    Link encap:Ethernet  HWaddr 00:50:46:c0:00:01  
          inet addr:192.168.91.1  Bcast:192.168.91.255  Mask:255.255.255.0
          inet6 addr: fe70::250:56ff:fec0:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vmnet8    Link encap:Ethernet  HWaddr 00:50:46:c0:00:08  
          inet addr:192.168.156.1  Bcast:192.168.156.255  Mask:255.255.255.0
          inet6 addr: fe70::250:56ff:fec0:8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

端口 80 设置为 0.0.0.0 好:

adp@adp-desktop:~$ netstat -ln | grep 'LISTEN '
tcp        0      0 127.0.0.1:52815         0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:4559            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:4369            0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:7634          0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:5269            0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:5280            0.0.0.0:*               LISTEN     
tcp        0      0 127.0.1.1:7777          0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:33601           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:5222            0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN     
tcp6       0      0 :::139                  :::*                    LISTEN     
tcp6       0      0 ::1:631                 :::*                    LISTEN     
tcp6       0      0 :::445                  :::*                    LISTEN     

/etc/hosts.deny是空的:

adp@adp-desktop:~$ cat /etc/hosts.deny 
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
#                  See the manual pages hosts_access(5) and hosts_options(5).
#
# Example:    ALL: some.host.name, .some.domain
#             ALL EXCEPT in.fingerd: other.host.name, .other.domain
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8)
# for further information.
#
# The PARANOID wildcard matches any host whose name does not match its
# address.
#
# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
# ALL: PARANOID

netstat -l:

adp@adp-desktop:~$ netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 localhost:52815         *:*                     LISTEN     
tcp        0      0 *:hylafax               *:*                     LISTEN     
tcp        0      0 *:www                   *:*                     LISTEN     
tcp        0      0 *:4369                  *:*                     LISTEN     
tcp        0      0 localhost:7634          *:*                     LISTEN     
tcp        0      0 *:ftp                   *:*                     LISTEN     
tcp        0      0 *:xmpp-server           *:*                     LISTEN     
tcp        0      0 localhost:ipp           *:*                     LISTEN     
tcp        0      0 *:smtp                  *:*                     LISTEN     
tcp        0      0 *:5280                  *:*                     LISTEN     
tcp        0      0 adp-desktop:7777        *:*                     LISTEN     
tcp        0      0 *:33601                 *:*                     LISTEN     
tcp        0      0 *:xmpp-client           *:*                     LISTEN     
tcp        0      0 localhost:mysql         *:*                     LISTEN     
tcp6       0      0 [::]:netbios-ssn        [::]:*                  LISTEN     
tcp6       0      0 localhost:ipp           [::]:*                  LISTEN     
tcp6       0      0 [::]:microsoft-ds       [::]:*                  LISTEN     
udp        0      0 *:bootpc                *:*                                
udp        0      0 *:mdns                  *:*                                
udp        0      0 *:47467                 *:*                                
udp        0      0 192.168.1.10:netbios-ns *:*                                
udp        0      0 192.168.91.1:netbios-ns *:*                                
udp        0      0 192.168.156.:netbios-ns *:*                                
udp        0      0 *:netbios-ns            *:*                                
udp        0      0 192.168.1.1:netbios-dgm *:*                                
udp        0      0 192.168.91.:netbios-dgm *:*                                
udp        0      0 192.168.156:netbios-dgm *:*                                
udp        0      0 *:netbios-dgm           *:*                                
raw        0      0 *:icmp                  *:*                     7          

netstat -rn:

adp@adp-desktop:~$ netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
192.168.91.0    0.0.0.0         255.255.255.0   U         0 0          0 vmnet1
192.168.156.0   0.0.0.0         255.255.255.0   U         0 0          0 vmnet8
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth0

笔记本电脑上的命令,192.168.1.102:

如果配置:

root@fakeuser-laptop:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1c:33:a2:31:15 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:21

eth1      Link encap:Ethernet  HWaddr 00:2d:d9:3e:1f:6c 
          inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe70::21d:d9ff:fe3e:1f6c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5681 errors:0 dropped:0 overruns:0 frame:10313
          TX packets:6717 errors:6 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4055251 (4.0 MB)  TX bytes:779308 (779.3 KB)
          Interrupt:18

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:206 errors:0 dropped:0 overruns:0 frame:0
          TX packets:206 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15172 (15.1 KB)  TX bytes:15172 (15.1 KB)

netstat -rn:

root@fakeuser-laptop:~# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth1

telnet:

fakeuser@fakeuser-laptop:~$ telnet 192.168.1.101 25
Trying 192.168.1.101...
telnet: Unable to connect to remote host: Connection timed out
fakeuser@fakeuser-laptop:~$ telnet 192.168.1.101 22
Trying 192.168.1.101...
telnet: Unable to connect to remote host: Connection timed out
fakeuser@fakeuser-laptop:~$ telnet 192.168.1.101 80
Trying 192.168.1.101...
telnet: Unable to connect to remote host: Connection timed out
networking remote-access
  • 1 个回答
  • 38318 Views
Martin Hope
Alexar
Asked: 2010-11-20 00:07:31 +0800 CST

如何播放 .ts 文件?(和其他不寻常的格式)

  • 9

如何 在 Ubuntu 中播放.ts文件?如果你能推荐一个编解码器而不是一个新的软件,我会更喜欢,所以我可以使用任何软件来播放。

是否有任何编解码器包可以确保我能够播放所有普通媒体文件?类似于 k-lite 编解码器包的东西。

注意:我的一些 .ts 文件已经可以用 SMplay 播放,但只有一些......

PS: 正如我上面提到的,我已经可以播放一些 .ts 文件了。我有最新版本的 ubuntu-restricted-extras和mplayer和samplayer。问题是在 Windows 系统中打开的一些 .ts 文件在我的 ubuntu 10.04 中无法播放

10.04 codecs
  • 6 个回答
  • 43200 Views
Martin Hope
Alexar
Asked: 2010-10-10 07:11:24 +0800 CST

如何以另一个用户身份运行应用程序?

  • 17

我使用 krusader 进行文件管理。问题是 apache 的DocumentRoot应该在chown www-data:www-data /path/to/www. 所以使用 krusader(在我的帐户下运行)我没有写访问权限,/path/to/www而我真的需要。不知道其他开发者怎么能在这样的限制下继续做事!

我想知道我是否可以运行 krusader,因为www-data这样我就可以轻松地玩文件了。但是使用su - www-data询问我www-data的密码!

那么,如何在 Gnome 中以另一个用户(如 www-data)的身份运行应用程序(如 krusader)?

或者我的情况还有其他解决方案吗?(很难,我真的很想知道答案!)

请记住,我知道我可以以 root 身份运行它!但这会在使用cpand时导致一些权限问题mkdir,你知道的。

PS: sudo并gksudo没有帮助:

$ gksudo -u -www-data krusader
No protocol specified
krusader: cannot connect to X server :0.0

最后说明: 根据最佳答案,我做到了chmod u+w /path/to/www,我的问题解决了。但是我仍然没有成功以另一个用户身份打开krusader!

gnome permissions sudo
  • 9 个回答
  • 30568 Views
Martin Hope
Alexar
Asked: 2010-09-25 04:54:43 +0800 CST

如何使用 .iso 映像作为 CD-ROM 存储库?

  • 52

我将 Debian、Ubuntu 和 Ubuntustudio 的所有图像都保存为.iso. 我如何将它们用作存储库来安装我想要的软件包sudo apt-get install package-name?

我很容易用Archive Mounter挂载.iso文件,但是在Software Sources添加 CD-ROM 时,它说Please Insert CD-ROM。

我应该如何做到这一点而不将它们刻录到磁盘?

repository cd apt localrepository add-apt-repository
  • 10 个回答
  • 165985 Views
Martin Hope
Alexar
Asked: 2010-09-25 04:15:48 +0800 CST

在 Ubuntu 中创建产品目录的最佳工具是什么?

  • 6

我将为我们的一个提案创建一个目录......因为我最近迁移到了 Ubuntu,我不知道做这项工作的工具。在 Windows 中,我可能会使用MS PowerPoint或Adob​​e InDesign执行此操作。在这里,我只知道OpenOffice 演示文稿。

我想创建一个简单的官方目录。我希望有大量可用的免费模板可供选择。

创建快速、美观的PDF 目录的最佳工具是什么?

presentation
  • 2 个回答
  • 1845 Views
Martin Hope
Alexar
Asked: 2010-09-15 08:52:59 +0800 CST

Wine 关闭了我的音频!

  • 2

我在后台播放音乐时第一次打开Wine 配置页面。就在我打开“音频”选项卡时,声音停止工作,Wine 提醒我有关我的音频驱动程序。现在我的电脑没有声音了!

我应该怎么做才能恢复音频?我不需要 Wine 中的音频。

sound wine drivers
  • 2 个回答
  • 874 Views
Martin Hope
takpar
Asked: 2010-09-14 08:13:42 +0800 CST

您推荐哪个时间跟踪器应用程序?

  • 115

我每天要做三四份工作,每份工作都有几个部分。我想要一个时间跟踪工具来帮助我了解我在每个部分和每个工作上花费了多少时间。

我发现了一些类似gnotime和hamster。

对于这种情况,您推荐什么应用程序?

software-recommendation
  • 23 个回答
  • 57689 Views
Martin Hope
Alexar
Asked: 2010-09-08 06:32:40 +0800 CST

如何检查是否真的应用了网络代理?

  • 22

我正在尝试设置网络代理以使用我的 LAN 的互联网连接来更新软件包。虽然代理设置在我的firefox上有效,但包管理器仍然无法连接到 Internet。我已经设置了代理,System >> Preferences >> Network Proxy并且我也在“详细信息”中输入了代理的用户/密码。

如何确保正确应用代理网络?

package-management networking proxy
  • 9 个回答
  • 242690 Views
Martin Hope
Alexar
Asked: 2010-08-31 02:52:40 +0800 CST

Ubuntu 的 Bitwise Tunnnlier 等价物是什么?

  • 3

我在 Windows 中使用了 Tunnlier,它非常完美。迁移到 Linux 后,我出人意料地找不到执行以下操作的任何内容:

  • 管理我的 SSH 连接
  • 使用终端和 SFTP 浏览器
  • 将我的连接保存为配置文件以便稍后加载

我找到了 PuTTY 和 gSTM,但他们真的没有做我上面提到的。

你有什么建议吗?



从超级用户移到这里

gnome ssh
  • 5 个回答
  • 1593 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve