Linux Debian question?

Hey there.
I need some explanation about linux debian and everything about <home, usr, var, etc,mnt) directory. Will be better if you give some links for that

I have seen several people using their phone to emulate a linux console using j2me (java for cellphone) applications.

Key features I am looking for is:
* Being able to type something into the console.
* Using <tab> (auto complete).
* Output. Display what the console returns.
* History. Being able to scroll up to previously input text.
* Work through bluetooth.

Thanks.

Dark_Fire

Linux and VLC error message Help.?

I currently have Fedora 10 and I installed VLC media player. When ever I open it to play a song it gives me 2 errors and the song sounds real choppy. These are the errors I get… How do I fix them?
Summary:

SELinux is preventing vlc from loading /usr/lib/sse2/libswscale.so.0.6.1 which
requires text relocation.

Detailed Description:

The vlc application attempted to load /usr/lib/sse2/libswscale.so.0.6.1 which
requires text relocation. This is a potential security problem. Most libraries
do not need this permission. Libraries are sometimes coded incorrectly and
request this permission. The SELinux Memory Protection Tests
(http://people.redhat.com/drepper/selinux-mem.html) web page explains how to
remove this requirement. You can configure SELinux temporarily to allow
/usr/lib/sse2/libswscale.so.0.6.1 to use relocation as a workaround, until the
library is fixed. Please file a bug report
(http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

Allowing Access:

If you trust /usr/lib/sse2/libswscale.so.0.6.1 to run correctly, you can change
the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
‘/usr/lib/sse2/libswscale.so.0.6.1′" You must also change the default file
context files on the system in order to preserve them even on a full relabel.
"semanage fcontext -a -t textrel_shlib_t ‘/usr/lib/sse2/libswscale.so.0.6.1′"

Fix Command:

chcon -t textrel_shlib_t ‘/usr/lib/sse2/libswscale.so.0.6.1′

Additional Information:

Source Context unconfined_u:unconfined_r:unconfined_execmem_t:s0
Target Context system_u:object_r:lib_t:s0
Target Objects /usr/lib/sse2/libswscale.so.0.6.1 [ file ]
Source vlc
Source Path /usr/bin/vlc
Port <Unknown>
Host Andrew.Altizer
Source RPM Packages vlc-core-0.9.8a-1.fc10
Target RPM Packages ffmpeg-libs-0.4.9-0.52.20080908.fc10
Policy RPM selinux-policy-3.5.13-18.fc10
Selinux Enabled True
Policy Type targeted
MLS Enabled True
Enforcing Mode Enforcing
Plugin Name allow_execmod
Host Name Andrew.Altizer
Platform Linux Andrew.Altizer 2.6.27.5-117.fc10.i686 #1 SMP
Tue Nov 18 12:19:59 EST 2008 i686 athlon
Alert Count 4
First Seen Mon 05 Jan 2009 01:43:28 PM AST
Last Seen Mon 05 Jan 2009 01:56:42 PM AST
Local ID 143b1d8e-4c8f-4189-a377-d97326d786c4
Line Numbers

Raw Audit Messages

node=Andrew.Altizer type=AVC msg=audit(1231153002.320:27): avc: denied { execmod } for pid=3452 comm="vlc" path="/usr/lib/sse2/libswscale.so.0.6.1" dev=dm-0 ino=2551557 scontext=unconfined_u:unconfined_r:unconfined_execmem_t:s0 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=Andrew.Altizer type=SYSCALL msg=audit(1231153002.320:27): arch=40000003 syscall=125 success=no exit=-13 a0=21c000 a1=2c000 a2=5 a3=bfb3d1e0 items=0 ppid=1 pid=3452 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="vlc" exe="/usr/bin/vlc" subj=unconfined_u:unconfined_r:unconfined_execmem_t:s0 key=(null)

and……

Summary:

SELinux is preventing vlc from loading /usr/lib/sse2/libpostproc.so.51.2.0 which
requires text relocation.

Detailed Description:

The vlc application attempted to load /usr/lib/sse2/libpostproc.so.51.2.0 which
requires text relocation. This is a potential security problem. Most libraries
do not need this permission. Libraries are sometimes coded incorrectly and
request this permission. The SELinux Memory Protection Tests
(http://people.redhat.com/drepper/selinux-mem.html) web page explains how to
remove this requirement. You can configure SELinux temporarily to allow
/usr/lib/sse2/libpostproc.so.51.2.0 to use relocation as a workaround, until the
library is fixed. Please file a bug report
(http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

Allowing Access:

If you trust /usr/lib/sse2/libpostproc.so.51.2.0 to run correctly, you can
change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
‘/usr/lib/sse2/libpostproc.so.51.2.0′" You must also change the default file
context files on the system in order to preserve them even on a full relabel.
"semanage fcontext -a -t textrel_shlib_t ‘/usr/lib/sse2/libpostproc.so.51.2.0′"

Fix Command:

chcon -t textrel_shlib_t ‘/usr/lib/sse2/libpostproc.so.51.2.0′

Additional Information:

Source Context unconfined_u:unconfined_r:unconfined_execmem_t:s0
Target Context system_u:object_r:lib_t:s0
Target Objects /usr/lib/sse2/libpostp
Am I able to uninstall SELinux?

Linux YM installation?

I am a newbie to this Linux program. CAn anyone explain to me how to log in as root? this is what is instructed on how to install YM on Linux. "Log in as root and type: rpm -i <filename> with the appropriate filename depending on your version to install the application." I really want to see it working on Linux.

I am trying to learn more about the RSA Algorithm. I have researched several pages on Google and have a fairly clear idea of what the algorithm entails — I don’t exactly understand *why* it works, but I believe I understand a good amount as to how one would encrypt/decrypt a message. My question, is how is this algorithm applied in real life? I mean, how does one generate two large primes? SInce there is no known algorithm for factoring the product of two primes it seems that there would also be no known algorithm for generating numbers that are prime? Also, is the arithmetic carried out? Raising a message to a power of significant size isn’t going to work well with a 32 or even 64bit processor. I assume some type of addon library is used to accomodate the larger numbers? How are these implemented? Finally, I understand that these mechanisms already exist and re-inventing the wheel is often dangerous in terms of crypto, but I just want to do it as a learning exercise.
My understanding of RSA algo:

1) Choose 2 large distinct primes p and q
2) Calculate modulus as N = p*q
3) Calculate totient as (p-1)(q-1)
4) Choose e such that 1 < e < (p-1)(q-1) and e is coprime with (p-1)(q-1). [Does this mean e could ever be 2? It seems an odd number would be required for e?]
5) Find d such that ed = 1 mod (p-1)(q-1)
[Is there only 1 d that works or does it matter which solution I choose?? What is an efficient way to calculate this??]

