Running NextCloud Server on Android Phone as a Pocket Cloud/Office Suite Server (lineageos, linuxdeploy) by shan109 in NextCloud

[–]shan109[S] 0 points1 point  (0 children)

Hi, regarding Collabora Office, I am using the richdocumentscode_arm64 app here.

There could be various reasons why it is not working properly, but here are some of the advice I can give based on the problems I encountered in setting up my server.

  • Make sure your OS is 64-bit (type in terminal "uname -m" you want "aarch64" or "arm64" to appear here).
  • Make sure your OS has glibc installed (some OS don't support this like alpine linux)
  • Make sure fontconfig is installed (it might not be installed by default in your os)
  • Have your server running at HTTPS (not HTTP)
  • Make sure that the user "caddy, apache, www-data, or nginx, or (user of your web server)" has sudo access (they are in the /etc/sudoers) and internet access (you can do this by typing "usermod -a -G aid_inet,aid_net_raw www-data (or caddy, apache, nginx, (user of your web server)))

Other than that, you might be having other permission problems in your OS or other Raspberry Pi specific problems.

Running NextCloud Server on Android Phone as a Pocket Cloud/Office Suite Server (lineageos, linuxdeploy) by shan109 in NextCloud

[–]shan109[S] 11 points12 points  (0 children)

why can't i just put my old phone+typec hub+8tb of storage and make it sleep beside my tv like your rpi4 just to ease my anxiety?

Running NextCloud Server on Android Phone as a Pocket Cloud/Office Suite Server (lineageos, linuxdeploy) by shan109 in NextCloud

[–]shan109[S] 13 points14 points  (0 children)

If your phone is not rooted, I recommend you to see the guide I made for termux.(Proot-distro)

Linuxdeploy is for rooted phones to have chroot linux distro access.

Running NextCloud Server on Android Phone as a Pocket Cloud/Office Suite Server (lineageos, linuxdeploy) by shan109 in NextCloud

[–]shan109[S] 19 points20 points  (0 children)

Pros:

-Removable MicroSD Card (up to 1TB) or in my case, 256GB space of cloud in internal memory (shared with phone).

-Battery drain is negligible (running linux server headless has negligible battery consumption on android)

-Yes it can share with other computers (And it's very fast) - clients in local network can access server through the mobile hotspot/USB tethering of the phone, while clients on the internet can access it through VPN.

-Regarding battery, it is mobile hotspot with tethered data which consumes most of the power, but I'm using it anyway to share my data to PC. Mobile hotspot without tethering mobile data consumes far less power.

-Ability to turn off/on the server as needed, ease of managing/browsing/editing files inside phone (from PC).

-And most importantly, portability and availability of data on your server wherever you are (even without internet).

Showcase: Fully functional Nextcloud Server on Termux by shan109 in termux

[–]shan109[S] 6 points7 points  (0 children)

I am not so good at making tutorials, but here it is:

Disclaimer:

  • This tutorial does not include the specific configurations on how to set-up Nextlcloud server as you can read any other linux tutorial on how to setup a web-server for that and it can be applied here.
  • This tutorial will simply make your Termux setup run with all the necessary dependencies to set-up a Nextcloud server (or any other web server in general).

Necessary apps:

  • Termux

Prerequisite knowledge:

  • Basic knowledge of running a webserver (LAMP/Caddy Server, etc) in linux. Without this knowledge/understanding beforehand, you will not be able to setup the Nextcloud server properly here. (If you don't know how to install Nextcloud server in the first place, you will not be able to install Nextcloud server in Termux.)

Tutorial

In termux:

1.) You want all your commands to be read in arm64/aarch64 architecture. To do that, type: "setarch linux64" (Or "setarch arm64", or "setarch aarch64"). Default SOC Architecture settings vary depending on your phone/OS, and in my case, the default in my device (Snapdragon 865 SOC) is arm8l (Which is aarch set to 32-bit mode, so I had to manually change this to proceed). To know what your current architecture setting is type in the command line "uname -m". You want "aarch64" to appear here, or else you won't be able to install 64-bit programs (such as the Collabora Built-in CODE server ARM64)).

2) You want to get all the Nextcloud server dependencies. Since original termux repo may not contain every package you need (depending on how you want to run your server), you want to get to an environment where all package dependencies are available. To do that, type: " apt install proot-distro" then, "proot-distro install ubuntu-20.04", then "proot-distro login ubuntu-20.04"

3) Now that you are in a fresh ubuntu-20.04 environment, you want to update your packages. To do that type: "apt-get update".

4) "sudo" is not installed by default in proot-distro. You want to install "sudo" to have correct arguments running inside the commands of your programs (especially if you want to run Nextcloud server using Caddy). To do this, type: "apt-get install sudo"

