Posts tagged with linux

Annoyances between using command line vs GUI in Debian/Ubuntu

Fine, so sharing multiple formats that include reverse engineered file systems that are/were proprietary to creating new ones which are supposed to be just plug and play, is close to rocket science.

Well it would be if it worked in most cases. I'll give you a brief example:

This morning I decided I would take all my pc equipment, my drives, my CD drives, DVD drives, usb sticks, etc etc and on and. I would then try and make an efficient (efficient as can be with multiple Oses and multiple hubs, network cards running at various speeds, and a host of external hotpluggable hard drives, both SATA and IDE to test and see what was on them after the years and years of collecting.

In fact, I'm currently staring at a pile of about 8 SATA drives totaling about 3.5 TBs, and a stack of 12 IDES which god knows might even hit the 1.5 TB mark. NOw... having all of that working together in a more or less redundant method across the network (I figure its the perfect opportunity to brush up on my bash shell coding skills to do a plethora of things from managing all that data, checking how corrupt the disks are and somehow forecasting when its time to get rid of the problem kids, setting up a nifty search system that fits MY naming conventions, not some complex XMBC like system that tries to do everything, moves stuff around and then leaves you more lost than when u started)

Anyway, as always, I digress. This entry was really to complain about the STILL dire problems that the average user will have to share a set of files. First, of course, me being old school, I go to the terminal, set up my smbpasswd -u and set up his password. Perfect...

Then I open the file/s or directory/ies that I'd like to share, but of of course only Root can do that, so here comes problem number one... Do I know the name of the sharing program so I could run it using gksudo from terminal? Nope... bet you don't either.... hint: It's not nautilus.

Ok... Then I think, ah but wait, I can open it from the control panel, so I go to preferences -> Personal File Sharing and repeat the operation... Suddenly I'm bombarded with questions to do with blue tooth sharing, which is really not what I was after... I just wanted regular old samba to allow me to move files to and from my Oses with too many questions. But If go ahead and fill in all the questions, where there is no mention of sharing via samba or nfs or anything.

I right click on the directory I've now been trying to share for 10 minutes and the shre this folder tick box is ticked, and there 2 other options which I choose not to touch in case they influence the final outcome. I then click 'add share' and get the following message:
'net usershare' returned error 255: net usershare add: share name 'myname' is already a valid system user name'

So I think to myself, OK, so there is a conflict because I tried to speed up the process manually of creating a smb user and password which the system seems to be unable to parse (why? heaven knows... Has ubuntu decided to change the way samba details are stored too?"

Fine, I think to myself, let me use a different share name, say share, I then hit create share with a new name aptly named share and get an even more complex explanation on how to get this working. By this time I am starting to get amused (as I tend too, having been involved in the Unix/Linux/OSX worlds far longer than the MS world, you can see me slowly admitting to the n.1 argument that regular folks mention when using a Linux based machine for anything that slides over into a little bit of systems administration work.

I know, that, had a client been with me at this point it would be extremely difficult to convince them that Linux is in fact a better, more efficient and easier solution to set up than a multiple windows based system.

But 'not being one to give up easily, I continue the journey. This time I have the following sprawled across the screen:

'net usershare' returned error 255: net usershare add: cannot share path /home/nubae as we are restricted to only sharing directories we own.
Ask the administrator to add the line "usershare owner only = false"
to the [global] section of the smb.conf to allow this.

Sooo.... away we go again, to command line and try adding that, hoping this will finally allow me to share the ONE directory. I restart the smbd service from the command line with service smbd restart (though admittedly, I'm still more used to doing a /etc/init.d/command restart.)

Trying to change any of the other tick boxes (allow others to create and delete files, or allow guest access) fails on the premise that permissions could not be changed for the directory nubae.

I decide to start from the very beginning, deleting the nubae directory, removing samba completely with --purge and giving a go from scratch in case I've missed something, but so far, you can imagine I'm grinning out of frustration more than out of anything else. I delete the whole user account from within the user setting visual GUI, to make sure there are no lingering side effects. And start again by creating the user through the GUI.

Vy recreating the account through the user settings control panel, I suddenly have no problems, even when it comes to sharing the account. It simply asks me if I want to install Samba and away it goes.

Now... if it had been obvious from the start that one can no longer touch the terminal without causing serious damage I wouldn't be so annoyed by this. But it seems like more and more, anyone with a terminal based systems administration background is being left in the dark, while Ubuntu developers and Canonical decide upon their own best practices.

This is not very different from what windows forces its users to go through, and it is yet another reason I am become more and more alienated by those who promise to stick to standards while secretly doing whatever they want without letting people know what is really going on.

I state this not as a newbie, but as someone that's been involved in development through countless areas of Linux, and never have I seen so much secrecy surrounding the introduction of new ways of doing absolutely fundamental things (adding users) without being told that if you use the terminal, you can screw up everything.

This is unacceptable. Either make things backwards compatible, or give an explanation somewhere on the new/right way of doing things. Making users jump through hoops is no way to get a larger user base, in fact, in my case, its made me actually start running XP along side Ubuntu... something I thought I'd never do....

sigh.... There is of course always OS X, which if I really have to be honest about... its the system of choice, if one has the money. Everything just works, it has a unix core so you dont have to feel like you are in unfamiliar territory, and it looks damn cool.

So the moral of this story is... Developers... please... work united to give people a unified experience that they can manipulate either in a format that has been charted out for them (we L(i)(u)nix people don't like that at all) or let us once more be free, and make the gui stuff work along side the true tried and tested command line environment configuration files. Its not that hard...

Any developer worth their salt will tell you that editing existing config files and making a gui that does the same is JUST as easy as doing some proprietary...

Rate It! (Average 0, 0 votes)



Making a windows Desktop Linux-like

Until now I've always looked at making my Linux environment as windows friendly as possible, using tools like Samba for file and printer sharing, as well as domain joining with or without the help of LDAP (an ldap client will go a long way to help with attaining a truly single sign on system if your server happens to be windows based. Other tools like Wine, Crossover, Cedega and windowblindas (I do believe the latter has recently changed named) help run most windows apps natively without an emulator. Then you can always install a virtualisation solution for those truly troublesome apps that absolutely must have a windows environment. These usually amount to older proprietary applications. The installation of Vmware, or preferably (at least imho) virtualbox. There is always KVM or XEN for those wanting true CPU based virtualisation. In any case, the point is, one can pretty comfortably create an environment where windows applications can live inside a truly Linux operating system.

Recently though, I have tried doing the reverse, in which I create a Linux like system running on top of a windows environment like windows XP (which I still have to admit has its advantages in many cases, especially those where either specialization is required (A music media machine, or high end graphics machine [think auto cad]), or the needs of the frequent gamer are met. As I am a computer specialist, requiring many different kinds of applications, a bash environment along with the tools that go with it, as well as the many open source applications I use from day to day, I seriously wondered if the latter would be possible. I am happy to say that with today's grat efforts at cross platforming, this has become a reality, and I find myself oddly attracted to such a system.

Where I do draw the line is on the server machine, which I cannot foresee running anything non Unix like. But with today's many tools, it is easy to work on a windows XP based desktop, which has been highly modified to resemble and duplicate the functions of a Linux desktop (reading and writing to Linux partitions, virtualisation for compartmentalizing Linux services and applications, and running a host of QT and GTK based apps which though originally written for Linux will run on Windows too. On the fly virtualisation like Quemu is of great help too, especially in the case of multi-partitioned usb sticks. Installing a bash environment with bash tools along with my essential programming kit (Python and LAMP, along with nice IDEs like Eclipse or more specialised ones like Wingware for python and phpeditor for php) are a must, but are also relatively stable and workable.

Since we are now in a relatively ancient incarnation of the best functioning windows (XP), it too can be tweaked to behave like Vista and Windwos 7 without adding all that unnecessary bloat, yet still giving a modern look and feel, as well as some essential tools that were lacking in the original incarnations of windows XP. Granted, it takes a good 2 days to get a working windows XP environment that contains all the elements of a Linux system, as well as the many open source tools one needs, integration with a Samba server, LDAP and LTSP if one so desires, but the outcome seems to be well worth it. From the XP distribution I am using (Dark edition V 6) I can create an ISO of the highly tuned system, so I can then revert to a working system should anything mess up my system (this is windows after all, and I can only trust it so much.)

Anyway, for the time being, I'm working with this environment so as not to have to constantly dual boot, or sacrifice my game time (the only real reason for running windows), but at the same time, I feel the system runs a tiny bit more smoothly when it comes to playing video across the network, or listening to music across the network. Perhaps its a novelty thing, but I hate to admit I would actually recommend a similar system to computer engineers requiring a plethora of tools, networking with a unix or linux server, and the occasional gameplay, alongside a system optimized for web/design, system administration and programming work.

Rate It! (Average 0, 0 votes)



June 10th Sugar collaboration testing session

Starting the session was a little chaotic, as this was the first time we've tried a group collaborative session, and there were no specific goals we had in mind. The idea was generally to see how collaboration worked in a mixed environment (0.82, 0.84, different distros, different network connections, etc)

The good news is, that for the most part, getting connected worked, and once in a collaborative session response times were quite good. This means that the underlying sharing mechanism works, it just doesn't respond very quickly. The bad news is that the server load is much worse than originally thought and expected.

From our initial experiences, it was clear that the sugar-presence framework had some huge problems in terms of visually representing who was connected, which activities were being shared, and who was sharing these activities. It was not clear where the major bottleneck was in terms of reaction and response, but suspicions lie at the ejabberd end of things. In future sessions we will have to restrict connections and individual details to the point that we can make proper measurements, and thereby find out what is going wrong, and at what point it is going wrong. Suspicions are that the jabber server in question (jabber.sugarlabs.org) didn't have gadget enabled, and was therefore broadcasting the list of all registered users continously, which would burden the server severely. The lag and server load also affected the visual clustering of users around specific activities

Though reaction times were very slow, the underlying sharing framework clearly works very well. Once users were connected, their connections were stable, and within specific activites, reaction times were fast and reliable. We were able to test a fair set of activities, some of which had better implementation of collaboration than others, and some of which didn't seem to have collaboration enabled at all.

We started off with the chat activity, which took a good 10 minutes before people started being able to connect to the initial shared session. Once connected, reaction times were pretty decent, and the frame showed all the connected users. There was a large variance between the shared buddies shown. Some users reported seeing 5 buddies, some 3, some 7, and some even saw buddies with a ??? as their handle. The screenshot below shows how it looked:

Speak was another interesting activity to share, as it allowed multiple people to join a session where the computer speaks out what's typed in the accent of the user's choosing. The choice of accent is used for the proper pronounciation in different languages normally, though there was much fun to be had speaking English words in the various accents. Below is a screen shot:

Reaction times were again very good once users had joined the activity. Buddies connected was highly variable from user to user again, and though clustering around activites did take for ever, it did eventually start to happen, as can be seen from the screenshot below:

Etoys was a surprisingly good collaborator. Once users were connected they were able to create various items, even animated and custom coded, and then send them through to the connected buddies. We just scratched the surface of this activity, and it was clear that some really interesting things are possible with collaborative etoys:

Other activities that worked quite well were Cartoon builder, connect, Maze, Colors, and Tam Tam. We were unable to get write or paint to collaborate, and are unsure as to why. Talking with the authors of these programs seems appropriate, though it has been verified that write, at least, does collaborate. Below is a screenshot of what it looked like when multiple activites were being shared:

Rate It! (Average 0, 0 votes)



Chrome for Linux (openSUSE)

It turns out, even though its not advertised anywhere, the Chrome browser, based on Chromium, Google's great open source browser project, is available for download. It has been available for windows for a while now and work on Linux just fine via crossover or Wine.


Although I had to link a couple of libraries to get it working on my openSUSE machine, it was not a lot of work, and I have to say my first impressions of it are very good. It is a lot faster than Mozilla in both starting up and then the rendering of pages. It seemed to be about 2 to 3 times faster and tracking its CPU and memory usage showed it was less resource hungry than Firefox too. It is of course lacking a lot of features including plugin support (think flash), printing, gears support, etc.


The most noticeable feature was the visual cache u have of sites you visit most often. This creates a kind of dynamic favorite bookmarks page, which seems vey useful (to me at least.) It seems they are building various snapshots a day, making it a project that is clearly very active. If you'd like to get it running on openSUSE, follow these instructions once you've downloaded the file chromium.zip from the latest snapshot directory: ( http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/ )





cd /home/_user_
wget http://build.chromium.org/buildbot/snapshots/chromium-rel-linux/_latest-snapshot_/chrome-linux.zip

Make sure you replace _latest-snapshot_ with the latest snapshot number from the page, and _user_ with your home directory


unzip chrome-linux.zip
sudo ln -s /usr/lib/libnss3.so /usr/lib/libnss3.so.1d
sudo ln -s /usr/lib/libnssutil3.so /usr/lib/libnssutil3.so.1d
sudo ln -s /usr/lib/libsmime3.so /usr/lib/libsmime3.so.1d
sudo ln -s /usr/lib/libssl3.so /usr/lib/libssl3.so.1d
sudo ln -s /usr/lib/libplds4.so /usr/lib/libplds4.so.0d
sudo ln -s /usr/lib/libplc4.so /usr/lib/libplc4.so.0d
sudo ln -s /usr/lib/libnspr4.so /usr/lib/libnspr4.so.0d

You should now be able to run chrome via command line or by clicking on the binary. If you are on Ubuntu, there is a PPA where u can download the latest version: https://launchpad.net/~chromium-daily/+archive/ppa


Rate It! (Average 0, 0 votes)