Choose style:

Author Topic: I got ice working in arch linux  (Read 5327 times)

0 Members and 1 Guest are viewing this topic.

Offline eles

  • nOOb
  • *
  • Posts: 10
  • Karma: 0
  • New Forum User
    • View Profile
I got ice working in arch linux
« on: March 27, 2014, 02:51:48 am »
I took ice from peppermint's ppas and made it so that it would run on my arch linux box.

Here's a screenshot:
http://imgur.com/tgBs7G8

Currently it doesn't do SSB correctly because the console commands for chromium are different in arch's version of chromium. The man page doesn't align with what it actually does. Instead it just opens it in a regular browser.

Just thought I'd share.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1012
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: I got ice working in arch linux
« Reply #1 on: March 27, 2014, 04:33:23 am »
That's really cool.  It'll be great when you figure out those few issues.  The OpenBox spin of Manjaro is awesome.  I've run it in a dual boot with Crunchbang.  I wanted to compare the OpenBox's and Debian Vs Arch.  I have to say Arch's pacman is really simple to use and mighty powerful. When I get my hands on another lappie, I'm really considering installing ManjaroBox.  It just looks the business when you boot it up and runs like a charm.  Its just the rolling release and associated update issues that would make me hesitate.   I can't believe its still only in Beta though  It seems to run as well as any of the top flight distros that are in a regular release cycle.  Bloody amazing if you ask me .  :)
« Last Edit: March 27, 2014, 08:10:47 am by AndyInMokum »
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: I got ice working in arch linux
« Reply #2 on: March 27, 2014, 07:22:17 am »
If you're not averse to using Google Chrome instead .. why not try the version of Ice I created for Chrome (ice-chrome) from my PPA:
https://launchpad.net/~mark-pcnetspec/+archive/ice-chrome
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kendall

  • Developer
  • Member
  • *****
  • Posts: 535
  • Karma: 75
  • Peppermint Dev
    • View Profile
    • http://kendallweaver.com
Re: I got ice working in arch linux
« Reply #3 on: March 27, 2014, 02:43:47 pm »
To get Ice properly working in Arch, there are just a couple of quick things that need to be addressed:

1. The flags for Chromium are in fact the same, but the command to launch Chromium isn't. This is easily fixed with:

Code: [Select]
sudo ln -s /usr/bin/chromium /usr/bin/chromium-browser

2. From there, copy all of the Ice files into their places in the filesystem.

3. Make sure python2, pygtk, and python2-gobject2 are installed as Ice is written in Python 2, not 3:

Code: [Select]
sudo pacman -S python2 pygtk python2-gobject2

4. Change the first line in /usr/bin/ice to reflect Python2

Code: [Select]
sudo nano /usr/bin/ice
Code: [Select]
#!/usr/bin/env python2

From there you should be good to run it and the SSB functionality should be working just fine. The icons may not download properly, but this should be a minor inconvenience. You can either manually edit the .desktop files or manually create and give proper write permissions to the temp directory for the icons. Either way.



« Last Edit: March 27, 2014, 03:52:51 pm by kendall »
Co-Founder and CTO of Peppermint. Developer, Photographer, and spicy food lover.

Peppermint is powered by VPS.NET Cloud Servers.

Offline eles

  • nOOb
  • *
  • Posts: 10
  • Karma: 0
  • New Forum User
    • View Profile
Re: I got ice working in arch linux
« Reply #4 on: March 27, 2014, 04:57:36 pm »
If you're not averse to using Google Chrome instead .. why not try the version of Ice I created for Chrome (ice-chrome) from my PPA:
https://launchpad.net/~mark-pcnetspec/+archive/ice-chrome
Well it turns out to get it working for just about any web browser all you have to do is change one line of code. In the future I'll probably edit it so that you can pick from a list of browsers.

To get Ice properly working in Arch, there are just a couple of quick things that need to be addressed:

1. The flags for Chromium are in fact the same, but the command to launch Chromium isn't. This is easily fixed with:

