It's really impressive theme for Linux Mint.
[command]
sudo add-apt-repository ppa:snwh/pulp
sudo apt-get update
sudo apt-get install paper-icon-theme
sudo apt-get install paper-gtk-theme
sudo apt-get install paper-cursor-theme
[reference]
https://snwh.org/paper
2017/04/14
Auto mount nfs on Linux/Debian
I am used to running a couple of virtual machines at the same time on my PC and I need to share files with each VMs. Therefore, I utilize nfs to meet my requirement. Notice that it doesn't have much security considering.
Install nfs server:
[command]
sudo apt-get install nfs-kernel-server nfs-common
mkdir /home/hubert/workspace
chmod -R 777 /home/hubert/workspace/
vi /etc/exports
[modify]
/home/hubert/workspace 192.168.56.8(rw,sync,no_root_squash,no_all_squash)
# Please replace 192.168.56.8 with your own client IP address.
save, refresh, and restart nfs
[command]
sudo exportfs -r
sudo /etc/init.d/nfs-kernel-server restart
---------------------------------------------------------------
Configure nfs client:
[command]
sudo apt-get install nfs-commom
mkdir -p /media/hostshare
test it manually, please replace 192.168.56.1 with your own host IP address.
[command]
mount -t nfs 192.168.56.1:/home/hubert/workspace /media/hostshare
auto mount nfs:
[command]
sudo vi /etc/fstab
[modify]
192.168.56.1:/home/hubert/workspace /media/hostshare nfs defaults 0 0
# Please replace 192.168.56.1 with your own host IP address.
save and restart your VM to check it works or not.
Install nfs server:
[command]
sudo apt-get install nfs-kernel-server nfs-common
mkdir /home/hubert/workspace
chmod -R 777 /home/hubert/workspace/
vi /etc/exports
[modify]
/home/hubert/workspace 192.168.56.8(rw,sync,no_root_squash,no_all_squash)
# Please replace 192.168.56.8 with your own client IP address.
save, refresh, and restart nfs
[command]
sudo exportfs -r
sudo /etc/init.d/nfs-kernel-server restart
---------------------------------------------------------------
[command]
sudo apt-get install nfs-commom
mkdir -p /media/hostshare
test it manually, please replace 192.168.56.1 with your own host IP address.
[command]
mount -t nfs 192.168.56.1:/home/hubert/workspace /media/hostshare
auto mount nfs:
[command]
sudo vi /etc/fstab
[modify]
192.168.56.1:/home/hubert/workspace /media/hostshare nfs defaults 0 0
# Please replace 192.168.56.1 with your own host IP address.
save and restart your VM to check it works or not.
Modify network settings under command line on Linux / Debian.
It tells you how to modify network settings under command line on Linux / Debian.
[command]
vi /etc/network/interfaces
[modify]
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.56.100
netmask 255.255.255.0
gateway 192.168.56.1
---------------------------------------------------------------
restart network and apply the settings.
[command]
/etc/init.d/networking restart
[command]
vi /etc/network/interfaces
[modify]
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.56.100
netmask 255.255.255.0
gateway 192.168.56.1
---------------------------------------------------------------
[command]
/etc/init.d/networking restart
Install LINE on Linux Mint 18.1 via wineHQ
It tells you how to install LINE windows version on Linux Mint 18.1.
Install wineHQ
[command]
sudo add-apt-repository ppa:wine/wine-builds
sudo apt-get update
sudo apt-get install winehq-devel
Install winetricks and run it
[command]
sudo apt-get install winetricks
winetricks
Follow these steps:
1. What do you want to do?
-> Select the default wineprefix -> OK
2. What would you like to do to this wineprefix?
-> Install a Windows DLL or component -> OK
3. Which package(s) would you like to install?
-> vcrun2008 -> OK
4. It might take some time to install few necessary packages.
5. Close winetricks window.
6. Please download the LINE App from the official website https://line.me/ .
7. Click mouse right button on LineInst.exe .
8. select Open with -> Wine Windows Program Loader.
9. Install and run it.
Install wineHQ
[command]
sudo add-apt-repository ppa:wine/wine-builds
sudo apt-get update
sudo apt-get install winehq-devel
Install winetricks and run it
[command]
sudo apt-get install winetricks
winetricks
Follow these steps:
1. What do you want to do?
-> Select the default wineprefix -> OK
2. What would you like to do to this wineprefix?
-> Install a Windows DLL or component -> OK
3. Which package(s) would you like to install?
-> vcrun2008 -> OK
4. It might take some time to install few necessary packages.
5. Close winetricks window.
6. Please download the LINE App from the official website https://line.me/ .
7. Click mouse right button on LineInst.exe .
8. select Open with -> Wine Windows Program Loader.
9. Install and run it.
2017/03/29
HTTrack Debian Packages
HTTrack 砍站軟體 for Linux
Install full GUI version.
[command]
apt-get update
apt-get install webhttrack
Install commandline version only.
[command]
apt-get update
apt-get install httrack
[reference]
http://debian.httrack.com/
Install full GUI version.
[command]
apt-get update
apt-get install webhttrack
Install commandline version only.
[command]
apt-get update
apt-get install httrack
[reference]
http://debian.httrack.com/
Very good Text Editor for Linux -- Notepadqq
It's recommended to install notepadqq on your Linux if you like to use notepad++ on Windows.
[command]
sudo add-apt-repository ppa:notepadqq-team/notepadqq
sudo apt-get update
sudo apt-get install notepadqq
[command]
sudo add-apt-repository ppa:notepadqq-team/notepadqq
sudo apt-get update
sudo apt-get install notepadqq
How to change the fonts after install Chinese language package
Before install Boshiamy input method, we must install Trad-Chinese language package first. However, the fonts would be changed to ukai/uming. Therefore, remove them could solve this problem.
[command]
sudo apt-get remove fonts-arphic-ukai
sudo apt-get remove fonts-arphic-uming
[reference]
https://www.ptt.cc/bbs/Linux/M.1408882475.A.A93.html
[command]
sudo apt-get remove fonts-arphic-ukai
sudo apt-get remove fonts-arphic-uming
[reference]
https://www.ptt.cc/bbs/Linux/M.1408882475.A.A93.html
過於冷漠
今天在台北車站第11號車廂位置,往捷運方向的樓梯移動時,人潮眾多所以我低著頭小心翼翼地注視階梯慢慢走,發現右邊男子一直側著臉往我的方向看,便抬頭看他,結果他是直盯著我左邊的女生大腿看,女生穿著超短短裙,露出一雙纖細嫩白的美腿,難怪男子看得目不轉睛直到出了票閘還在看。 女生出了票閘後往左走,男子則是往右走向捷運站的票閘,仍不斷回頭找尋女生的蹤影,男子突然停下腳步視線看向左邊,原來女生從另一個捷運票閘進來,男子伺機跟在她身後搭上電扶梯,而我不以為意從電扶梯左側快速通過,在我排隊的位置正好可以看見電扶梯的情況,女生下電扶梯後往旁邊走幾步便停下排隊,而男子跟在其身後仍死盯著女生雙腿看,上捷運後... 我思考了一下:
剛開始是認為女生穿著過於曝露的服裝,本來就容易吸引色狼靠近,在穿這種衣服前,就要自己承擔風險,所以不予理會。
後來再想想,如果我適時的提醒女生,或許可以讓她有所警覺,但該怎麼做呢? 如何讓女生防範,然後色狼不會日後報復我?
想來想去,得到的結論,就是用手機寫上「小心色狼」的字出示給女生看,然後不要讓男子看到即可。
2017/03/26
監控CPU使用率 script
計算CPU負載的script,將第14行的 ${c...@]}改成 ${CPU[@]} ,存檔後 chmod +x 即可。
[reference]
http://www.mail-archive.com/linuxkernelnewbies@googlegroups.com/msg01690.html
[reference]
http://www.mail-archive.com/linuxkernelnewbies@googlegroups.com/msg01690.html
Subscribe to:
Posts (Atom)

