Skip to content

Instantly share code, notes, and snippets.

@xatier
Created October 24, 2012 01:55
Show Gist options
  • Save xatier/3943278 to your computer and use it in GitHub Desktop.
Save xatier/3943278 to your computer and use it in GitHub Desktop.
cfdisk //切割磁區
mkfs.jfs /磁區 //格式化
mount /磁區 /mnt
dhcpcp eth0
wpa_passphrase "Your Router SSID" "Your WPA Key" > /etc/wpa_supplicant.conf
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
dhcpcd wlan0
pacstrap /mnt base base-devel vim xorg xorg-xinit gnome gnome-extra(能裝都先裝)
pacstrap /mnt grub-bios
genfstab -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
vim /etc/hostname
ln -s /usr/share/zoneinfo/Asia/Taipei /etc/localtim
vim /etc/locale.gen
locale-gen
vim /etc/rc.conf
LOCALE="zh_TW.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="localtime"
TIMEZONE="Asia/Taipei"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
MODULES=( vboxdrv acpi-cpufreq cpufreq_ondemand)
# Udev settle timeout (default to 30)
UDEV_TIMEOUT=30
# Scan for FakeRAID (dmraid) Volumes at startup
USEDMRAID="no"
# Scan for BTRFS volumes at startup
USEBTRFS="no"
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
HOSTNAME="myhost"
mkinitcpio -p linux
grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda
exit
umount /mnt
reboot
sudo cpufreq-set -g ondemand;sudo cpufreq-set -g ondemand -c 1
taiwan minnor
http://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/i686
1. pacman -Syu -aur
2. pacman -S xorg
3. pacman -S hal
4. pacman -S xf86-video-intel
pacman -S xf86-video-fbdev
5. add hal into /etc/rc.conf deamon
pacman -S ttf-fireflysung
6. pacman -S gnome
7. cp /etc/skel/.xinitrc ~
8. vi .xinitrc
9. #exec gnome-session -> exec ck-launch-session gnome-sessin
pacman -S synaptics
pacman -S gnome-terminal
pacman -Sy bash-completion
pacman -S alsa-lib alsa-utils alsa-oss
pacman -S laptop-mode-tools
pacman -S inetutils
pacman -S firefox firefox-i18n
pacman -S flashplugin
pacman -S unrar unzip
pacman -S smplayer
pacman -S libreoffice
pacman -S totem
pacman -S totem-plugin
pacman -S codecs
pacman -S p7zip
pacman -S wqy-bitmapfont wqy-zenhei
pacman -S evince
pacman -S openjdk6
pacman -S openssh
pacman -S gstreamer0.10-ffmpeg
pacman -S screenlets
pacman -S valgrind
pacman -S amsn
pacman -S virtualbox-bin
uname -a
dkms install vboxhost/4.1.18 -k <your kernel here>/<your arch here>
pacman -S chromium
pacman -S gimp
pacman -S wireshark-gtk
pacman -S gnu-nmap
sudo yaourt -S texlive-latexextra
yaourt -S audacious
vi /etc/pacman.conf
[archlinuxfr]
Server = http://repo.archlinux.fr/i686
pacman -Sy yaourt
yaourt -Sy playonlinux
yaourt -S easystroke
vim
1) sudo rm /usr/bin/{view,rview}
2) sudo pacman -Syu #更新系统
安裝gcin中文輸入法(建議)
sudo pacman -S gcin
再來編輯profile這個檔案
vim /etc/profile
然後加入以下:
export GTK_IM_MODULE=gcin
export XMODIFIERS='@im=gcin'
gcin &
重新登入後就可以使用gcin輸入中文了!
# useradd –mG users,audio,optical,storage,wheel -s /bin/zsh yourname
创建一个限制用户,有声音支持,有HAL 支持,能切换到root 权限
# passwd yourname (如果还没有为root创建密码,要先 #passwd root)
# cd /home/YOUNAME/ && cp ~/.zshrc ./ && chown YOUENAME ./.zshrc
# pacman -S sudo
# vi /etc/sudoers
加入:yourname ALL=(ALL) NOPASSWD: SETENV: ALL
硬盤的分區無法自動掛載。
解決辦法:把用戶加入到 hal,dbus,storage ,optical這幾個組裡面。
#gpasswd -a username groupname
編輯/etc/PolicyKit/PolicyKit.conf,加入下面幾行:
<match action="org.freedesktop.hal.storage.*">
<return result="yes"/>
</match>
然後啟動hal服務
#/etc/rc.d/hal start
[Arch 64]
[Wine]
In /etc/pacman.conf
[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64
[multilib]
Include=/etc/pacman.d/mirrorlist
pacman -S wine
yaourt -Sy wine-starcraft (get from url)
yaourt -S lib32-nvivia-utils
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment