Categorylinux

Moving an OS to another disk and still have it boot with Linux

For the longest time, I’ve had an 80 GB HDD running my Windows partition (dual-boot setup with Ubuntu on a SSD), but now I’ve finally upgraded the Windows partition to an SSD as well. I looked into how to clone my Windows partition onto the SSD, such that I can still boot the disk.

I already have Ubuntu as my main OS, so copying the disk was easy using dd, which allows copying all the contents of one disk to another. This works well when the new hard drive is greater than or the same size as the current hard drive (I upgraded from a 80GB HDD to a 128GB SSD).

First I run this to see which disk I am copying from and to

fdisk -l

Then I run dd. If I am copying from /dev/sda to /dev/sda, then it’s:

dd if=/dev/sda of=/dev/sdb

But sometimes the disks don’t have the same size, so I used gparted to move/resize the partitions to make use of the extra space on the new disk. gparted complained that it might make my disk no bootable, but the disk was still bootable for me nonetheless. I didn’t even have to mess with any grub bootloader settings either. I simply unplugged the old disk, and left the new disk plugged in and booted into the new disk no problem.

Running League of Legends in PlayOnLinux (Ubuntu 14.04)

There are various guides floating around on the Internet for running League of Legends on Linux, and no single guide worked for me, but after piecing the information together from various places, I managed to get it to work on my system.

My computer specifications:

  • Intel Core i5-4570
  • 16 GB Memory
  • Radeon HD 5770

I followed the instructions here, with these changes:

  • Using video driver “fglrx-updates” (the tutorial talks about NVIDIA cards)
  • Did not install TuxLoL
  • Did not do anything regarding the “Maestro error” since it only applies to Optimus Notebook users
  • Did not follow step 6 because I did not run into the problem for big item icon text for the item shop
  • EDIT: Thanks to Ingvar’s comment, the installation progress for the game can be viewed like so: open terminal (Ctrl+Alt+T) and execute:
    # tail -f ~/.PlayOnLinux/wineprefix/LeagueOfLegends/drive_c/Riot\ Games/League\ of\ Legends/Logs/Patcher\ Logs/*.log

There are also other steps that I had to do, which I read from here:

  • Click configure for the “League of Legends” entry in “PlayOnLinux” and find the “Display” tab and then choose the following options:
    • Direct Draw Renderer – gdi
    • Video memory size – 4096 (or something else depending on graphics card)
    • Offscreen rendering mode – fbo\0
    • Everything else on default
  • Create a file called “game.cfg” in the directory “/home/your-username-here/PlayOnLinux’s virtual drives/LeagueOfLegends/drive_c/Riot Games/League of Legends/Config”. Below is what I have in my “game.cfg”:
[General]
EnableAudio=1
GameMouseSpeed=10
UserSetResolution=1
BindSysKeys=0
SnapCameraOnRespawn=0
OSXMouseAcceleration=1
AutoAcquireTarget=0
EnableLightFx=0
WindowMode=0
ShowTurretRangeIndicators=0
PredictMovement=0
WaitForVerticalSync=0
Colors=32
Height=1080
Width=1920
SystemMouseSpeed=0
CfgVersion=5.3.296
x3d_platform=1
[HUD]
CameraLockMode=0
MiddleClickDragScrollEnabled=0
KeyboardScrollSpeed=0.5000
ChatScale=50
ObjectTooltips=0
AutoDisplayTarget=0
ShowAllChannelChat=1
ShowTimestamps=1
ItemShopPrevY=39
ItemShopPrevX=106
NameTagDisplay=1
ShowChampionIndicator=0
ShowSummonerNames=1
ScrollSmoothingEnabled=0
MiddleMouseScrollSpeed=0.5000
MapScrollSpeed=0.5000
ShowAttackRadius=0
NumericCooldownFormat=1
SmartCastOnKeyRelease=0
EnableLineMissileVis=0
FlipMiniMap=1
ItemShopResizeHeight=0
ItemShopResizeWidth=164
ItemShopPrevResizeHeight=1080
ItemShopPrevResizeWidth=1920
ItemShopItemDisplayMode=1
ItemShopStartPane=1
[Performance]
CharacterInking=1
ShadowsEnabled=1
EnableHUDAnimations=0
PerPixelPointLighting=0
EnableParticleOptimizations=0
BudgetOverdrawAverage=0
BudgetSkinnedVertexCount=0
BudgetSkinnedDrawCallCount=0
BudgetTextureUsage=0
BudgetVertexCount=0
BudgetTriangleCount=0
BudgetDrawCallCount=0
EnableGrassSwaying=0
EnableFXAA=0
AdvancedShader=0
FrameCapType=6
GammaEnabled=0
Full3DModeEnabled=0
AutoPerformanceSettings=0
CharacterQuality=4
EffectsQuality=4
EnvironmentQuality=4
ShadowQuality=4
GraphicsSlider=6
paths=0
[FloatingText]
EnemyTrueDamageCritical_Enabled=1
EnemyMagicalDamageCritical_Enabled=1
EnemyPhysicalDamageCritical_Enabled=1
TrueDamageCritical_Enabled=1
MagicalDamageCritical_Enabled=1
PhysicalDamageCritical_Enabled=1
Countdown_Enabled=0
EnemyTrueDamage_Enabled=0
EnemyMagicalDamage_Enabled=0
EnemyPhysicalDamage_Enabled=0
TrueDamage_Enabled=0
MagicalDamage_Enabled=0
PhysicalDamage_Enabled=0
Score_Enabled=0
QuestComplete_Enabled=0
QuestReceived_Enabled=0
Disable_Enabled=0
Level_Enabled=0
Dodge_Enabled=0
Heal_Enabled=0
Special_Enabled=0
Invulnerable_Enabled=0
Debug_Enabled=0
Absorbed_Enabled=0
OMW_Enabled=0
EnemyCritical_Enabled=0
MagicCritical_Enabled=0
Critical_Enabled=0
[Volume]
SfxVolume=0.5
MasterVolume=0.5

 

