Booting lonely Linux

From: Manthorp29 Jan 2016 12:46
To: Drew (X3N0PH0N) 81 of 101
*\o/* *\o/* *\o/* *\o/* *\o/* *\o/*  (imarealboy)  (hug)

Thanks Xen, thanks Ant!!!
From: Drew (X3N0PH0N)29 Jan 2016 12:49
To: Manthorp 82 of 101
(cheer)
From: Drew (X3N0PH0N)29 Jan 2016 13:10
To: Manthorp 83 of 101
I'm sure you won't want to touch this now for a while *but*...

You're running it on a virtual terminal now which is all good and that but you don't have much control over how it looks. You can set the font (from a very limited range of pixel fonts) and that's about it.

*If* you booted to a window manager and ran your script in a terminal within that you'd then be able to choose a nicer font (a ttf font), set up the colours and also (maybe more importantly) support any emoji people might use in their tweets (by installing symbola, should be in the repos) which can look quite nice on the terminal, like so.

I'd be happy to write you a config for i3 which launches a terminal fullscreen and runs your script.

 
From: koswix29 Jan 2016 13:16
To: Drew (X3N0PH0N) 84 of 101
What that font?
From: Drew (X3N0PH0N)29 Jan 2016 13:25
To: koswix 85 of 101
Ubuntu Mono. I really like the Ubuntu fonts.

(Tangentially related, Red Hat just released a libre font which is also rather nice)
EDITED: 29 Jan 2016 13:32 by X3N0PH0N
From: Manthorp29 Jan 2016 22:49
To: Drew (X3N0PH0N) 86 of 101
Firstly, damn blast shit and bugger: it's suddenly stopped booting into the application.  It autologs-in ok, but then stops on the attached error message.  Have you any thoughts or sage advice?

(Edit: mended, thank fuckery.  I reinstalled twit)


Secondly, I rather like the minimal interface, but I agree that a little low-key tweaking as per your illustration would improve the legibility, so I think I'm up for trying it
EDITED: 30 Jan 2016 00:30 by MANTHORP
Attachments:
From: Drew (X3N0PH0N)30 Jan 2016 00:32
To: Manthorp 87 of 101
Looks like Gzip doesn't like what it's getting from Twitter. Is it persistently doing this or is it a one off? Also check you're actually connected to the net.

(I'll get the script and test it here. In the meantime I'll make another post with instructions as to how to launch this all in a WM)
 
From: Drew (X3N0PH0N)30 Jan 2016 02:01
To: Manthorp 88 of 101
First you need to edit /etc/profile and comment out that line you added (put a # at the start of the line) since we don't want it auto-running that script on the login terminal any more.

Now install i3 and the stuff needed to make it usable.
 
Code: 
sudo apt-get install xorg xinit i3 i3status dmenu



I *think* that'll pull in all the needed dependencies on Debian.

Now make/edit ~/.bash_profile to start X automatically:
 
Code: 
nano ~/.bash_profile



And add this at the bottom (if the file is empty just add this):
 
Code: 
[[ -z $DISPLAY && $XDG_VTNR -le 3 ]] && startx



(This assumes that you're logging in on VT3 or lower, if you're not we'll cross that bridge then)

Now make/edit ~/.xinitrc to make it start i3 when X starts:
 
Code: 
nano ~/.xinitrc



And add this at the bottom:
 
Code: 
exec i3


Now make the i3 config file:
 
Code: 
nano ~/.i3/config

And put the following in it:
 
Code: 
set $mod Mod4

# start a terminal
bindsym $mod+Return exec xfce4-terminal --hide-menubar

# kill focused window
bindsym $mod+Shift+q kill

# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id dmenu_run

# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"

new_window 1pixel
hide_edge_borders both

exec --no-startup-id xset -dpms;xset s off
exec --no-startup-id xfce4-terminal -e "node /path/to/index.js" --hide-menubar --hold

Reboot and it *should* work. The i3 bar shouldn't show, but if it does let me know and I'll sort it (I'm using a more recent i3 than Debian has and the config has changed so it's tricky to test).

That's a very minimal config. All you can do is close windows (win+shift+q), open a terminal (win+enter) and also launch programs by pressing win+d and then typing their name. To exit i3 press win+shift+e.


 
EDITED: 30 Jan 2016 02:02 by X3N0PH0N
From: Manthorp30 Jan 2016 09:17
To: Drew (X3N0PH0N) 89 of 101
Wow!  Thanks Xen.  I have to make the house a little less squalid for guests now, but I'll try this as soon as I can.
From: koswix30 Jan 2016 09:41
To: Drew (X3N0PH0N) 90 of 101
In Windows he'd just need to put a shortcut to LONELY.EXE I'm the startup folder.

Just sayin'.

:C
From: Drew (X3N0PH0N)30 Jan 2016 11:04
To: koswix 91 of 101
Which, again, is exactly what you'd do on a consumer level distro with a consumer level desktop.
From: koswix30 Jan 2016 11:15
To: Drew (X3N0PH0N) 92 of 101
(nod)

I was talking about windows 10 IOT edition for raspberry pi.
From: Drew (X3N0PH0N)30 Jan 2016 11:31
To: koswix 93 of 101
Yeah, by 'desktop' I meant desktop environment. So Gnome or KDE or Unity or Cinnamon or Mate or Pantheon. As opposed to a niche tiling WM.
From: Peter (BOUGHTONP)30 Jan 2016 15:35
To: Drew (X3N0PH0N) 94 of 101
I forgive you only because you revealed i3 to me.

Seems to be much more what I want compared to awesome - at least based on the screens+docs on the website; dunno when I'll have time to get switched over. :(

From: koswix30 Jan 2016 18:58
To: Drew (X3N0PH0N) 95 of 101
Yes, but by Windows 10 IOT edition for raspberry pi I meant "hahaha wtf are Microsoft on? Do they seriously expect /anyone/ to ever use that heap of shit? I mean, they sent me an Intel galileo board f with a windows 8 build that runs on it, for /free/, and I didn't even have the deceny to boot it up before I formatted the SD card
From: Drew (X3N0PH0N)31 Jan 2016 04:13
To: Peter (BOUGHTONP) 96 of 101
I fucking love i3.

I'd tried to use tilers before, just to see why people like them so much, and never got on with them. I certainly never thought I'd switch to one, I was just curious. But i3 just instantly clicked for me.

I use it without any bar now (bar gradually seemed less useful), just keyboard based window management and dmenu (edit: just switched to rofi, it's pretty great) for launching.
EDITED: 31 Jan 2016 10:42 by X3N0PH0N
From: Drew (X3N0PH0N)31 Jan 2016 04:13
To: koswix 97 of 101
Ahh, yes, I have used Windows 10 on a Pi briefly and it was fucking ridiculous.
From: Manthorp31 Jan 2016 22:56
To: Drew (X3N0PH0N) 98 of 101
I've got as far as creating the /.i3/config file, but when I drop in the text and try to save, I get [ Error writing /home/pi/.i3/config: No such file or directory ]  I've tried starting the line

nano ~/.i3/config

with 'sudo' in case it's a permissions thing, but no dice.  I can't see a folder '.i3' under /home/pi btw.

cd /.i3 returns 'no such file or directory'
EDITED: 31 Jan 2016 22:59 by MANTHORP
From: ANT_THOMAS31 Jan 2016 23:01
To: Manthorp 99 of 101
in /home/pi run 

ls -a

-a shows hidden folders, which folders with a leading "." are hidden.

If it isn't there run

mkdir /home/pi/.i3
From: Manthorp31 Jan 2016 23:29
To: ANT_THOMAS 100 of 101
Thanks for that Ant.  I've managed to create the config file & rebooted.  It now reboots to the attached screen.  I'll go through Xen's procedure again & see if i can spot any mistakes in what I've done.

In the config file, should the address of the file be written as:

exec --no-startup-id xfce4-terminal -e "node /home/pi/index.js" --hide-menubar --hold

or:

exec --no-startup-id xfce4-terminal -e "node index.js" --hide-menubar --hold ?

I've stuck with the second of those lines.

I've ploughed through Xen's (very clear) instructions a couple of times and can't see any errors in what I've done.

I'm assuming that raspi-config should continue to be set to log me into the console, not the GUI?
EDITED: 1 Feb 2016 00:05 by MANTHORP
Attachments: