Showing posts with label linux. Show all posts
Showing posts with label linux. 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.


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.

Sunday, February 15, 2015

Terminal Refresh - Chromebook Users and Terminal

Years ago, I wrote a terminal cheat sheet over on pretendertothepower.com I think it is time for an update.
One command that I misunderstood from the beginning was sudo. This concept troubled me as there is a root account, which is sort of analogous to being an admin on Windows. Windows is bad news, because the admin account is so handy, or worse, required to do many standard things. This is not the case in all the various forms of Linux. xPud is a notable exception as you are always logged in as root.
By way of example, in Windows, the Admin account will not allow you to delete critical files from your system. At least, not without a lot of effort. Linux will happily allow the root user to delete ANYTHING!
Linux Rule One: If you don't know what outcome you need, root is NOT the tool for you.
On the other hand, you can gain temporary access to elevated privileges with the sudo command. This is actually the correct method for gaining privileges. Let's say you want to install some software, and you intend for all users to access it. The sudo command allows a user to gain privileges using their own password, not the root account password. The process creates a log of what is done in /var/log/auth.log; if mistakes are made, you can easily figure out what and when it was done.
In this example of sudo, we are going to install gedit. But we need to get ready for it.
sudo apt-get update
This command will tell your system to go and check what versions you have against what versions are available on the servers. It installs nothing. This is very important, because your linux computer has a local list of software available and it could be out of date. Update, update, Update!
The command for installing is:
sudo apt-get install gedit
Linux is made up of packages of software, in discrete chunks to make it more useable. The command apt-get install will put these packages on your system and make them useable.
You can go ahead and try to run both commands without the sudo. It will throw a nasty looking error.
Ok. Now we have gedit installed. We can open gedit without the sudo command. Type
gedit
As you can see, gedit is a very basic editor. We are going to use our elevated privileges and use gedit to do something a normal user cannot do. I am using a Chromebook with Crouton and I would like my Linux system to default to the $HOME/Downloads directory.
Let's fix this. Type sudo gedit .config/user-dirs.dirs to open the protected .config file.
What is not shown is all the activity in the terminal. At this point, since terminal opened gedit with elevated privileges, you should not close the terminal window.
Go ahead and change the text $Home/Desktop to $Home/Downloads.
I changed them all, but obviously you don't need to do that. Click save. You should see some activities in the terminal window.
Tomorrow we will look at using sudo for other purposes.

Saturday, August 30, 2014

Chromebook and Ubuntu - How do I right click?

If you are using Crouton on a Chromebook, there will come a day where you ask "How do I right click?" With Chrome, you tap with two fingers. In Ubuntu, this does work.
Nothing special is needed. Just hold the ctrl button and click. This also works with any Ubuntu variant and a Mac single button mouse.
Good to know, eh?

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?

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

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.