I'm using Busybox's Hush shell on an appliance running uClinux, and would like to make sure I'm not packing shared libraries that aren't actually used by any application. I couldn't figure out how to compile "ldd" for that environment, but I could compile "readelf" which does the job:
Quote:
find /bin -type f -print0 | xargs -0 ./readelf -d
File: /bin/myapp
Dynamic section at offset 0x7f4c contains 20 entries:
Tag Type Name/Value
0x00000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x00000001 (NEEDED) Shared library: [libc.so.0]
I was wondering if it possible to format the output so that I would get something like this instead:Quote:
I'm writing a script that gives me some pertinent info about my servers, and the last little piece I need to figure out is the process list. There are going to be non-technical people looking at the output of the script and I'm trying to make it as simple as possible.
Right now, if I do ps -ef | grep <process> | grep -v grep It obviously shows me the process, but the problem is that there is 4 lines of info in front of the process. ie
root PID date time java -1024 -cp oh,my,god,there,is,so,much,data,it,carries,on,for,4,lines,I,want,to,shoot,myself,trying,to,read,it,f inally,in,the,end,there,is,a,space /here/is/the/process I'd like the output to be something like this: PID: #### Process: /here/is/the/process
I've thought about how I could take the output and use awk or sed but I know there is probably an easier way to do it with perl.
I have new external usb drive which I'm trying to format to NTFS so I can also use in in windows. I've set it up using fdisk
Disk /dev/sdd: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x604a2a7d
Device Boot Start End Blocks Id System /dev/sdd1 1 60801 488384001 7 HPFS/NTFS
And tried formatting using mkfs -t ntfs /dev/sdd1
However I get the following error Cluster size has been automatically set to 4096 bytes. Initializing device with zeroes: 100% - Done. Creating NTFS volume structures. Error writing to /dev/sdd1: Input/output error. Error writing non-resident attribute value. add_attr_sd failed: Input/output error Couldn't create root directory: Input/output error
I'm looking into building a media server that will output to 2 channels. I'd like to use Ubuntu however, if there's a better alternative, I'd be open to using it. I'd have 2 audio and video cards for output and what I'm interested in knowing is if there's a way to set the audio output to a specific card per application or workspace. Is there an easy way of doing this?
I want to output two applications one to a headphone and another to the regular speakers, what app can I use?? it would be better if I don't have to move from audio player, I tried with alsa sound mixer but for some readon it doesn't list the speakers
I currently have my desktop setup with two displays, one of them being my living room tv that I run Boxee on. My problem is that all the audio runs through the same speakers preventing me from listening to music or gaming at the same time as when Boxee is in use.
I would like to know if it's possible to split the audio so that an application of my choosing only outputs sound through my headphones. I was thinking it would be possible with some of the controls in pulse, but if it is I cannot figure it out.
I want to create a small simple application that will let me change the Output of the Sounds option to go from speakers to my headphones. I can do this easily enough through System --> Preferences --> Sound, but I'd like to create a GUI front end for me to do this. This is more as a learning exercise than anything else.What is the best language for me to build the windows to do this? Also, how do I find the commands to let me toggle the sound settings? Where are they documented? I'm using Ubuntu 10.04.
Running 10.10 and win 7 on my HP dv6-2150us laptop and I'm having a few issues.
First how do I get HDMI audio output to my TV? I think I have just a integrated Intel graphics card. It works fine in windows but I can't seem to get it to work in Ubuntu. I tried searching but couldn't find anything pertaining to this issue.
I am sure that this is very simple but I have installed sound juicer and the gstreamer plug ins. The problem is i still cannot select MP3 as an output output option
I don't know anything about ubuntu. Could you guys help me out. I'm pretty knowledgeable with windows if you guys need a printout of something let me know. My friends getting really frustrated about this. Help!!i
So here's the situation. He plugs his audio jack into his computer and then into the speakers but it still plays from the computer speakers.
I finally got audio working on my ubuntu 9.10 desktop... now I am having sound issues watching movies from a network share.The sound device continually randomly changes to "dummy output device" and then there is no sound output. The sound icon dissapears on the toolbar. To get it back and audio to start working I have to $sudo alsa force-reloadIt seems to happen everytime there is a network delay, the movie will stop for a second and then when it plays the sound is gone
I've downloaded VideoLan (VLC) via Yast but the icon was placed in the audio folder. How do I move it to the video player folder? Also, where are additional icons stored? I run SuSE 11.2 (boxed version) with KDE.
How do I make an application launcher in the panel launch more than one application? Is there some sort of a symbol I type between the apps in the command line? Like ;
when an application is opened or minimized the icon of that particular application is not showing up in the top bar of ubuntu 11.04...how can i see the icons in the top bar?
I am getting no packages listed in Gnome application manager gpk-application 2.27.2. I have tried 'yum clean all' and get the following error messages.
So, I have this application called Impact, it is an explicit time integration Finite Elements code written in Java...
[url]
I untar the pack, and launch the application calling a script, from within the untarred folder,
Code:
This launches a gui which allows me to setup a case, which needs some setup file, tipically some *.in and a mesh file, tipically some *.msh.
Other mode of executuion consists of calling the setup file as argument to Impact.sh script ( CLI execution mode, for g33k5 )
My problem is : I have packed the whole stuff into a Slackware .tgz, that places it in /usr/local/Impact, and placed a calling script in /usr/local/bin,
Code:
Code:
I decided to hack the ImpactGUI_OGL_linux_amd64.sh script from
Code:
Code:
no avail,
Code:
even after adding /usr/local/Impact/bin to PATH... won't go...
I can run this thing from within its directory... but I do not like messing within the directories of my applications, this is why I sent this to /usr/local, and placed a calling script in /usr/local/bin...
I am trying to troubleshoot an application that is generating several segfaults with an error 14, but the application is not crashing.The program continues to run. I would assume I can connect to a running process to debug it, but I'm not sure what to gather. The program has several background processes associated with it so I'm sure I'll need to attach to the actual internal process. Does anyone have any experience in this to offer some insight?
Is there any way to partition off say 40GB of a 250GB drive (only 5GB used) into an NTFS partition to install windows Vista SP1?? I have tried the System -> administration -> disk utility, but I can not figure out how to partition in it.
I'd like to know if it's possible in my program (C/C++) to create a filesystem on a partition, maybe with advanced options too. I don't want to call the shell and execute the usual commands to do that, so I wonder if there are some native Linux syscalls or external libraries to do that.
I have an command to read inputs from file2 and replace the content in file1. Issue is that the op is coming in a single line as gsub and split functions don't recognize new line characters.
Code: awk 'NR==FNR{gsub(/input./,""); split($0,a," = ");b[a[1]]=a[2];next} {gsub(/@/,"");for (i in b) gsub(i,b[i])}1' $t2 $t3 This gives belwo op:
What's the easiest way of formatting SD cards to FAT32 in Fedora linux?
Also, I'm having trouble when I try to unmount the volume of a SD card, there's 0.8 GB being used that I expect to be cleared when I choose to 'empty trash', everytime I select 'unmount volume' the SD card window just shuts down instead of clearing that space.
I've been asked to move data from an old external hard drive to a new one, and to make the new one compatible with the Macintosh. (The old drive's USB connection has died, and I'm connecting to old the drive using a PC card that provieds an eSATA to the drive. The recipient's Macintosh doesn't have a PC card slot, so she can't access the old drive anymore. Hence, the new drive.)
Naturally, I'm doing this data transfer using Linux. I've discovered that I can format the drive as HFS+ using mkfs.hfsplus from the hfsprogs package. But I need to know: do I need to do anything special with the partition table? Is there a special Macintosh partition table format that I need to format this disk to? If so, what tools can I use to get the right format for the partition table?