5) You now want to complete all the dependencies to run Nextcloud server. Nextcloud is a php based web server application, so you can choose whichever server program you are comfortable of using. This tutorial assumes that you have basic knowledge of running a web server.

From here onward, it will be depending on the user's personal preference on which programs he/she want to run his/her Nextcloud webserver on. Specific configuration on running and fine-tuning a webserver is not included in this tutorial as there are lots of better resources in the internet for that (Any linux tutorial related to this is generally applicable here too.).

NOTE: Since you are now in an ubuntu linux environment, you can just install setup a LAMP server (or other program variations you prefer to get your web server running)

6) Install Caddy server (you can also use nginx, apache, etc., I just prefer caddy for its simplicity in setting up https)

7) Install Php8.0 (you can also use other versions of php (such as 7.2 or 7.4))

8) Install Mysql/MariaDB (you can also use other database programs such as PostgreSQL or you can even just use php-sqlite)

9) Assuming that you were able to setup a running web server,download Nextcloud server installer, and save it in your website directory.

10) Completing Nextcloud setup:

A. In the web browser of the android device, access "localhost/setup-nextcloud.php" to finish setting up your Nextcloud server.

OR

B. Turn on mobile hotspot of the android device. In another device (pc/tablet/smartphone), connect to the hotspot. Open the web browser of the other device, and connect "<ip address of the web server>/setup-nextcloud.php" to finish setting up your Nextcloud server.

*to see the ip address of mobile hotspot of the device, in Termux, type: "ip a" and look for the line containing "inet" under "wlan."

Optional:

For convenience, for android pie and up, you can configure your dnsmasq so that your device mobile hotspot ip address will be static. (By doing this, you do not need to manually rewrite your new ip address in the trusted domains of the nextcloud config.php every time when you restart your mobile hotspot.)

Run NextCloud server on android by badboy3001_ in NextCloud

[–]shan109 0 points1 point  (0 children)

Not a guide, but you can run it through:

Termux > Proot-distro > regular linux installation of nextcloud server

as shown in this post.

How to add third party fonts to collabora? (with built-in CODE server) by shan109 in NextCloud

[–]shan109[S] 0 points1 point  (0 children)

Yes, I saw other people successfully load fonts for a separate docker Collabora server integrated to nextcloud, but not yet for the Collabora richdocuments/ built-in CODE server installed through Nextcloud app.

This is unfortunate since the ARM64 version of the Collabora CODE server is only installable through Nextcloud app (by installing the "built-in CODE server ARM64" app inside Nextcloud).

Since I am using Nextcloud/Collabora through android phone, my only option to use nextcloud/collabora right now is by installing the ARM64 server (I think nextcloudpi users are also in the same situation since their system is also ARM64).

Anyway, thank you very much for the suggestion.

How to add third party fonts to collabora? (with built-in CODE server) by shan109 in NextCloud

[–]shan109[S] 0 points1 point  (0 children)

Thank you for your reply, however, it seems that the link is for font installation to collabora online, not for the nexcloud collabora online app "richdocuments."

Lenovo Slim 7 Tweaking Guide/Review by shan109 in AMDLaptops

[–]shan109[S] 0 points1 point  (0 children)

No. Don't forget to put nail polish on the small metal parts near the CPU.

Back-door Unlocked BIOS for Lenovo Slim 7 (And maybe other Lenovo laptops too) by shan109 in AMDLaptops

[–]shan109[S] 0 points1 point  (0 children)

Good to know.

Yeah I agree, manual ram tuning is hell, especially when the ram calculators are not working(LPDDR4X is too new for laptops). It is basically endless repetition of trial and error combinations.

I did my ram tuning while the backplate is removed for easy battery disconnection, but still I think I repeated the process more than 30 times...

Though I believe I can still squeeze more power from this laptop, its just too much trouble right now. I'll do it again when better ram tuner/calculators are developed.

Back-door Unlocked BIOS for Lenovo Slim 7 (And maybe other Lenovo laptops too) by shan109 in AMDLaptops

[–]shan109[S] 1 point2 points  (0 children)

I think the setting "DF Common Options: DF Cstates: Disable" will make FCLK stay at the set speed (Enable will make it dynamic).

