Showing posts with label Software. Show all posts
Showing posts with label Software. Show all posts

Tuesday, June 28, 2016

Stupid Linux Tips - Disable Touchscreen Temporally

I have a touchscreen that needs a good wipe down. Touch screens are annoying when dirty and you only have three options:

1) Wipe it down and hope you don't click something stupid.
2) Turn off the computer.
3) Disable the touchscreen.

I want item three, but there seems to be no Unity control panel for the touchscreen. I couldn't find one so I opened the Swiss army terminal and typed xinput.


Reading down the list is simple enough, id=13 is my touchscreen.

The command is xinput disable 13 or whatever number you need. Turning it back on is just as simple with xinput enable 13.


Obviously, I am not the best Linux user, but I like to share tidbits that make things easier.

Now clean that monitor.

Quickly lookup Ubuntu info

Ubuntu is nicely consistent. So consistent that often you can't tell what version you have just by looking.

Two commands in Terminal can grab that info for you:

lsb_release -a

uname -r


Settings and Details does the exact same thing, in a prettier form.


Sunday, December 20, 2015

The Strange Chromebook XFCE Glitch

This morning, I had some trouble with my version of XFCE on my Chromebook. Tab-Alt stopped working, the menu bar had vanished, the programs opened would not keep focus and the cursor was either X or invisible.

How I hate messing with a perfectly good distro. The solution is rather easy. Delete your ~/.cache/sessions directory and the functions come back after logoff/reboot. How simple.


Of course, I forgot you can't rm directories and needed to try three times before I remembered the rm -r modifier. So the actual command is above.

Whew! Thank god for Ubuntu and XFCE's easy of use. If this was Windows, I'd be screwed.

Friday, August 21, 2015

