Ubuntu related Topics


Content:
  1. Ubuntu Setup for web developper
  2. to boot ubuntu usb-stick: disable secure boot in BIOS
  3. convert ubuntu bios-boot usb-drive to UEFI-boot.
  4. Ref: https://askubuntu.com/questions/509423/which-commands-to-convert-a-ubuntu-bios-install-to-efi-uefi-without-boot-repair
    Prepare two things:
    1. Boot UEFI Ubuntu.
    2. verify your mode by
      $ [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
      The result should be "UEFI".
    3. $ sudo mount /dev/sdc1 /mnt
    4. $ sudo mkdir -p /mnt/boot/efi
    5. $ sudo mount /dev/sda2 /mnt/boot/efi/ # /dev/sda2 FAT32 with flag of esp(EFI)
    6. $ sudo mount --bind /dev/ /mnt/dev/
    7. $ sudo mount --bind /proc/ /mnt/proc/
    8. $ sudo mount --bind /sys/ /mnt/sys/
    9. $ sudo mount --bind /run/ /mnt/run/
    10. $ modprobe efivars
    11. $ sudo chroot /mnt
    12. # apt-get install grub-efi-amd64
    13. # grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Ubuntu --recheck --no-floppy --debug
  5. backup public_html
    1. $ cd public_html
    2. $ svn export ./ ../pub-export/
    3. $ cd ..
    4. $ tar -cvzf pub20221202.tgz pub-export
  6. dd command data transfer speed
  7. Ubuntu 18.04LTS: WiFi worked on NEC Lavie LL750/M Stable.
  8. Ubuntu 18.04LTS Bluetooth worked on NEC Lavie LL750/M Not Stable.
  9. Openvpn on Ubuntu
  10.     $ openvpn3 config-import --config vpngate_219.100.37.144_tcp_443.ovpn
        $ openvpn3 session-start --config-path /net/openvpn/v3/configuration/4451d3eaxb9d1x4ccdxa5a4xc3c162ec7d55
      
  11. dd.bash on Ubuntu
  12. How to make UEFI bootable ubuntu installer USB pendrive
  13. Use mkusb on Linux. mkusb is a tool on Linux. It makes a UEFI bootable ubuntu installer USB pendrive. It is very easy to use if you have a good pendrive. See Note below.
    Note: it is recommended to use a "fast" usb drive, eg. Toshiba. If you use a slow usb, it only boots and runs very slow. I tried two usb drives; one fast, the other slow. It clearly differs in The writing speed by mkusb and also runnning speed.
    1. https://help.ubuntu.com/community/mkusb/gui
      $sudo add-apt-repository universe  # only for standard Ubuntu
      $sudo add-apt-repository ppa:mkusb/ppa  # and press Enter
      $sudo apt update
      
      $sudo apt install mkusb
      $sudo apt install usb-pack-efi    # for UEFI
      $sudo apt install mkusb-plug
      
      $sudo mkusb
      
    2. Press d (dus) and follow the instructions.
      1. p(persistent)
      2. check EFI
    3. when you install Ubuntu 20.04LTS on a disk.
      1. It will complain that /cdrom can not be unmounted.
      2. $ sudo umount -l -r -f /cdrom
  14. Ubuntu Partition expansion
  15. Apache2 https settings
  16. Ubuntu 20.04 For Let's Note: Brightness setting with Fn+F1/F2.
    1. Open /etc/default/grub
    2. GRUB_CMDLINE_LINUX_DEFAULT="acpi_backlight=video acpi_osi=!!"
    3. $sudo update-grub
  17. Use openvpn3 on Ubuntu 18.04.
  18. Speed up Ubuntu 18.04
  19. Some useful Tips.
  20. quick setup for an environment of website developmentI built a website development environment so many time due to many errors above, I made a quick memo for myself and even I made a quick shell script for a quick setup for such an environment.
  21. Ubuntu 14.04LTS installation disk on 4GB Toshiba pendrive. How I reached this solution. I have made try and errors.
  22. Backup windows Recovery partition /dev/sdc1 and install ubuntu in the partition

Go back to Computer

20181124