Debian Programming :: Automatic MKV Merging
Sep 13, 2014
I want to make a little script/program/something that can organize my TV show collection. I'm italian, so I store for each episode the .mkv file and the .srt file. To let VLC automatic recognize the .srt file, I use the same name for the .mkv and the .srt.
That solution is quite optimal, but we can do better: a program that watches a directory and it's subdirectories and automatically runs mkvmerge if it detects files with the same name in the same folder.
I'm a Java programmer, so I can easily make a program that finds files with the same name and runs mkvmerge.... My problem is the directory listener. I found incron, but the problem is that it don't add the listeners to the subfolders of a folder.
View 3 Replies
ADVERTISEMENT
Mar 2, 2011
How does coalescing of requests takes place during merging if the following scenario occurs.. say request for sector number 3 and 5 already exists...and a new request for sector 4 arrives, then if it front merges with 5, will it also back merge (i.e coalesce in this case) with 3 ? if it happens ..which functions are called? and how do we get to know whether a single merge or multiple merges have taken place?
references : blk-core.c, elevator.c, deadline_iosched.c all under /block.
View 1 Replies
View Related
Sep 15, 2010
What i am trying to do is i want to add numbers from 1 to 100. but that too using multiprocessing. So i made a c programme and using fork() command made two child processes. Now in one child process i am adding from 1 to 50. and in another i am adding 51 to 100. and then in the parent process adding the two results to get the final one. Now the result from the two function i am getting correctly. But after the wait() call the value returned is lost : See the programme below for reference
# include<stdio.h>
# include<unistd.h>
# include<sys/wait.h>
# include<stdlib.h>
[code].....
View 6 Replies
View Related
Apr 12, 2010
I want to connect to anothere server from my current server through SSH command.
when I am using the command in the terminal like-- ssh username@ip it is asking me to give password. This is working fine in the terminal. but I want to do it automatic through a shell script.
How can I be able to provide userid and password through shell script?
I was trying to achieve it by creating a public key and copy it to the destination .ssh file. but I dont have the permission to create any file in the destination server.
View 2 Replies
View Related
Mar 27, 2011
I need to come up with a script that restarts every month, and sends out a reminder 5 days before the end of the month to all customers on the list with rentals. After 10 days, if their name hasn't be deselected, it will send out a last notice email to remind them of their contract and yada yada. I'm not sure if a web-based script (php) would be better, or a "regular" language like python or something.
View 1 Replies
View Related
Aug 20, 2010
is it save to install linux kernel 2.6.35.2 on Debian Lenny 5.0.5 or stick with automatic updates...
View 14 Replies
View Related
Jan 15, 2011
It is known and well described in C++ standard ('C++ Standard - ANSI ISO IEC 14882 2003.pdf') that under certain circumstances types are promoted - for example, 'int' is promoted to 'double'.My design goal is to create wrappers around standard scalar types (like 'double', 'float', 'long', etc.) that would prevent such conversions/promotions, i.e. I want to create a really strictly typed C++ environment (like, say, OCaml).
However, the promotion is caught at runtime.Is there a way in C++ to catch/block such promotions/conversion at compile time ?
View 7 Replies
View Related
Oct 18, 2010
I had to make for work a collectd based network monitoring system which displays data for each server in a fullscreen conky on different compiz viewports. I have to switch viewports automatically when the machine isn't operated (sorta screensaver) and also if i had to call attention in the case something bad happens, autoswitching should stop and the relevant viewport be showed up.This requires an interface to talk dynamically to the WM, which i've implemented in bash with support of the widely available "wmctrl" program.
Code:
http://paste2.org/p/1177045
Code:
[code]...
View 8 Replies
View Related
Nov 6, 2014
On one computer the live cd installation automatically made GPT partitions, but on the other it makes mbr, how come it decides to do this, does that mean i shouldnt try to use gpt on my laptop, they're both bios boards
View 1 Replies
View Related
Apr 20, 2015
I was wondering if there is a way to automatically transfer files between one machine to another upon Debian starting (or when a script is executed). Would it be also possible to check a database for a value and if the value exists then files can be transferred automatically (just like reboot).
View 3 Replies
View Related
Feb 8, 2016
Like topic, I want to create a weekly backup of some folder to anoter partition (or external usb), compressed or not (folder also of 20/30 gb), with only root permission on file (or folder) created..This system, where I have installed debian jessie, is always on being used like a NAS..
View 1 Replies
View Related
Jun 18, 2010
Can't set automatic login in lxde.Where is that option to do it?
View 7 Replies
View Related
Jun 20, 2015
In my office there is a department where the access of internet & intranet is very limited. I've been given a task that I should add a script which would automatically take screenshots of the PCs. The script works fine, but I can't make it work with the cron jobs. There are many methods given on the internet to grab screen, but none of them works with cron.
View 2 Replies
View Related
Oct 27, 2015
I use Debian 8.2 without DE. I can mount removable devices (USB sticks, external HDDs) manually using mount/umount to specific folders under /mnt or /media. But I want them mount automatically when plugged-in as /media/disk-label. Also I want to be able safely remove already mounted devices without data loss.As I understand, I need to create custom UDEV rule and associate it with mount/umount scripts. E.g. mount script
Code: Select all#!/bin/sh
mount_point=$ID_FS_LABEL
if [ -z $mount_point ]; then
mount_point=${DEVNAME##*/}
fi
# retrieve gid of the plugdev group and set it as owner of mountpoint
plugdev_gid="$(grep plugdev /etc/group|cut -f3 -d:)"
if [ -z $plugdev_gid ]; then
[code]....
Is this safe and correct approach or it is better to use something else?
View 3 Replies
View Related
Apr 20, 2016
How do you list only installed packages that were not installed automatically? I see in aptitude that it will list whether they were installed automatically or not, but it is hard to find them because the are a lot more installed automatically than non-automatically.
View 1 Replies
View Related
Nov 17, 2015
How to enable automatic logon to the desktop Debian after turning on the computer?
View 2 Replies
View Related
Jan 15, 2016
When I try to run programs from root terminal I get the error
Code: Select allQDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
No protocol specified
kate: cannot connect to X server :0
I found a solution: I do
Code: Select allxhost SI:localuser:root
but I have to do it after each reboot. I tried to put this command in rc.local but it did'nt work. How to do this auto?
View 3 Replies
View Related
Mar 9, 2010
I have configured a RaLink wireless card to connecto to an 802.1x network. I connect by selecting the network, and the i give the credentials(username/password). How do i configure Debian to automatically connect to this network when a session begins?
View 2 Replies
View Related
Nov 1, 2010
I've just installed debian sid and see that I've the kernel 2.6.32. I was a bit surprise as on ubuntu I had the 2.6.35 and debian sid is supposed to be more up to date that ubuntu (maybe I'm wrong).So I checked what were the packages available :
mart@mart-laptop:~$ uname -a
Linux mart-laptop 2.6.32-5-686-bigmem #1 SMP Sat Oct 30 23:25:58 UTC 2010 i686 GNU/Linux
mart@mart-laptop:~$ sudo aptitude search ^linux-image
[code]...
View 2 Replies
View Related
Dec 29, 2010
I wanted to ask how to restart the Debian Server. It should start daily, at 2-3 o'clock in the morning. Don't know how to program the server.
View 4 Replies
View Related
Apr 10, 2016
I would like my laptop to automatically switch to HDMI (both video and audio) when I plug a HDMI cable in. Running Jessie with Xfce, and I hear that KDE already does this...? I would prefer to stay with Xfce though, and have tried making a UDEV rule and script, taken from the last part of this thread: [URL] ....
At first it worked perfectly, but now for some reason, only Chromium gets resized when I plug/unplug the cable. HDMI output is correctly activated upon cable insertion, but when taking the cable out again, the desktop resolution remains the same (larger than my laptop resolution), so the panels etc. are invisible.
View 1 Replies
View Related
May 20, 2010
I tried to set up an automatic program restart on Debian Lenny for fail2ban and asterisk. Google helped me to find some HowTos. However, all what I tried so far doesn't work. The latest version: According some instructions the following commands have been written in a file called auto_start_stop:
Code: #! /bin/sh
-> saved in the folder /etc/init.d and
-> its properties changed with a right-click to 075.
-> The links have been created with update-rc.d auto_start_stop defaults
Why this doesn't work and how I could correct it?
View 5 Replies
View Related
May 25, 2011
I have 2 partitions on my 50 GB HDD. 1st 20GB (ubuntu), 2nd 30 GB (Data). I want to merge data partition to the first one. How can I do that?
View 9 Replies
View Related
Jun 9, 2011
i am totally new to terminal!!! i extracted both the audio and video from an mkv file. both can be played back without any problem, yet i can't merge them into a single one
View 9 Replies
View Related
May 21, 2010
I looking for a program for automatic or remote reboot process...
Soon I order a VPS and needs a Call of Duty (or other games too) server restarter, if its crash...
View 3 Replies
View Related
May 16, 2010
I'm recompiling my kernel on a dell latitude c600 running lenny as I type, and it's taking forever, so far upward of 4 hours.I think I'm getting drivers for ever piece of computing hardware since the univac So I googled "a kernel conf creator" and got [URL]... Its a nice, clean method for finding what hardware your using... you just run lspci cpuinfo make xconfig and put in all the info yourself. So I was thinking: this is exactly the kind of dull, repetitive behavior that computers were made for. Is there a program that can find my hardware info, and make the.config itself, with very little user input?Or should I reinstall debian on another partition and steal the .config from it? Or should I man it up and do it myself?
View 14 Replies
View Related
Nov 23, 2010
I have broadcom wireless card in my system. I got the driver from broadcom site. I compiled it against my kernel and the module works fine. How could I automatically load this driver at startup. I followed the instruction found in the driver source README file. But its not working. The steps I followed are as follows:
# load driver
# cp wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless
# depmod -a
The same steps I followd in 2.6.26 kernel and it worked fine. Now its not working in my new kernel 2.6.32.For manually loading it I have to remove the ssb driver and the download this one. Otherwise it will not work. So I tried adding ssb to /etc/modprobe.d/blacklistle. But that driver loads during startup. So each time I have to manually unload the ssb driver and insert the new one.
View 4 Replies
View Related
Sep 7, 2010
Whenever my debian based server is rebooted 35 times it does an automatic disc check. When it does this and completes the disc check it doesn't properly establish network comms and I can't get in using SSH and I can't even ping the server.If I reboot again, it operates as normal but the problem is that the server is remote to me and I need to travel to the site when this occurs.
View 6 Replies
View Related
Jan 24, 2010
I recently popped in the CD that came with one of my textbooks from school and figured I would be able to rip it pretty easily, but guess what? Too my surprise I find that each chapter of the textbook has it's own PDF file and that each one is encrypted. Is there anyway I can decrypt the PDFs and merge them all into one?
View 5 Replies
View Related
Apr 18, 2010
Soon after I installed F12 I realized that I mixed / and /home partitions during the installation, resulting having an enormous / and a relatively small /home.
Since I want to avoid resizing the partitions*, is there any way to make Fedora use a certain amount of disk space on / as part of /home. Is this possible? And if it is, are there any drawbacks?
*I actually tried using a live usb but gparted wouldn't let me do any modifications. The volumes were unmounted though...
View 5 Replies
View Related