顯示具有 ubuntu 標籤的文章。 顯示所有文章
顯示具有 ubuntu 標籤的文章。 顯示所有文章

2018年9月26日 星期三

MSI VX600 notebook unable to install ubuntu 18.04 LTS

原本安裝16.04LTS,但update,竟無法開機。於是直接去下載UBUNTU 18.04LTS的ISO,
用USB開機,但仍然無法順利開機,看樣子只能再回去用16.04LTS,至少這個版本是可以用的。

2014年4月2日 星期三

自由何在?惱人的KMPlayer!改用 VLC Player


使用 windows 內建的 media player 播放影片,大都有出現類似上圖的情況,只要是它看不懂的格式,直接告訴你無法播放,微軟自推的wmv格式,當然播放沒問題。

但影片格式是那樣的多樣 mpg、mp4、mov、flv、rmvb、mts、m2ts、mkv...於是,上網搜尋了一下,發現kmplayer似乎是個不錯的解決方案。於是將其安裝起來,因為是個免費軟體,所以廣告也如影隨行,例如kmplay右側的的廣告欄、以及動不動就要自動更新的畫面,實在有點惱人。


第二度上網搜尋是否有解決方法,發現需要更改 C:\Windows\System32\drivers\etc\HOSTS 的檔案,並且需要增加以下內容:
127.0.0.1  Update.kmpmedia.net
127.0.0.1 cdn.kmplayer.com
127.0.0.1 player.kmpmedia.net
127.0.0.1 media.sj2.vcmedia.com
127.0.0.1 rd.apmebf.com
將 HOSTS檔案存檔之後,重新執行 kmplyer,總算自動更新及右側廣告就不會再出現了。(已將以上操作步驟,製成消除kmplayer廣告的批次檔)

但是一般的使用者,怎會修改HOSTS檔,這的確惱人。

難道沒有更方便的軟體嗎?!

其實是有的,在自由軟體裡有個 VLC Player 就可以滿足播放不同格式影音檔的需要,而且沒有廣告 。

連結如下:http://www.videolan.org/vlc/index.zh_TW.html




2014年1月23日 星期四

Use Nitroshare to transfer files between the Virtual Box host and guest machine.

Step one: Download Nitroshare from the website.  https://launchpad.net/nitroshare

Step two: Install the same version of the Nitroshare.

Step three: If you use Nitroshare under the Virtual Box, check the network settings. The Virtual Box network of the host and guest must use the "bridged mode" and should also in the clacc c netmask. 

Step four: Run the Nitroshare in virtual box host and guest machine. Check the Nitroshare settings. Remeber to type the Machine name.(Important!!!)

Step five: Drag and drop files on the Nitroshare icon to transfer files.

Nitroshare Q&A:
Q. unable to find an ipv4 broadcast and netmask address.....
A: Right click on the nitroshare icon at the taskbar. Check the nitroshare settings and remember to type the Machine name. 

Q. Firewall settings
A. Open the firewall 41720/UDP 41721/TCP

[virtual box]

[host:windows7 guest: xp & ubuntu(ezgo)]

[Nitroshare settings]

[Nitroshare setting: Machine name]

2010年9月20日 星期一

在Ubuntu中如何批次修改圖片大小How to batch resize images in Ubuntu?


It seems so easy! You just use the 'convert' command.

First. Practice show the name of images at your directory by using the 'for' command. Open your termial program and key in these command as following:
#for i in `ls`; do echo test_$i; done

Second. use 'convert' to replace 'echo' command.
#for i in `ls`; do convert -resize 800x600 -quality 100 $i resized_$i; done

Also you can use mogrify to batch resize the images
#mogrify -resize 800x600 *.jpg

2010年8月30日 星期一

2010年8月17日 星期二

ELMD Ubuntu 10.10 Virtualbox bug fix

在ELMD中更新了一些套件,卻發現Virtual Box不能用了,上網google了一下,試了幾個方案更新,就可以用了,更新指令如下:

sudo apt-get install virtualbox-ose-source
sudo module-assistant update
sudo module-assistant prepare
sudo module-assistant a-i virtualbox-ose
sudo /etc/init.d/vboxdrv restart

Launch VirtualBox, and it should work.

2010年8月1日 星期日

ubuntu下的燒錄軟體brasero

在windows下,若要提到燒錄軟體,應該會想到nero、alcohol等版權軟體,但在自由軟體底下,根本不需要去想盡辦法找這些軟體,brasero就很好用了,該有的都有了,夫復何求啊!

2010年7月30日 星期五

stellarium星象軟體


今晚水星、火星、金星、土星幾乎聚在一起,利用stellarium這樣的軟體就可以預先看見這樣的星象,這個軟體實在是值得推廣啊!
http://www.stellarium.org/zh/

2010年7月29日 星期四

以 ubuntu 10.04 Base 的ELMD

Ubuntu 10.04 VirtualBox安裝問題

