Archive for category Linux Stuff

Cinnamon – Another reason to love Mint

There’s plenty of Debian-based distributions out there. So many, in fact, that many of them have derivatives of their own. Ubuntu has been a leading distribution for many years, and it owes much of its fame from its Debian roots. Enter many Ubuntu-based distributions which add to the great works done on Ubuntu.

LinuxMint is probably my favorite of the derivatives. It started out as a more feature-rich, multi-media version of Ubuntu. It also added its own (better looking) theme. I’ve always disliked the default themes in Ubuntu, whether it be orange, brown, or purple, although I give them point for originality. LinuxMint brought a minty green flavor to the Linux desktop.

I’ve recently posted that I can’t stand Unity or Gnome 3, and I was searching for an alternative in a more modern distribution. I could have went with Debian Stable or CentOS 6, which still use Gnome 2, but I wanted a distribution that uses more up-to-date versions of software like Blender, LibreOffice, Firefox, and such.

The problem with that scenario is that there aren’t many “modern” distros which use something other than Gnome 3 or Unity as their default desktop environment. I tried to use XFCE4, but it just wasn’t for me. I can use it in spurts, but I wouldn’t want to use it permanently. I wanted something that looked fresh.

For a few days, I tried to adapt to KDE4. You know things are rough in my Linuxland if I’m trying to adapt to KDE. I was getting by and actually liking the experience until I tried to do a little Java game development. For some reason, anytime I switched my Java app to fullscreen and then back to a window, it would disable my second display. This peeved me off enough that I just installed Windows 7. I’ve been using it for the past month.

Today, I was messing around on my laptop, which happens to have LinuxMint 12 installed on it, and I remembered reading something about a Gnome 2 fork that the LinuxMint crew was working on called Cinnamon. I thought, “what the hell, I’ll give it a shot”.

It was impressive. It was actually more than impressive. It was exactly where I thought Gnome should have went. It’s like a better looking version of Gnome 2, with all the same Gnome 2 features. It felt like home, which is coincidentally like the subtitle of the Cinnamon homepage:
“Love your Linux, Feel at Home, Get things Done!”
This is a great slogan, because it really goes right along with how I felt about Cinnamon. I loved using Linux on the desktop again. I felt at home. I bet I’ll be able to get things done in it as well.

I rarely use that laptop, so next I’ll be installing LinuxMint on my main desktop again. I’m going to cross my fingers and hope that their isn’t some annoying bug that makes me wish I’d stayed on Windows 7.

It’s pretty sad when a Linux advocate, that loves working in the command line, doesn’t want to use Linux because of the sad state of desktop environments. I wish the main developers of this type of software would lose the “unify everything” mentality and make the desktop just work.

Hopefully, I’ll be able to give Cinnamon a thumbs up on my main desktop and just stay in Linux heaven. I’ll post my results later.

, ,

No Comments

jMonkeyEngine “An instance of the program cannot access specified user directory”

This is a simple issue and most Linux users can probably figure it out rather quickly. I don’t mean to offend anyone, but the error message is pretty straight-forward when it comes to the problem. However, I’ll explain it to those who run into it and want to know how to fix it. Then again, I may be the only person who runs into this problem. Either way, I’m posting it for anyone who may need it.

The problem stems with the installation of jMonkeyEngine. The installer is a .sh file which which can be executed like so:

1
sh jME3_SDK_Beta-Linux.sh

However, if you are like me, you may have ran it with sudo like this:

1
sudo sh JME3_SDK_Beta-Linux.sh

The good thing about using sudo is that the program will be installed for all users on the machine. I’ve not ran it without sudo to see if it will install for only the user running the installer, but I’m assuming that it will.

After the installation occurs, it asks you if you want to start jMonkeyEngine. If you answer yes, it will start it as root, and it will write it’s hidden users directory in your home directory. The home directory will have root:root as the owner because the program was first started by the root user.

So when you go back and run the program again, it will not have access to the required folder. The solution is to change the owner of the folder. This is accomplished simply by typing this in a terminal while in your home folder (the terminal should open in your home folder automatically, but just to make sure we’ll change directory into it first). In the following example the word “username” should be replace with your actual username.

