Hot answers tagged

24

If your HDD allows, you can try to do it this way: First write uncompressed file: ffmpeg -f x11grab -s SZ -r 30 -i :0.0 -qscale 0 -vcodec huffyuv grab.avi here SZ is your display size (e.g. 1920x1080). After that you can compress it at any time you want: ffmpeg -i grab.avi grab.mkv Of course, you can change compression, select codec and so on.


20

You have installed Python packages that are more recent than what your distribution provides. For example, you have python version 2.7.10-1 installed but your distribution only has version 2.7.5-5ubuntu3. APT doesn't downgrade packages unless explicitly told to do so. So for example if you try to install a package that depends on the exact version of Python,...


15

try kwin --replace or DISPLAY=:0 kwin --replace if you're not in X. Source


12

GVFS (GNOME Virtual file system) provides a layer just below the user applications you use like firefox. This layer is called a virtual filesystem and basically presents to firefox, thunderbird and pidgin a common layer that allows them to see local file resource and remote file resource as a single set of resources. Meaning your access to the resource ...


9

Im not entirely sure what goes on behind the scenes in KDE but it appears that chrome was not getting the url as a parameter, it was getting the fetched html instead (and only the html, no other resources). So based on this answer for getting web based email as your default in KDE, on a hunch, I added $s to the end of the default Web Browser component, and ...


6

I've had success with: ffmpeg -f x11grab -video_size 1920x1080 -framerate 30 -i :1 \ -vcodec libx264 -preset ultrafast -qp 0 -pix_fmt yuv444p \ video.mkv Key points: -qp 0: x264 lossless mode -preset ultrafast: smallest cpu usage, large size -pix_fmt yuv444p: the default, but ffmpeg suggests yuv420p, which is lossy Hint: capture screen and ...


6

I recommend you to use apt-file to search for the package that contains a specific file. If you invoke apt-file search listings.sty you should find the package that contains listings. On my system it's contained in texlive-latex-recommended that you have already installed. To play it safe i would execute texhash to update latex's directory tree. If ...


6

Separate /boot partition used to be needed (the BIOS in older computers couldn't boot except from the start of the hard drive, and GRUB 1 couldn't boot from some filesystems). Nowadays you don't really need to have a separate /boot partition, except in some specific scenarios (e.g. encrypted root partition). Also, it's used for EFI, as noted in a comment. ...


5

In X11 (on console I don't know) you can do it by redefining the behaviour of the Escape key. I looked at the "shift(break_caps)" definition to see how it works, and adapted it. Look at this answer on xkb for more details on how/where to put the locally modified files and load them. And for doing what you want, you need in the local symbols file (eg: ~/....


5

Just like every other distro. swapoff -a Then edit /etc/fstab and remove references to swap.


4

When you copy, move, pack or unpack files with Krusader, the confirmation dialog will show a button labeled "F2 Queue". Press the button or F2 to add the current job to the queue manager. A quick way to copy files with the queue manager is pressing F5 then F2. To move files, F6 then F2.


4

I've observed the same problem, also on Ubuntu 12.04. After resuming, the system is displaying a text mode console and looks frozen, but magic SysRq responds. I've found that Alt+SysRq+E (which kills all the programs on the current virtual console) works for me. This doesn't kill any of my programs, it's only killing processes on the temporary console used ...


4

Here is the updated answer for KDE 5: kwin_x11 --replace


4

You could always try the following: ssh -Y otheruser@localhost "/opt/netbeans/7.3/bin/netbeans" :)


4

You need to have the package bash-completion installed. The default .bashrc for user accounts will source the provided files. If it is not, you will need the following in your .bashrc: . /etc/bash_completion


4

I have worked out this problem by the following steps. I am on Ubuntu 14.04. Download your specific Nviadia drivers from here. The driver name looks like NVIDIA-LINUX-X86_64-340.58.run. # service lightdm stop, Ctrl+Alt+F1 switch to tty1, excute the command to stop X server with root priviledge. # bash NVIDIA-LINUX-X86_64-340.58.run --kernel-source-path=/usr/...


4

You can put your command in file /etc/rc.local: #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. java -jar ...


4

Any kernel older than 3.18 will not compile using gcc 5. Use an older compiler.


4

I don't fully understand why you need a virtual serial port at all. What happens if you just telnet 10.0.0.1 4030? Next thing is to run socat without sudo as normal user and pick a path that's accessible, e.g. /tmp/vcom0 (or whatever). If that doesn't work for some reason, and you obvious can do sudo, try changing owner sudo chown your_username /dev/...


4

Fortran 95 is a superset of Fortran 90. A Fortran 95 compiler will quite likely be able to compile your Fortran 90 code. To install the GNU Fortran compiler from kubuntu use: sudo apt-get install gfortran In fact, the Fortran 95 standard was just a minor upgrade from the Fortran 90 standard (unlike the change from Fortran 77 to Fortran 90).


4

After attending to a HPC lecture and doing some research I had the answer. It looks like the kernel associates a certain amount of memory to the compilation processes. This feature helps in some cases, when bugs can arise and those start to allocate unnecessarily big amounts of memory. But sometimes, the compilation requires more memory than usual and ...


4

Unfortunately the libcrafter package wasn’t built correctly: its version is given as “0.0.2-”, which isn’t an acceptable version number in Debian (as specified in the relevant section of Debian policy). Older versions of dpkg accepted such version numbers, but that was fixed in version 1.18.19 (and I’m surprised you were able to install the packages in 17.10 ...


3

Well, for one thing, Provides: does not work with dependencies that specify a version. From the Debian Policy Manual, "Virtual packages - Provides": If a relationship field has a version number attached, only real packages will be considered [...]. In other words, if a version number is specified, this is a request to ignore all Provides for that package ...


3

This isn't an answer; I wanted to comment but my non-answer-type-thing wouldn't quite fit in the comment box, so here it is. Feel free to ignore/downvote — and yes, I know you're sure you don't want swap. POSIX/Linux Swap isn't like Windows pagefiles, and Linux overcommits memory. That means that you may have 8 gigs of RAM, and the OS will happily allocate ...


3

It's a virtual file system, not a real one, but is made to look real. I just ran into it myself it shows 170G being used on it. But if I check with du -hc it shows 0G. So in truth there is 170G being used, but on another networked hard drive in my house not on the system I was looking on and with. This was likely samba mounts that I copied files from or to ...


3

For the $ eval `ssh-agent -s` construct to work when put in a “startup script”, your session, and ultimately the terminal where you expect the environment, must be descendants (by fork and exec) of that script. The reason is that the output of ssh-agent -s, when evaluated, sets environment variables in the shell calling eval. Form there, they may be ...


3

This answer is outdated. See my other answer for newer information. I solved this by installing KX Studio. The instructions can be found here: http://kxstudio.sourceforge.net/Documentation These are the steps I used. (They are directly from the KX Studio documentation.) In my case it was required to install the low latency kernel. I tried the generic ...


3

I found that after upgrading my kernel to 3.16.2 the soundinterface worked in linux mint 17. Details here: http://www.digitalstroopwafel.com/?p=141


3

As of 2017 / 2018 (e.g., Linux kernel 4.X or above), this device works without any special drivers. I'm using it in Arch Linux now without any problem. However, Focusrite released a new version, the 6i6 2nd Gen, and while that device is Class Compliant and its basic functions work in Linux out of the box, alsa mixer does not work with the 2nd gen 6i6 (yet). ...


Only top voted, non community-wiki answers of a minimum length are eligible