Running TurboTax 2014 in PlayOnLinux

This guide describes how to run TurboTax 2014 in PlayOnLinux.  The PlayOnLinux (in combination with WINE) software allows users to install Windows-based software.

**********************************************************************************
CAVEAT: NETFILE did not work for me.  I had to submit my taxes through an installation done on Windows
**********************************************************************************

  1. Install PlayOnLinux and then run it (e.g. starting it through the Terminal)
sudo apt-get install playonlinux
  1. Click “Tools” > “Manage wine versions”
  2. Choose 1.7.27 under “Available Wine versions” and then click the right arrow “>”
  3. Go through the steps in the installer and let it finish
  4. Back in the PlayOnLinux main screen, click “Install” in the menu, and then click “Install a non-listed program” on the bottom left
  5. Choose “Use another version of Wine”, when asked, and then choose 1.7.27
  6. Choose “Install a program in a new virtual drive”, when asked
  7. Choose “32 bits windows installation”, when asked
  8. Find the location of setup.exe for the TurboTax installer (I copied the files off of the disc to a place on my hard drive)
  9. Ignore the message “Error in FS_Check” if it appears
  10. Let the install complete, but do not launch TurboTax right away
  11. Choose “tt2014.exe”, if asked to create a shortcut
  12. Back in the PlayOnLinux main screen, select entry for TurboTax and click “Configure” in the menu
  13. Make sure the “Wine version” is set to 1.7.27
  14. Under “Install components”, install the following in this order (some of these may not be required, but I don’t know which since this is the configuration that worked for me):
    • vcrun2012
    • Microsoft Core Fonts
    • msvc100
    • RegisterFonts
    • vcrun2010
    • dotnet40
    • d3dx9
    • mono28
    • Internet Explorer 8 (click “Restart” in the installer)
    • crypt32
  15. Back in the PlayOnLinux main screen, clicking “Run” for TurboTax 2014 should now work!

This is what worked for me, so hopefully this will work for others.

Deleted IME’s still appear in the list even though they have been removed in Ubuntu 14.04

I had this weird problem when my Japanese and Chinese IME stayed in my IME list even though I had removed them.  It was driving me nuts, but it turns out that they can be disabled through the dconf-editor

First, run:

sudo apt-get install dconf-editor

Navigate to:

org/gnome/desktop/applications/input-sources

Bold options are options that have been modified.  The interesting one is the row labeled “sources”.  Clear the entries of the IME’s that should not appear in the list and that should remove the IME’s that shouldn’t be appearing.

Running LINE Messenger in Ubuntu 14.04

LINE is a messaging program kind of like WhatsApp, but it has a desktop client.  However, this desktop client only runs on Windows.  On Linux, it has to run under Wine, which allows running Windows programs (some) inside the Linux environment.  Caveat: sending stickers does not appear to work.

UPDATE 7. JULY 2015: Since this post, my version of LINE has been updated to 4.0.3.367, and it looks like stickers work now!

UPDATE 31. JULY 2016: Looks like in July 2015, LINE released a Chrome app.  Users of Chrome can just use that extension instead of using this method: Link

Running LINE in Ubuntu 14.04

  1. Install Wine
sudo apt-get install wine
  1. Install VC++ 2008 Redistributable
winetricks vcrun2008
  1. Download and install LINE for Windows

Without installing the VC++ 2008 Redistributable, LINE would intermittently crash (even though it was able to start correctly).  This worked on my Ubuntu 14.04 x64 system.

LINE Version: 3.9.1.188
Wine Version: 1.6.2

© 2017 Henry Poon's Blog

Theme by Anders NorénUp ↑