WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Recent Posts

Pages: 1 [2] 3 4 ... 10
11
TCB Talk / Re: Max Boot to RAM Size
« Last post by curaga on February 20, 2017, 10:33:56 AM »
Some cache can't be purged (because it's used by the root tmpfs), so if you're ok with purging the cache, "sync; sudo cache-clear; free" will show right numbers.
12
TCB Talk / Re: Autologin as unprivileged user?
« Last post by curaga on February 20, 2017, 10:31:02 AM »
If you want a different name, use the user= bootcode. tcuser is the one with sudo privileges.
13
piCore Final Releases / Re: piCore-8.1.5 released
« Last post by Misalf on February 20, 2017, 07:35:59 AM »
I will prepare an  Xorg-big.tcz  for you and will upload it as soon as I have access to a faster internet connection.
14
TCB Talk / Re: Max Boot to RAM Size
« Last post by Misalf on February 20, 2017, 07:12:14 AM »
I was wondering what is a reasonable way to check the current RAM consumption.
Maybe this is interesting for the OP as well so I'm posting here.

I'm subtracting buffers and cache to avoid linux-ate-my-ram confusion and adding shared memory as it contains  tmpfs, which I believe includes zswap?
Using  awk  it looks like this
Code: [Select]
awk '/^MemTotal:/{ram=$2} /^Cached:/{ca=$2} /^Buffers:/{bf=$2} /^MemFree:/{fr=$2} /^Shmem:/{sh=$2} END {used=ram+sh-(fr+ca+bf); perc=(used/ram)*100; if (used>1048000) {used=int(used/1048576); unit="G"} else {used=int(used/1024); unit="M"}; printf "%d%sB %d%%\n", used, unit, perc}' /proc/meminfo
Does it make sense?
15
TCB Talk / Re: Autologin as unprivileged user?
« Last post by Adam on February 20, 2017, 07:01:36 AM »
Actually, you're right there. The autologin happens after backup restore, so you can edit /root/.profile and it should just work.
(add your user manually and backup, rather than using the user= bootcode)

Thanks curaga. So the right way to do this is by changing /etc/sysconfig/tcuser content and replace it with other user right?

Code: [Select]
tc@box:~$ cat /root/.profile
#!/bin/sh
NOAUTOLOGIN=/etc/sysconfig/noautologin
if [ -f "$NOAUTOLOGIN" ]; then
        if [ -s "$NOAUTOLOGIN" ]; then
                > "$NOAUTOLOGIN"
                exit
        fi
else
        if [ ! -f /etc/sysconfig/superuser ]; then
                clear
                TCUSER="$(cat /etc/sysconfig/tcuser)"
                exec /bin/login -f "$TCUSER"
        fi
fi
tc@box:~$
tc@box:~$ cat /etc/sysconfig/tcuser
tc
tc@box:~$
16
TCE Corepure64 / Re: Xfbdev
« Last post by polikuo on February 20, 2017, 05:25:12 AM »
Is the libXi (or possibly libinput) extension loaded?

You can get rid of several of the other warnings by loading the adwaita-icon-theme extension.

After some testing, I found out that:
1. "adwaita-icon-theme" is unnecessary for the toolbar buttons to work, it's not a part of the dep of Xorg-7.7
2. It doesn't look like a case of missing dependencies
3. Running firefox under Xorg-7.7 also gets the same warning

Code: [Select]
### boot code "base"
tce-load -i aterm wbar Xlibs Xfbdev Xprogs firefox flwm_topside
startx
### buttons unclickable ...
tce-load -i Xorg-7.7
### with Xfbdev still running, unclickable ...
kill `cat /tmp/.X0-lock`
startx
### buttons become functional while the terminal output remains the same.

Edit:
It may have something to do with gtk3

firefox-ESR (45.6.0) has the dep with gtk2 and the toolbar works just fine.

However, running firefox (51.0.1) with both gtk2 and gtk3 under Xfbdev doesn't help.
17
TCB Talk / Re: Translations
« Last post by curaga on February 20, 2017, 04:40:58 AM »
I would like to help translate in Russian, but can't do this in launchpad, because they need user with karma 100+
There shouldn't be any such limit, I've asked why in #launchpad.
18
TCB Talk / Re: Max Boot to RAM Size
« Last post by curaga on February 20, 2017, 04:28:03 AM »
RAM + swap + some more thanks to zswap.
19
TCE Bugs / Re: wifi.tcz info file
« Last post by curaga on February 20, 2017, 04:25:13 AM »
I think that redirect is wrong, 2>&1 needs to come after "> /tmp/wifi.log" for stderr to go there.
20
TCE Corepure64 / Re: Xfbdev
« Last post by Juanito on February 20, 2017, 03:33:03 AM »
Is the libXi (or possibly libinput) extension loaded?

You can get rid of several of the other warnings by loading the adwaita-icon-theme extension.
Pages: 1 [2] 3 4 ... 10