1
2
cd ~/
chown -R username:username .jmonkeyplatform

You should now be able to open jMonkeyEngine. The -R, for those of you interested, means “recursive”, which will change the owner of all files and folder inside of .jmonkeyplatform, not just the folder itself.

, ,

No Comments

The Wrong Path for Desktop GNU/Linux

I’ve tried to use Unity. I’ve tried to use Gnome 3. While many others have had success adapting to the these new desktop environments, I find them buggy and frankly…terrible. I know there have been many debates about it, but I want to give my two cents about it as well because it really hits me hard as a long-time Linux user.

Before KDE version 4, I used KDE most of the time. I rarely used another desktop environment. I was used to it. So believe me when I say I’m not afraid of change when it comes to Linux. When KDE 4 came out, it was different, but it wasn’t so different that I couldn’t have kept on using it. What made me switch to Gnome was the fact that KDE 4 was still in beta and very buggy. I couldn’t use it because of the bugs. So, I switched to Gnome and grumbled about how change for the sake of change isn’t that great.

KDE could have waited until it was ready for production before releasing it. Many distributions continued to use KDE 3 for a long time, but KDE 4 scared me away from it. I switched to Gnome and was happy with a desktop that worked well. I wasn’t alone. Many people switched to Gnome. I became a staunch advocate of Gnome and tried to steer every new Windows convert away from KDE because I didn’t want them to have a bad first experience with Linux.

Enter stage left Gnome 3 and Unity. These two flaky pieces of garbage have been pushed on every major modern distribution. I say modern to refer to the distributions that use more bleeding edge software packages. Debian Stable is still using Gnome 2, but Debian Testing (which will become Debian Stable someday) uses Gnome 3. If you want to use Debian Stable, you’ll be stuck with older versions of many software packages. If you want to use modern packages, such as VLC 2.0 (which has minimal support for bluray playback) you’ll need to go with a more modern distro.

The problem with going with a more modern distro is that most use Gnome 3 or Unity, and they don’t really have a choice. Gnome 2 and GTK2 will no longer be supported or developed.

The philosophy, as I’ve heard it, from the developers of Unity and Gnome 3 is that users don’t migrate to Linux because of all the software choices. Too many desktop environments create confusion for new users. Should they use XFCE4, KDE, Gnome, FluxBox, or something else? The claim is that this massive amount of choice scares away new users.

This is a terrible philosophy. The competition is what helps drive free software. People love having a choice, especially the type of users that actually USE LINUX. The main reason more people haven’t adopted Linux is because MOST PEOPLE DON’T EVEN KNOW THEY ARE RUNNING WINDOWS. They just know they have a computer and they use what it came with. They don’t know which version of Windows they are running, and they don’t care, as long as they can get on Facebook and talk about how bored they are. People don’t flock to Linux because Manufacturers don’t put Linux on their new computers.

Manufacturers have deals with software vendors which lets them cut the cost of their computers. They get paid by software vendors to install their “crapware” onto the new computers. Computer manufacturers actually get paid to put all that junk on your new computer. If they start installing Linux on their computers, they will have to raise the price of their new systems, because they will no longer be getting the “crapware” income.

An example of how Linux on new devices actually increases market share can be found in Android. There are millions of people using Android on their phone right now oblivious to the fact that it’s Linux. They have no idea, and they don’t care. There are many internet browsers they can install on their phone, but most will never do so. It already comes with one. There are many software choices out there on Android. That doesn’t scare away Android users. They install something if they want it. It’s as simple as that.

This whole notion that unifying user interfaces will bring people to Linux is garbage. More and more people use Linux every day. In time, manufacturers may install Linux on more of their computers. Only a few do it today. As that happens, however, the number of Linux desktop users will grow exponentially.

While we are waiting on that to happen, though, why not listen to the users who are actually USING the software right now. Most HATE unity and Gnome 3.

