CentOS+Ubuntu+Windows 多系统Grub引导修复

CentOS+Ubuntu+Windows 多系统Grub引导修复

简单描述状况:
1.系统安装有64位的windows 7和64位的CentOS操作系统,使用Legacy BIOS 安装引导启动,没有使用UEFI。
2.CentOS6.5 grub引导菜单正常引导WINDOWS 7+CENTOS,CentOS包含/boot分区,/分区以及/home分区
3.安装ubuntu 14.04(64位) 之后,使用alongside windows空闲分区。安装完成后使用ubuntu grub 引导启动,只能引导windows 7+ubuntu,centos 无法启动.
4.在ubuntu系统下,安装grub2/grub 然后 update-grub 均无法正常搜索到centos 。
centos-debian-ubuntu
综上,只能找其他方法,有人说用centos安装盘 grub rescue ,觉得麻烦,想用ubuntu 引导。这是我的ubuntu下/boot/grub/grub.cfg ,在其中添加Centos 分区信息,一定注意分区和UUID。 成功引导3个系统!

menuentry 'CentOS6.5, with Linux 2.6.32-431.el6.x86_64' {
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='hd0,7'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos7 --hint-efi=hd0,msdos7 --hint-baremetal=ahci0,msdos7 e30284d7-5cf6-4864-a875-75012d8d9b14
   else
   search --no-floppy --fs-uuid --set=e30284d7-5cf6-4864-a875-75012d8d9b14
   fi
    echo 'Loading Linux 2.6.32-431.el6.x86_64 ...'
    linux /boot/vmlinuz-2.6.32-431.el6.x86_64 root=UUID=e30284d7-5cf6-4864-a875-75012d8d9b14 ro quiet splash
    echo 'Loading initial ramdisk ...'
    initrd /boot/initramfs-2.6.32-431.el6.x86_64.img
}

这里再提一下,在已安装windows 的gpt(mbr)的 磁盘下安装ubuntu 时 ,如果无法看到windows分区,而是一整块硬盘,那么使用liveCD进入系统,使用下面命令修复:

sudo dd if=/dev/zero of=/dev/sda bs=1 count=8 seek=512

 

 

Ubuntu12.04 下DLNA/UPnP Server安装配置

Ubuntu12.04 下DLNA/UPnP Server安装配置

PC下配置DLNA很方便,使用家庭组和Window Media Player很容易实现媒体局域网内共享。前面文章有提过这些话题,包括Android客户端和Chrome以及小米盒子上的使用。

ubuntu-logo14

这里来记录下Ubuntu12.04 下的安装配置 minidlna。
1.安装服务端

# apt-get install minidlna

2.配置文件在/etc/ 目录下的minidlna.conf.其中主要配置ABC_DLNA

配置媒体目录,可以分行添加多个目录,同时也可指定媒体类型。

# set this to the directory you want scanned.
# * if have multiple directories, you can have multiple media_dir= lines
# * if you want to restrict a media_dir to a specific content type,you
# can prepend the type, followed by a comma, to the directory:
# + “A” for audio (eg. media_dir=A,/home/jmaggard/Music)
# + “V” for video (eg. media_dir=V,/home/jmaggard/Videos)
# + “P” for images (eg. media_dir=P,/home/jmaggard/Pictures)

media_dir=/media/MData/media
media_dir=/media/Times/Downloads
media_dir=/home/XXX/Videos

friendly_name=My DLNA Server

3.至此配置结束,重启服务或者重载

# service minidlna force-reload
# service minidlna restart

TIPS: 这里我挂载的媒体目录位于移动硬盘上,ubuntu默认无法修改移动存储设备的挂载权限,默认都是 700.这里需要手动重新挂载,才可以更改读写权限,使服务生效。
新建挂载点 /media/MData,挂载sdb3.

#mount /dev/sdb3 /media/MData -o nls=tf-8,umask=000,uid=1000,gid=1000

再推荐一款Android下的DLNA客户端APP:Slick UPnP前往Google Play下载).

Can not dragging[solved] :Chyrp博客部署Tips

Can not dragging[solved] :Chyrp博客部署Tips

Q1:  Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp …..

解决:联系主机商,并自行更改php.ini

memory_limit = 512M

chyrp

Q2: modules-not-dragging,Debugging :404 Not found
在官方讨论中没有结果http://chyrp.net/discuss/topic/modules-not-dragging/,在chyrp后台管理界面,设置项不能拖动,因而无法完成拖动。调试发现,明明文件目录都很正常,javascript也存在,子目录访问总是报出404错误,经检查后台日志是这样的:
SoftException in Application.cpp:629: Directory “/home/XXX/public_html/t/admin/themes” is writeable by group, referer:
由于改网站架设在之前有的子目录下,怀疑.htacess文件设置,结果走了弯路..

解决:将admin/themes/default等目录权限都设置为755,而不是777!所以遇到modules-not-dragging 去官网貌似没有正确解答的。
please note here:change  the permissions for that directory to 755.

Chmod default 755
chmod /**  755

Q3:官方版本为V2.5 下载地址:http://cl.ly/0S1Z112Q1t45。安装部署方法参照这里:
http://help.chyrp.net/kb/getting-started/quick-start-guide   Linux, Apache, MySQL, PHP. If you want to install Chyrp 2.5 Needed..