You are not logged in.

#126 2010-07-06 10:02:51

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: Put your $HOME in .home!

I'm using libetc for two weeks already, but haven't managed to make bash read my .bashrc. Can someone help?

Offline

#127 2010-07-06 10:13:50

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: Put your $HOME in .home!

RaisedFist wrote:

I'm using libetc for two weeks already, but haven't managed to make bash read my .bashrc. Can someone help?

I ignore .bashrc (and .bash_profile, .xinitrc and .inputrc). I have a ~/.config/bash/bashrc file that's linked to from my home directory.
I set the whole shebang up in .bash_profile as well.

TBH I can't remember why I did that, but it works okay.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#128 2010-07-06 12:39:08

ruscook
Member
From: Sydney Australia
Registered: 2007-08-27
Posts: 105
Website

Re: Put your $HOME in .home!

SpeedVin wrote:
Shapeshifter wrote:
graysky wrote:

How can one change $HOME to this paradigm of /home/USER/.home without roaching things?

If you're not setting the user up from scratch, you can simply edit /etc/passwd where you'll find a line like:

shapeshifter:x:1000:100:,,,:/home/shapeshifter/.home:/bin/zsh

Change the path in the middle to your desired directory, and then move all your configs to it right after, or you'll make a mess of things. Or you can play safe and instead of editing a file you can do

usermod -d your-new-desired-home-path

and again move the configs.

Ohh thanks that work's I got clean home directory wink
I got one question about bash.
Bash use config's from /home/user or /home/user/.home can I delate them form my /home/user?

I've just tried this and while helpful for home/user clutter. The one problem appears  to be Gnome's Desktop and Downloads directories now get created in /home/user/,home/
as /home/user/,home/Desktop and /home/user/,home/Download

As these are data directories I'd prefer they remain at the /home/user level.

Is there a fix for this?
thanks Russ

Offline

#129 2010-07-06 13:27:06

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Put your $HOME in .home!

ruscook wrote:

I've just tried this and while helpful for home/user clutter. The one problem appears  to be Gnome's Desktop and Downloads directories now get created in /home/user/,home/
as /home/user/,home/Desktop and /home/user/,home/Download

As these are data directories I'd prefer they remain at the /home/user level.

Is there a fix for this?

dirty fix;

/home/user/.home # ln -s ../Desktop
/home/user/.home # ln -s ../Downloads

ᶘ ᵒᴥᵒᶅ

Offline

#130 2010-07-06 13:31:42

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: Put your $HOME in .home!

ruscook have you tried adding Desktop and Downloads to LIBETC_IGNORE? I don't have them so haven't tried myself.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#131 2010-07-09 08:58:36

Sloonz
Member
Registered: 2010-03-02
Posts: 38

Re: Put your $HOME in .home!

I can reproduce the dlsym problem. I'll look at it this week-end.

Offline

#132 2010-07-09 09:16:30

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: Put your $HOME in .home!

Thanks. smile


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#133 2010-07-11 22:58:40

FxF
Member
Registered: 2010-07-08
Posts: 8

Re: Put your $HOME in .home!

Shapeshifter wrote:

my $HOME is in /home/shapeshifter/.home

That means that all the apps will put their dotfiles in the .home folder, instead of trashing my "real" home folder. I have all the folders I like in /home/shapeshifter, like docs and images and whatever, but the configs and dots go all in .home. Brilliant I think! smile

Your method -- or alternatively libetc that scj also suggested -- seems well-suited to dealing with the problem of configuration file 'collisions' that can occur when a system is set up to boot two or more Linux distros but with only a single /home/<username> directory.

I believe that the usual practice for such for such dual-/tri/quad-boot systems is to make a unique /home/<username> directory for each Linux distro to prevent config file problems, but I'm thinking that I could alternatively create .arch, .gentoo, .lubuntu, etc. subdirectories for config files under /home/FxF and point $HOME for each of the distros to the appropriate folder.

Has anyone actually done this, and if so, are you happy with the results?

Offline

#134 2010-07-19 10:14:12

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Put your $HOME in .home!

Sloonz wrote:

Okay, just found the origin of the chromium issue :
$ mkdir test
$ cd test
$ rmdir ~/test
$ ls
[crash of ls, shell and terminal]
And yes, chromium-sandbox delete its current working directory — don't ask why.

I'll also look at greasemonkey issue. I never managed to get greasemonkey working, but never linked it to libetc (I thought I was probably missing something).

For the games, I don't have 3D drivers, so I can't help you, sorry. Beside, debugging non-open-source program is way too hard. But perhaps fixing the greasemonkey & chromium issues will fix these games.
Are they native apps or wine apps ?

I really can't understand how you fixed the chromium issue.

Offline

#135 2010-07-19 10:24:57

Sloonz
Member
Registered: 2010-03-02
Posts: 38

Re: Put your $HOME in .home!

gtklocker wrote:

I really can't understand how you fixed the chromium issue.

Easy :
http://github.com/sloonz/libetc/commit/ … 84b#diff-1

Offline

#136 2010-07-19 15:12:20

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Put your $HOME in .home!

I installed libetc-experimental-git (which sources is your git repo) and it works! Thanks man!

Offline

#137 2010-07-19 15:25:30

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Put your $HOME in .home!

Oh, now I have another, more serious problem!

Whatever command I give I take:

as: symbol lookup error: /usr/lib/libetc.so.0: undefined symbol: dlsym

What I have on my .zshrc is

export LD_PRELOAD=libetc.so.0

Help help!!

Offline

#138 2010-07-19 15:52:24

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: Put your $HOME in .home!

