ftp 匿名访问设置
摘要:为了让ftp可以匿名访问,需要设置/etc/vsftp.conf 的anonymous_enable=YES。 当然仅仅是这样,还是不可以的,会出现错误: vsftpd: refusing to run with writable root inside chroot() 这是因为,为了避免一个安全漏洞,从 vsftpd 2.3.5 开始,chroot 目录必须不可写。使用命令: # chmod a-w /home/ftp
阅读全文
posted @
2013-12-22 16:26
Still_Raining
阅读(4114)
推荐(0) 编辑
ubuntu 增加新硬盘
摘要:在校内建了一个ftp,本来是想放一点东西的,没想到越放越多,然后硬盘就不够了. 服务器是虚拟出来的ubuntu-server 12.04.想要将新硬盘挂载到/home/ftp目录.操作步骤: 1.可以使用df -h 查看硬盘使用情况 2. 使用lsblk找到硬盘(这个截图是挂载之后的截图,忽略忽略,之前忘截图了) 3. 格式化硬盘 sudo mkfs -t ext4 /dev/xvdb 4.编辑/etc/fstab使新分进来的设备自动挂载 5.重启后,硬盘便挂载到了/home/ftp 发生了一点小插曲,本来/home/ftp是存在的,非空,以为新颖盘会追加到原来...
阅读全文
posted @
2013-12-22 12:08
Still_Raining
阅读(1248)
推荐(0) 编辑
Eclipse没法自动补全代码解决
摘要:Eclipse没法自动补全代码解决Eclipse无法自动补全代码解决Window->Java->Editor->Content Assist->Advanced
阅读全文
posted @
2013-12-20 11:53
Still_Raining
阅读(542)
推荐(0) 编辑
dpkg error
摘要:在ubuntu乱搞,突然出现错误dpkg: error: cannot read info directory: No such file or directoryE: Sub-process /usr/bin/dpkg returned an error code (2)搜了好久,找到了解决方案http://ubuntuforums.org/showthread.php?t=2009399sudo mkdir /var/lib/dpkg/infosudo apt-get update
阅读全文
posted @
2013-12-20 10:30
Still_Raining
阅读(350)
推荐(0) 编辑
WallsEveryDay 必应桌面壁纸
摘要:软件名:WallsEveryday陈述:无聊时写着玩的一个桌面壁纸的软件,壁纸是自动从必应下载,所以每天都会有新的。在ubuntu上测试通过,windows上找了台win7测试通过,其他没测试。功能:1.托盘2.更新图片,图片自动下载到本地3.图片预览4.设置壁纸5.自动设置壁纸图片预览:Source:代码托管在csdn:https://code.csdn.net/tanheaishui/wallseverydayjar包:http://tanhe123.ys168.com/
阅读全文
posted @
2013-12-08 11:59
Still_Raining
阅读(349)
推荐(0) 编辑
GroupLayout 布局
摘要:文档说明:以下引自:Java™PlatformStandardEd.7public class GroupLayoutextends Objectimplements LayoutManager2GroupLayoutis aLayoutManagerthat hierarchically groups components in order to position them in aContainer.GroupLayoutis intended for use by builders, but may be hand-coded as well. Grouping is done by i
阅读全文
posted @
2013-12-01 08:49
Still_Raining
阅读(1760)
推荐(0) 编辑