maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   x terminal codes (https://talk.maemo.org/showthread.php?t=64138)

hossein59322 2010-10-21 08:04

x terminal codes
 
hi friends
i need to how intall tar format by x terminal n900
i need precedure installation and x terminal codes to install tar/ tar.bz/ tar.gz
thanks

Wikiwide 2010-10-21 08:14

Re: x terminal codes
 
Quick reply...
*.tar.gz is standard format for source code of application, usually.
To install an application, you should get .deb, and the command (if the deb cannot be installed by Hildon Application Manager, after opening the deb from File Manager) is
dpkg -i /path/file.deb
(as root?)

file.tar.gz should be:
1. uncompressed to a directory;
2. compiled to a deb, like:
cd to the directory and run command
dpkg-buildpackage
it will create a deb to be installed

What file.tar.gz are you trying to install?

azizija 2010-10-21 09:02

Re: x terminal codes
 
here some basic x terminal command for new user and for unexperienced user non-linux base..hope its can help..
other experiences user hope you can share another command here..

2. Basic X-Terminal Commands
Be sure you install rootsh in order to use most all of these commands, and to install/remove applications FIRST. You can download the rootsh from your appmanager.

Root – takes you to the MAIN root folder (like c:/ in windows)

Sudo gainroot – takes you to the user root folder: /home/user and allows you to use commands to control processes

Cd MyDocs – takes you to the folder that is named “N900” or whatever you name your device.

This is the same place that you see when you open the file manager and choose your N900 or Memory Card. When you Choose N900, this is the “MyDocs” you just cd’ed to.

apt-get install [application name] - to install application from the repositories activated

apt-get update = updates local metadata detailing what apps are available in the repositories

apt-get upgrade -y = upgrades any installed apps with newer versions (the -y is optional and just avoids it prompting you as to whether or not to proceed)

apt-get remove “file name” – uninstalls a program/application

apt-get clean = will remove any downloaded package archives. Once the package is installed the downloaded file is no longer needed. The App Man does this automatically but if you're using "apt-get" you'll have to do it manually

apt-get autoclean = same as "apt-get clean" but only removes package archives which are obsolete (no longer in repositories). Having run "apt-get clean it's pointless to run this command.

apt-get autoremove = removes any packages which are no longer needed. These are applications/libraries which were automatically installed because of dependencies but are no longer required

ls = (lower-case “L”)will list all docs and folders in the “folder” that you are in.

apt-get -f install = installs any missing dependencies (which should fix the broken packages issue I had)

free - shows memory detail

hossein59322 2010-10-22 08:02

Re: x terminal codes
 
please say me how can uncompressed and compile tar.gz file
pleas introduce me compile and uncompress software
thanks a lot

Wikiwide 2010-10-22 09:03

Re: x terminal codes
 
Quote:

Originally Posted by hossein59322 (Post 847757)
please say me how can uncompressed and compile tar.gz file
pleas introduce me compile and uncompress software
thanks a lot

As described here
http://talk.maemo.org/showpost.php?p=48970&postcount=5
tar ztvf filename.tar.gz - to list content of .tar.gz file
tar zxvf filename.tar.gz - to extract content of .tar.gz file
I would be thankful if you described what files you see inside the file.tar.gz, so that its function could be understood better.

As mentioned there, .tar.gz might sometimes contain not the source, but the ready to use software.
http://talk.maemo.org/showpost.php?p=805261&postcount=7
Instead of downloading the .deb file you can try to use the tar.gz one. Download the file and unpack it. So, you don't need use dpkg :-)

If the archive does contain some source code, there is (most likely) a Makefile in each directory, without any file extension.

ossipena 2010-10-22 09:16

Re: x terminal codes
 
please people use the f wiki....

http://wiki.maemo.org/Terminal#Basics

e: I am being a medio now:
this thread will be buried in under 2 weeks so deeply here that no-one will find it. but what about wiki? it is still there...

noobmonkey 2010-10-22 09:19

Re: x terminal codes
 
the f wiki hey... as that the specific wiki for grumpy old farts? :) :) :)

Sound advice though :)

hossein59322 2010-10-22 09:21

Re: x terminal codes
 
when i perform this command : tar zxvf filename.tar in x terminal
error has gived : can't open filename.tar: no such file or directory
i m sure this file exist but i donot know why has happened error

nicolai 2010-10-22 09:33

Re: x terminal codes
 
Quote:

Originally Posted by hossein59322 (Post 847815)
when i perform this command : tar zxvf filename.tar in x terminal
error has gived : can't open filename.tar: no such file or directory
i m sure this file exist but i donot know why has happened error

To be really sure type ls -l in xterm to list the directory contents.
If the filename is filename.tar, then it isn't compressed
and you don't need the option "z" for uncompressing:
tar xvf filename.tar

And for the tips from azizija
Quote:

Originally Posted by azizija (Post 846838)
2. Basic X-Terminal Commands
Be sure you install rootsh in order to use most all of these commands, and to install/remove applications FIRST. You can download the rootsh from your appmanager.

Root – takes you to the MAIN root folder (like c:/ in windows)

all this commands are lowercase "root" not "Root"
And no, root does not change to the MAIN root folder.
The root folder is "/". This commands enables the root access, which can be dangerous
if you don't know what you do.

Quote:

Originally Posted by azizija (Post 846838)
Sudo gainroot – takes you to the user root folder: /home/user and allows you to use commands to control processes

The same as above

Quote:

Originally Posted by azizija (Post 846838)
Cd MyDocs – takes you to the folder that is named “N900” or whatever you name your device.

This only works if you are already in the users home folde
/home/user
and the right command is cd MyDocs
The change directory arguments can be
relative paths (cd MyDocs) or absolute (cd /home/user/MyDocs)

nicolai

hossein59322 2010-10-22 09:49

Re: x terminal codes
 
i m sure, my filname is icedtea6.tar.gz
i can,t install it because has error wheb i perform tar zxvf command
error is : can't open icedtea6.tar: no such file or directory

ossipena 2010-10-22 09:51

Re: x terminal codes
 
Quote:

Originally Posted by hossein59322 (Post 847829)
i m sure, my filname is icedtea6.tar.gz
i can,t install it because has error wheb i perform tar zxvf command
error is : can't open icedtea6.tar: no such file or directory

try
t a r [space] - z x v f [space] . / i c e [tab[

hossein59322 2010-10-23 08:12

Re: x terminal codes
 
i installed new version of cps
now i can extract ice by tar zxvf command
there are many files after uncompress but i donot know what i do or perform which folder
please say me after uncompress what shoud i do
another question:
i installd theme.zip
i perform unzip command
there are many files but idonot know what i do
pleas help
thanks

Wikiwide 2010-10-23 10:25

Re: x terminal codes
 
Quick...
You have icedtea6.tar.gz?
You uncompressed it to folder "icedtea6-1.6" or something like that?
In this folder, run:

./configure

make

make install

It should compile the source code (and install the compiled application).

However, it might say that you need something else like gcc; then install it though Application Manager.

Or, just lookup in Application Manager already compiled and ready-to-install IcedTea... You will not need tar.gz then...


All times are GMT. The time now is 00:52.

vBulletin® Version 3.8.8