Archive for the ‘Linux’ Category

Prepare videos for DVD authoring

If you need for some reason prepare mpeg files for DVD outside of DVD authoring application, here are two commands which can help you a lot. Option 1 – ffmpeg for i in *.mkv; do name=`echo $i | cut -d’.’ -f1`; echo $name; ffmpeg -i $i -target pal-dvd -r 25 -s 720×576 -aspect 16:9 -b […]

More »

Find files containing searched text

If you want to search all files, which contains searched text, open terminal and type grep -i -n 'searched text' * It works also recursively grep -i -r -n 'searched text' *

More »

Chmod recursively directories and files

This will recursively search your directory tree (starting at dir 'dot') and chmod 777 all directories only. find . -type d -exec chmod 777 {} \; Similarly, the following will chmod all files only (and ignore the directories). find . -type f -exec chmod 666 {} \; Credit goes here.

More »

Elementary Theme: Fix missing scrollbars in OpenOffice (LibreOffice)

If you are using Elementary theme you have probably noticed that OpenOffice (LibreOffice) is missing scrollbars. I found an easy solution for this bug, just follow these few steps. 1. Backup your original elementary gtkrc file sudo cp /usr/share/themes/elementary/gtk-2.0/gtkrc /usr/share/themes/elementary/gtk-2.0/_gtkrc.bak 2. Edit elementary gtkrc file sudo gedit /usr/share/themes/elementary/gtk-2.0/gtkrc 3. Search and replace (If You're using […]

More »

Mount a remote SSH folder in Ubuntu (cmd and GUI)

Connecting to a server across the internet is much more secure using SSH. There is a way that you can mount a folder on a remove server using the SSHFS service (based on the SSH File Transfer Protocol). Open terminal and follow these steps: 1. Install sshfs sudo apt-get install sshfs 2. Add yourself to […]

More »

Change mouse cursor theme in Ubuntu with Compiz enabled (10.04 and higher)

There is a bug in the Compiz package in Ubuntu 10.04 Lucid Lynx (in Maverick Meerkat too) that doesn't allow you to fully change the mouse cursor theme. You only get the new cursor theme in some windows. But you can still change the mouse cursor theme in Ubuntu, even if you have Compiz enabled. […]

More »

Umount CIFS problem: Reboot and Shutdown

If You mount samba shares using cifs method like I, You probably have met with delays at shutdown or restart. [18.312000] CIFS VFS: Server not responding [18.312000] No response for cmd 5 mid 8 To avoid this delay it is necessary to umount all samba shares before rebooting or shutdown your computer. There are many […]

More »

Ubuntu: Bash completion does not work with apt-get

If for some reason does not work bash completion in terminal (using the TAB key), look inside the file bash.bashrc. Open terminal and type: sudo gedit /etc/bash.bashrc At the line 31 you can find this entry. # enable bash completion in interactive shells #if [ -f /etc/bash_completion ] && ! shopt -oq posix; then # […]

More »

Ubuntu: Make ALSA default instead of PulseAudio

PulseAudio has still problems with some applications and it always adds a little latency and that's the reason, why so many people still prefer ALSA. This howto shows you, how to remove PulseAudio, add alsa-mixer applet to the panel and associate hotkeys for volume change. 1. Remove PulseAudio This will uninstall PulseAudio, delete the configuration […]

More »

Ubuntu server: install Alsa sound and MOC (Music On Console)

1. To install Alsa sound (alsa-base, alsa-utils, alsa-tools and libasound2) enter this command: sudo apt-get install alsa alsa-tools 2. Add yourself to the group audio: sudo adduser yourusername audio 3. Reboot to take effect sudo init 6 4. Alsamixer is sometimes muted by default, so you might need to unmute it. Run alsamixer: alsamixer Use […]

More »