Re: [Trisquel-users] Guix usage

2017-08-12 Thread happy_gnu

It was an amazing answer Adfeno :).

I am glad everything is working now mason :)


Re: [Trisquel-users] Guix usage

2017-08-12 Thread masonhock

All of that worked perfectly. Thanks for your help.


Re: [Trisquel-users] Guix usage

2017-08-12 Thread Adonay Felipe Nogueira
Hi all,

I just came back from a turbulence on the email service provider I use,
so I'll try to answer the questions as best as I can:

1. I'll split it in two:

   1. Make packages appear as simple terminal commands: For this to
  work, the PATH variable must reference to important places inside
  "${HOME}/.guix-profile" (for clarification: "${HOME}" is [Your
  user's home], don't worry, the shell understands it correctly, you
  can even test it by doing "echo ${HOME}").

  To do so, edit the ".profile" file that is under your user's home
  (if it doesn't exist: create it), and insert the following text:

--8<---cut here---start->8---
export GUIX_PROFILE="${HOME}/.guix-profile"
source "${GUIX_PROFILE}/etc/profile"
export GUIX_LOCPATH="${GUIX_PROFILE}/lib/locale"
export 
GUIX_GTK3_PATH="${GUIX_PROFILE}/lib/gtk-3.0${GUIX_GTK3_PATH:+:}${GUIX_GTK3_PATH}"
export PATH="${GUIX_PROFILE}/bin:${GUIX_PROFILE}/sbin${PATH:+:}${PATH}"
--8<---cut here---end--->8---

  These "${[Some variable]:+:}" simply make sure that there is no
  ending ":" if "[Some variable]" is unset.

  Now, you can simply log out and then log back in (no need to
  reboot the computer), and notice that IceCat can be launched from
  the terminal using the `icecat` command.

   2. To make an application launcher appear in the menus, provided it
  does have a launcher file (I know IceCat does): For this we will
  once again edit the user's ".profile". This time, though we need
  to take some important notes.

  In a terminal, make it show us what is inside ${XDG_DATA_DIRS}, to
  do this, do: echo ${XDG_DATA_DIRS}

  This will show you were most applications will look for things
  such as launchers, text fonts, themes, and so on (besides the
  user's ".local/share" directory). We must take note of what was
  just printed/shown, I'll call this note as "Copied text".

  Now, edit the user's ".profile", and add, after the last line that
  I gave in item 1.1:

--8<---cut here---start->8---
export XDG_DATA_DIRS="${GUIX_PROFILE}/share:[Copied text, without these 
brackets]"
--8<---cut here---end--->8---

  Now, you can simply log out and then log back in (no need to
  reboot the computer), and notice that IceCat can be launched from
  the menus.

2. Already answered.

3. Evolution (email client) itself isn't packaged yet. The data server
   of it is. In fact, some packages depend on the data server to do some
   things.

4. Remove the package with Synaptic and install from Guix. Be careful
   though when removing packages using Synaptic. Thankfully, Synaptic is
   one of the package managers that makes it very clear what will be
   removed/updated/replaced/installed before doing anything.

   It's a good idea to simply copy the list of actions that Synaptic
   tells you that it would do, and post the list here in case of
   doubt. People here will probably know if some package will end up
   removing "too much" stuff.

   Optionally, you can start searching for each item in that list of
   actions, but this is not required.


Respectfully, Adonay.

Happy hacking! :)

-- 
- [[https://libreplanet.org/wiki/User:Adfeno]]
- Palestrante e consultor sobre /software/ livre (não confundir com
  gratis).
- "WhatsApp"? Ele não é livre, por isso não uso. Iguais a ele prefiro
  GNU Ring, ou Tox. Quer outras formas de contato? Adicione o vCard
  que está no endereço acima aos teus contatos.
- Pretende me enviar arquivos .doc, .ppt, .cdr, ou .mp3? OK, eu
  aceito, mas não repasso. Entrego apenas em formatos favoráveis ao
  /software/ livre. Favor entrar em contato em caso de dúvida.


Re: [Trisquel-users] Guix usage

2017-08-12 Thread masonhock
Does that mean I should add export  
GUIX_LOCPATH=$HOME/.guix-profile/lib/locale to '~/.profile' instead of  
executing it in the terminal? If so what should be different after I do that?  
I don't know what it looks like when Guix is working correctly so I don't  
know how to check if something is working.


Re: [Trisquel-users] Guix usage

2017-08-12 Thread happy_gnu

https://stackoverflow.com/questions/14637979/how-to-permanently-set-path-on-linux


Re: [Trisquel-users] Guix usage

2017-08-12 Thread happy_gnu
When you do the EXPORT you should be able to launch software installed with  
Guix by just typing "program" you installed hello so just type


$ hello


It should run.
If you puth the export in your PATH you should be able to do this and  
probably see the icons of the programs on the menu of your Desktop  
Environment (I am not sure about this is I don't use menus only I3wm with  
dmenu)


The path should be ~/.bash_profile but I don't remember exactly to be honest.

Maybe someone can help us or you can ask for a little wore help on #guix on  
IRC they are friendly and helpful.


If you use IRC make sure to join #lgn :) I am there most of the time. Is a  
great channel







Re: [Trisquel-users] Guix usage

2017-08-12 Thread masonhock
I've done step 8. When I run guix package -i glibc-locales I get guile:  
warning: failed to install locale

warning: failed to install locale: Invalid argument
guix package: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.
The following package will be upgraded:
   glibc-locales	2.25 ->  
2.25	/gnu/store/p5z9rh4m4qkmjygxcbp0q244nkwz7zxn-glibc-locales-2.25
substitute: updating list of substitutes from  
'https://mirror.hydra.gnu.org'... substitute: updating list of substitutes  
from 'https://mirror.hydra.gnu.org'... 100.0%

nothing to be done

(When I run 'guix pull' I always get 'failed to expand heap by x bytes'  
before it completes, so hopefully that isn't important.)


I get no errors when I run export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale

What should happen if this step worked correctly?


Re: [Trisquel-users] free PDA running JMP

2017-08-12 Thread masonhock
I thought I had found the Pandora for sale here, but not knowing German I did  
not realize at first that it is out of stock. It appears they are only  
selling the Pyra.


However, I feel better about the Pyra after reading the link you included.  
I'll take a look at the PocketChip too.


Hopefully someone will start manufacturing the Ben NanoNote again. It looks  
awesome.


Re: [Trisquel-users] free PDA running JMP

2017-08-12 Thread masonhock
It also appears that all devices supported by Replicant require nonfree  
firmware to use WiFi, unless this list is out-of-date.


https://en.wikipedia.org/wiki/Replicant_(operating_system)#Supported_devices


[Trisquel-users] Re : Can't hibernate

2017-08-12 Thread lcerf
I do not see how it would help.  You can reformat the swap partition (that  
may help since it used to be encrypted, but I doubt so):

$ sudo swapoff -a
$ sudo mkswap /dev/sda2
$ sudo swapon -a

And you can try a more recent kernel: https://jxself.org/linux-libre/


Re: [Trisquel-users] free PDA running JMP

2017-08-12 Thread happy_gnu

I didn't know this.

In my country this doesn't work :/

But it is interesting.




Re: [Trisquel-users] free PDA running JMP

2017-08-12 Thread gpast_panama
>The Ben Nanonote looks ideal, but I can't actually find a >source from which  
to buy one. The wiki says that as of 2015 >only IDA Systems sells it, and it  
appears that now they don't >sell it either.


Indeed- the domain has changed hands at some point, and the original owner  
appears to have gone out of business. Sigh... the Nanonote was so beautiful,  
and free to boot!


>The DragonBox Pyra looks like a good alternative. The GPU >may or may not be  
nonfree. I can't find any recent >information on that. However, since I don't  
plan to use the >device for games I might be able to avoid using the GPU  
>even if it is nonfree.
>The Pandora, which is the predecessor to the Pyra is less >expensive and  
sufficient for my needs, but I find it even >more difficult to find  
information on any freedom issues.


Both are addressed in  
https://trisquel.info/en/forum/some-info-open-pandora-pyra-pandora-game-console#comment-92758;  
the original source for the question on the Pyra was at  
https://pyra-handheld.com/boards/threads/how-close-does-the-pyras-design-come-to-respecting-your-freedom.76105/.


For the Pandora, do you know where units are for sale? I'd be interested in  
one myself if they're still around.


>I also found this tutorial on creating a mini computer >using a Raspberry  
Pi, but if this is up-to-date then is >sounds like the Raspberry Pi is  
nonfree.


Unfortunately, the Pi is still not freed- booting goes via the GPU first, for  
some reason, which requires loading the proprietary GPU blob. Work has been  
done on this (https://github.com/christinaa/rpi-open-firmware), but there's a  
little way to go before it's usable. I *do* hope somebody can complete it- it  
would be a wonderful thing to have.


>Can anyone share knowledge about any of these devices or >others that might  
work?


As happy_gnu said, a Replicant device without a SIM card would also serve  
well. There's also the PocketChip, which seems rather similar to the Pandora  
freedom- and spec-wise.


>Also, obviously WiFi will be necessary for how I plan to >use this. Is it  
likely that I should be okay with any >device with a USB port for a  
ThinkPengiun WiFi adpater >assuming I can install the driver?


Yes- as long as the firmware/driver is installed, any wi-fi adapter will  
work.


Re: [Trisquel-users] free PDA running JMP

2017-08-12 Thread jbahn
It seems to me, that mason doesn't want to be tracked. To my knowledge, a SIM  
enabled device is by default actively asking to be tracked. For instance, you  
are able to call emergency services without a SIM card inserted.


Re: [Trisquel-users] QEMU

2017-08-12 Thread jbahn

Thanks. I think then, that I'll do the same.


Re: [Trisquel-users] How do I change the boot order so that my libreboot boots first from the USB drive?

2017-08-12 Thread happy_gnu
This is more of a Libreboot problem than Trisquel or Ubuntu. So you might  
want to ask to libreboot.


Re: [Trisquel-users] How do I change the boot order so that my libreboot boots first from the USB drive?

2017-08-12 Thread happy_gnu
This is normal do a Trisquel live USB with Ubuntu and it will say "you can  
run Ubuntu..."


Trisquel substituted all the "Ubuntu" for "Trisquel" so is normal.


Re: [Trisquel-users] QEMU

2017-08-12 Thread happy_gnu
I think this depends on your preferences :/ I prefer to put everything under  
Documents


Re: [Trisquel-users] free PDA running JMP

2017-08-12 Thread happy_gnu

You could also have a smartphone with Replicant and use it without a SIM card


Re: [Trisquel-users] Guix usage

2017-08-12 Thread happy_gnu

1.- You have no add Guix to your PATH and reboot

2.- No this is not possible, you could install Emacs with Guix and then  
launch this Emacs and it will have installed the necessary packages to use it  
as Synaptic.


3.- I am not sure, it is possible. You can look for all the installed  
packages using Emacs. Or looking for them here  
https://www.gnu.org/software/guix/packages/


4.-Remove the package with synaptic and install the Guix version.


Now for 1. How to add Guix to your path...

Did you follow step 8?

I'll save you the trouble it links here:

https://www.gnu.org/software/guix/manual/html_node/Application-Setup.html#Application-Setup




[Trisquel-users] free PDA running JMP

2017-08-12 Thread masonhock
After this recent thread I have decided to try to replace my smartphone with  
a PDA running JMP and only free software. I'm now trying to find on a good  
fully free device to use.


The Ben Nanonote looks ideal, but I can't actually find a source from which  
to buy one. The wiki says that as of 2015 only IDA Systems sells it, and it  
appears that now they don't sell it either.


The DragonBox Pyra looks like a good alternative. The GPU may or may not be  
nonfree. I can't find any recent information on that. However, since I don't  
plan to use the device for games I might be able to avoid using the GPU even  
if it is nonfree.


The Pandora, which is the predecessor to the Pyra is less expensive and  
sufficient for my needs, but I find it even more difficult to find  
information on any freedom issues.


I also found this tutorial on creating a mini computer using a Raspberry Pi,  
but if this is up-to-date then is sounds like the Raspberry Pi is nonfree.


Can anyone share knowledge about any of these devices or others that might  
work?


Also, obviously WiFi will be necessary for how I plan to use this. Is it  
likely that I should be okay with any device with a USB port for a  
ThinkPengiun WiFi adpater assuming I can install the driver?


Re: [Trisquel-users] Can't hibernate

2017-08-12 Thread jbahn
I got it to work - apparently permanent. But I have one more issue, which I  
experienced while I was only having a temporary solution and again in the end  
with the permanent solution: When waking up my machine from hibernation, it  
wakes up just a few seconds and then hibernates again (I am using 'FN+F4').


I consider reinstalling from fresh...


[Trisquel-users] QEMU

2017-08-12 Thread jbahn
In an earlier thread a number of you recommended QEMU (+ kvm) as a virtual  
machine solution. I haven't had 'time' to experiment with that until now.  
Heather, linked to these instructions by catfish:  
https://trisquel.info/en/forum/qemu-and-kvm-problems#comment-63621


My question for now is: Where would be an appropriate place (folder) to  
create it?


[Trisquel-users] Guix usage

2017-08-12 Thread masonhock
Guix was recommended to me as a solution to a particular problem in another  
thread, and it seems promising in general. I have enough questions that it  
seemed worth opening a new thread.


1. Configuring installed files for use? For example, if I install Icecat via  
Synaptic it is immediately added to the launcher menu and I can run it from a  
terminal with $ icecat whereas if installed via Guix it seems like I have to  
run it with

$ cd ~/.guix-profile/bin
$ ./icecat
which is much less convenient. I could create a shortcut to access it more  
conveniently, but maybe there is a cleaner or more proper approach.


2. Is it possible to get Synaptic to recognize a package installed via Guix  
as an alternate version. This might help with question #1, and it seems like  
it might be easier and more organized than using two separate package  
managers.


3. When I run $ giux package -A evolution I see evolution-data-server, but  
not evolution. It seems odd to me to include one and not the other. Is it  
possible that I am not seeing all available packages?


4. Moreover, if I could upgrade Evolution (or another default GNOME program)  
via Guix, what be be the most effective way of replacing the old version in a  
way that makes it work with the GNOME applet etc.? This might be related to  
question #2.


Thanks!


[Trisquel-users] Re : deleted ext4 partition

2017-08-12 Thread lcerf
Substitute "#" with "echo" and type enter.  The command will be printed but  
after Shell expansion (typically the wildcard, *, but also the variables,  
etc.).  Try for instance:

$ echo cp /var/log/syslog* $HOME
Here it returns:
cp /var/log/syslog /var/log/syslog.1 /var/log/syslog.2.gz  
/var/log/syslog.3.gz /var/log/syslog.4.gz /var/log/syslog.5.gz /home/banana
Once the command checked, go back a line in the history (C-p or the up  
arrow), move the cursor to the beginning of the line (C-a or Home) delete  
"echo" (M-d) and type Enter to execute.


Re: [Trisquel-users] deleted ext4 partition

2017-08-12 Thread masonhock

Good advice. Thank you.


Re: [Trisquel-users] deleted ext4 partition

2017-08-12 Thread masonhock

Yep, reinstalling worked.


Re: [Trisquel-users] low priced devices which surveillance you

2017-08-12 Thread greatgnu

Yeah.. Watch the vid I linked and hammerdatphoon.jpg  :)


Re: [Trisquel-users] deleted ext4 partition

2017-08-12 Thread happy_gnu

I avoid this type of mistakes using # whenever I am doing something delicate

The symbol # is for comments so if you do

$ # sudo command
Nothing will happen because of the # after I did that I make sure everything  
is well written by pressing up and then when I am sure everything is OK is  
when I delete the # and hit enter


This have saved me from mistakes when using rm for example.


Re: [Trisquel-users] How do I change the boot order so that my libreboot boots first from the USB drive?

2017-08-12 Thread greatgnu
>So I have a Libreboot with Trisquel on it, but I'd like to put Ubuntu on it  
instead.


Stopped reading there. This forum is against non-free software. I am pretty  
sure Buguntu has plenty of forums where you can ask your questions.


Bonne fortunae!


Re: [Trisquel-users] deleted ext4 partition

2017-08-12 Thread greatgnu
I can confirm that photorec is gold, pure gold. It will recover 99% of your  
data. But then again you have it backed up so I don't see how waiting 20  
hours for it to finish (recovery takes a lot of time) makes any sense here.  
Reinstall and profit!


[Trisquel-users] Re : Can't hibernate

2017-08-12 Thread lcerf
You wrote /dev/sda1 instead of /dev/sda2 in /etc/fstab.  Also you (used to?)  
have your swap encrypted what does not allow (at least not naturally)  
hibernation.  Edit /etc/fstab to remove the line "/dev/mapper/cryptswap1 none  
swap sw 0 0" and to turn "/dev/sda1 swap swap defaults 0 0" into "/dev/sda2  
swap swap defaults 0 0" (here using the GEdit text editor):

$ gksu gedit /etc/fstab
Save the file and run this command to enable swapping:
$ sudo swapon -a
This command will tell if your swap aws really enables:
$ swapon -s


Re: [Trisquel-users] Can't hibernate

2017-08-12 Thread jbahn

sudo swapon -a

gives me

swapon: /dev/mapper/cryptswap1: stat failed: No such file or directory
swapon: /dev/sda1: read swap header failed: Invalid argument

Did I mention that I only encrypted /home?

The rest of your commands return:

gnubahn@libreT400s:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda  8:00 119.2G  0 disk
├─sda1   8:10  23.3G  0 part /
├─sda2   8:20   8.4G  0 part
└─sda3   8:30  87.6G  0 part /home
sr0 11:01   4.8G  0 rom  /media/gnubahn/DVDVolume
gnubahn@libreT400s:~$ grep swap /etc/fstab
# swap was on /dev/sda2 during installation
#UUID=ade109a9-fce9-4921-b762-9e15b3cde2b5 noneswapsw  
 0   0

/dev/mapper/cryptswap1 none swap sw 0 0
/dev/sda1 swap swap defaults 0 0
gnubahn@libreT400s:~$ swapon -s
FilenameTypeSizeUsedPriority



[Trisquel-users] Re : Can't hibernate

2017-08-12 Thread lcerf

I do not know.  Is it enabled when you execute 'sudo swapon -a'?

Show us the outputs of these commands:
$ lsblk
$ grep swap /etc/fstab
$ swapon -s


Re: [Trisquel-users] Can't hibernate

2017-08-12 Thread jbahn
My swap is on sda2. I ran your first command and when checking swap was on.  
Then I ran your second command and restarted. Swap is not on!?


This is really weird. I mean, I am by no means either a savvy, a techie or  
anything, but I have installed GNU/linux a lot of times (to some extend  
because I am no savvy, techie etc.). And I have never experienced that swap  
did not work after installation.


What is going on?


[Trisquel-users] Re : Can't hibernate

2017-08-12 Thread lcerf
You can first try to manually activate your swap partition (here assuming it  
is /dev/sda1: adapt the command to your case; 'lsblk' helps to know what is  
your swap partition):

$ sudo swapon /dev/sda1

If it works ('sudo swapon -s' shows it), you can run this command (again,  
modify the partition to fit your case):

$ echo '/dev/sda1 swap swap defaults 0 0' | sudo tee -a /etc/fstab

The line appended to /etc/fstab, "/dev/sda1 swap swap defaults 0 0", asks for  
the activation of the swap at init.


[Trisquel-users] Re : Can't hibernate

2017-08-12 Thread lcerf
None in terms of performance.  We could say that it is easier to make and  
share (between systems) a swap partition as long as you have free disk space  
(typically before an install), whereas it is easier to make a swap file as an  
afterthought.  Also it is easier to change the size of a swap file.


Re: [Trisquel-users] Can't hibernate

2017-08-12 Thread jbahn

After restarting the computer the swap is again not active!

What will I have to do to make it permanently active?


Re: [Trisquel-users] Touchpad on/off shortcut

2017-08-12 Thread jbahn

Got it, thanks

It works


Re: [Trisquel-users] Touchpad on/off shortcut

2017-08-12 Thread fredo
Dunno sorry. Maybe in your keyboard parameters, there must be an option as  
described in your tuto for xfce.


Re: [Trisquel-users] Touchpad on/off shortcut

2017-08-12 Thread jbahn

Arigatou

I saved the script and made it executable. How do I assign a shortcut for it?  
I can give it a name and a command, but I do I determine the shortcut itself,  
e.g. super+t


Re: [Trisquel-users] Touchpad on/off shortcut

2017-08-12 Thread fredo
Oh ! I made a mistake : desactivating touchscreen is specific to xfce (though  
some recent DE like cinnamon may offer this option too).


Desactivating the touchpad should be easy to do on every DE. Some people use  
this https://launchpad.net/touchpad-indicator, but the script you linked to  
seems pretty simple and efficient.




Re: [Trisquel-users] Touchpad on/off shortcut

2017-08-12 Thread jbahn

Thanks.

Do you know what it would take to make it work with Cinnamon?


Re: [Trisquel-users] Touchpad on/off shortcut

2017-08-12 Thread fredo
It will work, but only if you install xfce desktop environment. This option  
is specific to xfce.
Once you have the correct DE, there is nothing complicated, you'll have a  
nice button.


Re: [Trisquel-users] Can't hibernate

2017-08-12 Thread jbahn
For some reason it was not activated. This is the first time I have  
experienced swap not being active after a fresh install.


Actually. when I open Gparted the partition was there but indicated with  
black (and a warning triangle, if I remember correctly).


I deleted that partition and created a new swap. Running the 'swapon -s'  
command still showed no swap. I restarted, still no swap. Then I opened  
Gparted again and noticed that swap wasn't on.


Like I said, this is the first time I have experienced this. Have done  
something wrong during installation?


Re: [Trisquel-users] Can't hibernate

2017-08-12 Thread jbahn
What are the advantages and disadvantages of either solution, i.e. partition  
vs file?


[Trisquel-users] Touchpad on/off shortcut

2017-08-12 Thread jbahn
Sometimes the touchpad comes in handy, at other times it is annoying (e.g.  
when touching my mistake). So, I was wondering if it is possible to make a  
touchpad on/off shortcut and found this:


https://ssnjara.wordpress.com/2011/06/11/touchpad-onoff-shortcut-key-on-xubuntu-11-04-eeepc1005ha/

Before I start experimenting with though, I would like to ask more  
knowledgeable people here if I should expect it to work on my trisquelised  
machinery?


[Trisquel-users] Re : What is your favorite libre media?

2017-08-12 Thread pinmaritim

You can read lots of answers here happy_gnu ;-)
--
https://trisquel.info/es/forum/how-do-you-get-your-movies
https://trisquel.info/fr/forum/how-do-you-get-your-books
https://trisquel.info/es/forum/how-do-you-get-your-music
--

WHAT IS THE LIBRARY FREEDOM PROJECT?
https://libraryfreedomproject.org/

Free ebooks - Project Gutenberg
http://www.gutenberg.org/

https://mediagoblin.org/
MediaGoblin is a free software media publishing platform that anyone can run.  
You can think of it as a decentralized alternative to Flickr, YouTube,  
SoundCloud, etc.









Re: [Trisquel-users] Issues when trying to install tor browser

2017-08-12 Thread chasepc
I just downloaded it today, was having trouble with the command line install  
instructions as well, I don't know why but a lot of command line instructions  
don't work for me and I'm not familiar enough to figure out why, but I  
extracted It in downloads  was able to run TOR from there.  Moved it to  
desktop and all set.  Except I think I'm gonna move it to a Flash drive  
instead.Make sure to adjust your security settings in TOR when you first  
launch it comes configured at the lowest security setting.  


[Trisquel-users] Re : Issues when trying to install tor browser

2017-08-12 Thread pinmaritim



this is in French but quite explicit you can add a launcher manually and not  
with "sudo"


https://trisquel.info/fr/wiki/installer-tor-browser-et-faire-une-configuration-de-base


[Trisquel-users] Re : low priced devices which surveillance you

2017-08-12 Thread pinmaritim
yes, thats what i meant,with another pc one would have to monitor all  
incoming/outgoing packets/connections ;-).