Squirrel Hole

江心一庐


  • Home
  • Archive
  • Categories
  • Tags
  • 我 | I
  •  

© 2025 白色乌鸦|White Crow

Theme Typography by Makito

Proudly published with Hexo

Work with Chromebook

Posted at 2020-04-04 making 

I enjoy to have a Acer R13 chromebook for myself. I post what I drive chromebook to be a good notebook for writing and programming.

Zotero on ARM

Official compile guide will trouble in arm platform, but I find a AUR zotero-arm-bin to solve it. Simple download firefox.deb, Zotero-5.0.84_linux_x86.tar.bz2, zotero.desktop from AUR link. Then follow the PKGBUILD extract executable files and install icon and desktop file. Please note that, I install zotero at ~/bin/zotero. You try modify to your purposed directory.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Extract firebox.deb
ar x firefox.deb data.tar.xz
tar xf data.tar.xz ~/bin/firefox --strip-components=3
# you can use standard directory or other you want
rm data.tar.xz
# Extract Zotero-5.0.84_linux_x86.tar.bz2
tar xf Zotero-5.0.84_linux_x86.tar.bz2 ~/bin/zotero
# Copy zotero icons to a standard location
cp ~/zoter/chrome/icon/default/default16.png /usr/share/icons/hicolor/16x16/apps/zotero.png
cp ~/zoter/chrome/icon/default/default32.png /usr/share/icons/hicolor/32x32/apps/zotero.png
cp ~/zoter/chrome/icon/default/default48.png /usr/share/icons/hicolor/48x48/apps/zotero.png
cp ~/zoter/chrome/icon/default/default256.png /usr/share/icons/hicolor/256x256/apps/zotero.png
# Disable APP update
sed -i '/pref("app.update.enabled", true);/c\pref("app.update.enabled", false);' ~/bin/zotero/defaults/preferences/prefs.js
# No need to keep a shell around when launching Zotero
sed -i -r 's/^("\$CALLDIR\/zotero-bin" -app "\$CALLDIR\/application.ini" "\$@")/exec \1/' ~/bin/zotero/zotero
# Remove poppler binaries
rm ~/bin/zotero/{pdftotext,pdfinfo}
# Replace Firefox binaries
rm ~/bin/zotero/**.{so,chk}
rm ~/bin/zotero/gtk/*
rm -r ~/bin/zotero/gmp-clearkey
rm ~/bin/{updater,minidump-analyzer}
cp ~/bin/firefox/*.{so,chk} ~/bin/zotero
cp ~/bin/firefox/gtk2/*.so ~/bin/zotero/gtk2
cp ~/bin/firefox/plugin-container ~/bin/zotero/plugin-container
cp ~/bin/firefox ~/bin/zotero/zotero-bin
cp ~/bin/firefox/dependentlibs.list ~/bin/zotero/dependentlibs.list
cp zotero.desktop ~/.local/share/applications/zotero.desktop
# You may need to modify zotero.desktop in your case
# You also can lanuch zotero by ./~/bin/zotero/zotero for test and debug
# From error I got, I should install libxt6 and for firefox
sudo apt install libxt6 libstartup

According to instructions on zotero forum, I change default port to avoid crostini crash. But I don't forward port 23119 to 8090, I change both zotero and zotero connector port to 8090. It seems that zotero connector' proxy redirection may cause connection lost, you can turn it off if you are in trouble.

In zotero: Edit -> Preference -> Advanced -> Config Editor -> Accept -> extension.zotero.httpServer.port -> double click and set to 8090

In zotero connector: Options -> Advanced -> Configuration -> Config Editor -> connector.url -> double click and set to http://127.0.0.1:8090/

It still be the issue for Poppler

Texmacs

Working.

Chinese input method

1
2
3
4
5
6
7
8
9
sudo apt install fcitx5 fcitx5-pinyin fcitx5-rime
# add or modify these three line
sudo vim /etc/systemd/user/cros-garcon.service.d/cros-garcon-override.conf
Environment="GTK_IM_MODULE=fcitx5"
Environment="QT_IM_MODULE=fcitx5"
Environment="XMODIFIERS=@im=fcitx5"
# make fcitx5 autostart
sudo vim ~/.sommelierrc
/usr/bin/fcitx5

Reference to here.

END

Enjoy writing and programming on chromebook.

 Previous post: Play around with HP ML350 G6 Next post: 記 LanguageTool 使用 | Using Languagetool 

© 2025 白色乌鸦|White Crow

Theme Typography by Makito

Proudly published with Hexo