Category Archives: Linux

The Linux Category actually encompasses *BSD, RH, Fedora, Ubuntu, and the like.

Apt-get Not Upgrading The Kernel

If you run apt-get update and apt-get upgrade, it should upgrade most of the packages associated with your system.

However, there are certain files that will not be upgraded using these general commands.

We must run apt-get dist-upgrade instead.

***EDIT***

And this is how to upgrade from a lower version to a higher version:
apt-get install update-manager-core
do-release-upgrade

Ubuntu Disable Sounds

I always forget how to disable the “login ready” sound of the drums.

System >> Administration >> Login Window
Click on the Accessibility Tab
Uncheck the Login screen ready sound box

OR there’s the login and logoff sounds:

System >> Preferences >> Sound
Click on the Sounds Tab
Disable the Login and Logout sounds

***EDIT***
Apparently things are a little bit different in 9.10.

System > Preferences > Start Up Applications
Deselect the Gnome Login Sound

Now you will no longer hear the login noises.

Open up the terminal
sudo -u gdm gconftool-2 –-set /desktop/gnome/sound/event_sounds –-type bool false

Now you will no longer hear the startup noises.

Ubuntu 8.10 VERY Slow On HP Laptop

Not too long ago I retired my Compaq V5000 CTO Laptop in favor of a newer HP 6515b. The only thing I’m missing thus far is the long life battery I had on the V5000, but that can easily be fixed with a few $$.

I am a big fan of dual booting systems – it’s always a good idea to have a backup plan in case the first plan fails. I put Vista Enterprise SP1 x64 on my new laptop (I have to get used to Vista eventually since I do have to support the machines at work). I then waited patiently for 8.10 Ubuntu to be released.

Went to install x64 of Ubuntu – install took just over 2 hours. Odd. Then nothing is really working up to par with a 2.2GHz AMD X2. I’m sorry to say, but it’s so far been a bad experience. I figured maybe it was a 64bit issue – redownload and try to install 32bit. The installer is taking forever again, so I forgo the installer and reboot.

Then I looked on the Ubuntuforums for some answers.

Basically, the ACPI is not fully written for. ACPI is advanced configuration and power interface.
That and the APIC is not fully written for. APIC is advanced programmable interrupt controller.

I’ve been told that when you are installing Ubuntu, run it with the ACPI=OFF command, and then when it’s installed, remove the ACPI=OFF from the menu.lst and replace it with noapic.

Here’s the fix:
sudo nano /boot/grub/menu.lst
Then find where it says kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=bunchoflettersandnumbers ro quiet splash
We want it to say ro quiet splash noapic

Copy Between Linux Computers

Growing up on Macintosh computers, I always feel a little crippled on my basic computer knowledge. I’m not good with DOS. I didn’t know, until recently, what an IRQ was. I had no idea how to make a bootable MS-DOS disk for ghosting. I didn’t know how to copy files between Linux systems, but I could writeup some IPchains no problem. Odd.

So anyway, here’s the command that you run on the server you’re copying FROM:
scp file_name user_name@ip_address:/directory_listing/
SCP: Secure copy
File_name: the name of the file you want to copy
User_name: name of the user with privs to the directory you’re copying to
Ip_address: IP of the server you’re copying to
Directory_listing: starts with / and doesn’t need a trailing /

In my case it’d be:
scp bigfile.iso ituser@10.1.2.2:/home/ituser

EDIT!!!!

There is also a program called WinSCP that allows you to move files back and forth with an FTP-style interface. I highly recommend it to those who use Windows.

EDIT 2 April 11, 2015
Obviously I should have included Rsync:
rsync -ru /src/dir/* root@remoteserver:/remote/dir/other/dir/

Samba Issues and Fix

After installing CentOS 5.2 x64, webmin 1.420, and vmware server 2.0.0, I tried to get samba working.

Getting samba to work correctly is the easiest via the webmin interface. Webmin actually makes almost everything easier. I like it when computers are made easier. Thank you, webmin. You can find how to install webmin by searching for webmin. Too bad I don’t get paid for the number of times I can type webmin. I’d be rich. Webmin.

Back to the task at hand… I set samba up to work:
yum install samba
But it’s not set to automatically start, so we have to use webmin ($$$) to get it to auto start. Samba requires two services to run:
1.) SMB – starts and stops the Samba smbd and nmbd daemons used to provide SMB network services.
2.) winbind – starts and stops the Samba winbind daemon.
I set both of them to startup when the system starts.

Then I set the permissions on a folder (/var/lib/virtual machines/) which I called vmware. They are/were setup correctly. But I couldn’t attach from my windows box to the samba share. Permission denied.

So then I tried to chmod -R 777 /Virtual\ Machines
Didn’t work.

As a final attempt, I tried to smbpasswd (username)
Typed in a new password
Failed to find entry for user (username)
Failed to modify password entry for user (username)

Webmin failed me! It said that it converted the users for me, but obviously it hasn’t.
So here’s the fix:

smbpassword -a (username)
New SMB password:
Retype new SMB Password
Added user (username)

And then, like magic, samba started working! Whooo!

Moving VMWare Machines Around

I recently setup a new VMWare server on one of our older Dell servers (2850 with 8GB RAM 6X300GB SAS). And since I’m eventually redoing the primary VMWare server, I wanted to move all the critical virtual machines to the secondary server (for obvious reasons).

So far everything has been moving great, but I did have one issue:
After moving our collaboration helpdesk server, I could no longer remotely access the virtual machine.

ifconfig showed that only the l0 was loading.
nano /etc/networking/interfaces displayed both the l0 and eth0 settings
ifconfig -a informed me that in the transition, the virtual machine decided to change the ethernet device to eth1
nano /etc/networking/interfaces and I changed all the eth0 to eth1
sudo /etc/init.d/networking restart or just reboot the server

Test SMTP Using Telnet

I’ve been using this more and more and have finally memorized most (if not all) of it. But this is for those of us who don’t really like to remember useless information.

Start -> Run -> CMD
telnet
open mail.mailserver.tld 25
At this point the server should respond with a 220 mail.mailserver.tld ESMTP Mail Service.
ehlo test.com
The server then should respond with 250 mail.mailserver.tld along with all the supported features of the mail server
mail from:tester@test.com
250 Sender OK
rcpt to: admin@test.com
At this point, the server should say 554 Relay access denied. This means your server is not an open relay.
rcpt to: actualemailaddress@mailserver.tld
250 Recipient OK
data
354 Start Mail input; end with CRLF.CRLF
subject: subjecthere
You’ll have to hit enter twice after the subject, then go on and type the body.
body here.
Note the . at the end – you’ll have to type a return and another . to finish.
Then there should be a server response 250 Queued mail for delivery. You can quit now.
quit