Method One: link in /sbin
sudo ln -s /[directory]/[script].[extension] /sbin/[alias]
本網誌主要是記錄筆者在使用電腦上疑難解決方法。希望藉著此平台跟大家分享交流。
This blog is used for sharing how to troubleshoot my computer problem. I would like to share them to each other through this platform.
2020-10-15
Execute from symbolic link
2014-09-24
查找LINUX 版本, KERNEL 版本
Check the Linux Version, Release name and Kernel version
- uname -a (Print all Information)
- uname -r (Print the kernel name)
- uname -m
- cat /proc/version
- cat /etc/issue
- cat /etc/redhat-release
- lsb_release –a
- tail /etc/redhat-release
2014-07-09
取得資料夾和子資料夾的權限和路徑列表
Get the List of Sub Directories with Their Owner & Permissions & Full Paths
先以find -type d找出所有/var以內所有資料夾的路徑,然後再用ls -dl 列出
ls -dl `find /var -type d`
source: http://www.ducea.com/2009/06/05/linux-tips-get-the-list-of-subdirectories-with-their-owner-permissions-and-full-paths/
先以find -type d找出所有/var以內所有資料夾的路徑,然後再用ls -dl 列出
ls -dl `find /var -type d`
source: http://www.ducea.com/2009/06/05/linux-tips-get-the-list-of-subdirectories-with-their-owner-permissions-and-full-paths/
2013-04-09
重設Linux密碼
Reset Password in GRUB bootloader (CentOS)
- Select the kernel
- Press "e" key to edit the entry
- Select the line starting with the word "kernel"
- Press "e" key to edit kernel entry
- Append the letter "s" (or "Single") to the end of the line
- Press "ENTER" key
- Press the "b" key to boot the Linux kernel into single user mode
- type "passwd" with user name to change password
- type "sync"
- type "reboot"
2013-01-24
MySQL5.0 UTF8 Setting
Edit /etc/my.cnf
[mysqld] max_allowed_packet=64M
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
character-set-server = utf8
2012-10-24
Enable Root Login in Fedora GUI
1. Open terminal
2. su - root
3. vi /etc/pam.d/gdm-password
4. add ## to comment auth required pam_succeed_if.so user != root quiet
2. su - root
3. vi /etc/pam.d/gdm-password
4. add ## to comment auth required pam_succeed_if.so user != root quiet
2011-11-24
Disable SELinux in CentOS
Disable SELinux in CentOS
關閉CentOS的SELinux
echo 0 >/selinux/enforce
reference website: http://www.crypt.gen.nz/selinux/disable_selinux.html
關閉CentOS的SELinux
echo 0 >/selinux/enforce
reference website: http://www.crypt.gen.nz/selinux/disable_selinux.html
Enable network interface card in CentOS 6
Enable network interface card in CentOS 6
CentOS 6 Linux 啓動網絡卡
CentOS 6 Linux 啓動網絡卡
- change directory to " cd /etc/sysconfig/network-scripts/ "
- Assume your first network is eth0
edit " vi ifcfg-eth0 " -
make sure the following statement was contain in the file (dhcp client mode)
DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes - save the config file :wq
- restart the network service
" service network restart "
2011-11-16
薑餅慾望
A most suitable customize ROM for HTC Desire G7
InsertCoin
http://insertcoin-roms.org/htc-desire
網上有很多為HTC Desire 設計的Android 2.3 ROM,但用了之後發現大大小小的問題。不是沒有位置安裝其他應用程式,就是超出手機本身的負荷,或者有一些十分困擾的臭蟲。最後終於被我找到一個非常合適的ROM - InsertCoin。不但可以享用薑餅,還有一百多MB空間安裝APPS,平常亦保持著100MB FREE MEMORY,因此本人極力推薦!
InsertCoin
http://insertcoin-roms.org/htc-desire
網上有很多為HTC Desire 設計的Android 2.3 ROM,但用了之後發現大大小小的問題。不是沒有位置安裝其他應用程式,就是超出手機本身的負荷,或者有一些十分困擾的臭蟲。最後終於被我找到一個非常合適的ROM - InsertCoin。不但可以享用薑餅,還有一百多MB空間安裝APPS,平常亦保持著100MB FREE MEMORY,因此本人極力推薦!
開機畫面
關機畫面
2011-11-04
推薦一個學習Linux的好網站
筆者想向大家推介一個學習Linux的好網站:鳥哥的Linux私房菜 http://linux.vbird.org/ 。當中有非常詳細由淺入深一步步的教學文件,亦有各種伺服器的應用教學,相信必定幫助到大家Linux的知識。
訂閱:
文章 (Atom)
Review Who is Connected to Windows Shared Folder
1. Open Computer Management Console Windows Key + R -> compmgmt.msc 2. Expand System Tools -> Shared Folder -> Sessions ...
-
Copy / Transfer Putty Configuration File / Profile 首先,你必需有權限執行登錄檔編輯程式。 First of all, You may have both computers administrative right to ...
-
Start Chrome with Incognito (Private) Browsing Mode Firstly, right click "Chrome" shortcut --> click "Properties" ...