WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: few service questions  (Read 13000 times)

Offline dicorer

  • Jr. Member
  • **
  • Posts: 61
Re: few service questions
« Reply #15 on: April 27, 2015, 03:40:19 PM »
Hi,
And the startup scripts are designed to work across Debian and Ubuntu, and across package versions.  Portability is a main goal of dCore.
okkey, that was a new dCore feature to me unknown, till now :)
Can you please explain, how to setup sce-import, to use DEBIAN Index file and to dl packs from DEBIAN repo (not the usual Ubuntu)?



Than, again from getDeps:
Code: [Select]
if grep "^Package: $PKG$" "$TCEDIR"/debinx.* > /dev/null 2>&1 ; then
DEPLIST=`debGetPkgList $PKG 2>/dev/null`
[ -s /tmp/PKGEXTRAREPODEP ] &&  DEPLIST="$DEPLIST `grep "^$PKG:" /tmp/PKGEXTRAREPODEP | cut -f2 -d:`"
Can you please explain, what are debinx.* files, and what is PKGEXTRAREPODEP?


Thanks
« Last Edit: April 27, 2015, 03:43:57 PM by dicorer »

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: few service questions
« Reply #16 on: April 27, 2015, 05:17:12 PM »
For the Debian debinx file, you mean to use a Debian Packages file on ub-dCore-trusty or ub-dCore-utopic?  I would not recommend it, but the way would be to change the files in /usr/share/doc/tc,  that is where the repo and distro info is kept. 

The debinx.* files are the Packages files from extra repos specified in /opt/debextra.  PKGEXTRAREPODEP is just that, added dependencies for those packages in extra repos that need deps specified to work.

Offline dicorer

  • Jr. Member
  • **
  • Posts: 61
Re: few service questions
« Reply #17 on: April 27, 2015, 06:24:41 PM »
you mean to use a Debian Packages file on ub-dCore-trusty or ub-dCore-utopic?
I guess, I mean yes, setup sce-import to load the default index DEBIAN file containing all packs dependencies, and dl a DEBIAN pack... is that possible?

I would not recommend it
Why not?
Smtng nasty with DEBIAN architecture?

but the way would be to change the files in /usr/share/doc/tc,  that is where the repo and distro info is kept.
In my utopic I have only repo and distro, where is the repo url?

The debinx.* files are the Packages files from extra repos specified in /opt/debextra.  PKGEXTRAREPODEP is just that, added dependencies for those packages in extra repos that need deps specified to work.
I don't have that debextra, I guess I have to create it optionally.
So debinx.* are packages files, deb files?
What is an "extra repo"?

Thanks

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: few service questions
« Reply #18 on: April 28, 2015, 12:27:17 AM »
Hi dicorer,

A lot of this concepts are in different post that you probably have to read. I recommend you to use the Search function.  ;)

I'm not an expert programmer (better to say I'm an amateur  :( ) but I'm using ub-dCore and dCore from the beginning with a lot of satisfaction, using "extra repos" and so on, and of course have read all the concerning about this two distributions.  :)

luck with it!

Offline dicorer

  • Jr. Member
  • **
  • Posts: 61
Re: few service questions
« Reply #19 on: April 28, 2015, 12:48:23 AM »
Hi,
please could you be so nice to share your dCore debinx.* files, /opt/debextra and  PKGEXTRAREPODEP contents, so I can understand what is that feature about?
Thanks

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: few service questions
« Reply #20 on: April 28, 2015, 01:23:03 AM »
debinx.* are autogenerated
Code: [Select]
jls@box:~$ ls /opt/debextra
01-libreoffice     multiverse           security-restricted  updates-multiverse
05-niko2040        pidgin-developers    security-universe    updates-restricted
bodhi              restictred           ubuntuzilla          updates-universe
canonical-partner  security-main        universe             whatsapp-purple
googletalk         security-multiverse  updates-main
jls@box:~$ cat /opt/debextra/01-libreoffice
http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main
dCore user

Offline dicorer

  • Jr. Member
  • **
  • Posts: 61
Re: few service questions
« Reply #21 on: April 28, 2015, 01:53:16 AM »
right! thank you :)
so, lets say, just for example, I want to sce-import Opera browser, the deb file is exactly here:
http://get.geo.opera.com/pub/opera/linux/1216/opera_12.16.1860_i386.deb

