Erik the Tech Geek
Erik the Tech Geek
linux@hub.ridderby.se
Erik the Tech Geek
Rename channel and move to new hub

Erik the Tech Geek
  
!Hubzilla Support Forum
Hi,

I think of migrating some of my channels to our new HUB but I'd like to rename one of the channels during migration. I would like to try out the import-tool that make an online migration of my profile, I also like to try a backup on my old hub.

I figure there is a lot of questions here;
1.  Can I rename an existing channel? I do have access to the DB. If I do so, will there be implications for my contacts (i.e. will they adress me by the channel name or by some hidden channel ID that remains)?
2. If I import the profile to the other hub and make that the primary hub, what does that mean and can I remove the old channel if I like to?
3. How will it work from a users point of view with a channel on two nodes?
4. If I create a new channel with a better selected name and do export/import via JSON-files, will I get my contacts into the new channel then? And how will my contacts see my new versus old channel? How will they find my new one? Or will they see two friends, each with a different channel name, or will they only see the primary channel name?

Cheers,
Erik
Erik the Tech Geek
  
Well, I am quite new and have a quite slim profile so I will most likely start over again with one of my channels then.

Many thanks for the help!
Job Bameson
 
Is it possible to import a diaspora profile and continue somewhere on Hubzilla, keeping all the content?
Mike Macgirvin
  
We haven't written an importer for the content yet. We should be able to import the account metadata, the profile and try to re-connect with your friends. We've had this ability for 3-4 years and I don't think anybody has *ever* actually used it except my two test accounts. Now that recent export files contain all your posts (this was added late last year), our importer may not work anymore because the size of the file will probably exhaust memory.  You're likely to just get a white screen of death, but you're welcome to give it a go. This is a problem I intend to fix but it's a low priority. If somebody else wants to fix it, I can guide them through what I already know and what it will take to make it work. Basically we just have to invoke a streaming json library and import one post at a time instead of trying to load it all in one chunk. It's a little bit of work but no rocket science and there are a few existing libraries to do this
Erik the Tech Geek
  
Erik the Tech Geek updated their cover photo

Image/photo
Erik the Tech Geek
  
Erik the Tech Geek updated their profile photo

Image/photo
Erik the Tech Geek
  
@Hubzilla Support Forum+

Hi again ;)

Will I expect any troubles if I use IDN domains for my hubzilla? Many good name in Swedish make used of ÅÄÖ thus IDN.

BR
Erik
Mike Macgirvin
  
The best I can tell you is that I don't know. We haven't tested it.

About 4 years ago a suggestion was made that we support IDN and I made a quick attempt to convert the display names to/from punycode and use punycode internally. The person who asked for it simply said "it didn't work" and abruptly closed his account without providing any feedback about what didn't work. I removed the change I made at the time since it apparently wasn't effective.

If you are willing to help us make this work, my recommendation would be to use the punycode (xn--) name as the official hostname when you setup the server. This should work correctly throughout the application and throughout the network. Then help us figure out where we need to modify the software to display it as unicode on our webpages.
Eriks Gröna Tankar
 
As you have seen I decided to go for a try and post tickets along the way. The hub is aiming for the local transition movement and I think it is important to show that when things does not work or one wants something to be changed this is possible. Compared to the commercial giants where such things is out of questions.
Mike Macgirvin
  
Thanks for that. I've fixed most of those already, and well on the way to picking up the stragglers.
Change to https after installation

Erik the Tech Geek
  
@Hubzilla Support Forum+

Hi,

According to the install guide I shall install Hubzilla using the URL I intend to use in the final installation. However, due to the risk of installing Hubzilla when the SSL certificate is just issued I'd like to install Hubzilla first and change from http to https once the hub is properly installed. Hijacking installations between the certificate is issued and before the installation is finished seems to be a common way to hack wordpress-sites according to wordfence.

I would guess that if I install using App::$config['system']['directory_mode'] = DIRECTORY_MODE_STANDALONE
during installation to prevent other nodes from seeing mine and change that to DIRECTORY_MODE_NORMAL once properly installed and secured might help. Or am I way of here?
h.EAR.t
  
