kinu-garage / hut_10sqft

Computer setup tools for my own environment, and public discussion place holder.
2 stars 1 forks source link

mac1: Init setup list 202401 #978

Open 130s opened 8 months ago

130s commented 8 months ago

Prev. https://github.com/kinu-garage/hut_10sqft/issues/846

CoS

  1. [x] Setup synergy. https://github.com/kinu-garage/hut_10sqft/issues/978#issuecomment-1887891706
  2. [x] Setup dropbox.
  3. [x] Disable auto-hibernation when the monitor turns off https://github.com/kinu-garage/hut_10sqft/issues/978#issuecomment-1892782081
  4. [x] Update host name. -> https://github.com/kinu-garage/hut_10sqft/issues/978#issuecomment-1887918845
  5. [x] Setup Google Chrome.
  6. [x] Setup the "Dock" on the Desktop (lots removed).
  7. [x] Find and setup a LAN printer connection.
  8. [x] brew https://github.com/kinu-garage/hut_10sqft/issues/846#issuecomment-1666833254
  9. [x] tmux https://github.com/kinu-garage/hut_10sqft/issues/846#issuecomment-1666833254
  10. [x] ssh
  11. [x] App bar to be placed in the way it is not too obstructing. https://github.com/kinu-garage/hut_10sqft/issues/978#issuecomment-1896204722
  12. [x] Setup Google Drive Desktop https://github.com/kinu-garage/hut_10sqft/issues/876#issuecomment-1667308358
  13. [ ] Setup Emacs.
  14. [ ] Google Japanese input.
  15. [ ] Remove Windows dualboot on EFI
  16. [x] HASS client
  17. [x] Setup Opera web browser.
  18. [ ] Setup Skype.
  19. [ ] BOINC setup
  20. [ ] Teamviewer
  21. [ ] VMWare server
130s commented 8 months ago

synergy macos kept asking security privacy when it launches. It was likely related to I first installed their RC3 then overwrote with synergy1.14. Cleanly installed synergy and rebooted OS like suggested in https://symless.com/synergy/help/how-to-fix-macos-security-and-privacy-accessibility-settings seems to resolve it.

Also mouse cursor didn't fully control in the remote (macos) when I had vertically aligned monitors on Ubuntu side. So I realigned monitors on Ubuntu in the way all monitors aligned horizontally.

130s commented 8 months ago
  • Update host name.

https://apple.stackexchange.com/a/287775/41246

sudo scutil --set HostName 130s-mac1
sudo scutil --set LocalHostName 130s-mac1
sudo scutil --set ComputerName 130s-mac1
130s commented 8 months ago

Adding a printer brother mfc-l2750dw had never been an issue on mac like https://github.com/130s/30y-130s_life/issues/708#issuecomment-704321450 but this time is stuck.

I'm having an issue in using the printer. https://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod=mfcl2750dw_us_eu_as&os=10065 says:

We recommend using AirPrint. If your machine does not support AirPrint, download Brother iPrint&Scan from the App Store.

But adding it with AirPrint ends up with:

Unable to verify the printer on your network. Unable to connect to ‘Brother MFC-L2750DW series._ipp._tcp.local.’ due to an error. Would you still like to create the printer?

I rebooted the printer and it works well.

130s commented 8 months ago

Mac not reachable by this :thinking:

`hostname`.local
130s commented 8 months ago

I'm wondering if making the entire GoogleDrive local folder available offline is necessary. Without that, if a file under GoogleDrive on another computer gets updated, then on mac1 Dropbox may not update that so that the file on remote G-Drive wouldn't get updated?

Because of this fear, I made the entire GoogleDrive folder available offline. Will see.

130s commented 8 months ago

I noticed whenever the display turns off, the computer also hibernates. Maybe this setting needs to be enabled in Settings -> Battery -> Power Adapter -> "Prevent computer from sleeping automatically when the display is off".

Testing now.

130s commented 8 months ago

Boinc clinet

I couldn't find how to attach projects then ran into the thing called account manager on Boinc. So went ahead using BAM!. So far I'm having an issue to attach existing projects to my AM.

130s commented 8 months ago
  • App bar to be placed in the way it is not too obstructing.

"Dock" is moved to the side following https://www.xda-developers.com/how-to-change-size-and-position-of-dock-on-mac/

130s commented 7 months ago

Turned out ssh is missing though I thought it got installed via brew. Following https://apple.stackexchange.com/questions/365742/use-openssh-agent-instead-of-the-osx-agent doing brew install openssh now.

130s commented 7 months ago

brew install emacs has been running for hours and not yet finished. https://stackoverflow.com/questions/14849291/brew-install-emacs-error Looks like binary installation on brew is called Bottle, and for Emacs there's no bottle of Emacs for Big Sur https://formulae.brew.sh/formula/emacs