How do I set up /opt/debextra/<what?>, debinx.*<what?>, and PKGEXTRAREPODEP ?

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: few service questions
« Reply #22 on: April 28, 2015, 02:00:38 AM »
U need a repo for debian
dCore user

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: few service questions
« Reply #23 on: April 28, 2015, 02:12:38 AM »
forget debinx.* and PKGEXTRAREPODEP

Quote
debinx.* are autogenerated

in my case debextra:
Code: [Select]
tc@ub-dC-tr-aao:~$ ls /opt/debextra
repo1  repo2  repo3  repo7
tc@ub-dC-tr-aao:~$  cat /opt/debextra/repo1
http://us.archive.ubuntu.com/ubuntu trusty multiverse
tc@ub-dC-tr-aao:~$  cat /opt/debextra/repo7
http://download.virtualbox.org/virtualbox/debian trusty contrib

are simple files with a link to ppa or repository
« Last Edit: April 28, 2015, 02:15:09 AM by Onyarian »

Offline dicorer

  • Jr. Member
  • **
  • Posts: 61
Re: few service questions
« Reply #24 on: April 28, 2015, 02:15:24 AM »
sorry I dont understand.
Where can I find, or how I create a repo for debian, so I can sce-import http://get.geo.opera.com/pub/opera/linux/1216/opera_12.16.1860_i386.deb?
If I have to create a new file , can you create it for me, just for example, pls?


Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: few service questions
« Reply #25 on: April 28, 2015, 03:30:21 AM »
just create a directory in /opt with the name debextra --->  /opt/debextra

then create a file with the name you want in /opt/debextra, with your favorite editor or with vi:
Code: [Select]
vi repoopera

paste in this empty file the link to the repo:
http://get.geo.opera.com/pub/opera/linux/1216/

save it

done!

When you execute sce-import it will look to this repo for the program you are searching for, in this case for "Opera"
(better when the repo is specifically for the distribution version (trusty, utopic, etc) because the program will run better. See for example:

http://www.ubuntuupdates.org/ppa/opera

for ubuntu versions.
In this case paste in /opt/debextra/repoopera:
Code: [Select]
http://deb.opera.com/opera/ stable non-free

Offline dicorer

  • Jr. Member
  • **
  • Posts: 61
Re: few service questions
« Reply #26 on: April 28, 2015, 03:48:49 AM »
paste in this empty file the link to the repo:
http://get.geo.opera.com/pub/opera/linux/1216/

save it

done!
thanks but, I don't know at you, here it doesn't work ;)
even hacking /usr/share/doc/tc/repo.txt with a null line, it aborts warning repo unavailable.
I suspect this feature has not been implemented in dCore still, right?
It's implemented only dl from strictly debian-structured repos, not from "wild" ones, correct?

for ubuntu versions.
In this case paste in /opt/debextra/repoopera:
Code: [Select]
http://deb.opera.com/opera/ stable non-free
sorry, bad luck also with that...
Code: [Select]
libgstreamer-plugins 100% |*******************************|   438k  0:00:00 ETA
Merging libgstreamer-plugins-base0.10-0
cat: can't open '/opt/debextra/Package': No such file or directory
/usr/bin/deb2sce: line 432: can't open Package: no such file
wget: not an http or ftp url: /pool/non-free/o/opera/opera_12.16.1860_i386.deb
failed on download of pool/non-free/o/opera/opera_12.16.1860_i386.deb
wget: not an http or ftp url: /pool/non-free/o/opera
ar: can't open '/etc/sysconfig/tcedir/import/debs/opera_12.16.1860_i386.deb': No such file or directory
ar: can't open '/etc/sysconfig/tcedir/import/debs/opera_12.16.1860_i386.deb': No such file or directory
/usr/bin/debExtract: line 42: can't create /tmp/: Is a directory
Failure to extract opera_12.16.1860_i386.deb, exiting..
« Last Edit: April 28, 2015, 04:07:38 AM by dicorer »

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: few service questions
« Reply #27 on: April 28, 2015, 04:45:57 AM »
Quote
even hacking /usr/share/doc/tc/repo.txt with a null line, it aborts warning repo unavailable.
? ? ? ? ? ? ? ?

another thing:
Quote
cat: can't open '/opt/debextra/Package': No such file or directory
/usr/bin/deb2sce: line 432: can't open Package: no such file
I can't understand this. You have not created any new file Package with the link on it?