And now that KDE 4 is pretty solid, most, like myself, will be moving to it. I installed it yesterday, fixed a small distortion in the audio, removed the blue shadow from the active windows, and will not be looking back. It’s working flawlessly for me. I’m very happy with what it has become, and I’m glad it’s available for me at this time when Gnome developers apparently have their head stuck where the sun doesn’t shine.

I don’t mean to badmouth the developers because I know they have a tough job and they do it all pretty much for nothing. Perhaps the problem is with the project management. I’m not sure where the problem lies. Did the Gnome project get taken over by Microsoft or Apple? I have this curious feeling that it is being led by a bunch of suits instead of developers.

, , ,

6 Comments

How to get rid of the annoying blue shadow in KDE 4

I vowed to switch to KDE after trying for a few months to find an alternative to Gnome 2, which is going the way of the Dodo. I ran into two problems initially. The system sounds were distorting and I hated the annoying blue shadow on active windows.

The fix for the first problem came when I installed the phonon gstreamer backend, though I’m not sure this was exactly the fix as I never switched to that backend in the settings.

To fix the annoying blue shadow, go to System Settings -> Workspace appearance -> Window Decorations. Click on the Oxygen theme and then click “Configure Decoration”. Click the Shadows tab and change the colors under “Active Window Glow”. I made my inner color a dark grey and the outer color black. I like this a lot better than the bright blue.

,

No Comments

Screw you Desktop Environments, I’m installing KDE

Many years ago I used KDE as my main Linux desktop environment. I switched to gnome around the same time that I switched to Debian and later Ubuntu. I liked GTK themes. I liked Gnome’s way of keeping the visual simple and found that it was much more solid than KDE, especially KDE version 4+. I’ve lived in a Gnome utopia for quite some time, and I loved it.

Now, we have Gnome 3 and Unity. XFCE4 is a good alternative but it just isn’t Gnome 2. Rather than battle it any longer and continue my search for a Gnome 2 alternative. I’m switching back to KDE. I don’t care if I hate it. At least they aren’t trying this whole unification approach that is killing the desktop in Linux on many distributions.

So far, LinuxMint has been the only distribution I’ve found that had a decent Gnome 3 setup by default, and it has some freakish glitch with my ATI video card that appears to make it reset itself from time to time. It just acts really flaky.

So, I’m installing the kde-full package in Debian Wheezy right now and crossing my fingers for a better experience.

, ,

No Comments

Mount Samba/Windows/CIFS Share with User Read/Write Permissions

Mounting a Windows/SMB/CIFS share can be accomplished in many different ways. The way that I do it works best for me, and I’m presenting it here for anyone who wants to take advantage of the info.

I have a NAS device with Windows shares on IP 192.168.1.90 on my LAN. One of the shares is called “Docs” which I use for important documents. First I create a directory to mount the share to on my local machine. I put this in my /media directory.

1
sudo mkdir /media/Docs

Note that I’m using Debian Wheezy as my distro, but all of this should work in any distro.

Next I add a line to my /etc/fstab file. It can go at the bottom of the file. So, open /etc/fstab in your favorite editor. I’m using vim.

1
sudo vim /etc/fstab

The line I add for the share is:

1
\\192.168.1.90\Docs   /media/Docs cifs username=myuser,password=mypassword,uid=myuser,gid=users,auto 0 0

I set “myuser” to my actual local username. The reason I’m setting the uid in this line is because I want to specify that my user will be the owner of the mounted share (giving me read and write), and I’m setting the gid to users because I want all other users on the local machine to have read access to the mount.

After saving the file, I can sudo mount /media/Docs and I’ll have my mount available for my user. When the system reboots, the mount will automatically occur. So my user will have access to the mount directly after boot.

An optional, more secure way to do this is to put your username and password in a file somewhere (perhaps your home directory) and replace the “username=myuser,password=mypassword” part of the mount line with “credentials=/path/to/file”. This will help keep your passwords safe. Also note that these credentials aren’t your local user credentials necessarily. They can be the same, if you set your local user up with the same creds as the share, but these credentials should be the user information that gets you access to the share.

, , , ,

No Comments

Increasing the size of tmpDSK and /tmp in a CPanel Environment