6) c = m^e mod N where m = msg expressed as number … whats an efficient way to raise m to such a large exponent? I realize modular arithmetic bounds this somewhat, but still the calculation could/should be much larger than 32 or 64bit values…
McDonger: Thanks for your response. I guess I’m looking for more detailed information as to how it gets split up and calculated. The symmetric encryption (the key passed via the PKE) isn’t so much of an interest to me.

Thanks.

Hello,

I am trying to learn more about the RSA Algorithm. I have researched several pages on Google and have a fairly clear idea of what the algorithm entails — I don’t exactly understand *why* it works, but I believe I understand a good amount as to how one would encrypt/decrypt a message. My question, is how is this algorithm applied in real life? I mean, how does one generate two large primes? SInce there is no known algorithm for factoring the product of two primes it seems that there would also be no known algorithm for generating numbers that are prime? Also, is the arithmetic carried out? Raising a message to a power of significant size isn’t going to work well with a 32 or even 64bit processor. I assume some type of addon library is used to accomodate the larger numbers? How are these implemented? Finally, I understand that these mechanisms already exist and re-inventing the wheel is often dangerous in terms of crypto, but I just want to do it as a learning exercise.
My understanding of RSA algo:

1) Choose 2 large distinct primes p and q
2) Calculate modulus as N = p*q
3) Calculate totient as (p-1)(q-1)
4) Choose e such that 1 < e < (p-1)(q-1) and e is coprime with (p-1)(q-1). [Does this mean e could ever be 2? It seems an odd number would be required for e?]
5) Find d such that ed = 1 mod (p-1)(q-1)
[Is there only 1 d that works or does it matter which solution I choose?? What is an efficient way to calculate this??]

6) c = m^e mod N where m = msg expressed as number … whats an efficient way to raise m to such a large exponent? I realize modular arithmetic bounds this somewhat, but still the calculation could/should be much larger than 32 or 64bit values…

I’m trying to install Java version 6 Update 11 (newest version) on my Fedora Linux computer, and I’m running into some trouble. I’m following the directions on the Java website, and this is what it says:

Follow these instructions:

1. At the terminal: Type:
su
2. Enter the root password.
3. Change to the directory in which you want to install. Type:
Example: /usr/local (this is what I used)

4. Change the permission of the file you downloaded to be executable. Type:
chmod a+x jre-6u<version>-linux-i586-rpm.bin
5. Start the installation process. Type:
./jre-6u<version>-linux-i586-rpm.bin
6. The installation file creates jre-6u<version>-linux-i586.rpm file in the current directory.
7. Run the RPM command at the terminal to install the packages. Type:
rpm -iv jre-6u<version>-linux-i586.rpm
8. The JRE is installed in jre1.6.0_<version> sub-directory under the current directory. In this case, the JRE is installed in the /usr/java/jre1.6.0_<version> directory. Verify that the jre1.6.0_<version> sub-directory is listed under the current directory. Type:
ls

Now the trouble I run into is #4. I managed to make the downloaded file executable, but then when I type chmod a+x jre-6u<version>-linux-i586-rpm.bin into the terminal, it keeps telling me"chmod: cannot access `jre-6u11-linux-i586-rpm.bin’: No such file or directory"

I have no idea what to do to now, can anyone please help?

Note: I am installing the RPM file, I think this is the correct file type for this OS.
What’s the entire directory if it’s in my Downloads folder? Or on the home screen?
I tried it, and it doesn’t work… Any other ideas?

Trying to install Adobe flash player 10 on my Linux Asus Eee Pc
on the adobe website and there are four methods for downloading linux and none of them worked.
YUM repository-in the terminal I typed # rpm -Uvh <rpm_package_file> but nothing happened.

None of them worked, what should I do?