Code: [Select]
sudo ln -s /usr/bin/chromium /usr/bin/chromium-browser

2. From there, copy all of the Ice files into their places in the filesystem.

3. Make sure python2, pygtk, and python2-gobject2 are installed as Ice is written in Python 2, not 3:

Code: [Select]
sudo pacman -S python2 pygtk python2-gobject2

4. Change the first line in /usr/bin/ice to reflect Python2

Code: [Select]
sudo nano /usr/bin/ice
Code: [Select]
#!/usr/bin/env python2

From there you should be good to run it and the SSB functionality should be working just fine. The icons may not download properly, but this should be a minor inconvenience. You can either manually edit the .desktop files or manually create and give proper write permissions to the temp directory for the icons. Either way.





I did roughtly the same thing except instead of doing things outside the terminal I did it all by editing the code. I'm looking to actually port it to arch so users will just be able to install it with yaourt. Should be fine since as far as I know it's GPL 2.

What I did was change the line of code that forms the command to launch the SSB. I changed it from
 chromium-browser --app=URL
 to
 chromium --app=url.
 This didn't work for some reason though so now I have it set to "chromium URL", which is fine for me because I don't use SSB's anyway.

The feature that I really like about it is that I can use it to launch websites directly from launchers like synapse or cinnamon kmenu.
« Last Edit: March 27, 2014, 05:00:36 pm by eles »

Offline kendall

  • Developer
  • Member
  • *****
  • Posts: 535
  • Karma: 75
  • Peppermint Dev
    • View Profile
    • http://kendallweaver.com
Re: I got ice working in arch linux
« Reply #5 on: March 27, 2014, 07:12:26 pm »
I'm looking to actually port it to arch so users will just be able to install it with yaourt. Should be fine since as far as I know it's GPL 2.

Indeed it is. Good luck with it.
Co-Founder and CTO of Peppermint. Developer, Photographer, and spicy food lover.

Peppermint is powered by VPS.NET Cloud Servers.

Offline eles

  • nOOb
  • *
  • Posts: 10
  • Karma: 0
  • New Forum User
    • View Profile
Re: I got ice working in arch linux
« Reply #6 on: March 27, 2014, 08:12:09 pm »
Where can I find the list of URLs that come stock with Ice on peppermint 4?

Offline kendall

  • Developer
  • Member
  • *****
  • Posts: 535
  • Karma: 75
  • Peppermint Dev
    • View Profile
    • http://kendallweaver.com
Re: I got ice working in arch linux
« Reply #7 on: March 27, 2014, 10:47:25 pm »
Where can I find the list of URLs that come stock with Ice on peppermint 4?

You can download the peppermint-default-settings source package from the repo.
Co-Founder and CTO of Peppermint. Developer, Photographer, and spicy food lover.

Peppermint is powered by VPS.NET Cloud Servers.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25459
  • Karma: 2800
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: I got ice working in arch linux
« Reply #8 on: March 27, 2014, 10:48:19 pm »
Or here they are ...

Games:-
http://htmlchess.sourceforge.net/demo/example.html          (2D/3D Chess)
http://entanglement.gopherwoodstudios.com/          (Entangkement)
http://firstpersontetris.com/          (First-Person Tetris)
http://www.by-art.com/mjong5/          (Mahjong)
http://www.solitr.com/          (Solitr

Graphics:
http://pixlr.com/editor/          (Pixlr Editor)
http://pixlr.com/express/          (Pixlr Express)
http://pixlr.com/o-matic/          (Pixlr O-Matic)

Internet:
http://peppermintos.com/guide/          (Online User Guide)
http://peppermintos.net/          (Peppermint Forum)          <-- this one will need changing to this new forums URL

Office:
http://mail.google.com/          (Gmail)
http://calendar.google.com/          (Google Calendar)
http://drive.google.com/          (Google Drive)

The one in red is not a default Peppermint SSB link .. but one I usually add
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec