Wednesday 18 March 2020

Working from home

Ubuntu bootable disk on Mac

I had a few issues with my macbook pro (13 inch, Mac Catalina, 10.15.3, T2 chip)

1. booting is really hard
I had to remove all other USBs except the bootable disk to boot.
I had to go to recovery mode a few times to keep the setting (the lowest security + allow remote usb boot device).

1. Disconnect all usb except booting disc
2. Apple logo
3. Ubunt Purple screen with 3 menu
4. Black error screen (0000:06: HC died: cleaning up. ICM firmware is in wrong mode: 15)

2.3.4 repeats

5. Remove boot USB and put it into another port
2.3.4 repeats >> successful black screen

6. Ubuntu screen asking decrypt password.
7. Plug in all other usbs (Wireless dongle, Keyboard/mouse dongle)
8. LOgin




2. External monitor (connected with HDMI cable) resolution does not match with mac book monitor.
When I set external monitor correctly, mac screen becomes too small.

Goldstar Comapny Ltd 22"
Resolution: 1920*1080(16:10)
Scale: 100%

Built-in display:
Resolution: 2560x1600(16:10)
Scal: 100%


3. Sound not working
Ubuntu setting >> SOund >> output volume was disabled.

After following, below site, it was enabled but still not working.
https://www.unixmen.com/2012003-howto-resolve-nosound-problem-on-ubuntu/

Sound was actually going to HDMI. I connected with my TV and I could hear the sound.
Headset does not work either as the sound goes to HDMI.

The current sound setting shows:
Output volume: enabled
Out device: HDMI/DisplayPort-BUilt-in AUdio
Profile: Digital Stereo (HDMI) output.

Software installation
sudo mysql command didn't work at one stage. Had to reinstall mysql-server following site below.

https://stackoverflow.com/questions/43440534/mysql-doesnt-start-at-all

Github - keeps aksing my id/pass

$ git fetch
Username for 'https://github.com': ^C


1. ssh key generate
https://help.github.com/en/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
(I found that the newly created id_rsa/id_rsa.pub have to sit on ~/.ssh folder. So if you have existing id_rsa/id_rsa.pub for other github site, backup them in a subfolder, eg, ~/.ssh/my_other_github)

2. $ cat .git/config

3. You need to replace the url part.

4. Go to git hub url >> green clone button >> USH ssh
copy the url, something like git@xxxxx.git

5. $ vim .git/config >> update the url part

6. Now, you need to paste the created id_rsa.pub to github.
Go to git hub >> Your profile photo >> Settings >> SSH and GPA Key >> add >> copy the id_rsa.pub part (cat .ssh/id_rsa.pub) and paste.

7. $ git fetch
$ git pull

First time, it asks the password you used in step1 if you entered passphrase (btw, this is not github site password).


Then NO password asking!!!


How to connect to a specific repo

1. go to github >> settings >> Developer settings >> Persona access token >> Gnerate new. >> tick 'repo' and 'gist' >> Ok >> copy this token on notepad temporarily.

NOte that 'token' is per device, and per github credential

2. open PhpStorm >> file >> settings >> Github >> Use token (not credential) >> paste the token you created from github website. >> Apply >> ok.

3. Phpstorm >> VCS >> Get from version control >> Github >> search for 'scripts' >> the menu will emerge >> Clone button.


Now, it is cloned.




No comments:

Post a Comment