See previous page(s). I resolved that by building libetc manually from source. Others solved it by rolling back a version.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#139 2010-07-19 16:00:26

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Put your $HOME in .home!

I installed libetc-experimental-git so chromium can run good... it seems I'll install libetc, with only the patch for chromium.

EDIT! I can't patch the file, things have changed very much! Ooh, do something please!

Last edited by gtklocker (2010-07-19 16:22:55)

Offline

#140 2010-07-19 17:03:10

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: Put your $HOME in .home!

gtklocker wrote:

I installed libetc-experimental-git so chromium can run good... it seems I'll install libetc, with only the patch for chromium.

EDIT! I can't patch the file, things have changed very much! Ooh, do something please!

Sorry that was my laziness. I meant I built libetc-experimental-git manually, not libetc.

In my mind libetc-experimental-git *is* now libetc. smile

Last edited by skanky (2010-07-19 17:03:41)


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#141 2010-07-19 17:06:24

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Put your $HOME in .home!

I take that error with libetc-experimental-git:

https://bbs.archlinux.org/viewtopic.php … 72#p794672

Offline

#142 2010-07-19 18:11:36

Sloonz
Member
Registered: 2010-03-02
Posts: 38

Re: Put your $HOME in .home!

grmbl, I have reproduced the bug one week ago, and now I can't reproduce it anymore…
I hate Heisenbugs.
I just tried to push a fix. Those who can reliably reproduce the problem, please try wink

Offline

#143 2010-07-19 18:53:43

gtklocker
Member
Registered: 2009-09-01
Posts: 462

Re: Put your $HOME in .home!

I just install libetc-experimental-git right after having installed and enabled libetc. and... it happens hmm

Offline

#144 2010-07-19 19:17:07

Sloonz
Member
Registered: 2010-03-02
Posts: 38

Re: Put your $HOME in .home!

Does your makefile contains (line 12)
gcc rewrite.o libetc.o ${LDFLAGS} -o libetc.so.${VERSION}
or
gcc ${LDFLAGS} rewrite.o libetc.o -o libetc.so.${VERSION}
?

Offline

#145 2010-07-21 12:32:51

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: Put your $HOME in .home!

Sloonz wrote:

grmbl, I have reproduced the bug one week ago, and now I can't reproduce it anymore…
I hate Heisenbugs.
I just tried to push a fix. Those who can reliably reproduce the problem, please try wink

Just done makepkg -i and it so far it's looking good. Many thanks. smile


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#146 2010-07-21 21:28:00

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: Put your $HOME in .home!

Could libetc be the cause of some of my FFx add-ons (inc. Greasemonkey) causing it to fail to start? What would I need to do get output that might be useful? strace? I suppose I can just clear LD_PRELOAD, link to the mozilla dir and run it. Anything else?

I'm back on the relevant machine tomorrow so can try a few things then if I get a few minutes.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#147 2010-07-22 07:45:17

Sloonz
Member
Registered: 2010-03-02
Posts: 38

Re: Put your $HOME in .home!

Greasemonkey had a problem some week (months?) ago, but it should be fixed now.

> I suppose I can just clear LD_PRELOAD, link to the mozilla dir and run it.
Yes, and if that fixes the problem, that's libetc fault. If you can reproduce a problem, just let me know wink

> strace?
For big applications like firefox, finding the problem with strace is like finding a needle in a haystack, unless you can isolate the exact moment when things mess up.

Offline

#148 2010-07-22 09:00:04

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: Put your $HOME in .home!

Sloonz wrote:

Greasemonkey had a problem some week (months?) ago, but it should be fixed now.

> I suppose I can just clear LD_PRELOAD, link to the mozilla dir and run it.
Yes, and if that fixes the problem, that's libetc fault. If you can reproduce a problem, just let me know wink

> strace?
For big applications like firefox, finding the problem with strace is like finding a needle in a haystack, unless you can isolate the exact moment when things mess up.

Just tried it, thanks. Made no difference. So it's *not* libetc.

The FFx bug that seems to be causing the issue refers to symlinks - I did wonder if there was some similar underlying system result that was giving the same effect. Anyway, ruled that one out.

I'll track the bug and wait. smile


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#149 2010-08-13 21:34:31

Sloonz
Member
Registered: 2010-03-02
Posts: 38

Re: Put your $HOME in .home!

LD_PRELOAD=libetc.so VBoxSDL --startvm xp
Frack, another libetc-induced segfault...

LD_PRELOAD=/usr/lib/libetc.so VBoxSDL --startvm xp
WTF ?! works fine

LD_PRELOAD=libetc.so screen
Sure, works fine

LD_PRELOAD=/usr/lib/libetc.so screen
Totally ignore libetc.so now ! Doesn't make any sense !

LD_PRELOAD=libetc.so firefox/claws-mail/ls/xterm/whatever
works fine

LD_PRELOAD=/usr/bin/libetc.so firefox/claws-mail/ls/xterm/whatever
works fine, too

Okay, I give up. The LD_PRELOAD method has too many problem. I abandon libetc, and I'm starting a FUSE filesystem which will do the job without this kind of weird bug. Someone think it's worth making a "last" version of libetc (tagging current commit as 0.5 in git ?)

Offline

#150 2010-08-15 10:12:30

Sloonz
Member
Registered: 2010-03-02
Posts: 38

Re: Put your $HOME in .home!

First working version smile : http://aur.archlinux.org/packages.php?ID=39893
Works just fine so far, including VirtualBox and screen. The pam_mount configuration is a bit more difficult comparing to just definig LD_PRELOAD in .xsession though…

Offline

Board footer

Powered by FluxBB