Posts Tagged ‘ubuntu’

Did you try out the latest ver. of Ubuntu?

May 3, 2010

A Facebook Friend just asked me this question:

Reply:

Noel: I spent literally 100 hours installing and reinstalling Ubuntu 9.1 on an old 280 gig Gateway that my step-daughter was kind enough to donate. I documented blow by blow each and every miserable step of the undocumented way at my blog

https://williambuell.wordpress.com

When I finally got it working, I foolishly tried to implement a backup procedure which proceeded to trash my entire system making it unbootable. I began the re-install procedure at 12:01am Saturday morning. By 7:30am I had a working install. So, because I documented every miserable step of the way on WordPress, I was able to re-create in 7 hours what originally took me 100 hours. AND, had I been clever enough to do a backup (tarball) of the Ubuntu Evolution email client, then I could simply have restored that in 10 minutes and avoided the hour to muddle through POP3 stuff.

I decided that there is no point to really back things up. If this Ubuntu install becomes unusable then I will simply download and burn the latest stable Ubuntu install.

If more people would donate more machines, then I might experiment with installing more recent versions of Ubuntu. But the one I have (9.10, Karmic-Koala I think) is super fast compared to my Dell Windows XP. It needs no antivirus or firewall as far as I can determine. It regularly updates itself in a way that is less annoying than Microsoft updates. It connected to my Verizon DSL through Belkin Wi-Fi. I was able to install Google Chrome Debian easily, and have it synchronize my bookmarks with my gmail account. My Blackberry is also synchronized with my Gmail account. So I can forget about nasty old Microsoft Outlook desktop.

My latest project is to master Microsoft Office Word 2007 because it seems radically different from what I have which is Word 2003.

Advertisements

The Open Source Movement

January 13, 2010

http://www.gnu.org/philosophy/free-sw.html

Giri writes:

We both know that we can call ourself as free software advocate because we both know the role of F/OSS in today’s world and we also understand clearly the importance of F/OSS and Linux for everyone.

I believe F/OSS and Linux will help to change the world to a better place and I imagine where everybody with different circumstances or people with difficulties can share the same knowledge as we do.
Richard Stallman the president of GNU has write a definition about Free Software

http://www.gnu.org/philosophy/free-sw.html

from the link above i understand that Free is not always about Money but Free in Free software is like free as in Freedom.
Open Source offering flexibility in design. Eric S Raymond in his essay

http://www.catb.org/esr/writings/cathedral-bazaar/cathedral-bazaar/cathedral-bazaar.ps

said that Open Source development is A’la Bazaar which means that every software has to be like a cathedral, built together with care.

But there’s something bothering me about this F/OSS movement.

In my opinion F/OSS can never fulfill it’s aim if there’s no cooperation between software developers, GNU and international organization. we can look at the One Laptop Per Child (OLPC) project or the cooperation between UNESCO and GNU to promote F/OSS usage.

From my opinion above, I want to know what you’re thinking. please add some points that I missed. And I want to know if U.S government ever promote the usage of F/OSS and Linux in educational institutions in America? Is there any Linux Adoption

http://en.wikipedia.org/wiki/Linux_adoption

in America? If yes, what’s the result.

Ubuntu blows me away

December 21, 2009

Ubuntu 9.10 simply blows me away with its speed and elegance (and so reasonably priced). It took me a total of 50 or 60 hours experimenting, first with Wubi installs on top of Windows, and then with a pure Ubuntu install on a 280 gig
Gateway. I took detailed notes at my WordPress blog. Anyone with those notes should be able to install it in 5 hours or less. Firefox is amazing on Ubuntu. There is a multi platform Instant Message program (Yahoo, AIM, ICQ, MSN, etc), an email client, an IRC client (Konverse) which lands you in a Kubuntu channel with dozens of specialty rooms and hundreds of people on line around the world. The only think it cant do yet, which I like, is Paltalk. Ubuntu updates are far smoother, more automated, less in your face, less annoying than Windows updates. I tried out Ubuntu because I finally had a spare machine I could afford to ruin. I felt if I did succeed in installing Ubuntu, that it would be very primitive and user unfriendly. It is very user friendly with lots of GUI interfaces.
You do not have to be some C++ wizard or know shell and bash commands. You CAN do all that if you know how, but you don’t NEED to to use it. And you get Open Office for spreadsheet, word processor and presentation manager. If more apps become CLOUD based, then you will do everything in your browser, and all apps and data will be on some remote server.

