How To: Fix Portable Ubuntu Remix in Windows

How To: Fix Portable Ubuntu Remix in Windows

The Portable Ubuntu Remix or pubuntu project allows Linux to run INSIDE Windows as a native win32 application. This is not the same as running Linux within a VMWare or Virtual Machine environment.

Recent versions have become much more stable, to the point that it’s now possible to even run Gnome (a typical Linux GUI Desktop). Screenshots can be found on Lifehacker.

Installing Pubuntu is actually pretty easy, just open the downloaded file, click on the application and follow the prompts.

The first thing to do after it’s installed is to change the default user and password. (pubuntu, 123456)

1. Open up a terminal
2. Type: adduser (Replace with the new user name from here down)
3. Enter the password 123456 if prompted for pubuntu’s password and then fill out the information it asks for
4. type: cd (Just to make sure you’re in the right directory)
5. type: cp ./* ..//
6. type: cp ./.* ..//
7. type: cd ../
8. type: chown *
9. type: chown .[^.]*
10. type: chgrp *
11. type: chgrp .[^.]*
12. type: sudo nano /etc/event.d/tty1
13. Find the line near the bottom that says: exec /sbin/mingetty –autologin pubuntu tty1
14. Replace pubuntu with the new name
15. press Ctrl+X, press Y, press ENTER
16. type: sudo nano /etc/init/tty1
17. Repeat steps 13-15
18. type: sudo visudo
19. Find the line that says: root ALL=(ALL) ALL
20. Underneath it, add the following line: ALL=(ALL) ALL
21. Repeat step 15
22. type: reboot

Every once in a while pubuntu’s fstab will get messed up. If it hangs when trying to launch, you need to do this:

1. Look for the pubuntu icon in your task bar, right click it, and click restore
2. In the terminal that pops up, press ESCAPE
3. type: mount -o remount,rw /
4. type: nano /etc/fstab
5. delete the “-e” at the beginning of a line, just after cofsX.
6. Press Ctrl+X, press Y, and press ENTER
7. type: nano /etc/init.d/postmount_pubuntu.sh
8. replace the first like (#! /bin/sh) with #! /bin/bash
9. Press Ctrl+X, press Y, and press ENTER (again)
10. type: reboot

“Can’t Upload Image, directory missing” in WordPress

“Can’t Upload Image, directory missing” in WordPress

“Can’t Upload Image, directory missing” message comes up in WordPress when the uploads directory is missing. In older versions of WordPress, or in a one click install from a company such as DreamHost, the entire path was coded into the WordPress settings.

To fix in WP versions below 3.0:
1.) Login to Admin Control Panel
2.) Go to Settings
3.) Go to Miscellaneous
4.) Change the field: “Store uploads in this folder” to the short, correct path: wp-content/uploads

To fix in WP versions 3.0 and above:
1.) Login to Admin Control Panel
2.) Go to Settings
3.) Go to Media
4.) Change the field: “Store uploads in this folder” to the short, correct path: wp-content/uploads

How To: Force Safari to Download PDF Files

How To: Force Safari to Download PDF Files

I hate having my Internet Browser display PDF files when I click on them. I much prefer them to be downloaded. Here are two commands that changes this default behavior.

in terminal (as Admin or Root user) type:
defaults write com.apple.Safari
WebKitOmitPDFSupport -bool YES

Essentially you’re removing PDF Support from Safari so that it doesn’t know what to do with the files. Safari simply downloads the file to the /User/Downloads directory instead.

Keep in mind that updating Safari or Adobe Acrobat may change the PDF handling behavior back to the default. Yes, it is also possible to right click on a PDF and use “Download Linked File,” but this process is more automated.

Linux: Printer Commands

Linux: Printer Commands

Using the Printconf command (Printer Configuration)

Install printer: printconf

To see printers: lpstat -p

After configuring printers, export printer settings to another machine:
printconf-tui –Xexport > printers.ppd

Copy file to new computer then import:
printconf-tui –Ximport < printers.pdd

After setting up printers restart cups.
service cups restart