Install CentOS 6.3, dual-boot with Windows 7 64bit

Featured

In November, 2012, my ASUS Z99 laptop didn’t work. After 1.5 month, I got a new laptop, ASUS N56VZ, with balance between budget and performance while considering my requirements: run OpenFOAM, Salome, Deal.II and others. N56VZ runs on Windows 7. Continue reading Install CentOS 6.3, dual-boot with Windows 7 64bit

MATLAB with HiDPI display on Debian 12

MATLAB 在 Linux 上支持高分屏。 要调整高分屏 Linux 系统,您需要: 1)设置MATLAB比例因子 2)校准系统的DPI MATLAB比例因子会影响MATLAB桌面和窗口的大小/位置。系统的DPI确定轴和标签的比例和字体大小。 两个步骤如下 1)要将MATLAB比例因子设置为例如 2.5,请在MATLAB Command Window中执行以下命令: s = settings;s.matlab.desktop.DisplayScaleFactor s.matlab.desktop.DisplayScaleFactor.PersonalValue = 2.5 2)校准系统的DPI以匹配比例因子,请使用以下终端命令: ~$ xdpyinfo | grep resolution resolution: 96×96 dots per inch ~$ xrandr –dpi 240 选择的DPI值应为“ xdpyinfo”乘以所设置的MATLAB比例因子得到的分辨率。在示例中,96×2.5 = 240。 Continue reading MATLAB with HiDPI display on Debian 12

系统故障与恢复记实

故障情况: OS:CentOS 7 最初,提示 SMART 错误,某盘不能读取或写入 接着,用户目录内文件不能访问 最后,重启,不能启动到系统 处理 准备工作 利用别的机器将 Centos 7 安装在一个 SSD 移动硬盘上,注意建立卷组时命名要与原机器不同,否则启动后需要修改卷组名称 将 SSD 移动硬盘插到故障机 USB 接口 重启,选择 USB 启动,进入 CentOS 系统 检查系统 进入系统,列出卷组信息 [rheo@gen ~]$ sudo lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda Continue reading 系统故障与恢复记实

xfs_metadump

使用如下命令备份元数据 [root@rd1 hd-8T]# xfs_metadump /dev/centos/opt ./centos-opt.metadump 使用 xfs_mdrestore 恢复数据 [root@rd1 hd-8T]# xfs_mdrestore ./centos-opt.metadump /mnt/hd-4T-part2/centos-opt.dump [root@rd1 hd-8T]# uuidgen dc081837-a436-4b66-a952-66e2b1143771 [root@rd1 hd-8T]# xfs_admin -U dc081837-a436-4b66-a952-66e2b1143771 /dev/loop0 Clearing log and setting UUID writing all SBs new UUID = dc081837-a436-4b66-a952-66e2b1143771 显示该系统的文件和文件夹,出现乱码 [root@rd1 hd-8T]# mount Continue reading xfs_metadump

xpra 问题

Environment: CentOS 7 xpra 3.1.4 xpra main error: Traceback (most recent call last): File “/usr/lib64/python2.7/site-packages/xpra/scripts/main.py”, line 120, in main return run_mode(script_file, err, options, args, mode, defaults) File “/usr/lib64/python2.7/site-packages/xpra/scripts/main.py”, line 464, in run_mode return run_server(error_cb, options, mode, script_file, args, current_display) File Continue reading xpra 问题

NIS 问题 do_ypcall

工作环境, 当登录 NIS 客户机系统时,登录后,出现了: do_ypcall: clnt_call: RPC: Unable to receive; errno = Connection refused 解决方案: 客户机 Terminal 进入 /var/yp/binding/,删除该目录下的所有文件。 退出,再重新登录。成功。    Send article as PDF