Instalace Debianu na notebook Lenovo G575

Instaloval jsem linuxovou distribuci Debian v unstable verzi a s prostředím Mate na notebook Lenovo G575 s procesorem AMD E-300 a grafickou kartou Radeon HD 6310. Možná by se někomu mohl hodit tento jednoduchý skript pro základní nastavení.

Bash skript pro základní nastavení po instalaci

#!/bin/bash

#/etc/apt/apt.conf
echo 'APT::Default-Release "unstable";' > /etc/apt/apt.conf

#/etc/apt/sources.list
echo '#Debian' > /etc/apt/sources.list
echo 'deb http://ftp.cz.debian.org/debian unstable main non-free contrib' >> /etc/apt/sources.list
printf 'deb http://ftp.cz.debian.org/debian testing main non-free contrib\n\n' >> /etc/apt/sources.list
echo '#Google' >> /etc/apt/sources.list
echo 'deb http://dl.google.com/linux/deb/ stable main' >> /etc/apt/sources.list

#keys
wget -O - http://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -

#packages
apt-get update
apt-get install -y xorg lightdm mate-desktop-environment google-chrome-stable
wget --no-check-certificate http://vaclavambroz.cz/debian/installation/packages.txt
apt-get install -y $(grep -vE "^\s*#" packages.txt)

#modules
apt-get install -y module-assistant
m-a update
m-a prepare << EOF
y
EOF


#wifi
apt-get install -y network-manager network-manager-gnome
sed -i 's/managed=false/managed=true/g' /etc/NetworkManager/NetworkManager.conf
apt-get install linux-image-$(uname -r|sed 's,[^-]*-[^-]*-,,') linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') broadcom-sta-dkms
modprobe -r b44 b43 b43legacy ssb brcmsmac bcma
modprobe wl

#remove unwanted packages
apt-get remove -y libreoffice-math xterm

Publikováno 13.3.2016 v 17:36 | Kategorie: Debian