-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstalling_Kubuntu
189 lines (125 loc) · 6.87 KB
/
installing_Kubuntu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
Installing Kubuntu 15.10 on Acer Aspire V Nitro Black Edition VN7-592G-757F
---------------------------------------------------------------------------
Download the latest Kubuntu:
http://www.kubuntu.org/getkubuntu/
Check the SHA256 sum:
sha256sum kubuntu-15.10-desktop-amd64.iso
Create an installation usb:
sudo dd if=kubuntu-15.10-desktop-amd64.iso of=/dev/sdb
BIOS configuration (press F2 to enter the BIOS setup):
Main menu:
- Network Boot: Disabled
- F12 Boot Menu: Enabled
- Wake on Lan: Disabled
- Touchpad: Basic
- Lid Open Resume: Disabled
Boot menu:
- Boot Mode: UEFI
- Secure Boot: Disabled
Save and restart
Connect the usb. Reboot and press F12 to start the Boot Manager. Select the General USB Flash Disk.
In GRUB select 'Start Kubuntu', but first set the boot parameters pressing the 'e' letter.
We need to run GRUB with the boot option 'nomodeset'. Press ctr+x to continue with the boot.
Install Kubuntu following the default steps. Reboot if everything went fine.
Remove the USB when asked and press enter. If nothing happens simply reboot the laptop.
The boot will probably fail. We need to reboot and press F2 to enter the BIOS again.
Enable Secure Boot in the Boot menu. After that, in the Security menu enter the
'Select an UEFI file as trusted for executing' menu. Select the grubx64.efi file and
give it a name (e.g. Kubuntu). Disable Secure Boot again. Save and exit.
Luckily we will end up in GRUB (if not, press Esc to activate just after rebooting).
We need to select Kubuntu and use the 'nomodeset' option (press 'e').
Just after we login, we should remove the Bluetooth from the System Tray (inside System Tray
Settings). It can create problems and freeze the screen (this did not happen in my last
installation, probably because y booted with the 'nomodeset' option).
The first thing to do is to install the linux kernel 4.3.4. This will solve many power
management problems (be able to change the brightness, activate the sleep mode), that were
produced by the need of using the 'nomodeset' option in GRUB.
cd ~/admin
mkdir kernel
cd kernel
mkdir 4.3.4
cd 4.3.4
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3.4-wily/linux-headers-4.3.4-040304_4.3.4-040304.201601230132_all.deb \
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3.4-wily/linux-headers-4.3.4-040304-generic_4.3.4-040304.201601230132_amd64.deb \
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.3.4-wily/linux-image-4.3.4-040304-generic_4.3.4-040304.201601230132_amd64.deb
sudo dpkg -i linux-headers-4.3*.deb linux-image-4.3*.deb
Reboot the laptop. Kubuntu should start without problems. In case we need to remove
the kernel, we can do the following:
sudo aptitude purge linux-headers-4.3.4-040304 linux-headers-4.3.4-040304-generic linux-image-4.3.4-040304-generic
Next step is to make the wifi work. We need to do the following:
mkdir ~/admin/wifiFirmware
mkdir ~/admin/wifiFirmware/old
sudo cp /lib/firmware/ath10k/QCA6174/hw3.0/* ~/admin/wifiFirmware/old/.
cd ~/admin/wifiFirmware
wget https://github.com/kvalo/ath10k-firmware/archive/master.zip
unzip master.zip
sudo cp ath10k-firmware-master/QCA6174/hw3.0/* /lib/firmware/ath10k/QCA6174/hw3.0/.
sudo mv /lib/firmware/ath10k/QCA6174/hw3.0/firmware-4* /lib/firmware/ath10k/QCA6174/hw3.0/firmware-5.bin
The wifi should work after a reboot.
Now we can update the system:
sudo apt-get install aptitude
sudo aptitude update
sudo aptitude dist-upgrade
Install some additional software:
sudo aptitude install zile yakuake texlive texlive-lang-spanish kile r-base inkscape saods9 gv filezilla thunderbird vlc openshot kruler openjdk-8-jdk git gimp
sudo aptitude install python-scipy python3-scipy python-numpy python3-numpy python-matplotlib python3-matplotlib ipython ipython3 python-pip python3-pip
sudo aptitude install plasma-workspace-wallpapers texlive-latex-extra virtualbox
Install the NVIDIA drivers: System Settings > Driver Manager > NVIDIA binary driver - version 352.63
Make sure that we are using the intel GPU (The NVIDIA card has some problems with the sleep mode):
sudo prime-select intel
sudo update-grub
Reboot.
In case we want to remove the NVIDIA drivers, we should do the following:
sudo aptitude purge nvidia-352
sudo aptitude install xserver-xorg-video-nouveau
Fix headphone microphone adding the following line to /etc/modprobe.d/alsa-base.conf:
options snd-hda-intel model=dell-headset-multi
Install oracle java 7 and 8:
sudo add-apt-repository ppa:webupd8team/java
sudo aptitude update
sudo aptitude install oracle-java7-installer
sudo aptitude install oracle-java8-installer
Install lm-sensors:
sudo aptitude install lm-sensors xsensors
sudo sensors-detect
Install astropy:
pip install astropy numpy matplotlib scipy
pip3 install astropy numpy matplotlib scipy
Install TensorFlow:
pip install tensorflow
pip3 install tensorflow
Install jupyter, pandas and sklearn:
sudo apt install jupyter-notebook jupyter-core python-ipykernel
pip install pandas sklearn
pip3 install pandas sklearn
Install zoom:
https://zoom.us/download
Install some packages needed for the Processing video library:
sudo aptitude install gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly
wget http://ppa.launchpad.net/mc3man/gstffmpeg-keep/ubuntu/pool/main/g/gstreamer0.10-ffmpeg/gstreamer0.10-ffmpeg_0.10.13-5ubuntu1~vivid_amd64.deb && sudo dpkg -i gstreamer0.10-ffmpeg_0.10.13-5ubuntu1~vivid_amd64.deb
Install Docker:
sudo aptitude install apt-transport-https ca-certificates curl
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo aptitude update
sudo aptitude install docker-ce
sudo systemctl start docker
sudo systemctl enable docker
sudo groupadd docker
sudo gpasswd -a ${USER} docker
Remove akonadi:
sudo apt-get remove --purge kmail akonadi-server
After an upgrade to Kubuntu 16.1 I found that the first CPU was always 100% active.
Printing the interrupts with the following command showed the cause:
grep . -r /sys/firmware/acpi/interrupts/
Adding this line to /etc/rc.local solved the problem:
echo "disable" > /sys/firmware/acpi/interrupts/gpe61
Useful links:
https://notdefine.de/projects.php?project=Linux_on_Acer_Aspire_VN7-592G
http://linuxdaddy.com/blog/install-kernel-4-3-on-ubuntu/
https://bbs.archlinux.org/viewtopic.php?id=206517
http://ubuntuforums.org/showthread.php?t=1613132
http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
http://askubuntu.com/questions/176565/why-does-kworker-cpu-usage-get-so-high
http://unix.stackexchange.com/questions/91027/how-to-disable-usb-autosuspend-on-kernel-3-7-10-or-above
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/1523100