顯示包含「Linux」標籤的文章。顯示所有文章
顯示包含「Linux」標籤的文章。顯示所有文章

2020-10-15

Execute from symbolic link

Method One: link in /sbin
sudo ln -s /[directory]/[script].[extension] /sbin/[alias]

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/

2013-04-09

重設Linux密碼

Reset Password in GRUB bootloader (CentOS)

  1. Select the kernel
  2. Press "e" key to edit the entry
  3. Select the line starting with the word "kernel"
  4. Press "e" key to edit kernel entry
  5. Append the letter "s" (or "Single") to the end of the line
  6. Press "ENTER" key
  7. Press the "b" key to boot the Linux kernel into single user mode
  8. type "passwd" with user name to change password
  9. type "sync"
  10. 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

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

Enable network interface card in CentOS 6

Enable network interface card in CentOS 6
CentOS 6 Linux 啓動網絡卡

  1. change directory to " cd /etc/sysconfig/network-scripts/ "

  2. Assume your first network is eth0
    edit " vi ifcfg-eth0 "

  3. make sure the following statement was contain in the file (dhcp client mode)
    DEVICE=eth0
    BOOTPROTO=dhcp
    ONBOOT=yes

  4. save the config file :wq

  5. restart the network service
    " service network restart "
reference website: http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-dhcp-configuring-client.html

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,因此本人極力推薦!

開機畫面
關機畫面

2011-11-04

推薦一個學習Linux的好網站

筆者想向大家推介一個學習Linux的好網站:鳥哥的Linux私房菜 http://linux.vbird.org/ 。當中有非常詳細由淺入深一步步的教學文件,亦有各種伺服器的應用教學,相信必定幫助到大家Linux的知識。

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 ...