May 22, 2013, 05:51:54 AM

News : LinuxSolved.com Linux Help Community Forum..


Recent Posts

Pages: 1 ... 8 9 [10]
91
Linux Installation Support / How to install iconv on Linux?
« Last post by peddi888 on September 21, 2012, 09:42:59 AM »
Hi Guys

Can any one please tell me how to install iconv package on Linux. Below is my linux version


Linux  2.6.18-308.1.1.el5 #1 SMP Fri Feb 17 16:51:01 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
92
Miscellaneous / Trouble with iconv command in Linux
« Last post by peddi888 on September 20, 2012, 02:47:52 PM »
Hi Guys


I have used the iconv for Japan and Russia files to convert form their Source encoding to UTF-8 as the tool I'm using requires Files to be in UTF-8. The below script worked well in Unix Server[SunOS  5.10 Generic_147440-09 sun4u sparc SUNW,Sun-Fire-V440].

if [ $file_name = 'PRIEMP_JPNTXT' ]; then
mv $file1 UTF8_JPN.csv;
iconv -f SJIS -t UTF-8 UTF8_JPN.csv > $file1;
echo "$file_name Conversion done"
fi

if [ $file_name = 'PRIEMP_RUSTXT' ]; then
mv $file1 UTF8_RUS.csv;
iconv -f UCS-2LE -t UTF-8 UTF8_RUS.csv > $file1;
echo "$file_name Conversion done"
fi



Recently I have migrated my scripts from Unix machine to Linux server as per Client requirments. Linux Version is
Linux  2.6.18-308.1.1.el5 #1 SMP Fri Feb 17 16:51:01 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 5.8 (Tikanga)

After migration is done to Linux, iconv command is not working as expected. iconv is not converting the files into UTF-8. Not sure what needs to be done. Searched in many forums but not found appropriate answers. Any help on this is greatly appreciated.

iconv is present in Linux and I have checked it for particular encoding too.

-bash-3.2$ iconv -l | grep UCS
10646-1:1993/UCS4/
CSUCS4//
ISO-10646/UCS2/
ISO-10646/UCS4/
UCS-2//
UCS-2BE//
UCS-2LE//
UCS-4//
UCS-4BE//
UCS-4LE//
UCS2//
UCS4//


-bash-3.2$ iconv -l | grep SJIS
SJIS-OPEN//
SJIS-WIN//
SJIS//

Can anyone please help?
93
Linux Development & Programming / Trouble with iconv command in Linux.
« Last post by peddi888 on September 20, 2012, 02:14:23 PM »
Hi Guys


I have used the iconv for Japan and Russia files to convert form their Source encoding to UTF-8 as the tool I'm using requires Files to be in UTF-8. The below script worked well in Unix Server[SunOS  5.10 Generic_147440-09 sun4u sparc SUNW,Sun-Fire-V440].

if [ $file_name = 'PRIEMP_JPNTXT' ]; then
mv $file1 UTF8_JPN.csv;
iconv -f SJIS -t UTF-8 UTF8_JPN.csv > $file1;
echo "$file_name Conversion done"
fi

if [ $file_name = 'PRIEMP_RUSTXT' ]; then
mv $file1 UTF8_RUS.csv;
iconv -f UCS-2LE -t UTF-8 UTF8_RUS.csv > $file1;
echo "$file_name Conversion done"
fi



Recently I have migrated my scripts from Unix machine to Linux server as per Client requirments. Linux Version is
Linux  2.6.18-308.1.1.el5 #1 SMP Fri Feb 17 16:51:01 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 5.8 (Tikanga)

After migration is done to Linux, iconv command is not working as expected. iconv is not converting the files into UTF-8. Not sure what needs to be done. Searched in many forums but not found appropriate answers.
Any help on this is greatly appreciated.

iconv is present in Linux and I have checked it for particular encoding too.

-bash-3.2$ iconv -l | grep UCS
10646-1:1993/UCS4/
CSUCS4//
ISO-10646/UCS2/
ISO-10646/UCS4/
UCS-2//
UCS-2BE//
UCS-2LE//
UCS-4//
UCS-4BE//
UCS-4LE//
UCS2//
UCS4//


-bash-3.2$ iconv -l | grep SJIS
SJIS-OPEN//
SJIS-WIN//
SJIS//


94
Os Talk / Dreckig OS Commands
« Last post by amarco on September 18, 2012, 11:00:52 AM »
good morning
i would to know the commands of dreckig os.

thank you
95
Linux Kernel / Re: Linux Power mangament architechure
« Last post by bandaru_sivakrishna on September 18, 2012, 05:35:45 AM »
I am using Samsung-exynos micro-controller...in this controller we have 6 power states they are
1) Normal
2) Idle
3) Deep-Idle
4) Stop
5) Deep-Stop
6) Sleep

But in linux Kenel we have only Four Power states, they are
1) Run
:)
2) StandBy
3) ShutDown
4) Sleep

So my question is How the Linux kernel 4 power states are controlled Samsung-exynos micro-controller 6 power states. How its inter-linked?

Please Help me on this.