When switching to https you lose many embeded images, as those links are http and as those posts have been written and are not changed. Just saying to give you an example.
I went through this, it wasn't nice and I regreted not liatening. :)
Mike Macgirvin
  
This was a problem a few years ago but I think we fixed the major issues so it should work OK. Try not to make too many friends or make thousands of posts before switching, because when you switch it is going to require changing URLs all over the network. This should happen automatically for connections and stuff. Your existing posts won't be modified and those permalinks will still point to the http link.

Don't enable any network addons like Diaspora or GNU-Social or Pubcrawl. Any connections you make on these networks prior to changing will be lost, although I don't believe Diaspora will even connect with an http resource in the first place.
Erik the Tech Geek
  
Well, I plan to switch once I finished the installation procedure. Possibly I login first, but no more than that.
Everything else will be dealt with once I switched.

Anyhow I figure it is worth trying then.

Thanks a million!
Sweden is heading towards Digital Currency

Erik the Tech Geek
  
While digital currencies are for real and has been around for a while, in Sweden digital currency is on the table. Wounder if they going to take learning from BitCoin-related frauds?

ComboJack Trojan Replaces Cryptocurrency Addresses Copied to Windows Clipboard

Image/photo



Security researchers have discovered a new malware strain that is capable of detecting when users copy a cryptocurrency address to the Windows clipboard. The malware works by replacing this address with one owned by its author.
Isolating social media surfing using sudo in Linux

Erik the Tech Geek
  
Over time I have grown accustom to surf the net using Firefox and NoScript. Virtually this means that only java script from approved sites are allowed to run, almost everything is blocked by default. However useful this is and however accustomed I am it is still an intrusion is easy browsing. Problem is - I don't want to open up for java scripts globally. What to do?

It is possible to start Firefox as a limited and specific surf user via sudo. I use the very same method to runt Firefox for my company isolated from my personal user so I actually have several different and independent surf accounts.

What I virtually do is to create an additional account for surfing that is limited (no groups beside its own) with blocked password (just a star as password in shadow).

Secondly I allow my user to sudo into the surf user without password - I want to protect my own account from the surf account, not the other way around.
This is the line I use:

normalaccount ALL = (surfaccount) NOPASSWD: ALL


Before I can start firefox I need to open up the X-server for other users. This is a hazardous thing to do and a recognized weak spot. Still I am sole user on my system. Open up only to the local surf-user using:

$ xhost + si:localuser:username-of-the-surfaccount


I can then start firefox using:

$ sudo -u surfer firefox &


And lastly I edit the KDE-menus and add the above command as an own firefox start button.

If I got everything right I will now start firefox as the surf-user that lacks all permissions to make changes to mine or other files.

The player can off course refine this by using firefox as the login shell for a user and just run sudo -iu other-user but that would disable the ability to use profiles in Firefox, another possibility I make use of :)
Erik the Tech Geek
  
@Hubzilla Support Forum+

Hi,
According to the documentation there is supposed to be several web page templates in a Hubzilla installation.

I installed according to the documentation using git-version of both hubzilla and plugins and have no web page templates available that I can find. I installed just last week, i.e. in near time.

Obviously I am using git trunk unless only published versions are merged into the main branch. I never specified any branch or so but followed the git command specified.

Any help please?
Erik the Tech Geek
  
Well, that clarifies a lot and settle the expectations :)

I am very satisfied with Jekyll for my other web pages and figure I will learn Comanche as well. Without templates it just takes longer time to first page but also mean I will have the pages more as I want them ;)

Thanks!
Erik
Andrew Manning
  
You might want to look at the example of the Hubzilla project webpage itself:

https://github.com/anaqreon/hubzilla-website/blob/master/README.md
Andrew Manning
  
The templates can only be installed/modified by the hub admin, but an option is to use the zen template, which allows the layout to completely determine the page structure and content. It is also important to note that by default you cannot load your own JavaScript and such. That requires AllowCode permission from the admin on a per channel basis.