I recently ran into an issue in cPanel after recompiling Apache with some new settings. I enabled the eAccelerator extension in my EasyApache configuration for PHP. Now cPanel uses a default size for its /tmp mount of 512mb. I found out rather quickly that this isn’t enough for eAccelerator. I actually ended up resetting this value to 4096mb (4GB). As a reminder to myself and so anyone else looking for the solution to this problem, I will outline what needs to be done below.

First, ssh into your server and login as root or su – root after logging in as a regular user. Now use the power of the command line. Don’t panic!

Stop Apache, MySQL, and cPanel

1
2
3
service httpd stop
service mysql stop
service cpanel stop

Next unmount the existing /tmp

1
umount -l /tmp

Remove /usr/tmpDSK

1
rm -rf /usr/tmpDSK

Next, use your favorite editor (Vim in this example) to change the config file for the tmpDSK

1
vim /scripts/securetmp

Search the file for “tmpdsksize” (in Vim type /tmpdsksize and hit enter). The line should look like this by default:

1
my $tmpdsksize     = 512000;    # Must be larger than 250000

Change the 512000 to a higher number in Kilobytes. For my 4GB, I changed it to 4096000.
Save the file (vim :wq enter).
Run the script…

1
/scripts/securetmp

Answer y to the two questions it asks.
Finally start your services back up.

1
2
3
service httpd start
service mysql start
service cpanel start

That should have you set with more /tmp space.

, , , ,

No Comments

Linux Desktop UI Options

I’m detest the current path of the Linux desktop. There are reasons that the desktop environment programmers and the distribution makers have taken the path they are on, but I disagree with those reasons. Their reasoning involves unifying the user interface for desktops, laptops, tablets, and other mobile devices.

The main problem I see with that reasoning is that they are hurting the desktop environment in the process, and the desktop/laptop is the only place their products have a future. There’s no need for a revamping of the desktop interface to make it more like a mobile device’s interface. The tablet/phone interfaces are designed for multi-touch interaction from the user. THE ADVANTAGE of a DESKTOP is having a good keyboard and mouse. The desktop UI is designed for superior input methods. Mult-touch is cool and all, but it is designed to give mobile devices an interface to mimic what you can already do on the desktop and laptop with the keyboard and mouse. Multi-touch on a desktop is cool, but it has only been implemented on OS X on Macs, and they didn’t change the actual interface itself to accomplish this. They just added multi-touch capability to the UI that was already there.

I could see good reason to make this change to the default Linux user interface if the distributions were going to be used primarily on mobile devices. BUT they aren’t. The mobile market has two very strong operating systems. Those are iOS and Android. Android is Linux itself, but its user interface is perfect for a mobile device. It also has the convenience of the Google marketplace. It is the defacto Linux distro for mobile devices. There’s no demand for Ubuntu on a mobile device like a tablet or phone. Android does everything you could want to do on those devices, and it does those things well.

So, what is the point to unify the user interface on the Linux distribution, if the only real use you’re going to see for these distributions is in the desktop and laptop markets? There’s absolutely no reason to do this.

The new unified user interface, namely Unity and Gnome 3, are clunky at best in a desktop environment. They are a downgrade from the previous user interfaces that were popular, especially Gnome 2.

For this reason, I see a shift in the primary desktop environment used by most Linux users. I think most users will switch to XFCE4 or one of the other DEs which were similar to Gnome 2. I would be willing to wager that within a year or two, most distributions will be using XFCE4 as a default desktop environment by popular demand from their userbase. Either that will happen, or the desktop environment creators will see the error of their ways and change back to the old desktop standard.

BRING BACK XORG and just improve it!

, ,

No Comments

Removing Old eth devices from Debian

I have a Virtualbox VM which, over time, has been opened on 9 different host operating systems. I reinstall my main OS move than the average person without a doubt. Every time the guest VM is opened from a new host, it adds a new device. So I ended up with 9 ethernet devices. Every time I opened the VM on a new machine I’d also have to reconfigure my static IP. Removing these devices isn’t as difficult as you may think. It’s simply a matter of editing the /etc/udev/rules.d/??-persistent-net.rules file and committing out all the lines that begin with SUBSYSTEM. Then reboot and you should have a fresh eth0.

