Tag: linux

Fix mount issues Linux and Windows 8 NTFS

Windows 8 has a option that you can boot faster. It stores (hibernates) your system. Sometimes Linux can’t mount your local disks and it will give you this kinda error:

Unable to mount location

Error mounting /dev/sda2 at /media/pieter/DATA: Command-line `mount -t “ntfs” -o “uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177” “/dev/sda2” “/media/pieter/DATA”‘ exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Failed to mount ‘/dev/sda2’: Operation not permitted
The NTFS partition is in an unsafe state. Please resume and shutdown
Windows fully (no hibernation or fast restarting), or mount the volume
read-only with the ‘ro’ mount option.

What worked for me was to disable the “fast start” option in windows 8.

1. Open Control Panel and choose Power Options.
2. Click on “Choose what the power buttons do”.
3. Click on “Change settings that are currently unavailable”.
4. Uncheck “Turn on fast startup (recommended)”.

If you want to try some more options this page might help you:

http://www.hecticgeek.com/2013/01/mount-windows-8-partition-ubuntu-hybrid-boot/

 

 

Install .deb Packages (Linux)

Sometimes its handy to just install a .deb from the command line..

Got a few packages in a subdir and want to install them all at once:

 

ssh stuff

As reference:

Some handy tips: SSH Kunfu:
http://blog.tjll.net/ssh-kung-fu/

Or the putty tunnel way:
http://www.howtoforge.com/ssh_key_based_logins_putty_p3

Putty .PPK key to SSH key

command line:

log onto your system:

Add your key to your linux shell:

More to come I think 🙂

synergy

startup synergy client before login (xfce)

Want to start synergy before the login screen?

Create a file in : /usr/local/bin

then chmod +x  it.

Add a line to the file in /etc/rc.local just before “exit 0” to execute the script at boot and before the login screen.

 

 

Google cloud-print

Connect to Google cloud print with linux

So you got a linux machine and you want it to print to your google cloud printer.

Just follow this page to set it up with cups: http://www.niftiestsoftware.com/cups-cloud-print/

I used the .deb  for my backboxlinux distro.

Then just follow the questions. It will ask you to open google to give the app some permissions. Google will create a code that you will have to enter.

It really is that simple