Skip to content

Instantly share code, notes, and snippets.

@jinleileiking
Last active December 17, 2015 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jinleileiking/5545320 to your computer and use it in GitHub Desktop.
Save jinleileiking/5545320 to your computer and use it in GitHub Desktop.
gentoo_install_with_rescuecd
#############################################################
# IN VBOX #
# You need vbox have two link: 1 nat, 2 bridge. #
# use networkmanager to setup bridge ip. ping ok.. #
# use midori to check nat is ok #
# use putty to telnet vbox #
#############################################################
startx
passwd
#############################################################
# IN Putty #
# telnet vbox in ssh, so you can copy #
#############################################################
fdisk /dev/sda
# n
# 1
# +32M
# n
# 2
# +512M
# n
# 3
# t
# 2
mkfs.ext2 /dev/sda1
mkfs.ext4 /dev/sda3
mkswap /dev/sda2
swapon /dev/sda2
mkdir /mnt/gentoo
mount /dev/sda3 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/sda1 /mnt/gentoo/boot
##########################################################
# untar stage 3 #
##########################################################
cd /mnt/gentoo
##########scp root@192.168.1.???:/?????/stage3-*.tar.bz2 .############
tar xvjpf stage3-*.tar.bz2
##########################################################
# chroot #
##########################################################
cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount -t proc none /mnt/gentoo/proc
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
##########################################################
# setup portage #
##########################################################
mkdir /usr/portage
emerge-webrsync
eselect profile list
emerge gentoo-sources git grub
emerge wpa_supplicant dhcpcd
##########################################################
# kernel #
##########################################################
make menuconfig
# Device Drivers ---> Generic Driver Options ---> [*] Maintain a devtmpfs filesystem to mount at /dev
# automout dev
# file system ext2,ext4
# Networking->Wireless->cfg80211 wireless extensions compatibility (CFG_80211_WEXT)
make && make modules_install
cp arch/x86_64/boot/bzImage /boot/kernel-??-gentoo--??
##########################################################
# grub #
##########################################################
grub --no-floppy
#root (hd0,0)
#setup (hd0)
#quit
##########################################################
# get github etc #
##########################################################
cd /
git init
git remote add http https://jinleileiking@github.com/jinleileiking/GentooCfgFiles.git
git fetch http
git branch master http/master
git checkout master
#####conf.d/hostname
#####conf.d/net,
######/etc/fstab,
######boot/grub/grub.conf
##########################################################
# config net #
##########################################################
ls /sys/class/net
cd /etc/init.d
ln -s net.lo net.???
rc-update add net.??? default
# Modify make.conf, change inputdevice, grahics card
##########################################################
# emerge tools #
##########################################################
emerge -n xorg-server terminator syslog-ng zsh wqy-microhei ubuntu-font-family eix gentoolkit flaggie cscope ctags ack gvim layman subtle xdm sys-apps/dbus firefox-bin
emerge virtualbox
emerge virtualbox-guest-additions
##########################################################
# sudo #
##########################################################
visudo
# uncomment %wheel line
##########################################################
# Set Root Password #
##########################################################
passwd
##########################################################
# Adding user #
##########################################################
useradd -m -G root -s /bin/bash jinleileiking
usermod -a -G vboxguest jinleileiking
passwd jinleileiking
#
#
su jinleileiking
cd ~
git init
git remote add http https://jinleileiking@github.com/jinleileiking/DotFiles.git
git fetch http
git branch master http/master
git checkout master
git submodule init
git submodule update
##########################################################
# reboot #
##########################################################
reboot
##########################################################
# oh-my-zsh #
##########################################################
chsh -s /bin/zsh
##########################################################
# gvim #
##########################################################
vim +BundleInstall +qa
##########################################################
# subtle #
##########################################################
sur install clock2
sur install layout
sur install battery
sur install brightness
emerge dmenu pciutils
##########################################################
# layman gentoo-zh #
##########################################################
######## uncomment source vi /etc/portage/make.conf #########
layman -S
layman -a gentoo-zh
##########################################################
# fcitx #
##########################################################
fcitx fcitx-configtool fcitx-cloudpinyin fcitx-rime fcitx-googlepinyin fcitx-sogoupinyin
##########################################################
# sound #
##########################################################
emerge alsa-mixer alsa-utils deadbeef
usermod -a -G audio jinleileiking
alsamixer
##########################################################
# video #
##########################################################
emerge smplayer2
##########################################################
# im #
##########################################################
emerge irssi rxvt-unicode pidgin
##########################################################
# flash #
##########################################################
emerge adobe-flash
##########################################################
# pic #
##########################################################
emerge feh sxiv
##########################################################
# util #
##########################################################
emerge unrar slock xrandr wine
virtualbox
##########################################################
# book #
##########################################################
kchmviewer
##########################################################
# program #
##########################################################
tig kiff3
oracle-jdk-bin
##########################################################
# download #
##########################################################
aria2 axel rtorrent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment