I usually use the following command to join several PDF files in one :gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=output.pdf input1.pdf input2.pdfHadn't have to do it for a while but today, I needed it and thus fired my script.lam! gs segfaults.A quick internet search and I found this :https://bugs.archlinux.org/task/22006Though Arch related, while I'm running slackware64-current, the behaviour was exactly the same as mine.In the above thread, one guy linked to a bug report which seems to be theculprit :http://bugs.ghostscript.com/show_bug.cgi?id=691831gcc 4.5.1, gs 9.00, x86_64, indeed, slackware64 seems to be exactly in that situation.
I'm looking for a solution for the following simple problem. I have two files, fileA and fileB. Each file contains only one word per line, and they contain exactly the same number of lines. I would like to create a new file called fileAB, where the i-th line contains the i-th line of fileA, a Tab separator character, and then the i-th line of fileB. I know how to do it in Python or other scripting languages, but it would be nice to have a bash one-liner for that. Is it possible to do this in bash or any other Unix shell, using the tools that are usually available on the command line (e.g., sed, awk and such)?
I am trying to join about 3 video file and have an audio track over the top. Nothing major and to give you an idea how basic it needs to be, I used windows movie maker in the past. I can't figure out how to do it! I had a flick through the web and some people recommended Avidmux. I installed it and i can edit one video file with no audio but if i try to incorporate a second file it just opens a new window! Has anyone got any ideas on good video editing software.
I keep trying to convert a bunch of jpg files into pdf, but ImageMagick just seems to keep failing there. Well well, after three thousand fix and reinstall attempts (seriously, I've been trying to fix it for the last month or so), this is what I'm getting today:
I have been playing with JWM source and found this cool tutorial at Debian Forums about how its easier to generate a .deb vs installing from source in the traditional manner (./configure, make,etc)[URL] My problem is that when doing the command
dpkg-buildpackage -rfakeroot -us -uc
it starts over, destroys the previous jwm stuff, including my custom files and generates a .deb so, how do I stop it from "cleaning" when i run the above command?
I keep a backup of a bunch of files on a flash drive, so that whenever I change distributions I can just restore all my Android stuff (saves on re-downloading everything). One of these is the Android SDK.
In my ~/.bashrc I add the paths to some executables in the SDK, only if the directory exists, and only if the path is not already in $PATH. For the Android NDK this works fine, but for the SDK I get this:
Code: snfo@snfo:~$ adb devices bash: /home/snfo/Android/sdk/platform-tools/adb: No such file or directory snfo@snfo:~$ ls -F /home/snfo/Android/sdk/platform-tools/adb /home/snfo/Android/sdk/platform-tools/adb*
Everything else is fine though, just that one path is causing trouble.
Now, I've saw something similar to this before whenever you move an executable from one place to another. If you don't re-source your bash config it will continue to keep looking wherever it used to be located. But I've never moved these files.
Basically I need to rename a bunch of .doc files using the for-structure and the mv command (w/ wildcards) in bash. I guess this would be a bit easier if I'd use the rename command, but since this is a school assignment of sorts I need to use for & mv. The .doc files are named "1filename.doc", "2filename.doc" etc. And I've got to rename them to "aaa_1filename.doc", "aaa_2filename.doc", "aaa_3filename.doc" and so on. Tried to dabble quite a bit with the for and mv commands, basically just got a bunch of errors. Every damn time. For 2 hours. The most common error was "mv: missing destination file operand after ..."
I'm not asking for help here, just documenting something I just discovered. Yesterday I wanted to batch-convert a bunch of old wma files to ogg vorbis. Not wanting to go through intermediate wav files, I tried to use ffmpeg to do it in one go. I first tried using the following command (in a loop, which I won't print here).
Code: ffmpeg -i $file -f ogg -acodec vorbis -ab 192k outputdir/$file "vorbis" turns out to be the built-in libavc implementation of the codec. In the process I discovered that the -ab value is always ignored. No matter what value you put, the output is always the default 64k (average, but of course it's vbr). You can however use the poorly-documented -aq option to set the audio quality used. The values don't correspond to the oggenc values though, being a number ranging from 10-100 (or more, I don't know what the maximum is). It's not exactly clear what number corresponds to what average bitrate, so you have to experiment. ~30 seems to give you an average-rate file, while anything above 60 is probably overkill.
Switching to the external libvorbis gave me more flexibility, although at a cost of much longer encoding times (note that ffmpeg must have been compiled with libvorbis support first).
I could use both -ab and -aq (with the numbers corresponding to the oggenc values), with no problems. ffmpeg does display some wrong values in it's output text, however. In addition, there's one more difference. The vorbis (libavc) codec provides an entry in the header of the ogg container reporting the average bitrate, but it doesn't appear to provide a similar bitrate header in the vorbis stream itself. Some programs may not report the bitrate value because of this.
libvorbis provides both headers, avoiding that problem. So to summarize, libvorbis appears to be a better codec choice than vorbis.
I'm new to this. The VIDEO_TS folder has a bunch of VOB files sequentially names along with BUP and IFO files. But when I start up VLC and choose 'Open Dir' and point to the VIDEO_TS file, it plays a short trailer of the movie and does not move onto the rest of the VOB files. Is there a was to play them sequentially? or is the only way to select the files in the order in which to play them and then play them all?
I have an rsnapshot backup that I need to move off of a corrupt Linux file system. I need to preserve the internal hardlinks. I've tried rsync -H and using a newer rsync and neither preserve the hardlinks on OS X.
I tried to get rsync -H working and I've isolated it to the file system mounted. I can preserve hard links copying locally (HFS to HFS) but it doesn't preserve when I try to rsync off of a SMB file system mount or AFP file system mount. Is there some mount option solution to getting OS X rsync to obey -H?
is there a simple shell script that would recurse all /home/xxx/public_html directories, and then yank this line (it will always be exactly the same) and better yet, for future, is there any way I can REPACE that line with another..
I have been using Eclipse to program in Java for a long time, and have been using Jigloo for most of my GUI design. Recently I decided to try out the C/C++ plugin. I tried installing it, but it did not work. After many attempts, I finally gave up. However, after uninstalling it I found that Jigloo had stopped working. Any other plugins I try to install now also don't work. I have tried uninstalling and reinstalling plugins, and reinstalling eclipse, but nothing I have done fixes it. Although eclipse says that the software has been installed, nothing shows up in the features list or the plugins list.
Another problem: When I install eclipse from the repositories, it doesn't install a bunch of libraries and eclipse cannot recognize standard java files.
I need to search a bunch of files in a specific folder for a specific number and add all the numbers together to a total sum. I use Rsync everyday, everytime I run rsync i get a logfile (rsync output) witch contains the textstring "Total bytes sent: xxxxxx".
The "xxxxx" can vary in lenght. I need to extract the "xxxxxx" from each file and add the numbers together to a total size over a week or a month. Is this possible? And I wish to only use bash. One way of doing stuff at a time my friends .
I have Ubuntu 9.04 and just installed Sound Converter. I am trying to convert a bunch of .ogg files to mp3 to play on my iPod and it's not working so well. In the Sound Converter options I have is set to convert to high quality mp3. I choose the folder that the files are in and after a moment (slow laptop) Sound Converter populates, I hit 'convert' and it shows that the conversion completes in two seconds. All that it did was create the new folder structure of artist/album but there is nothing in there. Not sure what I am missing. I used Sound Converter before and it worked fine.
Why does centos-release-notes have any dependancies ?
I can see no reason why centos-relese-notes should depend on centos-release when I try "yum erase centos-release-notes" I am told there are 72 dependancies including completely irrelevant packages such as tar all because of this unnecessary dependancy.
The centos-release-notes package simply contains a bunch of text/html files that nothing else relies upon, so why the dependancies ?
Create Ubuntu inside Virtualbox (done) Join it to the domain using net ads join -S example.com -u admin (done) Update the DNS using net ads dns register (done) Be able to visit the netbios name as defined in smb.conf (lets call it Bob). [Not done]
The problem I am having is that it looks like, even though the machine is now on the AD, and I can browse users in the AD, etc... My network configuration (IP/route tables, etc) are not correct.
For example, my AD server is in the 172 IP range, while BOB is sitting at 10.0.2.15.
The DNS server stores Bob's value as 10.0.2.15, so when I ping it from my workstation at 172, I end up getting no response (obviously it's on a different net).
Bob's route table is configured to deal with 10... range of IP, rather than 172.
I have attempted doing commands such as ifconfig eht0 172.16.1.118 netmask 255.255.255.0 and even editing the route tables, but that then makes outbound network traffic imposable.
I want to join a Windows domain with my ubuntu (for project of evening school)I'm following this guide http://ict-freak.nl/2008/10/26/how-t...indows-domain/ but when I put in the command I get this error
Code: Error: Unable to resolve DC name [code 0x00080026]Resolving 'project2010.be' failed. Check that the domain name is correctly entered. Also check that your DNS server is reachable, and that your system.is configured to use DNS in nsswitch.Probably need to Change the nsswitch file.it looks like this atm
Code: # /etc/nsswitch.conf # # Example configuration of GNU Name Service Switch functionality.[code].....
I don't have any background in networking. Could someone tell me what are the possible options and the best solution to join two networks together?Let's say network A has the IP address of 192.168.1.0/24 and network B has the IP address of 10.0.0.0/24. Should each end of the network has a gateway server? Or should I just setup one enough? Or do we have alternate options?
I did a search for this but did not see anything relevant.I'm trying to join several strings and execute them as a command but csh does not seem to recognize it as a command, anyone know what I'm doing wrong? numone and numtwo will be passed into the script. (I have to use csh because it is a part of an existing script.)
I have successfully deploy/configured the Ubuntu PDC and connected Windows XP too. Its all working fine.. but now I wana to connnect Ubuntu Desktop to same Ubuntu PDC. I have changes in SAMBA, as per required for joining Domain and execute the <net join MyDomain -u root> to its all fine. No error. But How to Login? On startup there is nothing like option for selecting Domain or Workgroup..
I have a file of size 6GB. I would like to find an utility which will split and join in both windows and in Linux. I know Linux has native split and cat for this purpose. My idea is, if I give this split files to anyone, they should be able to join them either in Windows or Linux. Is there any utility to do this job?
How to compare two wav files [URL] or to be capable to reco simple voice commands? Openbox, fluxbox... can be ran using perlbox voice reco for basic commands. [URL] everything is frequence based:[URL] However we would like to make the use of the ALSA and processing after recording. OK.
apt-get install -f sphinx2 here is my script: Code: #!/bin/sh # my alsa-1 is my usb mic arecord -Dplughw:1,0 -f cd -vv voicecommand.wav
THe next step is to analysis the wav file just created. The advantage is that sphinx2 works for basic commands + it uses only up to 3% of your CPU resources !
I have created a linux vm on hyper-v and would like to put it on our network domain. The Hyper-V software is running on windows server 2008. I would appreciate it if you could please give me a step-by-step guide on how to make this possible or a reference where i can get information on how to do this.