Well, from the beginning:
I have created a file /opt/debextra/repo9 with:
Code: [Select]
http://deb.opera.com/opera/ stable non-free

then in an xterm window execute sce-import opera:
Code: [Select]
tc@ub-dC-tr-aao:~$ sce-import opera
Using the -u option.
 
ubuntu
#################### 100.0% 0.0 kBps DONE   

verifying download...checksum matches OK
used 11134976 local, fetched 0
Using the repo http://us.archive.ubuntu.com/ubuntu trusty multiverse
Using the repo http://archive.ubuntu.com/ubuntu trusty universe
Using the repo http://archive.canonical.com/ precise partner
Using the repo http://download.virtualbox.org/virtualbox/debian trusty contrib
Using the repo http://deb.opera.com/opera/ stable non-free
Using the repo http://us.archive.ubuntu.com/ubuntu ubuntu trusty main
 
Do you want to import opera? (y/N):

No errors and the repo is there, you can see it in the line "Using the repo http://deb.opera.com/opera/ stable non-free", so I can import now "opera" using this repo.  The other repos are my other files in /opt/debextra (repo1, repo2, etc.).
Where is the problem? No problem here. Easy!


Offline dicorer

  • Jr. Member
  • **
  • Posts: 61
Re: few service questions
« Reply #28 on: April 28, 2015, 06:24:56 AM »
another thing:
Quote
cat: can't open '/opt/debextra/Package': No such file or directory
/usr/bin/deb2sce: line 432: can't open Package: no such file
I can't understand this. You have not created any new file Package with the link on it?
you tell me ;)

Well, from the beginning:
I have created a file /opt/debextra/repo9 with:
Code: [Select]
http://deb.opera.com/opera/ stable non-free

then in an xterm window execute sce-import opera:
Code: [Select]
tc@ub-dC-tr-aao:~$ sce-import opera
Using the -u option.
 
ubuntu
#################### 100.0% 0.0 kBps DONE   

verifying download...checksum matches OK
used 11134976 local, fetched 0
Using the repo http://us.archive.ubuntu.com/ubuntu trusty multiverse
Using the repo http://archive.ubuntu.com/ubuntu trusty universe
Using the repo http://archive.canonical.com/ precise partner
Using the repo http://download.virtualbox.org/virtualbox/debian trusty contrib
Using the repo http://deb.opera.com/opera/ stable non-free
Using the repo http://us.archive.ubuntu.com/ubuntu ubuntu trusty main
 
Do you want to import opera? (y/N):

No errors and the repo is there, you can see it in the line "Using the repo http://deb.opera.com/opera/ stable non-free", so I can import now "opera" using this repo.  The other repos are my other files in /opt/debextra (repo1, repo2, etc.).
Where is the problem? No problem here. Easy!
mh-mh, and what happen if you type "y" to that prompt?

Offline Onyarian

  • Sr. Member
  • ****
  • Posts: 337
Re: few service questions
« Reply #29 on: April 28, 2015, 09:36:54 AM »
Yes, you are right with the error, but I think it's because Opera is not from a standard ubuntu repo and for this reason perhaps need a script to adapt to dCore o precompiled version for dCore

I have made the prove to download it and then execute deb2sce with this results:
Code: [Select]
tc@ub-dC-tr-ordjd:/mnt/sda4/ubtdC$ sudo deb2sce opera_12.16.1860_i386.deb
 
Using Package Index: /etc/sysconfig/tcedir/ubuntu_trusty_main_i386_Packages
 
Using ubuntu Mirror: http://us.archive.ubuntu.com/ubuntu

opera_12.16.1860_i386.deb is not a standard ubuntu, dCore precompiled, or meta package, exiting..

I have googled a little and found that to install opera in ubuntu you have to download the standard version, install it manually and then the installation point to a repo for updates
Read this links:

http://tutorialforlinux.com/2014/03/30/how-to-install-opera-for-ubuntu-14-04-trusty-lts-3264bit-linux-easy-visual-guide/


http://www.linuxeasyway.com/2014/08/ubuntu-1404-lts-trusty-tahr-opera-web.html


Quote
After the Manual Download and Installation of the Opera Ubuntu .deb Package the Opera Ubuntu Repository is Automatically Added to Facilitate the Browser Updating Task!

So I think the best way to import opera for dCore is to demand a prebuilt package for dCore and test it.
« Last Edit: April 28, 2015, 09:38:51 AM by Onyarian »