WUBI Ubuntu and Cyrillic Russian in Open Office Word

December 1, 2009

Get a load of THIS:
Йцукенгшщзхъ
фывапролджэ
ячсмитьбю.
ЙЦУКЕНГШЩЗХЪ\
ФЫВАПРОЛДЖЭ
ЯЧСМИТЬБЮ.

In free Ubuntu, it is a PIECE OF CAKE, to change to ANY LANGUAGE. You just click on SYSTEM, and PREFERENCES, the keyboard will say USA, you click ADD, select RUSSIAN FEDERATION, and click that as default. NOW everything you type in Open Office Document will be as you see above, which is all three qwerty rows, first in lower case, and next in caps lock. And then, I copied it to the paste buffer, and had to go BACK to SYSTEM Preferences, Keyboard and click RESTORE TO DEFAULT to get the damn thing out of Cyrillic. So, IF you want to do a WUBI install of Ubuntu WITHIN your Windows environment, that is the easiest way, it takes less than an hour, automatic, with a DSL connection, and instantly comes up (with dual boot choice Windows or Ubuntu) with Firefox browser, Open office Document, Spreadsheet, and Presentation mgr. And, if you DONT like UBUNTU, you can delete it with PROGRAM ADD/DELETE and poof, its GONE.

Sending Email from PHP in Ubuntu Desktop

November 28, 2009

http://ubuntuforums.org/showthread.php?t=135397

Re: Path of Sendmail
Open synaptic and search for sendmail. Then install it from there.

Sendmail will then be found in /usr/sbin/sendmail

; For Win32 only.
;sendmail_from = me@localhost.com

; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
sendmail_path = /usr/sbin/sendmail -t -i

or possibly:
sendmail_path = /usr/sbin/sendmail -i -t
or
sendmail_path = /usr/lib/sendmail -i -t

MY PHP.INI file is located in /etc/php5/apache2

I go into TERMINAL and type

sudo gedit
It prompts me for the root password
and then I am in gedit with superadmin rights and I can navigate to the php.ini file and change it. The very first thing I ever did was to open php.ini and do SAVE AS to original.php.ini so I can always revert back to the default.

http://ubuntuforums.org/showthread.php?t=331137

NOTE: THE synaptic mgr install of POSTFIX will remove SENDMAIL.
what worked for me was:
apt-get install postfix

and then edit php.ini
Relevant lines in /etc/php5/apache2/php.ini:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
sendmail_path = /usr/sbin/sendmail -t -i

and edited /etc/postfix/main.cf and put my correct external smtp server
relayhost = smtpauth.earthlink.net

restart the services that had configuration changes

During the postfix installation, I chose the Internet Configuration. If you hover the mouse over the choice field, a tool tip will explain all the choices. I noticed that it offered me bryan-desktop as a name for the system, so I stuck with that, since it might be required, and I have no idea how to find the name of my system.

Now all I need to do is TERMINAL sudo gedit

and edited /etc/postfix/main.cf and put my correct external smtp server
example – relayhost = smtpauth.earthlink.net