,

No Comments

The Best Linux Distribution

This subject will raise a few eyebrows from the geek community. Everyone has their favorite Linux distribution. However, this post will be rather unbiased. I have my picks, but I will try to refrain from pushing them. So I’m ranking Linux distributions based on experience but not on personal preference (to an extent).

Choosing a Linux distribution is like choosing a programming language. You should pick the right tool for the job. I see three main uses of Linux as an operating system.

First of all, if you are going to be using Linux in an enterprise/business setting, you should probably learn the industrial standard distribution for enterprises. Chances are, if you are going to be a Linux admin at some big company, you’ll want to learn Red Hat (RHEL). It’s a commercial operating system, so if you want to practice using it, you’ll probably want on of its clones. They are usually free and are basically repackaged versions of RHEL. The forerunner of these clones is CentOS. Honorable mentions go to ClearOS and Scientific Linux as alternatives to Red Hat. These clones offer most of the same features as RHEL and give you a nearly exact replica of the Red Hat environment.

Secondly, if you are going to run Linux as a desktop operating system, there are a few good choices. Linux Mint, Debian, and Ubuntu make great desktop operating systems. Of those, I prefer granddaddy Debian. Debian is the basis for which many of the popular desktop Linuxes derive. Ubuntu is an “improved” version of Debian, though really I don’t care for many of the “improvements” and tend to stick with Debian. Linux Mint has two versions. One is derived from Ubuntu and the other is derived straight from Debian. Fedora also provides a good desktop experience and is based on Red Hat. So for you enterprise admins out there, Fedora will feel closer.

Finally, if you want a development server to run in a VM or another machine, I suggest Debian again. It’s one of the quickest and easiest to set up.

If you are a Linux guru, I suggest ArchLinux, as it gives you more control over more aspects of the OS.

One distribution that I’ve never tried (but I should) is Slackware. Many people like it. I personally don’t like being without a package manger.

No matter what you want to use Linux for, there’s a distribution for you. Check out DistroWatch for direct ratings of Linux distributions.

#1 Sole Proprietorship

A sole proprietorship is an unincorporated company that is owned by one individual only. While it is the most simple of the types of businesses, it also offers the least amount of financial and legal protection for the owner. Unlike partnerships or corporations, sole proprietorships do not create a separate legal identity for the business. Essentially, the owner of the business shares the same identity as the company, consistent communication is the key to success. Therefore, the owner is fully liable for any and all liabilities incurred by the company.

An entrepreneur may choose this option if they want to retain full control of the company. Additionally, it is a relatively easy and inexpensive process to establish a sole proprietorship. There are also tax benefits, as income is considered the owner’s personal income and therefore only taxed once. Finally, there are relatively few regulation requirements for sole proprietorships.

#2 Partnership

As the name states, a partnership is a business owned by two or more people, known as partners. Like sole proprietorships, partnerships are able to take advantage of flow-through taxation. This means that the income is treated as the owners’ incomes so it is only taxed once. Owners in partnerships are responsible for the liabilities of the firm. However, there are some nuances to this. There are different types of partnerships: general partnerships, limited partnerships, and limited liability partnerships, look into this coworking space located in Sydney.

General Partnerships: This is the easiest type of partnership to form, with few upkeep costs. Every partner is considered as participating in the operations of the business, and there is unlimited liability for every partner. This means that every partner’s personal assets can be used to repay the liabilities of the partnership. This also means that each partner is responsible for every other partner’s actions.

For example, John and Dave are in a general partnership. If John is sued for malpractice, Dave’s personal assets may also be claimed against in the lawsuit.

Limited Partnerships: This type of partnership has at least one general partner. This general partner takes on unlimited liability for the partnership and manages the operations of the company. Additionally, there are also limited partners in limited partnerships. Limited partners only take on as much liability as their financial stake in the business. However, as limited partners, they are not involved in management decisions and do not have any direct control over the company.

,

No Comments