Tag Archive: fixes

May 12

Resetting Panels in Lubuntu

Cocked up the taskbar panel badly in a new Lubuntu install. Found the following fix:

cp /usr/share/lxpanel/profile/Lubuntu/panels/panel ~/.config/lxpanel/Lubuntu/panels
lxpanelctl restart

Oct 06

Wi-Fi On But Won’t Reconnect After resuming From Sleep

This happened after upgrading to Windows 10, but apparently any version above Win 7 might have this problem.

 

SOLUTION

  • Open Device Manager > Expand the Network adapters section
  • Right-click on the wireless network card > Properties > Power Management tab
  • Uncheck option Allow the computer to turn off this device to save power and click OK:

Oct 05

Rtorrent Won’t Start

Sometimes Rtorrent won’t start. The SCREEN process will be running, but the main rtorrent process won’t be.

Usually, this is caused by a bad .lock file.

Stop the service (just in case), go to /home/rtor/.rtorrent-session, delete the .lock file, and then start the service again.

Sep 18

Install Btsync 1.4.111 on a new machine (ubuntu)

Since I’m still using Bittorrent Sync 1.4.111 (because the free version of 2.0 is too restrictive for my use case), I need to use the following command to install it via Tuxpoldo’s PPA:

sh -c "$(curl -fsSL http://debian.yeasoft.net/add-btsync14-repository.sh)"

May 13

Adobe Offline Activation

Adobe products (in this case Lightroom 6) will refuse to do Offline Activation if they detect an internet connection at all (even if the activation site is somehow inaccessible).

The fix is to disable the ethernet port completely and restart the software, at which point you can get it to switch to Offline Activation mode and get your code to use on the Adobe website to obtain your activation code.

Whew. What a pain in the ass.

Jan 28

Flicker on Liquidsmooth 3.2 ROM

Good friend Pete Kambasis sent me his old Galaxy Note i717 for me to fiddle with. If I can get better performance out of it than my Galaxy Note SC-05D (the Japanese model), then I may switch over to it as my primary phone.

The problem is that my Japanese phone has hardware that’s unique in the world of Galaxy Note phones, so there aren’t a lot of good custom ROMs for it. The i717 was widely used in North America, and therefore has a lot of choices.

I’ve chosen LiquidSmooth 3.1 as it promised good speed. One of the problems with it (that I supposedly fixed with a patch) is a screen flickering issue that occasionally renders the phone well-nigh unusable.

This is caused by the GPU and CPU essentially “fighting” over which of them is rendering the screen, apparently. A potential cause is a conflicting line in the /system/build.prop file. Here’s the fix I found and I tried:

In the build.prop file under "# Screen flicker fixes" [there is] this line – "persist.hwc.mdpcomp.enable=false" and then under additional build properties [there is] this line – "persist.hwc.mdpcomp.enable=true". I removed the conflicting "persist.hwc.mdpcomp.enable=true" under additional build properties and rebooted.

Use a root enabled file explorer. I use Root Explorer. Navigate to Root/System/ there you will find a file "Build.prop". Mount system as RW (read-write, on Root Explorer this is an option at the top of the file list. Change from RO, read only, to RW) Long press the Build.prop file and select open in text editor. Now you will be able to edit the file. Careful here, you don’t want to change anything you’re unsure of. Scroll down towards the bottom of the text and you will find the aforementioned duplication under "Additional build properties". Just delete the duplicated line then select save and exit. If you think you made a mistake, just close without saving and start over.