(but mine will I THINK be smpt.gmail.com

restart the services that had configuration changes

OF COURSE, the first thing I do when I gedit main.cf is to
SAVE AS original.main.cf, close, and reopen main.cf

When I make the above mentioned chage to the file, I find:

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

AND HERE IS WHAT I FIND IN THE README FILE, NONE OF WHICH SEEMS VERY HELPFUL:

There are some significant differences between the Debian Postfix packages,
and the source from upstream:

1. The Debian install is chrooted by default.
2. Dynamically loadable map support.
3. For policy reasons:
a. SASL configuration goes in /etc/postfix/sasl
b. myhostname=/path/to/file is supported (and used) in main.cf
4. smtp_line_length_limit defaults to 0, instead of 990, in absolute
violation of the RFC. Note that mailers in the path will still
potentially split the line, though. This will be removed at some
point in the future.
5. IPV6 support is enabled: postfix listens on ipv6/ipv4 by default,
(see: inet_protocols)
6. TLS/SASL support is enabled.
7. rmail comes from sendmail, not from postfix.
8. The upstream main.cf is delivered as /usr/share/postfix/main.cf.dist,
rather than cluttering /etc/postfix/main.cf with comments.

Known caveats:
1. The dynamically loadable modules are not found in the chroot.
Therefore, proxy maps may require you to copy the appropriate shared
object into the chroot if you chroot the proxy service in master.cf.
2. Some map types (and SASL support) require some extra configuration
(beyond what upstream indicates) to run inside the chroot. The simplest
solution for the maps is to use the proxy service, which is not chrooted.
SASL is a bit more complex, and is on the TODO list…
3. Note that the chrooted daemons open /dev/log before chrooting, so if your
syslog daemon is restarted, the daemons will be unable to reconnect to the
syslog socket, and hence being unable to log. The postfix package provides
a config snipped for the rsyslog daemon in /etc/rsyslog.d/postfix.conf to
also open a socket in /var/log/postfix/dev. For other syslog daemons, you
will also have to restart postfix after restarting the syslog daemon, or
configure it to open an additional socket.
a. For sysklogd (the default in Debian versions prior to Lenny), add
SYSLOG=”-a /var/spool/postfix/dev/log” to /etc/default/syslog.
b. For inetutils-syslogd, add SYSLOGD_OPTS=”-a /var/spool/postfix/dev/log” to
/etc/default/inetutils-syslogd.

HERE IS A LINK THAT LOOKS MORE HELPFUL

http://behindmyscreen.newsvine.com/_news/2006/12/31/501615-configuringubuntu-postfix-and-gmail-in-101-easy-steps

Ubuntu Apache Restart

November 27, 2009

sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
or
sudo /etc/init.d/apache2 restart

Ubuntu Evolution email Import/Export

November 25, 2009

I don’t really see an export function for Evolution. I do see an import function.

Microsoft is so rotten, I tried to export from Outlook, and it says I need some install disk with an add on,… so I went to my gmail, did an outlook compatible export, and the import was useless. BUT when I did a gmail VCARD export, that reads in just fine to Evolution.

Now, IF I found a machine with the proper Outlook Microsoft add-in, then I could synchronize my Blackberry to Outlook, and export to Ubuntu’s Evolution e-mail client.

Ubuntu IRC- Please review/correct this script

November 25, 2009

If you are curious to visit the IRC channel, visit here first

https://wiki.ubuntu.com/IrcGuidelines

Thanks for visiting from IRC #ubuntu-offtopic

I am a beginner with Linux Ubuntu, and I want a simple means
to back up my system occasionally.

I found a tar command at the following link:

http://ubuntuforums.org/showthread.php?t=35087

I tried it once and it seemed to work, except I had some trouble getting rights to access the file in / root. I THINK that the following commands will work for me without hurting my install.

I DID do some things with sudo Nautilus and a /var/Backup folder which I believe crashed my whole Ubuntu system, and I had to spend 7 hours re-installing it, which you may read about at this blog.

So, I really need someone who is experienced in Linux and script/bash commands to look at this and tell me if there is any danger.

I DID get the tar command which you see below to work once, and I managed to copy it to a DVD. I put the dvd in my second computer which is a Wubi Ubuntu install on top of windows, and it was able to open the tar, browse the folders, and extract some files from /Desktop.

I WOULD ALSO APPRECIATE THE CORRECT COMMAND TO SAFELY DELETE backup.tgz from / root

Thanks for looking and commenting!

enter TERMINAL

sudo su

tar cvpzf backup.tgz –exclude=/proc –exclude=/lost+found –exclude=/backup.tgz –exclude=/mnt –exclude=/sys –exclude=/media /

sudo cd /

sudo chmod 777 backup.tgz

sudo cp -p backup.tgz /home/bryan/Desktop/mytestfolder/

++++++

1.
I WOULD ALSO APPRECIATE THE CORRECT COMMAND TO SAFELY DELETE backup.tgz from / root
2.
>>> sudo rm /backup.tgz
3.

4.
Thanks for looking and commenting!
5.

6.
enter TERMINAL
7.

8.
### sudo su
9.
### This is silly for two reasons. First, ‘sudo -i’ is preferable to ‘sudo su’. Second, rather than putting sudo on every line of the script, just run the script itself with sudo.
10.

11.
# This will work, but using v (verbose) doesn’t really add value with this huge of a data set, and significantly impairs performance (the terminal can’t keep up), so I’d probably drop it.
12.
tar cvpzf backup.tgz –exclude=/proc –exclude=/lost+found –exclude=/backup.tgz –exclude=/mnt –exclude=/sys –exclude=/media /
13.
# Note that you are not specifying a target directory for backup.tgz to end up in here. As you’ve noticed, it’s helpful to have it somewhere that you’re not backing up, to avoid recursion.
14.

15.
sudo cd /
16.

17.
sudo chmod 777 backup.tgz
18.

19.
sudo cp -p backup.tgz /home/bryan/Desktop/mytestfolder/
20.

21.

22.
THUS, my recommendations:
23.
—————————————————————————————————-
24.
#!/bin/bash
25.
tar cpzf /backup.tgz –exclude=/proc –exclude=/lost+found –exclude=/backup.tgz –exclude=/mnt –exclude=/sys –exclude=/media /
26.
chmod 755 /backup.tgz
27.
ln -s /backup.tgz /home/bryan/Desktop/mytestfolder/
28.
—————————————————————————————————-
29.
Save as mybackupscript.sh
30.
chmod +x mybackupscript.sh
31.
Run with:
32.
sudo ./mybackupscript.sh

++++++++++

tonyyarusso: one quick question, what does this last line do — ln -s /backup.tgz /home/bryan/Desktop/mytestfolder/
[02:07] what is ln -s
[02:07] WilliamBuell: Create a symbolic link
[02:07] WilliamBuell: it creates a symbolic link
[02:07] symlink
[02:08] WilliamBuell: It makes a “pointer” of sorts in your home directory to the real file, rather than copying it all over.
[02:08] and, ok ln symbolic link, how is that useful
[02:08] can reach data 2 ways but only have it exist on disk once
[02:08] so, you are saying that when I mount a dvd, and go to file manager, i will SEE the tar in that folder (but it is really the symbolic link) and i may freely copy it to the dvd
[02:08] so if you dont want to type a really really long path, you can have a shortcut
[02:08] WilliamBuell: Half the disk space usage, and less time.
[02:08] WilliamBuell: yup
[02:09] wow, thanks, now it all makes sense
[02:09] there are also hardlinks (ln without the -s)
[02:09] what is difference between hard and soft link
[02:09] symlinks point to a path to the data so they can point to things on other disks/partitions/media

hardlink vs symlink

[02:19] WilliamBuell: I thought you wanted it in that folder for some kind of convenience – it’s certainly not necessary.
[02:19] oh, ok…. i am just scared to death of root, since my crash
[02:19] the script can go wherever you like. Many people like to create /home/bryan/bin/ for such things, but it doesn’t matter.
[02:20] so sudo ./mybackupscript.sh WILL SEARCH until it finds that file, wherever it is, even on /Desktop ?
[02:20] No.
[02:20] It will be the current working directory, whatever that is.
[02:21] oh, ok, so as long as i am in current directory where that .sh is, and i sudo ./ it will find the .sh
[02:21] but, i should not save the script to root, i take it
[02:22] and if i did create /home/bryan/bin i would cd to that, and then sudo ./mybackupscript.sh
[02:23] right
[02:23] but, if i went into gedit and saved some file as mytestfile.sh in root,… it would not harm root
[02:23] except it is a bad practice to store things in root

The Importance of Backing Up

November 23, 2009

This is not quite as eloquent as “The Importance of Being Ernest”
but it is far more important.

My total Ubuntu crash sobered me to the realization that I am not backing up everthing that I should be.

For one examble, my bookmarks on http://delicious.com/billbuell

If I click on settings there is an EXPORT feature. I download, right click on the download, choose OPEN CONTAINING FOLDER and then copy it to my USB flash drive, to a folder of MYBACKUPS to a folder called DELICIOUS to a folder dated with todays date 20091123.

And Oh, by the way, I am in Ubuntu, and they are so clever to have the time and date right on the desktop at the upper right (so unlike Windows, where I have to hover over the Date on the lower right taskbar, and half the time it does not show!)

And it never occured to me that my Ubuntu email server offers a backup and restore method.

After I finished backing up Evolution Email client (to a gz tar zip on my flash drive USB), I noticed some instability, and closed and then relaunched Evolution, but now it seems to be OK.

Konversation IRC client trouble with AWAY msg

November 23, 2009

I experimented with resetting my AWAY message in Konversation client, and then fell asleep after an all night 7 hour reinstall of my crashed Ubuntu.

In the morning when I checked my still running IRC session, I saw that one of their BOTS had issued me the following warning:

[14:38] wants you to know: You should avoid noisy away messages in a busy channel like #ubuntu, or other Ubuntu channels; it causes excessive scrolling which is unfair to new users. Use the command “/away ” to set your client away silently. See also «/msg ubottu Guidelines»
[14:38] [Away] You are no longer marked as being away.

I am posting this to save and document the incident and information.

chatted with me and found it strange that my unattended machine should issue the away message 3 times.
I also wonder why that should be.