Thanks & Regards
Siva Krishna.
96
Linux Servers Support / Trouble assigning user to group in OpenLDAP
« Last post by sunnysthakur on September 17, 2012, 04:38:01 PM »
Hello,

I am working on setup LDAP Server and facing issue related to assigning user to a group. Below is the LDAP structure i am using.

I have created Users,Groups and Servers ou's and sub ou's added to the same [bugbase,ftp,samba,svn,tcms,wiki] or Users as well as Groups OU.

Logged in as: cn=Manager,dc=bebolabs,dc=net

+--> dc=bebolabs,dc=net (3)
+--> ou=Groups (6)
| ---> ou=bugbase
| ---> ou=ftp
| ---> ou=samba
| ---> ou=svn
| ---> ou=tcms
| ---> ou=wiki
---> ou=Systems
+--> ou=Users (6)
| ---> ou=bugbase
| ---> ou=ftp
| ---> ou=samba
| ---> ou=svn
| ---> ou=tcms
| ---> ou=wiki

Now i created a user under Users->FTP->username ou and group created under Groups->FTP->groupname ou.

I assigned username under Users->FTP to group under Groups->FTP.

But on login from client machine below error is throwing and user is n

[root@ldapclnt ~]# su - sunny
[COLOR="#FF0000"]id: cannot find name for group ID 500[/COLOR]
[sunny@ldapclnt ~]$ id
[COLOR="#FF0000"]uid=500(sunny) gid=500 groups=500[/COLOR]
[sunny@ldapclnt ~]$


Please help me on this how to fix this.

Below is my ldapgroup.ldif and ldapuser.ldif

ldapgroup.ldif
dn: cn=sunny,ou=ftp,ou=Groups,dc=bebolabs,dc=net
objectClass: posixGroup
cn: sunny
gidNumber: 500
memberuid: sunny

ldapuser.ldif

dn: uid=sunny,ou=ftp,ou=Users,dc=bebolabs,dc=net
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
uid: sunny
sn: sunny
givenName: sunny
cn: sunny
displayName: sunny
uidNumber: 500
gidNumber: 500
userPassword: {crypt}$1$tayZSy59$DcPHe6xQC3IvlNLE5u1ix1
gecos: sunny
loginShell: /bin/bash
homeDirectory: /home/sunny
shadowExpire: -1
shadowFlag: 0
shadowWarning: 7
shadowMin: 0
shadowMax: 99999
shadowLastChange: 15240
97
Linux Kernel / Linux Power mangament architechure
« Last post by bandaru_sivakrishna on September 17, 2012, 05:47:55 AM »
Hai All,

I am working on Linux power management on Cortex A-9 dual core micro-controller. I am new to power management. So Can you anybody Please Help me on Linux power management architecture with Hardware level.

Please help me on this.....

Thanks & Regards,
Siva Krishna.  :)
98
Os Talk / Re: Sorry, user is not allowed to execute '/bin/mkdir 1' as root on localhost
« Last post by dalek on September 08, 2012, 09:41:04 PM »
Well, it has to be one of a few things.  Permissions for the command itself, which I think would result in another error.  Command is not in the users path.  Last that I can think of, something to do with the way it is mounted.  So,  I would do a:

Code: [Select]
ls -al /bin/mkdir
That would be assuming that mkdir is in /bin on your system.   Then I would type in as that user:

Code: [Select]
/bin/mkdi
then hit tab twice.  If that command is in your path, it should auto complete the whole command and add the "r" on the end.  Then if all else fails, check out how the partition the directory is on is mounted.  Just type in mount and look at the list.  I would look for something obvious like mounted ro, read only, or something like that.  If you use uuid's or something, make sure those are OK too. I don't use those so no idea what is correct or not but know they can mess things up when not set correctly. 

If none of that works, I'm clueless.  So, I hope that helps. 

 :)   :) 
99
Hello,

I created a user who should have rights to work under /opt/lampp/htdocs directory. This directory is having below rights.

drwxr-xr-x 184 deploy deploy 12288 Dec  3 17:42 htdocs

i created a user deploy which belongs to deploy group
uid=502(deploy) gid=502(deploy) groups=502(deploy) context=root:system_r:hotplug_t:SystemLow-SystemHigh

but now when user deploy going to create any directory/files under /opt/lampp/htdocs, is giving the below error

Sorry, user is not deploy allowed to execute '/bin/mkdir 1' as root on localhost

Please let me know how to fix this.

Thanks,
Sunny
100
Linux Development & Programming / Having trouble writing a kernel module
« Last post by SuperSpry on September 06, 2012, 10:02:16 PM »
I'm trying to write an API as a kernel module and hope to be able to call functions from my module in device drivers. These are the steps I have followed. Am I missing anything?

1.) Write module with some functions (code.h and code.c).
2.) Build module, load with insmod.
3.) Copy code.h into <kernel>/include/linux directory.
4.) #include <linux/code.h> in a driver.
5.) Add a call to a function from my API in the driver.
6.) Build the driver, load with insmod.

But this isn't working. When I try to build the driver, I get warnings saying that the API functions are undefined. Any idea what's going on?
Pages: 1 ... 8 9 [10]