(This from user rsfinsrq at XDA developers. http://forum.xda-developers.com/showpost.php?p=54541112&postcount=386 )

Now I just need to solve the “move app to SD” problem…

Nov 17

ZFS Fails After Xubuntu Version Upgrade

Basically, the pools were showing critical errors after upgrading from Xubuntu 12.04 to 14.04 like this:

pool: mediatank
  state: UNAVAIL
status: One or more devices could not be used because the label is missing
        or invalid.  There are insufficient replicas for the pool to continue
        functioning.
action: Destroy and re-create the pool from
        a backup source.
   see: http://zfsonlinux.org/msg/ZFS-8000-5E
  scan: none requested
config:

        NAME                                          STATE     READ WRITE CKSUM
        mediatank                                     UNAVAIL      0     0     0  insufficient replicas
          mirror-0                                    UNAVAIL      0     0     0  insufficient replicas
            scsi-SATA_Hitachi_HDS7220_JK11B1B9HXYAWF  UNAVAIL      0     0     0
            scsi-SATA_Hitachi_HDS7220_JK2171B9HYRASL  UNAVAIL      0     0     0

  pool: tank
  state: UNAVAIL
status: One or more devices could not be used because the label is missing
        or invalid.  There are insufficient replicas for the pool to continue
        functioning.
action: Destroy and re-create the pool from
        a backup source.
   see: http://zfsonlinux.org/msg/ZFS-8000-5E
  scan: none requested
config:

        NAME                                     STATE     READ WRITE CKSUM
        tank                                     UNAVAIL      0     0     0  insufficient replicas
          mirror-0                               UNAVAIL      0     0     0  insufficient replicas
            scsi-SATA_TOSHIBA_DT01ACA_14TRP11GS  UNAVAIL      0     0     0
            scsi-SATA_TOSHIBA_DT01ACA_14TRRNVGS  UNAVAIL      0     0     0

Turns out, the new kernel changed the way it refers to these devices. Instead of

scsi-SATA_TOSHIBA_DT01ACA_14TRP11GS

for instance, the new name is

ata-SATA_TOSHIBA_DT01ACA_14TRP11GS

GRRR.

Anyway, after looking at a couple of sites that said I needed to use symlinks to the old names in the /dev/disk/by-id folder, I found this fix:

sudo zpool export backups
sudo import -d /dev/disk/by-id/ backups -f

Thanks to the Blog of Graham.

Aug 28

Getting Excel to Open Sheets in New Instance

This is something that bothers me about Excel: it always opens worksheets in the same window. Then when I go to close one, it tries to close all of them. A couple of times, I was futzing around with a spreadsheet, closed a different one, clicked through the dialog on instinct, and saved over the original file I wanted to preserve.

Prior to Windows Vista, you could fix this problem from the folder options –> file type menu. Not any more.

I found this solution at blog.whitesites.com:

In the Registry Editor in Windows 7:

HKEY_CLASSES_ROOT/Excel.Sheet.8/shell/Open/command

Change the default value from

"C:Program Files (x86)Microsoft OfficeOffice12EXCEL.EXE" /e

to

"C:Program Files (x86)Microsoft OfficeOffice12EXCEL.EXE" /e "%1"

Rename the command key below it to “commandOLD” or something.

Then, rename the ddeexec key (one level up, I believe) to ddeexecOLD

This change will work for the .xls file extension (Excel 2003 files)

To do the same thing for Excel 2007 files, make the same changes (minus the “command” key, which didn’t exist here for me) at HKEY_CLASSES_ROOT/Excel.Sheet.12/shell/Open/command.

I should have done this years ago. Must remember to do this on my laptop and make it standard on the YTG machine builds.

Jun 21

ZFS Pools Disappear After Upgrade

No idea why this happened by the fix was easy:

# apt-get update
# apt-get install zfsutils

Then rm -R the two mountpoints and sudo zfs mount –a

Whew.

Apr 28

CUDA with Premiere Pro CS6

I was struggling for the longest time to get the GPU given to me by my friend Tommi to work with Premiere (to use the GPU for playback rendering), and here’s how I finally managed to get it to work:

Go to the Premiere folder in Program Files, edit the cuda_supported_cards.txt to include the card (make sure it is a CUDA-supported card), and add your card if it ain’t there. In my case, I futzed around putting in GTX 560 until I used the GPUsniffer.exe in the Premiere dir and found that the actual name of the card was GTX 560 Ti.

Also, needed to go into the NVIDIA control panel and change the multiple monitor settings under Premier Pro.exe to “compatibility” mode. (And make sure CUDA was turned on there. It was.)

As always, writing this down so that I don’t forget this if I have to rebuild this machine at some point.

Mar 21

NAS Server Fixes

A few problems that I had to solve while setting up the new NAS.

One of the ZFS pools dismounted for no reason

This was a problem I’d never had before. Even the pool was gone and I had to re-import it using zfs import –f [pool name].

Hopefully, this isn’t a sign of problems to come.

ZFS doesn’t mount on boot and dir gets mounted by other app first

– sudo rm –R [mountpoint name]

– sudo zfs mount –a

TO FIX PERMANENTLY
(Technically, this is wrong, since mountall is installed, but somehow, it isn’t working on the main volume)

Edit /etc/default/zfs

Change ZFS_MOUNT=’no’ to ZFS_MOUNT=’yes’

Routing Table is Fucked Up

– applications that should be going out on eth0 are stuck on tun0

– netstat –rn showed slightly different tables on old NAS and new NAS

– turned out it wasn’t the routing tables, but a typo in rc.local that for some reason had the old machine’s eth0 address in it. These lines should be in rc.local

ip rule add from [eth0 address] table 128
ip route add table 128 to [eth0 address] dev eth0
ip route add table 128 default via [eth0 gateway]

Crashplan Reports whole directories as missing when they are clearly there:

– stop service

– go to /usr/local/crashplan/cache and delete EVERYTHING

– restart service

– it will compare files (might take a while)

Mar 03

Linux Box Fix — Subsonic / Rtorrent Not Running Following a System or ZFS Crash

Because this has happened more than once and I keep wasting time figuring it out, I will post it here.

If I get a 503 error from subsonic or a message from rutorrent that it’s not connecting to rtorrent, one of the possible problems (check to make sure services are running first, of course; then check that ZFS filesystem is up) is that a bad shutdown has fouled them up.

Subsonic
sudo su
Shut down subsonic service
Go to /var/subsonic and rename the db folder
Start subsonic and let it recreate the db folder
Copy an older version of subsonic.script into the new db folder (this has all the user settings, etc.)
Note: you may have to hunt around. The most recent subsonic.script file could be damaged.

rtorrent
sudo su
Stop rtorrent service
Go to RtorrentSession folder and delete the rtorrent.lock file
Restart rtorrent

Jan 17

Recovering an Unsaved Word File

Again, recording this in case it happens again.

Had an important file open (new revision to my play 39, if you must know) and PC crashed overnight. Auto recover feature is turned on and Word is supposed to recover from such a crash by telling me that there is a recovered file the next time I open the program.

It didn’t.

Long story short: the fix is to search %appdata%\Microsoft\Word for *.asd. (Or just search the whole C: drive if you don’t know what that means.)

Word stores its auto-recover files in that directory in that format. You can’t open it directly by double-clicking as it’s not a registered file type, but you can drag it into an open WORD window.

Nov 26

Media Player Classic Essential Tweak

Just making another note on a fix so that I don’t forget it.

YTG recently received a donation of about 36 Thinkpad X100E netbooks. According to my research, these netbooks were supposed to be able to play HD video, but in practice, they were stuttering even on 720p video files.

After some research, I discovered the answer. In MPC-HC, I needed to go into the options menu, select “internal filters” and uncheck “DirectShow Media”.

This more or less fixes the problem. Playback is not 100% perfect, but that might be my test files. There are still a The bottleneck (if one exists) now seems to be I/O, not CPU (CPU holds at under 20%). A vast improvement.

Nov 05

Crashplan crashing

I got my usual weekly backup email from crashplan this morning, and for the first time in almost a month, I actually had the time to read it.

 

There were no alerts on it, but I noticed that my Linux box hadn’t completed a backup in more than 19 days. It didn’t trigger an alarm because it was connecting. I connected the GUI and saw that it was getting stuck in the “analyzing” phase. A browse of the logs showed that the crashplan daemon was starting and stopping every minute or so.

Some Google-fu later, and I found the problem: a hard-coded memory-use limit.

The fix:

sudo nano /usr/local/crashplan/bin/run.conf

 

Then, edit the two lines in the file and change the Xmx512 entries to Xmx1024. This expands the amount of memory crashplan is allowed to use with Java and will stop it from crashing. At least until my backups get bigger…

May 10

PHPMailer Problem

Okay, here’s another tech problem I’m recording here so I can find the solution if it happens again.

I was having trouble receiving mail send from the phpmailer-based contact form on the YTG website.

The problem was that the yokohama-theatre.com domain didn’t have any MX records set up. This is because they are set up elsewhere, but mail sent from inside my webhost is using the webhost’s records, not the public MX records. By adding them in my host’s C-Panel, I solved the problem.

Jan 14

Joomla Language Switcher Stops Pointing at the Correct Page

[Note: I’m going to start writing about technical fixes here. This is less for my readers, and more just to note certain tricky or non-intuitive fixes for myself so that I can look back and reference them. Do not feel obliged to read this.]

 

Today the language-switcher module on the YTG site stopped working. It would send the user to an incorrect page. Either the home page, or a page I had visited recently. The last part was the crucial hint. After turning cloudflare caching off, I remembered that I’d recently enabled caching within the Global Settings menu in Joomla.

 

Turned it off. Problem solved.