Articles of ubuntu 10.10

PHP服务器的Web用户设置

我需要在我的Ubuntu 10.10服务器上设置一个基本的Web用户帐户来托pipe网页。 这个帐户应该只限于访问机器上的必要目录。 我设置了以下帐户,但是当我尝试login时没有任何反应: :~$ groupadd -g 1005 webgroup //I then changed the group and permissions of a current user I had already created :~$ sudo usermod -g 1005 -s /bin/false -d /home/webuser/ webuser 尝试使用此帐户login时,我input用户名[webuser]和密码,但它只是将我redirect到login:提示符。 我尝试重置密码,但仍然有同样的问题。 有人可以告诉我我做错了什么,或build议另一种方法,可以达到相同的结果(如果不是一个更好的)。

Ubuntu的8.04与Ubuntu 10.10 256内存服务器

什么是小vps更好? 如果使用旧版本,会出现什么问题? 那将是一个LAMP服务器。

如何跳过我的VPS中的grub安装?

我正在将Ubuntu 11.04升级到Ubuntu 11.10,并要求我安装grub,我不想这样做,因为我在VPS中,如何跳过安装grub? 如果我closures会话,那么当我再次运行更新时会显示此信息 E: dpkg was interrupted, you must manually run 'sudo dpkg –configure -a' to correct the problem.

当我点击Ubuntu 10.10的标签时,Tilde扩展不起作用

我尝试这样做: cd ~git\t \ t是制表符,我期望它被bash_completion扩展为: cd ~gitolite/ 但事实并非如此。 我已经在/etc/bash.bashrc中取消注释了以下行并注销并返回。 # enable bash completion in interactive shells if [ -f /etc/bash_completion ] && ! shopt -oq posix; then . /etc/bash_completion fi 是什么赋予了?

为什么apt-get安装也升级不相关的软件包?

我进入了apt-get install sysstat,不仅是安装了sysstat,而且还升级了我的Hbase版本。 我在这里缺less一些基本的东西,不应该apt-get安装只安装或升级相关的软件包? 这发生在Ubuntu Maverick上。

没有promisc,UDP多播不能工作。 已经尝试rp_filter = 0

我在Ubuntu Maverick中遇到了多播stream量问题。 它只有在卡处于promisc模式时才起作用(即,如果我手动设置,或使用诸如tcpdump之类的工具)。 添加组播路由… user@pc-149:~$ sudo ip route add multicast 224.0.0.0/4 dev eth0 user@pc-149:~$ cat /proc/net/igmp Idx Device : Count Querier Group Users Timer Reporter 1 lo : 1 V3 010000E0 1 0:00000000 0 2 eth0 : 2 V3 FB0000E0 1 0:00000000 0 010000E0 1 0:00000000 0 3 eth1 : 1 V3 010000E0 1 0:00000000 […]

如何在VMware Workstation上的Ubuntu服务器下获取新的IP地址?

我安装了VMware Workstation 7和Ubuntu Server 10.10。 当我将我的虚拟硬盘复制到另一台PC时,它使用相同的IP地址。 是否有可能以某种方式接收其他PC上的其他虚拟机的另一个IP地址? 我已经试着做dhclient -r释放和dhclient ro得到新的,但是,然后新的IP地址跳出我的networking我猜。 我的IP是例如192.168.119.xxx和虚拟机的地址也是192.168.119.xxx ,但是经过前面描述的步骤后,它变成了192.168.85.xxx ,甚至在我重新启动虚拟机之后,它变回了以前的样子。 有什么build议么? UPD: 虚拟机没有相同的MAC(HWaddr)地址。

为什么安装同样打开卸载openssh-server?

所以我只是在和LikeWise玩弄,但是我注意到当我安装它时,它决定卸载openssh-server。 没有什么严重的,因为我认为我可以重新安装,但为什么它会卸载呢?

为什么Apache安装后在索引文件上抛出403?

我刚刚安装了使用下一个命令来源的Apache和PHP: ./configure –prefix="/mnt/workspace/servers/web/apache-2.2.17" \ –enable-info –enable-rewrite –enable-usertrack –enable-mime-magic 为Apache和 ./configure –with-apxs2=/mnt/workspace/servers/web/apache-2.2.17/bin/apxs \ –prefix=/mnt/workspace/servers/web/apache-2.2.17/php \ –with-config-file-path=/mnt/workspace/servers/web/apache-2.2.17/php \ –with-mysql=mysqlnd 为PHP。 在调整configuration(httpd.conf)并启动apache之后,它会在http:// localhost:8060 / index.html (假设使用8060)请求上给出403响应。 httpd.conf中有下一个目录设置: <Directory "/mnt/workspace/servers/web/apache-2.2.17/htdocs"> … Order allow,deny Allow from all … </Directory> <IfModule dir_module> DirectoryIndex index.html index.php </IfModule> 需要注意的是,我已经安装了apache(安装ubuntu时configuration了默认的自动挂载)分区。 日志文件 访问日志: ::1 – – [12/Feb/2011:17:48:30 +0200] "GET / HTTP/1.1" 403 202 ::1 – […]

Tomcat6 Manager Webapp在Ubuntu 10.10上的apt-get安装上为404

http:// localhost:8080 / manager / html在tomcat6的apt-get安装(2.6.35-27-generic amd64上的JVM 1.6.0_20-b20上的6.0.28)上给出404错误。 http:// localhost:8080 / host-manager / html的作品。 列出一个主机名localhost。 用apt-get安装tomcat6-admin。 $ ls dpkg -l | grep -i tomcat6-admin ii tomcat6-admin 6.0.28-2ubuntu1.1 Servlet and JSP engine — admin web applications $ cat /usr/share/tomcat6/conf/tomcat-users.xml <tomcat-users> <role rolename="admin"/> <role rolename="manager" /> <user username="tomcatuser" password="Password1" roles="admin,manager"/> </tomcat-users> $ cat /usr/share/tomcat6/conf/Catalina/localhost/manager.xml <Context path="/manager" docBase="/usr/share/tomcat6-admin/manager" […]