Sunday, April 3, 2016

How to create Bootable USB Ubuntu 14.04 installation disk (UEFI and Legacy Compatible) and restore it back to full size after use

Linux Way to restore bootable USB:

Gui tool in lubuntu -> preferences -> Disks. (chose format USB disk as win95 fat32)

( Bootable usb write protected.
  $sudo mount -o,rw /dev/sdb1 /media/gyang/test
  or
  $mount -o remount,rw /media/gyang/test
  or
  $sudo hdparm -r0 /dev/sdb
  Not solving the issues.)



Windows Way:

You Tube Intro


Win32 Disk Imager 


superuser how to put USB back to original full size


Win32 Disk Imager to burn *.iso to USB flash drive.
Then, reboot from USB from UEFI enabled laptop. Should work. (Live CD has limitation as most new laptop no longer have CD drive.)

To restore USB flash drive. Follow step 5 in uTube video.


To restore bootable USB drive to its original size.

  1. Run CMD as Administrator
  2. Type DISKPART
  3. list disk
  4. select disk 1 (if your usb drive mine was 1)
  5. clean
  6. create partition primary
  7. active
  8. Choose a format:
    • FAT32 is the standard for USBs: format fs=fat32 quick
    • NTFS is more modern, but isn't as widely supported: format fs=ntfs quick
  9. assign
  10. exit
  11. exit

Saturday, April 2, 2016

Bit Torrent in Ubuntu



https://help.ubuntu.com/community/BitTorrent



qyang@ubuntu:~$ dpkg --list |grep transmission
ii  transmission                                                2.82-1.1ubuntu3.1                                   all          lightweight BitTorrent client
ii  transmission-common                                         2.82-1.1ubuntu3.1                                   all          lightweight BitTorrent client (common files)
ii  transmission-gtk    




Sunday, February 14, 2016

Saturday, January 2, 2016

Vi Error 'E185: Cannot find color scheme 'morning' in freshly installed ubuntu 14.04.3

Copied all ~/.vim folder to newly installed ubuntu box. But vi is complaining on start up. "E185: Cannot find color scheme 'morning'" Because at default it's using vim.tiny. qyang@ubuntu:~$ ll /etc/alternatives/vi lrwxrwxrwx 1 root root 17 Dec 6 13:24 /etc/alternatives/vi -> /usr/bin/vim.tiny* In old ubuntu box: qyang@lgm-pc:~$ ll /etc/alternatives/vi lrwxrwxrwx 1 root root 18 Jun 15 2015 /etc/alternatives/vi -> /usr/bin/vim.gnome Installing vim-gnome fixed this issue. ($sudo apt-get install vim-gnome)

Thursday, December 10, 2015

Install Playonlinux from command line to accept the license by Tab -> Enter

This POST addressed how to accept license when clicking enter doesn't respond the OK display when installing playonlinux from command line.
Solution:
Hit  key, then hit  to accept the license. 

That is it. So easy, just switching among buttons, to highlight button. Same like in windows.

Ubuntu apt mirror access error.


http://askubuntu.com/questions/553765/failed-to-fetch-update-on-ubuntu-14-04-lts-trusty-tahr


This post addressed one issue I had tonight.


W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg  Unable to connect to us.archive.ubuntu.com:http:

Solution
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get update

Or switch apt mirror from this link
http://askubuntu.com/questions/37753/how-can-i-get-apt-to-use-a-mirror-close-to-me-or-choose-a-faster-mirror