更新了ubuntu 10.04 Kernel 之後,VirtualBox便不能使用了,於是透過軟體中心移除Virtualbox,再重新安裝,還是不能用,上網查了一下,發現
http://ubuntuforums.org/showthread.php?t=771762 蠻多人有這樣的問題,都是出現virtual kernel not installed的問題,爬了一下文,發現是 vboxdrv module 沒載入的關係,找一找檔案,果然在/sbin中有個modprobe的檔案,於是下了modprobe vboxdrv指令,神奇的事發生了,竟然可以用了,真是太好了!

相關問題的參考連結
http://www.wretch.cc/blog/shanshintw/32122962

2010年6月16日 星期三

b2d 中 nmap 的用法

nmap ip or hostname or ip range
ex1: nmap 192.168.1.1
ex2: nmap 192.168.1.0/24
nmap ip range >output file
ex: nmap 192.168.1.0/24 >output.txt
nmap -p port range ip
ex: nmap -p 20-200,443,1024- 192.168.1.1
half-open-scanning
nmap -sS ip or hostname

2010年4月11日 星期日

awk用法

awk是一個相當方便的字串剪刀,範例如下:
awk -F: '{print $1,$5}' /etc/passwd sort
印出/etc/passwd的第一及第五欄位,並排序輸出。

2010年4月3日 星期六

修改ubuntu的開機選單modify ubuntu grub's boot menu list

有安裝雙系統(ubuntu & windows)的人,應該會想要修改啟動選單順序
$ sudo vi /boot/grub/menu.lst
找到 default 0 這一行,0代表第一個選單,若windows在第四選項,就將0改為4,存檔即可囉!

2010年3月13日 星期六

如何打開B2D的SSH連線

在B2D內,預設是只有同一網段才能使用SSH,不是很方便,所以可以用以下的方法來打開:
vi /etc/init.d/rc.local
按照指示編輯之後,再執行 ./rc.local 就可以從外網連入SSH Server了

2009年6月6日 星期六

在b2d裡掛載一顆新硬碟

為了備份的需要,所以在b2d裡掛載一顆新硬碟,當然啦,這顆硬碟是沒有分割及格式化的,必須手動分割及格式化,步驟紀錄如下:
使用command line的模式
1. fdisk /dev/devicename
2. n //新增
3. w //寫入
4. q //離開fdisk
5. mke2fs -j /dev/devicename
6. mount -t ext3 /dev/devicename /mnt/mountfoldername

ok!!

2008年9月25日 星期四

在apache web server 上建立虛擬主機(Create virtual host on apache server)

圖書管理系統架好了,接著便想要來個獨立網址...會利用到 apache2 virtual host的功能。
先在DNS中,設定alias. 再至b2d中操作如下:
1. cp /etc/apache2/sites-available/default new_file_name
2. vi /etc/apache2/sites-available/new_file_name
3. Delete the first line in new_file_name and modify the directiory.
4. cd /var/apache2/sits-enable
5. ln -s ../sites-available/new_file_name
6. service apache2 restart

2008年6月3日 星期二

常用的埠編號 port number

20/TCP,UDP FTP - data port Official
21/TCP,UDP
FTP - control (command) port Official
22/TCP,UDP
SSH (Secure Shell) - used for secure logins, file transfers (scp, sftp) and port forwarding Official
23/TCP,UDP
Telnet protocol - unencrypted text communications Official
25/TCP,UDP
SMTP - used for e-mail routing between mailservers E-mails Official
53/TCP,UDP DNS (Domain Name System) Official
67/UDP BOOTP (BootStrap Protocol) server; also used by DHCP (Dynamic Host Configuration Protocol) Official
80/TCP
HTTP (HyperText Transfer Protocol) - used for transferring web pages Official
80/TCP
HTTP - HTTP listening port Official
110/TCP POP3 (Post Office Protocol version 3) - used for sending/retrieving E-mails
137/TCP,UDP NetBIOS NetBIOS Name Service Official
138/TCP,UDP
NetBIOS NetBIOS Datagram Service Official
139/TCP,UDP
NetBIOS NetBIOS Session Service Official

2008年5月24日 星期六

更新b2d server clamd 套件到0.92

Clamav 更新:
操作步驟:
1. 更新 clamav apt-get update apt-get install clamav clamav-base clamav-freshclam clamav-daemon clamav-docs
2. 執行 service clamav-freshclam restart
3. 查看,請執行 freshclam 若出現 ClamAV, main.cvd, daily.cvd is up to date,表示 OK。
執行clamd -V可看目前安裝版本

b2d kernel update

b2d 的核心漏洞更新,在b2d的討論區看到漏洞修補的訊息
http://b2d.tnc.edu.tw/phpBB2/viewtopic.php?t=2637&highlight=dd
下載 kernel之後,tar解開之後,執行安裝,重新開機之後即可。
核心下載及說明可參考
ftp://ftp3.tnc.edu.tw/b2d/kernel/

熱門文章