Category: Linux stuff

  • Convert *.flv to *.mp3

    Just use it. http://www.flv2mp3.com/

  • Reset MYSQL password

    How to Reset a MySQL Password: Stop the mysqld daemon process, [root@host ~]# /etc/init.d/mysqld stop Stopping MySQL: [ OK ] Start the mysqld daemon process with the –skip-grant-tables option, [root@host ~]# /etc/init.d/mysqld start –skip-grant-tables Starting MySQL: [ OK ] Start the mysql client with the -u root option, [root@host ~]# mysql -u root -p Enter…

  • Mount VirtualBox shares under Ubuntu guest

    Scenario: Snow Leopard (Mac OSX) as host, Ubuntu 9.10 as guest (Virtual Box virtualization). I want to share files from Leopard to Ubuntu. Create a shared folder in VirtualBox — Ubuntu guest settings Create mount directory in ubuntu sudo mkdir /mnt/Downloads Mount share (created in step one) sudo mount.vboxsf Downloads /mnt/Downloads/ URL: http://blogs.sun.com/tao/entry/virtual_box_shared_folder_between

  • How to recover deleted files from usb flash drive?

    What do you need? dd foremost enough space for recoverd flash drive data How to do it? # dd if=/dev/sdX of=/home/username/XY-file-name.image # foremost XY-file-name.image -o output /dev/sdX <— path to usb flash drive /home/username/XY-file-name.image <— path to save image of recovered data from flash drive Where on internet I found a solution? URL: http://www.corythompson.net/index.php/recover-deleted-data-from-usb-flash-drive-with-foremost/

  • Disk recovery with ddrescue

    If everything goes wrong there is always ddrescue. Use it with Ubuntu Live CD (I used 9.10 with enabled universe repository) and you are a winner. Syntax is simple; ddrescue /dev/hdX /dev/hdY hdX – damaged disk hdY- disk for backup That’s it. Simple enough?

  • Linux dictionary

    setxkbmap us <— change keyboard layout to us update-alternatives –config editor <— change default editor shutdown -rF now <— force file system check after reboot dpkg –get-selections <— list installed application on Debian based Linux growisofs -dvd-compat -Z /dev/hdb=xxx.iso <— burn dvd iso image echo “/sbin/reboot” | at 1am <— restart server (computer) at 1am…

  • Connect Kmail 1.11.* with Exchange 2003 on Fedora 11

    If you have problem connecting Kmail to Exchange via imap and ntlm authentication, maybe you missing ntlm library. What to do? # yum -y install libntlm.x86_64

  • MacBook Pro – Debian 5 amd64 inštalacija

    1. Zbriši MBR a) bootamo iz debian cd-ja v rescue mode (izberemo expert način –> rescue mode) b) dd if=/dev/zero of=/dev/sda bs=512 count=1 c) reboot 2. Bootamo iz cd-ja Prižgemo Mac vstavimo cd in držimo C tipko 10 sekund 3. Inštalacija a) izberemo install (textovni način) b) izberemo jezik, tipkovnico,… c) grub naložimo na /dev/sda3…

  • Debian – upgrade only some packages from testing repository

    1. Step add testing repository to /etc/apt/sources.list; # vim /etc/apt/sources.list; deb http://ftp.arnes.si/pub/packages/debian/ testing main deb-src http://ftp.arnes.si/pub/packages/debian/ testing main 2. Step (example for packages wordpress + tinymce) # vim /etc/apt/preferences; Package: * Pin: release a=testing Pin-Priority: 300 Package: wordpress Pin: version 2.* Pin-Priority: 700 Package: tinymce Pin: version 3.* Pin-Priority: 700 Default priority is 500. Greater…

  • Fedora 11 on MacBook Pro version 3.1

    Hello again, I tried to install Fedora 11 only on MacBook Pro with no success. But I managed to install dual boot (Leopard + Fedora 11). Step 1: Install Leopard on small partition like 15Gb. I installed Leopard without additional languages and printer drivers. After finished the install of Leopard, I installed rEFIt and rebooted…