Unable to create directory... Wordpress error (formerly http://unpwnd.com/?p=555)

Friday evening, I was hit by series of errors from WordPress. When uploading images, I was confronted by these error messages:
“Unable to create directory wp-content/uploads/2015/01. Is its parent directory writable by the server?”
“The uploaded file could not be moved to wp-content/uploads/2015/01″
Obviously, my permissions were off, but I couldn't figure out where.
The quick and dirty work around was to log into GoDaddy’s file management tool and create files and upload images via the tool. Back in WordPress, I needed to select a previously existing image and edit the code to match the files and directories I created in the previous stop.
That is not optimal and not advisable. 
The correct answer is to correct the permissions on the server via the file management tool. I made several attempts, but it didn’t seem to work. After calling GoDaddy, I found where I was going wrong.
First and always, log out of WordPress. Second, the items Web Visible and Web Writable need to be ticked on the WordPress upload folder. The directory location is: /wp-content/uploads/. You likely don’t have permission to edit the webroot directory, and you shouldn't give that much permission that high up.
If you select the folder and view the settings you will not see the ticks because the Inherit tick disables those options. Untick it.
The other two become active. You can see the problem right away, the folder isn’t Web Writable. Tick it. 
If you need a quick fix, this is it. Stop reading now, since I don't have any better suggestion to offer. 
If you are still reading, this WILL correct the issue temporarily, but this is not an optimal solution. I contacted GoDaddy 3 times over this issue. 
The first time, the chat agent attempted to reset my permissions, which wasn't the answer at all. I had all the permissions I needed, I simply needed a little more information. I only mention this because you do not want to waste time like this. Don't use chat, they have a tendancy of "escalating" contacts to unnamed people who will effect fixes in 30 minutes to several hours. It never works, don't use chat. 
The second time provided me with the information above. This is also not the correct solution, because it is a quick fix that does not stop the error from happening. I experienced this error more than 40 times from 5 different webpages, hosted on two different GoDaddy servers. I expressed the belief that someone or thing was resetting this one particular permission by accident. The rep said that it was possible, but he did not see that happening. 
The third time, the rep insisted that my use of php based forms was the cause of the issue and it was my fault for using php forms, I need to purchase several things to prevent "php injection attacks". GoDaddy suggested I use Wordpress when I purchased my hosting, because it was very secure and they would be able to address any troubleshoot concerns that I had with it. The last issue is my sites were hosted on a shared server. This is a good cheap solution, but it also means that if someone else has a problem I could have that problem, too. 
The GoDaddy agent was actually suggesting that they have a known problem where people can assess their server with no login credentials at all and modify files at will and not show up on any logs. I had a hardened version of Wordpress, I changed my login ids often and I was not seeing any additional files or files with modification dates that did not correspond to my editing patterns. The changes made by this "intrusion" actually made my site HARDER to attack by removing permissions from a valid function, without making any other modifications.
When I asked for any more information such as server logs, support, etc., I experienced an upcharge menu. Basically, these upcharges highlighted the difference between what I was told I was purchasing and the services I was actually being provided. 
You will notice that I am now on Blogger, a free platform and no longer hosting with GoDaddy. My primary purpose for this change is to get away from the frustration I was experiencing. Let's be real, I was paying under $20 to host 5 websites. For years, GoDaddy provided a wonderful and valuable service for four dollars a month. At some point, quality declined. I was no longer receiving the top end service I had come to expect, likely because I was paying for low end service. I can't really blame GoDaddy for this, but realistically I was paying 20 bucks for headaches. 
I seriously doubt the whole "PhP iNj3cTi0n 4tTaCk!!!!" line the agent tried to sell me on. I do not think they would be in business for very long if they allowed unrestricted access to their servers via the Wordpress install that they provide. That is idiotic. I am more inclined to believe that this is a misguided attempt at security, where someone in house, at GoDaddy is changing settings to be more cautious and more secure without bothering to address the issues this causes with one or more products they sell.
Using GoDaddy for hosting is really not a good option for me. If you are encountering this problem intermittently and it is within your tolerance level, they are a good choice. If not, time to move. I still use GoDaddy for my URL and such. That will not change anytime soon.

Saturday, April 25, 2015

Mint LXDE - What's Missing

I installed Mint LXDE 5 or six days ago. In a weeks time, I thought I would have a laundry list of software I absolutely must install. This is LXDE after all.
Surprisingly, that is not the case. LXDE is lightweight, but that doesn’t mean limited software. Right out the install box, Mint contains all of the software you might need for almost any task. For word processing Abiword is all you need; Spreadsheets are handled very well by Gnumeric; Gimp provides all of the photoediting capabilities one might need for almost any task.  Exaile is excellent for music and video is handled well by both MPlayer and VLC. Firefox is the go to web browser for any system and it did not require any updates with Mint LXDE 11, which was a nice touch. In fact with this version of Mint, I don’t believe I had more than a couple of updates.
So what did I HAVE to install? I selected Libre Office over Gnumeric and Abiword; however these to pieces of software are so handy that I decided to keep them. Considering all of the options in Libre Office, keeping them is high praise. For web browsers I needed something other than Firefox so I selected Opera and Epiphany-Browser. There is no beating Firefox in my book, but sometimes I need to look at websites in something else. Opera was selected because I last used this on my old Mac. Epiphany was snap decision, I wanted to take a drive with something new to me
The only lack I saw by way of software was a plain jane HTML editor and an ebook manager. Abiword could do it and there is nothing wrong with gedit, but Bluefish is my favourite. As for ebooks, I selected Calibre because it works so well and does so much more.
I hope to do a write up of my new software choices soon, so say tuned.

Friday, April 24, 2015

Why use Terminal? (GIMP Install)

Linux has come a long way over the years. Nearly every variant has a software manager, a graphical interface for adding software. Why bother with the Terminal any more?
First, the terminal will display everything it does. Second, there are many versions of Linux and all of them have Terminal as an option. No matter what version of Linux, Terminal experience will server you well.
Here is a quick example of how to install GIMP using the Terminal.
Install GIMP:
sudo apt-get update && sudo apt-get install gimp
The && combos two commands, update and install. The first checks your repositories to make sure they are up to date and the second installs GIMP.
You can follow this with autoclean and clean:
sudo apt-get autoclean && sudo apt-get clean
These commands remove .deb files not used by your system. Autoclean removes the cache information. This is good for systems with low disk space, however the penalty is you will need to download these again if you need to update or install software.

Thursday, April 23, 2015

Eye on the Pi

I have my eye on the Raspberry Pi. This little machine has a vibrant community and help is available all around the web.
This morning, I found The Errant Scientist blog; Matthew takes a walk through the set up process and installation of software via the LXTerminal.

Saturday, May 24, 2014

Multi Day Chromebook Offline Test Part 2

As my multi day test of my Chromebook’s offline I noticed that I have some curious behaviors. Dropbox happily stores and updates information on my Chromebook hard drive by virtue of either manually downloading via the Chromebook’s App or automatically via Ubuntu’s capabilities.
Strangely, when I click Chrome’s Dropbox App, I am told I am offline.
I know that. The App doesn't do any caching locally even though the files are all present and accounted for. I have to manually navigate to the folder and open the files.
Some files open natively such as .jpegs or .pdfs. MS Word files open in Quickoffice, not Drive. From the Drive’s Open menu, I can't even access those files.
I could copy and paste information from Quickoffice to Drive, but that is just weird.
Or is it? I have to ask myself “why are you using both Dropbox and Drive?”. Well, the answer is Dropbox offered features that Drive didn’t have when I first starting using them, and now that each has more features, I am using them wrong.
I have 5 gb of space on Dropbox and over 100 gb on Drive. I should be using Drive all the time. I just can’t do it, because there are items I want to be available offline that drive does not handle. A copy of the Ubuntu installer for Minecraft. I suspect Drive wouldn't like that file at all.
Drive is a different sort of animal. It isn’t the beast of burden that Dropbox is. Dropbox stores data while Drive creates data. Someday I will adapt and figure it all out. 

Thursday, May 22, 2014

Multi Day Chromebook Offline Test Part 1

I am currently offline today, but still wanted to do a little writing. Google Drive is an excellent writing tool and the offline capabilities are great. Drive offers a snap shot of my current files and the last time they updated.
In theory, I guess I could lose some work by not syncing or syncing in the wrong way but I won’t be doing this today.
According to my indicators, I have two hours of battery life from a fresh charge. Normally, this is four or more hours, but I am using 3pm-Player for music and charging my phone at the same time. This is a pretty big drain on the battery. Unpluging the phone and turning off the music cause the indicators to creep back to about 3 hours.
This particular model of Chromebook has a 300 gb hard drive and I feel that this may be killing the battery life. I hear it spin up from time to time while playing music and when the automatic save kicks in.
In offline mode, Drive does have some limitations. I can create a Doc, a Presentation, Spreadsheet or Drawing. Forms, Geogrebra, Python, Source Code and StackEdit are all unavailable. That is ok, I don’t really need those now, but my hyperactive mind wonders if there is a setting or option that I could select to make them active offline. I should Google that… later.
When writing offline, I am hesitant to edit a currently existing file. The reason is I do have my iPhone that is connected to drive and obviously could use another computer to connect. I don’t want to wonder what edit will appear first. Until I get comfortable with this offline cloud stuff, anyway.
All and all, this is pretty good. The tunes are rocking and the internet is safely held at bay.

Thursday, February 27, 2014

Mint 13 XFCE - Save HD Space with backdrop file resizing

Mint has always had gorgeous backdrop images for the desktop. The photographs by masterbutler are incredible.
But if you are on a small machine, like my ASUS eee PC, you don't have a lot of hard drive space.
You could just delete a lot of things, such as the backdrop files, but that would be a shame. Instead, I choose to resize them to fit my 800x600 screen. To be honest, I am not missing anything. The images surpass my monitors ability to display them in all their glory.
Since Mint comes with Gimp, this is an easy task. The directory is /usr/share/xfce4/backdrops. I hesitated to "undo the beauty" by reducing the size until I opened the credits file. Masterbutler has thoughtfully provide a link to 80+ pages of wonderful images at http://www.flickr.com/photos/alwbutler/.
Go ahead and scale those images. You may find yourself using the space to enjoy more art by masterbutler.

Saturday, December 28, 2013

Notes about installing Crouton on a Chromebook

I opted for the Unity interface for Ubuntu. HowToGeek has a great set of instructions.
At the end of the install, you have a very basic Unity interface. Everything useful is missing. The absolute easiest way to fix this is to get the Software Center.
Open Xterm by pressing ctrl-alt-t. Now type in sudo apt-get update. Wait. The next command is sudo apt-get install software-center. Wait again. There is no icon again, so go to lens and search for it.
That is all there is to it. Get installing.
My short list of software is:
Firefox
Chromium (to match Chrome)
Stellarium (to match Chrome's Planetarium software)
Dropbox
VLC Player
Restricted Extras
Inkscape
Libre Office (Search for LibreOffice and scroll down a bit for the suite)
Document Viewer
At the end of the day, you will need to "reboot" Ubuntu to all changes to go into effect. Click the gear and click the restart option. This will eventually return you to Chrome. Go ahead and open the shell and type sudo startunity again.

Tuesday, June 25, 2013

xPud – How to Connect to Wifi

xPud is a nice little OS. But it has an issue with hidden ssid’s.
Actually, there is nothing wrong with the OS, it’s all you. No seriously, I mean it. In xPud, you are a super user all the time. That means the normal sudo iwconfig “fails”.
What true linux user runs in super user all the time? Well, you are with xPud.
What linux user radiates their ssid? No one, and with this information you won’t have to either.
So the correct usage of iwconfig for getting connected a hidden ssid is:
iwconfig wlan0 essid “insertnamehere” key “insertpasswordhere”
Easy, eh?

Monday, April 22, 2013

Windows 7 - Running Chkdsk at Start Up

In Windows, running a disk check can clear up many problems. Many small glitches can be cleared up with the chkdsk command.
Setting it up in the command prompt is easy, but counter intuitive. Open the Command Prompt by clicking the windows Icon and typing cmd and enter in the box.
Now type chkdsk /f C:
Windows does the usual thing and tells you can't do that here.
Type in y for yes and then exit the Command Prompt.
Now, reboot the machine and wait for all the checks to run. The normal "chkdsk C:" merely scans a disk, "chkdsk /f C:" scans and fixes problems, so you may be waiting awhile. Hopefully, it is worth it.

Sunday, February 17, 2013

CentOS and ISO Recorder

Yesterday, I covered creating a USB boot drive for CentOS. Today I will walk through making an .iso disc for CentOS using ISO Recorder.
Working with .iso is both easy and frustrating on Windows. Very often the software that comes with the computer is not up to the task. To solve this basic problem I suggest ISO Recorder. This software does not create a desktop icon or a selectable program in the Start/Windows menu; instead it adds options to the menu.
Time to get started. Download your .iso image and place all files in an easy to find directory. I am using CentOS which requires two DVDs. Insert a blank DVD and cancel out of any pop up box Windows 7 displays. Right click the desired .iso file. Select "Copy image to CD/DVD".
The burning software will open and display ISO Recorder on the left hand side of the screen. The Source should default to "Image File".
Click next.
Wait for the burn...
No seriously, wait and wait and wait. The status bar may hang out on 100% for a very long time. This is proportional to the amount of data on the disc. My first CentOS disc uses the whole DVD and took several minutes to complete. The second disc is relatively tiny and took only a moment.
Don't forget to label the discs. CentOS has a built in disc check in the install process, I would suggest using it on BOTH discs to avoid headaches.
**This post was moved from Pretendertothepower.com to Unpwnd.com.

Saturday, February 2, 2013

Mint 11 lxde glitch - Can't delete uninstalled program icons from the menu

Mint 11 lxde is old, but I like it for my Asus EEE PC. It does have one annoying glitch. If you attempt to remove software such as gnumeric, the uninstall process leaves the program's icon in the menu. Annoying but not exactly critical.
There is an easy work around. Go to a convenient location and create a new folder called "deleted icons". Next open the /usr/share/applications folder. Go to tools and select "Open current folder as Root". This displays a new window. Find the offending software and select cut. Go to the deleted icons folder and again, select tools and open as "Open current folder as Root". Paste in the offending program and close all windows.
By shifting the icon via cut-paste, you retain the option of reinstalling the program.

Reblog - Tricky Unetbootin install – CentOS

This post originally appeared on Pretender to the Power on June 5, 2012.
Unetbootin is a wonderful piece of software. It will create a bootable USB drive of your favorite Linux flavor.
Well, most of the time.
CentOS is a special case. The files needed for CentOS* reside on mirrors and not the support website. So, Unetbootin cannot reach them. Obviously there are ways around this. The most obvious is to download the files from the mirror, but let us forget about planning and forethought, shall we?
Step one, download Unetbootin.
Step two, open it.
Select the desired flavor of Linux. Note: If you do not choose CentOS this is the wrong guide for you. Be 100% sure about your drive letter. This step can cause all sorts of file deletion and badness.
Now wait for the OS to download. There are no files on the CentOS website, so this will not take long.
The last step is to reboot. I would recommend against using your one and only computer for this. Take the USB drive to a different computer and boot that one.
The installer is very user friendly, so I will skip everything up to the ftp address. The installer requires two pieces of information: the ftp site name and the Red Hat Directory. The example of this data is from the University of Chicago.**
FTP site name: bay.uchicago.edu/centos/
The Red Hat Directory: /5/os/i386/
Select ok and watch the magic happen!
* CentOS does have the option for a live disc, however I have not found a way to install using those files. To be honest, I didn't try very hard.
**The FTP site listed has CentOS 2-6. Choose wisely.