IDK how long more it took but looks like installing `emacs` is finally finished ``` ==> Patching ==> ./install.sh --prefix=/private/tmp/rust-20240201-76686-4p4om/rustc-1.75.0-src/cargobootstrap ==> ./configure --sysconfdir=/usr/local/etc --tools=analysis,cargo,clippy,rustdoc,rust-analyzer-proc-macro-srv,rust-demangler,src --llvm-root=/usr/local/opt/llvm --enable-llvm-link ==> make ==> make install ==> Downloading https://formulae.brew.sh/api/formula.jws.json ############################################################################################################################################################################# 100.0% 🍺 /usr/local/Cellar/rust/1.75.0: 39,132 files, 858.5MB, built in 68 minutes 22 seconds ==> Installing emacs dependency: tree-sitter ==> make AMALGAMATED=1 ==> make install PREFIX=/usr/local/Cellar/tree-sitter/0.20.9 ==> cargo install --path=cli 🍺 /usr/local/Cellar/tree-sitter/0.20.9: 13 files, 13.7MB, built in 2 minutes 15 seconds ==> Installing emacs ==> ./configure --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/29.2/share/info/emacs --with-gnutls --without-x --w ==> make ==> make install ==> Caveats To start emacs now and restart at login: brew services start emacs Or, if you don't want/need a background service you can just run: /usr/local/opt/emacs/bin/emacs --fg-daemon ==> Summary 🍺 /usr/local/Cellar/emacs/29.2: 4,226 files, 119.2MB, built in 2 minutes 40 seconds ==> Running `brew cleanup emacs`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). ==> Caveats ==> emacs To start emacs now and restart at login: brew services start emacs Or, if you don't want/need a background service you can just run: /usr/local/opt/emacs/bin/emacs --fg-daemon ```

Not sure why it's talking about starting an OS service. No GUI coming up yet.

$ /usr/local/opt/emacs/bin/emacs --fg-daemon &
[1] 90725
$ Starting Emacs daemon.
$ ps
  PID TTY           TIME CMD
  409 ttys000    0:00.17 -zsh
10893 ttys000    0:00.01 tmux
10896 ttys001    0:00.11 -zsh
90725 ttys001    0:00.07 /usr/local/opt/emacs/bin/emacs --fg-daemon
10904 ttys002    0:00.10 -zsh
$ emacs &
[2] 90750
$ 
[2]  + suspended (tty output)  emacs
$ ps
  PID TTY           TIME CMD
  409 ttys000    0:00.17 -zsh
10893 ttys000    0:00.01 tmux
10896 ttys001    0:00.12 -zsh
90725 ttys001    0:00.07 /usr/local/opt/emacs/bin/emacs --fg-daemon
90750 ttys001    0:00.02 emacs
10904 ttys002    0:00.10 -zsh
130s commented 7 months ago
IDK how long more it took but looks like installing `emacs` is finally finished ``` ==> Patching ==> ./install.sh --prefix=/private/tmp/rust-20240201-76686-4p4om/rustc-1.75.0-src/cargobootstrap ==> ./configure --sysconfdir=/usr/local/etc --tools=analysis,cargo,clippy,rustdoc,rust-analyzer-proc-macro-srv,rust-demangler,src --llvm-root=/usr/local/opt/llvm --enable-llvm-link ==> make ==> make install ==> Downloading https://formulae.brew.sh/api/formula.jws.json ############################################################################################################################################################################# 100.0% 🍺 /usr/local/Cellar/rust/1.75.0: 39,132 files, 858.5MB, built in 68 minutes 22 seconds ==> Installing emacs dependency: tree-sitter ==> make AMALGAMATED=1 ==> make install PREFIX=/usr/local/Cellar/tree-sitter/0.20.9 ==> cargo install --path=cli 🍺 /usr/local/Cellar/tree-sitter/0.20.9: 13 files, 13.7MB, built in 2 minutes 15 seconds ==> Installing emacs ==> ./configure --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs/29.2/share/info/emacs --with-gnutls --without-x --w ==> make ==> make install ==> Caveats To start emacs now and restart at login: brew services start emacs Or, if you don't want/need a background service you can just run: /usr/local/opt/emacs/bin/emacs --fg-daemon ==> Summary 🍺 /usr/local/Cellar/emacs/29.2: 4,226 files, 119.2MB, built in 2 minutes 40 seconds ==> Running `brew cleanup emacs`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). ==> Caveats ==> emacs To start emacs now and restart at login: brew services start emacs Or, if you don't want/need a background service you can just run: /usr/local/opt/emacs/bin/emacs --fg-daemon ```

Not sure why it's talking about starting an OS service. No GUI coming up yet.

$ /usr/local/opt/emacs/bin/emacs --fg-daemon &
[1] 90725
$ Starting Emacs daemon.
$ ps
  PID TTY           TIME CMD
  409 ttys000    0:00.17 -zsh
10893 ttys000    0:00.01 tmux
10896 ttys001    0:00.11 -zsh
90725 ttys001    0:00.07 /usr/local/opt/emacs/bin/emacs --fg-daemon
10904 ttys002    0:00.10 -zsh
$ emacs &
[2] 90750
$ 
[2]  + suspended (tty output)  emacs
$ ps
  PID TTY           TIME CMD
  409 ttys000    0:00.17 -zsh
10893 ttys000    0:00.01 tmux
10896 ttys001    0:00.12 -zsh
90725 ttys001    0:00.07 /usr/local/opt/emacs/bin/emacs --fg-daemon
90750 ttys001    0:00.02 emacs
10904 ttys002    0:00.10 -zsh