Difference between revisions of "Ubuntu 20 04 modifications"
From RobotinoWiki
(→v1) |
|||
Line 31: | Line 31: | ||
echo "RESUME=none" > /etc/initramfs-tools/conf.d/resume | echo "RESUME=none" > /etc/initramfs-tools/conf.d/resume | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
Revision as of 12:07, 11 September 2020
v1
Minimum Ubuntu Desktop install
sudo su passwd dorp6 apt install openssh-server vim net-tools vim /etc/ssh/sshd_config PermitRootLogin yes systemctl restart ssh vim /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 biosdevname=0 i8042.noaux=1" cat << EOF > /root/remove_old_kernels.sh #!/bin/bash dpkg -l 'linux-[ihs]*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\([-0-9]*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | tee zu_entfernende_Kernel cat zu_entfernende_Kernel | xargs sudo apt-get -y purge rm zu_entfernende_Kernel EOF e2fsck -f /dev/sda1 tune2fs -U f6fec0c6-bc88-46d3-b125-e450709f1956 /dev/sda1 replace UUID by f6fec0c6-bc88-46d3-b125-e450709f1956 in /boot/grub/grub.cfg echo "RESUME=none" > /etc/initramfs-tools/conf.d/resume
Realsense
sudo apt-key adv --keyserver keys.gnupg.net --recv-key C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C8B3A55A6F3EFCDE sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u apt install librealsense2==2.34.0-0~realsense0.2251 apt-mark hold librealsense2 optinal sudo apt-get install librealsense2-dbg
gcc
update-alternatives --remove-all gcc update-alternatives --remove-all g++ apt install gcc-7 g++-7 gcc-9 g++-9 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 10 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 20 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 10 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 20 sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30 sudo update-alternatives --set cc /usr/bin/gcc sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30 sudo update-alternatives --set c++ /usr/bin/g++
update-alternatives --config gcc update-alternatives --config g++