搜尋此網誌

2014年8月14日 星期四

Debian Sources List Generator

http://debgen.simplylinux.ch/

真方便~~~


2014年8月12日 星期二

CentOS6.5在VMWare Workstation底下新增HD不用重開

根據
http://www.cyberciti.biz/tips/vmware-add-a-new-hard-disk-without-rebooting-guest.html

1.新增hd,可以看一下/sys/class/scsi_host/
#echo "- - -" > /sys/class/scsi_host/host2/scan
#fdisk -l

2.若要刪除
#echo 1 > /sys/block/sdb/device/delete
#fdisk -l

CentOS 6.5 Clone 後網卡失效

查了一下...

http://chair.twgg.org/2011/07/centos-6-clone.html
http://shaurong.blogspot.tw/2012/12/vmware-image-clone-eth0-eth1.html

最快方式
1.把mac address 註解
#vi /etc/sysconfig/network-scripts/ifcfg-eth0

2.修正eth0與eth1
#vi /etc/udev/rules.d/70-persistent-net.rules
把eth0那行註解,把eth1那行最後的name改成eth0

3.系統重開,搞定!

2014年7月24日 星期四

Chocloately in windows


好玩的巧克力...

試過win7、win8、win2012R2都可以...

搞定--參考

cmd 切到系統管理者

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

安裝方便
 
cinst 7zip notepadplusplus
choco search mobaxterm 
 
 
 

2013年10月9日 星期三

win7下samba連不上

C:\Users\PC>net view \\192.168.0.250
系統發生 53 錯誤。

找不到網路路徑。

這樣很麻煩,因為RPi上面的hd快滿了,要慢慢進去刪很麻煩,趁著假日前還有空...

查了一下smb.conf設定沒有問題,testparm也ok...

防火牆兩邊(debian、win7)都關了,selinux也沒啟動...

查了一下win7的服務,發現 TCP/IP NetBIOS Helper 沒有啟動

 手動開啟後

 C:\Users\PC>net view \\192.168.0.250
共用資源在 \\192.168.0.250

raspberrypi server

共用名稱  類型  使用方式  註解

-------------------------------------------------------------------------------
BT        Disk            Samba server's BT
homes     Disk            Home Directories
命令已經成功完成。

收工!

2013年8月15日 星期四

Debian下pietty+screen

最近在vm下試debian與centos,發現只要是centos開screen,pietty上面會有一些不一定的文字...

但debian就沒有...原來是 PROMPT_COMMAND 與 /etc/screenrc  的問題


Debian 7.1下改grub2的開機桌布

上課打混用...


0.先裝套件
#apt-get  install grub2-splashimages
#ls  -l /usr/share/images/grub

1.修改設定
#vi /etc/default/grub

加入
GRUB_BACKGROUND="/usr/share/images/grub/Lake_mapourika_NZ.tga"
要確定下面這行有被註解
GRUB_TERMINAL=console


2.這個順便修改一下,加入紅色那行,約在132之後
# vi /etc/grub.d/00_header
if loadfont `make_system_path_relative_to_its_root "${GRUB_FONT_PATH}"` ; then
  set gfxmode=${GRUB_GFXMODE}
  set gfxpayload=keep
  load_video
  insmod gfxterm

3.更該配色...(不過好像改不太出來...)
#vi /etc/grub.d/05_debian_theme
set menu_color_normal=green/yellow
set menu_color_highlight=yellow/red


4.更新grub2,再重新開機...至少圖片賞心悅目多了...
#update-grub



參考網站:
https://wiki.debian.org/Grub2
http://forum.ubuntu.org.cn/viewtopic.php?t=257189
http://wiki.ubuntu-tw.org/index.php?title=GRUB2%E4%B8%AD%E6%96%87%E6%8C%87%E5%8D%97%E7%AC%AC%E4%BA%8C%E7%89%88%28%E4%B8%8A%EF%BC%89