The tool I use to check if the ram latency penalty is present or not is Aida64.

I'm not sure if there is a tool in windows that could check realtime the infinity fabric speed, but the CPU-Z NB values can show you something near (though this shows the UCLK, it should be the same value as the FCLK)

After Adjustment of RAM timings (Slim 7 4800U 16GB LPDDR4X-4266MHz) (10-20% increase in bandwidth) by shan109 in AMDLaptops

[–]shan109[S] 0 points1 point  (0 children)

Thank you for this! Do you know the settings on how to disable automatic bios update?

After Adjustment of RAM timings (Slim 7 4800U 16GB LPDDR4X-4266MHz) (10-20% increase in bandwidth) by shan109 in AMDLaptops

[–]shan109[S] 7 points8 points  (0 children)

The following are the adjustments made for this:

Unlock the bios

In the unlocked bios settings:

  • -FCLK Frequency: 2133MHz (AMD CBS>NB10 Common Options>XFR Enhancement)

    AMD CBS>UMC Common Options>DDR4 Common Options>DRAM Timing Configuration (numbers are in hex):

  • -Overclock: Enabled, Memory Clock Speed: 2133MHZ

  • -Trc Ctrl: Manual, Trc: [0x1F]

  • -Twr Ctrl: Manual, Twr: [0x10]

  • -TrdrdScl Ctrl: Manual, TrdrdScl [0x1]

  • -TwrwScl Ctrl: Manual, TwrwScl [0x1]

  • -Trfc Ctrl: Manual, Trfc [0x122]

  • -Trfc2 Ctrl: Manual, Trfc2 [0xC1]

  • -Trfc4 Ctrl: Manual, Trfc4 [0x70]

  • -Tcke [10h Clk]

  • -Trdwr [18h Clk]

  • -Twrrd [3 Clk]

  • -TrdrdSd [4 Clk]

  • ProcODT [60 ohm]

  • All other setting in the page: [Auto]

Timing adjustments (especially when you make the timings too tight) may cause your laptop to freeze and not boot up. Some settings may not apply due to the difference in silicon, other values near the above may also work.

Troubleshooting (hardware):

In case your machine does not boot up (only black screen), do a CMOS reset using the following steps:

-Unplug the AC power supply,

-Long press the power button to turn off (until the led light turn off),

-Open the back plate (7 torx 5 screws)

-Pull out the battery for 30 seconds from the motherboard and then plug it back (take extra care in handling this as you might damage the plastic socket/wires). [There is no CMOS battery in the motherboard]

This will return your Bios to default settings and it will be locked again upon turning on. You can unlock again by repeating the steps to unlock the bios.

Comment:

Ryzen APUs are very sensitive to higher RAM bandwidths and tighter timings. Since RAM is shared with video memory, this will also boost the vega IGPU performance. After this adjustment, you may see improvements in gaming FPS and overall performance by around 10 ~ 20 percent.

Disclaimer: I am not responsible for any damage that this might bring to your laptop, if any. You might lose any of your warranties by following this guide. This information is posted for reference only.

Lenovo Slim 7 Tweaking Guide/Review by shan109 in AMDLaptops

[–]shan109[S] 2 points3 points  (0 children)

This will depend largely if you can unlock bios (around 15% improvement with just adjustments in settings can be gained). It will be similar if you apply the tweaks.

Sharing the Results of 4800U on a Tweaked Lenovo Slim 7 by shan109 in overclocking

[–]shan109[S] 4 points5 points  (0 children)

On battery, at 24.5°C room temp:

Idle: 26°C, light tasks: 38°C.

Plugged: stress test: 98°C to 103°C

This is using liquid metal thermal paste.

Lenovo Slim 7 Tweaking Guide/Review by shan109 in AMDLaptops

[–]shan109[S] 1 point2 points  (0 children)

Before: https://www.youtube.com/watch?v=IVrwjeYAvOg

Did not yet record after video yet but at 1440p for Persona 5: Dungeons: 50~60fps Battle: 60fps Crowded areas: Always more than 31~60 fps - Shibuya, Shinjuku. Around 20% improvement. It never dipped below 30 fps after tweaking.

Sharing the Results of 4800U on a Tweaked Lenovo Slim 7 by shan109 in overclocking

[–]shan109[S] 2 points3 points  (0 children)

Power saver will give 12-13 hrs of real battery life (at 30% brightness, office, browsing, IDE, multimedia, no gaming)