Tagged: linux Toggle Comment Threads | Keyboard Shortcuts

  • BrainwreckedTech 9:13 am on March 3, 2014 Permalink | Reply
    Tags: , ika musume, linux, squid girl, wallpaper   

    Ika Musume Wallpaper For Arch Linux 

    Inspired by: http://m4he.deviantart.com/art/Ika-chan-invades-my-Arch-Linux-253854891

    You know what grinds my gears? When someone posts in-use wallpaper without sources. It doesn’t even have to be the wallpaper itself, but at least provide a working link! Sheesh!

    Well, I’ve done one better. Just want the wallpaper? Download the PNGs. Want to to move Ika Musume around, use a different background, or replace the Arch logo with another Linux distro’s logo? Download the XCF and have at it.

    Standard Aspect Ratio

    Widescreen Aspect Ratio

    ika musume arch linux 4:3

    ika musume arch linux 4:3

    ika musume arch linux 16:9

    ika musume arch linux 16:9

    ika musume arch linux 5:4

    ika musume arch linux 5:4

    ika musume arch linux 16:10

    ika musume arch linux 16:10

    Soure file: http://www.bw-tech.net/img/ika%20musume%20arch%20linux%2016%3A10.xcf

    Advertisements
     
  • BrainwreckedTech 8:09 pm on October 11, 2012 Permalink | Reply
    Tags: avidemux, , filmdint, framerate, linux, lossless, , , NTSC, progressive, pullup, softpulldown, , telecine, , x264   

    Getting the Best Results From MPlayer and Mixed Telecined & Progressive Video 

    This post is years in the making.  Not that I’ve spent the entirety of those years working on this problem, or even the entirety of my spare time.  This is just one of those things that I’ve relentlessly banged my head up against until I couldn’t take anymore, only to have it nag me somewhere down the line and pick it back up again.

    For the longest time, I could not for the life of me process video that was mixed telecine and progressive without having the resulting video end up longer than the original.  The immediate problem is that A/V sync starts out fine but then drifts to whatever the time difference is between the two videos.  I eventually discovered soundstretch, which can adjust tempo (play time) without affecting pitch, but then that introduces the problem of calculating the time difference as a percentage (and the rounding errors involved in that), re-coding an already-lossy audio stream, and the time it can take to process one-to-two hours of uncompressed WAV data.

    While I did have most of that down, it was just too much time.

    (More …)

     
  • BrainwreckedTech 12:06 am on August 19, 2012 Permalink | Reply
    Tags: , , , linux, , ,   

    HOWTO: Get NVIDIA On Linux To Use Custom Resolutions Over DVI 

    NVIDIA LogoLinux Logo Half

    You want something easy? Cut the EDID pin on a VGA cable, hook up your monitor, configure xorg.conf to whateve resolution you want, and call it a day.

    You want something scary? Do the same with a DVI or HDMI cable and witness the NVIDIA driver do everything in its power keep you from falling down and skinning your knees like you’re 2 years old.

    The problem stems from the fact that digital flat panels have one native resolution. Well, actually, this would be a problem if these monitors didn’t have internal scalers. So now the problem becomes: What device scales better — your NVIDIA GPU or your flat panel? Chances are most people wouldn’t be able to tell. Some might be annoyed that their flat panel just steches everything without regard to aspect ratio.

    But what if you actually want to run at a “non-native” resolution because you’re using an HDTV whose actual native resolution is 1368×768, whose actual native resolution is never reported at all, but reports the max 1920×1080 as it’s native resolution?

    Here’s the slew of options you need:

    Option “UseEDID” “False”
    Tells the driver not to use modes that the display device reports it can use
    Option “UseEDIDFreqs” “False”
    Tells the driver to ignore frequency ranges reported over EDID.
    Option “ExactModeTimingsDVI” “True”
    IMPORTANT! Tells the driver to use timings as-is. Otherwise, it tries to find a best-fit resolution instead. If you leave EDID enabled while connected to an HDTV, you’ll get a 1368×768 resolution scaled to 1920×1080 resolution. If you disable EDID modes, the driver will fall back to 640×480 and then reject your custom resolution as being too large.
    ModeValidation NoDFPNativeResolutionCheck
    Tells the drive not to check resolutions agains the reported native resolution. This comes into play when UseEDID is false since the driver will fall back on 640×480 and then reject your custom resolution as too large.
    ModeValidation other
    Nothing special to note here as these would be used even if you were using a VGA connection.
    Section "Device"
    	Identifier	"DVI0"
    	Option		"UseDisplayDevice"	"DFP-0"
    	Driver		"nvidia"
    	Option		"UseEDID"		"False"
    	Option		"UseEDIDFreqs"		"False"
    	Option		"ExactModeTimingsDVI"	"True"
    	Option		"ModeValidation"	"NoDFPNativeResolutionCheck, NoEdidModes, NoMaxPClkCheck, NoVertRefreshCheck, NoHorizSyncCheck, NoEdidMaxPClkCheck"
    	Option		"NoLogo"		"True"
    	Option		"DPI"			"144 x 144"
    EndSection
    
     
    • Tim 9:27 pm on September 17, 2013 Permalink | Reply

      Thanks! Just what I needed.

    • Paul M 12:59 pm on March 22, 2014 Permalink | Reply

      I don’t understand how 1366×768 is set as the resolution?
      thanks

      • BrainwreckedTech 9:09 am on July 25, 2014 Permalink | Reply

        This article only shows settings you need to use a specific resolution that many will overlook since HDTVs are a relatively new thing. It assumes you already know how to set the resolution but your efforts aren’t working as expected.

    • Jason 2:00 pm on April 1, 2015 Permalink | Reply

      Brian,
      I have a 42″ Samsung that my computer is plugged into. The desktop stretches past the screen.
      In windows I fixed this with nvidia settings. I’m getting closer.

      I fix over scan with the xserver settings in linux. I set it to 41, screen fits perfect. But now all of a sudden the desktop will scroll over to the edge when the mouse gets to close and also to the bottom. It looks like the top of my background is wrapping around the screen. (cutting the top off and then visible at the bottom. also on the right side)

      What can I do to get my desktop to stay in one place!!!!!!?

      also when I launch kodi/xbmc it stretches past the edge.
      The most resent thing i have installed is Florence keyboard. But I dont see how that would affect it.

      Thank you
      Jason

  • BrainwreckedTech 3:09 am on July 26, 2012 Permalink | Reply
    Tags: code snippets, cut, , dbus_session_bus_address, environment, environment variables, grep, linux, proc, sort   

    Desktop-Agnostic Detection of DBus Sessions 

    Linux Logo Here’s a little gem I came up after a few hours of brain-wracking.

    The goal involves the scripts I use to have my computers communicate with the file server about which updates they need, and to nag the user (me) about available updates.  After some time, I realized that a user-based approach wasn’t ideal.  Besides the fact that each user needs a tab entry in cron on each computer, and that you can be logged in at multiple computers at one time (which really isn’t a good idea if /home is being shared over NFS), aren’t updates a system thing anyway?  Why depend on a user being logged in, when part of the convenience is having your updates already downloaded for you?

    The problem then becomes, “How do I notify any active users on the system about available updates?”  I solved this initially by using a script I could call upon starting my desktop environment that would dump the DBUS_SESSION_BUS_ADDRESS variable into a file in my home directory.  But now I needed a way for the root user to do it.  I saw code snippets where people searched the names of common desktop binaries, but I wanted a desktop-agnostic solution that would work no matter which desktop you were using or what your chosen desktop does in the future with the names of its binaries.

    (More …)

     
  • BrainwreckedTech 2:02 am on May 31, 2012 Permalink | Reply
    Tags: , atheros, atl1c, c665d-s5518, , , ifcfg, laptop, linux, netcfg, , networkmanager, , realtek, rtl8192ce, satellite, , toshiba, , wireless   

    Linux And Flaky ATL1C Support 

    Linux Logo Here’s something I thought I’d never see — the day that wired networking in Linux could ever be considered anything less than “it just works.”

    I recently purchased a laptop (Toshiba Satellite C655D-S5518 to be precise) and had trouble out of the gate after installing Arch Linux.  The computer would seem to hang whenever the network was involved.  (E.g., running netcfg, networkmanager, or the ip command.)  I assumed that it was wireless support that was causing the headaches, so I ran hwinfo --netcard | grep "Modules\|File" to find the kernel modules related to my networking devices.

    Device Modules: "atl1c"
    Device File: eth0
    Driver Modules: "rtl8192ce"
    Device File: wlan0

    I blacklisted rtl8192ce but that didn’t solve my problem.  (More …)

     
    • Jesse Robinson 5:18 am on June 14, 2012 Permalink | Reply

      I had exactly the same problem with atl1c it caused the console to freeze when the cable was unpluged,do you know the maintainer of this driver,so we can file a bug report,the problem is worse with a 3.4 kernel.
      Linux Jesse 3.4.0 #2 SMP Wed May 30 09:01:55 EST 2012 x86_64 GNU/Linux

      I really need to upgrade my kernel before submitting a bug,but scanning round it seems the bug is still there as of current kernel release.

      • BrainwreckedTech 9:55 am on June 14, 2012 Permalink | Reply

        Unfortunately I do not. Which also means I do not know how much work is going into the driver. If there’s a dedicated team, then they just need time. If it’s a single person, he could probably use some help even it’s nothing more than yet another environment in which to see how the driver code behaves. Just be prepared that this might entail setting up a debug environment (e.g. compiling and using a kernel that spits out debug symbols, etc.). If you can code, all the better. 🙂

        Either way, as the driver is listed as EXPERIMENTAL, it’ll do no good to file normal bug reports as the people behind this driver already know that it is not 100%.

    • GreyGeek 8:47 am on August 12, 2013 Permalink | Reply

      As of Aug 12, 2013 this atl1c bug is affecting my Acer V3-771G laptop running Kubuntu 12.04.2 with all updates. On my system it shows up as a random disconnect and reconnect. Most of the time the reconnect is almost immediately, but sometimes it may take as much as 30 seconds. I switched from NetworkManager to WICD and the problem remains, but perhaps not as frequent. From once every 5 minutes to once every 10 minutes. There is NO messages indicating the disconnect & reconnect in any system log.
      I am using the 3.8.0-27-generic kernel.

  • BrainwreckedTech 2:38 pm on May 15, 2012 Permalink | Reply
    Tags: consolekit, display manager, linux, slim, ,   

    Some Display Managers No Longer Require ck-launch-session 

    Linux Logo Did ConsoleKit shutdown, reboot, suspend, and hibernate recently stop working for you? Unable to mount volumes that you were able to before? Chances are you’re probably using an alternative display manager (as opposed to KDM and GDM) and had to specify ck-launch-session to get things working correctly. Some display managers that have opted out of direct ConsoleKit support (usually in the name of being lightweight and/or simple) have started including direct support (my case: SLiM).

    Just remove ck-launch-session from whichever line from whatever configuration file your display manager uses to begin launching an X session.  In the case of SLiM, this is the login_cmd line in /etc/slim.conf.

     
  • BrainwreckedTech 2:52 am on January 19, 2012 Permalink | Reply
    Tags: , gpg, gpg key, linux, package management, , pacman-key, signature, signing, , trust, web of trust   

    Problems With Arch Package Signing 

    Arch Linux LogoUpdate: This was all addressed on 2012-06-17 with the introduction of the archlinux-keyring package and the pacman-key --populate archlinux command.

    Arch Linux finally has package signing. However, if you follow the directions blindly, you may miss important details. This will usually lead to error messages about keys being of marginal trust or no trust at all.

    The code posted on Arch’s wiki page for pacman-key gives you the code you need to use the five main keys used to sign everything else.

    for key in FFF979E7 CDFD6BB0 4C7EA887 6AC6A4C2 824B18E8; do
         pacman-key --recv-keys $key
         pacman-key --lsign-key $key
         printf 'trust\n3\nquit\n' | gpg --homedir /etc/pacman.d/gnupg/ \
             --no-permission-warning --command-fd 0 --edit-key $key
    done
    

    But if you’re not paying attention, you’ll miss the fact that some keys failed to import due to server issues.

    (More …)

     
  • BrainwreckedTech 12:13 pm on January 16, 2012 Permalink | Reply
    Tags: linux, , , , ssh, web hosting   

    Using Rsync With Your Web Host 

    Linux Logo This was one of those “Holy crap this is so frickin’ awesome who needs Viagra this here makes my…” moments for me. If this seems pedestrian to you, keep in mind I haven’t used third-party hosting since around the Y2K debacle, when FTP was the gold standard. Nowadays a lot of web hosts provide SSH access.

    FTP is still nice, but rsync presents a much more elegant solution. Unfortunately, rsync is something most Windows users don’t know about. Microsoft includes no equivalent, so you can either attempt to get rsync and cygwin working on your system, or grab a copy of DeltaCopy…which is made by a company that makes a competing product.

    But if you’re running Linux you can forget all that nonsense and get to the good stuff.

    Copying from the host to your local computer:

    rsync -avz -e “ssh -p nnnn” [user]@[domain]:[remote dir] [local dir]

    You can then edit files locally using your editor(s) of choice. Heck, you can even run your own web server to test changes if you want. You can even run that web server in a VM if you don’t want the potential pitfalls of having a web server running on you computer.

    Copying from your computer to the host:

    rsync -avz -e “ssh -p nnnn” [local dir] [user]@[domain]:[remote dir]

    The only thing to watch out for is that this is so easy that you become lazy. Syncing an entire directory for changes to just one file will consume way more bandwidth than just specifying that one file. For exampe: after making some small tweaks to a test HTML file I noted I was transferring 89K of data for the sake of updating a 2K file.

     
  • BrainwreckedTech 4:11 pm on January 8, 2012 Permalink | Reply
    Tags: dynamic, fixed, , linux, , vboxmanage, vdi, ,   

    HOWTO: Convert VDIs Between Fixed-Sized and Dynamic In VirtualBox 

    Virtualbox Logo While there is no way to actually switch a VDI between fixed-size and dynamic, you can clone the existing VDI into a new one with different settings with VBoxManage.

    VBoxManage clonehd [old-VDI] [new-VDI] --variant Standard
    VBoxManage clonehd [old-VDI] [new-VDI] --variant Fixed

    If you want to expand the capacity of a VDI, you can do so with

    VBoxManage modifyhd [VDI] --resize [megabytes]

    Resizing only works for dynamic VDI images. However, you can combine the resize information with the conversion information to expand fixed-size VDIs. (E.g., convert a fixed-size image to dynamic, expand it, and then convert the dynamic image back to a fixed-size image.)

    If you want to compact the image as much a possibly, be sure to zero out the free space. This can be done in Linux by using the dd command to write endless zeros to a file and then deleting that file. (With the caveat of the reserved space of EXT and other file systems.)

     
    • Jeff Kroll 11:47 am on January 11, 2012 Permalink | Reply

      Thanks for the info. One question: does the word following “-variant” essentially tell VBoxManage what is getting changed to what, i.e. putting “Standard” after “-variant” tells it that it’s changing a fixed to a dynamic?

    • Jeff Kroll 2:56 pm on January 13, 2012 Permalink | Reply

      Got it. Thanks.

    • Juliano 9:45 pm on January 22, 2012 Permalink | Reply

      Please help me with this:

      I am entering this on Terminal:

      VBoxManage clonehd [ /Users/JulianoCB/VirtualBox\ VMs/Windows\ XP\ SP3\ Clone/Windows\ XP\ SP3\ Clone.vdi][new.vdi] -variant Standard

      But then I get this error:

      VBoxManage: error: Could not find file for the medium ‘/Users/JulianoCB/[‘ (VERR_FILE_NOT_FOUND)
      VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component Medium, interface IMedium, callee nsISupports
      Context: “OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())” at line 210 of file VBoxManageDisk.cpp

      Could not find the file but I droped from finder.

      How could I fix this??
      I am not very familiar with Terminal…

      • BrainwreckedTech 11:26 pm on January 27, 2012 Permalink | Reply

        First off, leave off the [ and the ] as those are used to indicate variables. They’re used in documentation of command line programs (DOS/Windows/Linux/Unix) as they’re aren’t very many formatting options available on the command line.

        Second, with the surrounding white space, the [ is being interpreted as a relative file name. I take it you were in your home directory /Users/JulianoCB when you attempted to execute this command, hence /Users/JulianoCB/[ cannot be found.

        Lastly, and pre-emptively, make sure you are using a double dash when using --variant. WordPress tries to be helpful and interprets -- as — unless it occurs in monospace text (pre, tt, code, etc.).

    • Jeff Kroll 10:47 am on February 20, 2012 Permalink | Reply

      One of the reasons I was so glad to find your instructions was due to a problem with a vdi that I was–and still am, sigh–experiencing. I originally created a fixed XP vdi. Later I changed it to a dynamic one and I remember it adjusting it itself, make itself bigger, automatically. But something must have changed and for months it has remained as it is today, never growing bigger.

      Via the Virtual Media Manager, I can see that the virtual size of the hd is 48.83 and the actual size is 9.99 gb. Inside Windows, properties of the C drive indicate it is just under 10, but it always stays there. I can’t install any new software & I regularly get alerts about a space problem.

      I decided to use the process you detail above to clone a copy back into a fixed size. It worked and in the Virtual Media Manager it is listed as virtual size 48.83 and the actual size is listed as the same. Yet upon opening, the properties of the C drive are listed the same as the non-working dynamic version, i.e., about a 10 gig drive!? Despite changing the clone from dynamic to fixed, apparently the problem got cloned over.

      Any guesses on what is wrong or a way for me to fix it (hopefully without having to install a new XP system from scratch, with all its time consuming updates)?

      • BrainwreckedTech 3:50 pm on February 22, 2012 Permalink | Reply

        Did you change the partition table after making the virtual disk bigger? If not, it’s the partition table limiting you to the old 10GB size, not Windows. You say you checked the properties of the C: drive, but this would have been a lot clearer if you used Disk Manager instead.

        I wouldn’t use Windows’ Disk Manager to change the partition size, though. Find a good Linux live CD and use parted or fdisk instead. That way you can be sure that the only thing you change is the end boundary of the partition that holds Windows’ C: drive.

        Also be sure to run chkdsk /r /f after changing the size of any disk Windows has access to.

        • Jeff Kroll 6:50 pm on February 22, 2012 Permalink | Reply

          I have gparted. As far as I can see, there is no separate partition for Windows. The VM is just part of my Mint partition, I think, and that’s got plenty of space, about 142 gigs. In detail sda1 is Ubuntu 10 (that I never use), sda2 says extended, sda6 is Mint, sda7 is a swap and sda5 is a swap. Could send the screenshot showing that, if needed.

          • BrainwreckedTech 11:16 am on February 25, 2012 Permalink | Reply

            It sounds like you’re talking about the partitions on “metal” aka your actual machine. What I meant was to check to your partitions inside your virtual machine. When you clone/expand a virtual disk, all data is kept in tact including partition table data inside the MBR of the virtual disk.

            • Jeff Kroll 5:16 pm on February 25, 2012 Permalink | Reply

              Thanks for the clarification. I’ll check into that!

    • Jeff Kroll 5:45 pm on March 5, 2012 Permalink | Reply

      Ok, I researched how to use the .iso version of gparted-live to boot into my virtual xp & after a few tries I successfully re-sized the xp drive from 10 gigs to its full 50. Upon booting normally into my virtual xp I checked the C: drive and. lo & behold, the full 50 was recognized! Thanks for the guidance & patience.

    • Aldous 4:08 am on July 11, 2012 Permalink | Reply

      I have followed your instructions, but cannot now make VirtualBox recognise the new .vdi file.
      When I go to ‘virtual media manager’ it does not show up. Any ideas about how I can use this new .vdi file? I’ve checked in the vbox manual, but found nothing useful.
      Thanks

      • BrainwreckedTech 5:44 pm on July 21, 2012 Permalink | Reply

        You have to add the VDI to a VM before it’ll show up in the Virtual Media Manager.

        I feel your pain on this one. VirtualBox can’t seem to balance intuition and ease-of-use. It doesn’t help that VB3 used to have an Add option.

    • Jorge 1:16 pm on August 6, 2012 Permalink | Reply

      Please help. I followed the discussions with great interest because I had the first problem here reported. I have a Windows host and an Ubuntu guest. So I followed the “clonehd” and “resize” procedures and got a new bigger vdi. I then changed the HD specs in the VM to set the SATA controller to the new vdi. However when I run the VM I got the following error: VBOX_E_INVALID_OBJECT_STATE (0x80BB0007). Thanks in advance.

    • Gilesaj 12:16 am on November 4, 2012 Permalink | Reply

      I have created a clone using your directions and I tried tp resized the disk but got an error to say it could not do that type. I assume that the conversion from fixed to standard did not work ??

      C:\Program Files\Oracle\VirtualBox>VBoxManage clonehd “C:\Users\giles\VirtualBox
      VMs\WEB_SERVER_CENTOS6_Clone\WEB_SERVER_CENTOS6_Clone.vdi” “C:\Users\giles\Vir
      tualBox VMs\CENTOS6_WEB_SERVER\CENTOS6_WEB_SERVER.vdi” –variant Standard
      0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%
      Clone hard disk created in format ‘VDI’. UUID: 56835b5d-f6fd-4a6b-99cc-993e976cf
      a0e

      C:\Program Files\Oracle\VirtualBox>VBoxManage modifyhd “C:\Users\giles\VirtualBox VMs\CENTOS6_WEB_SERVER\CENTOS6_WEB_SERVER.vdi” –resize 40
      0%…
      Progress state: VBOX_E_NOT_SUPPORTED
      VBoxManage.exe: error: Resize hard disk operation for this format is not impleme
      nted yet!

      • Gilesaj 8:27 pm on November 4, 2012 Permalink | Reply

        I see where I went wrong. It worked just fine I put in 40 for 40 Gig when I should have entered 40960 mb. It is increasing the size of the disk as I type.

        Thanks for the article it helped me out of a tight spot.

    • Manne 5:06 pm on December 22, 2012 Permalink | Reply

      nice how-to for changing fixed size discs to dynamically in virtualbox.

      thx

      helped me a lot, im running vbox on a qnap NAS server. so every thing is a bit difficult due to the f****g QNAP kernel

    • x2es 10:38 am on February 4, 2013 Permalink | Reply

      How to do with snapshots tree created from VDI which should be converted?
      Before I found this HOWTO I has compact my fixed VDI with –compact option. Now all works fine – which problems may appears?

      • BrainwreckedTech 8:45 pm on February 6, 2013 Permalink | Reply

        Cloning will not keep the snapshot tree in tact. You can use clonehd on a snapshot, with the result being a VDI with no snapshots itself, but still a clone of the entire hard drive state you selected.

        Snapshots are stored as “diffs” with a UUID for the file name. You can use the GUI to find what the UUID is for the snapshot you want to clone from.

    • Anonymous 3:27 am on April 4, 2013 Permalink | Reply

      Really nice! I found out that it is a huge waste with fixed storage when storing the image on an SSD. Better go dynamic then…

    • Jao 12:53 am on May 21, 2013 Permalink | Reply

      I encounter also this problem and only works in VDI format HD the vmdk format will through the same error, I guess the same HD format like VHD..only works on vdi and i confirm it..

    • Miguel 11:55 am on June 3, 2013 Permalink | Reply

      When i execute the command it just consume space in my hd but doesn’t do anything.

      /mnt/space$ sudo vboxmanage clonehd /var/ford/Developer.vdi developer.dvi –variant Fixed
      0%…

      • Nguyen Long 7:02 am on July 17, 2015 Permalink | Reply

        Me too! Did anybody can help?

    • John 2:36 pm on September 25, 2013 Permalink | Reply

      Worked for me, vbox 4.2.18, Windows 7 x64 host with Ubuntu 12.04 VM. Using initially fixed VDI, from instructions above, ran:

      VBoxManage clonehd [old-VDI] [new-VDI] –variant Standard
      VBoxManage modifyhd [VDI] –resize [megabytes]

      Created a new VM in vbox and specified to use the existing, newly resized VDI disk (probably could have just removed the existing disk in the media manager and then specified the new disk). Next, downloaded a gparted Live ISO (search in google for this, I didn’t have any problems finding it), booted the VM using the gparted ISO. Then moved my swap partition to the end of the new disk using instructions in this forum:

      http://superuser.com/questions/100379/how-to-move-a-partition-to-the-end-in-gparted

      (Ignored the warning message about corrupting the boot sector because the OS does not boot from the swap space), then resized the primary partition in gparted. Rebooted the VM, and voila, a bigger hard disk.

      Thanks a million!

    • Grant Braught 10:49 am on September 26, 2014 Permalink | Reply

      Here’s a fairly simple process that worked for me to resize a VirtualBox (v. 4.3.16) fixed size disk to a 60GB dynamic disk on my Mac (OS X 10.9.4) with Linux (Ubuntu 14.04) running as the guest OS:

      In shell on MAC in directory with vdi:

      VBoxManage showhdinfo mydisk.vdi
      VBoxManage clonehd mydisk.vdi mydiskClone.vdi
      VBoxManage modifyhd mydiskClone.vdi --resize 61440
      VBoxManage showhdinfo mydiskClone.vdi

      In VirtualBox application storage section, add mydiskClone.vdi as second HD in VirtualBox

      Start VirtualBox machine from mydisk.vdi

      In Shell on guest OS:

      sudo fdisk /dev/sdb
      ...delete all partitions...
      ...create new partition on full disk...
      reboot
      sudo resize2fs /dev/sdb1
      shutdown

      In VirtualBox application storage section, move mydiskClone.vdi to be boot disk.

      startup guest OS. verify new disk size using properties of “Computer” in the file browser.

      • BrainwreckedTech 11:48 am on September 27, 2014 Permalink | Reply

        sudo fdisk /dev/sdb
        ...delete all partitions...
        ...create new partition on full disk...
        reboot
        sudo resize2fs /dev/sdb1
        shutdown

        YOU CANNOT ASSUME PEOPLE ARE ONLY USING ONE PARTITION!

        A safer (and shorter) way, without reboot:

        sudo parted /dev/sdb print # Find out which partition to resize
        sudo parted /dev/sdb resize [part-number]
        sudo partprobe /dev/sdb
        sudo [grow-cmd] /dev/sdb[part-number]

        The defaults for parted resize will be the current starting point and the furthest ending point possible.

        [grow-cmd] is either resize2fs or xfs_growfs or resize_reiserfs or jfs resize or btrfs filesystem resize

    • yotoprules 1:11 pm on March 17, 2015 Permalink | Reply

      cmd doesn’t recognise vboxmanage

      • BrainwreckedTech 5:49 am on August 11, 2015 Permalink | Reply

        While Windows is not case-sensitive like Linux, it also doesn’t set up paths like Linux, so you’ll have to navigate to wherever you installed VirtualBox so that VBoxManage.exe is in the current path.

  • BrainwreckedTech 3:23 pm on January 8, 2012 Permalink | Reply
    Tags: aspect ratio, linux, , , video player   

    Easily Switch Aspect Ratios in MPlayer 

    Wouldn’t you like to switch aspect ratios in MPlayer? Sure, a lot of front-ends do it, but sometimes you want to run MPlayer directly. For myself, it’s all about getting proper crop settings for DVD rips. But I’ve also had a few video files with incorrect or missing aspect ratio info.

    Just put this into ~/.mplayer/input.conf:

    F1 switch_ratio 0
    F2 switch_ratio 1.3333
    F3 switch_ratio 1.7778
    F4 switch_ratio 1.85
    F5 switch_ratio 2.3

    Source/Credit: http://lists.mplayerhq.hu/pipermail/mplayer-users/2005-November/056709.html

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel