There is a Ubuntu package called flip that converts files between UNIX & PC (see the flip man page), but I prefer to stick with the plain old vanilla unix2dos and dos2unix. unix2dos & dos2unix are pretty much the de facto in the UNIX world for translating line endings. In Ubuntu unix2dos & dos2unix use the command fromdos alias todos in a package called tofrodos. Look for unix2dos & dos2unix in a package named tofrodos? fromdos? alias todos? in tofrodos? but just call me dos2unix or unix2dos? flip‘n twisted?
Posts Tagged ‘Ubuntu’
Where’s Waldo? Better yet, where’s dos2unix in Ubuntu?
August 3, 2010How-to setup Ubuntu Server Active Directory integration
July 28, 2010Quick & Easy Method
Install Likewise-Open 6.x
Find link for the most current DEB Likewise-Open version 6.x at http://www.likewise.com/community/index.php/download and then download the package (32-bit or 64-bit)from sfx. Example:
wget http://www.likewise.com/bits/6.0/8234/LikewiseOpen-6.0.0.8234-linux-amd64-deb.sh sudo ./LikewiseOpen-6.0.0.8234-linux-amd64-deb.sh
Join the computer to the domain
Note: In the command listed below replace the your-domain-name & your-Administrator-account-name with appropriate information. You may also use any other privileged account rather than the Administrator account to join the computer to the domain.
sudo domainjoin-cli join your-domain-name your-Administrator-account-name
At the prompt, enter the domain administrator password.
Test authentication with domain account
su your-domain-name\\your-Administrator-account-name
Enter the password for the Domain Administrator account at the prompt.
Configure SSH for Domain Authentication
Edit the SSH config file (replace jed with your favorite editor):
sudo jed /etc/ssh/sshd_config
Find the Authentication section. You will find a list of names in this field. Add a * (asterisk) to the end.
Example:
Allowusers *
Close and save the config file.
Restart the SSH daemon
sudo /etc/init.d/ssh restart
SSH authentication with domain credentials
ssh your-domain-name\\your-Administrator-account-name@localhost
Add Domain Admins to the Sudoers File
Edit the sudoers file:
sudo jed /etc/sudoers
Add the following line to the end of the file:
%your-domain-name\\domain^admins ALL=(ALL) ALL
Save and close the file.
Usage
To use a domain account to SSH in to the computer, use the following example:
login as: your-domain-name\your-AD-account-username
Note: In a Unix shell, a \ (backslash) character is used as an escape key. When referring to a domain account while in a bash shell, use two backslashes. (SSH login prompt only requires one backslash)
Example:
su your-domain-name\\Administrator
Active Directory Groups
You can now use AD accounts in chown & AD groups in chgrp to assign permissions to directories and files just like you would with local Linux users & groups. For example to see your AD groups type the following:
groups
References
Credits
Special thanks to Jeremy Dye for providing the information used in this post.
RANCID – Ubuntu How-to – Installation, device bulk imports & SSH setup
May 13, 2010Reference: Official RANCID Website
Would you rather manually hand-enter all your network devices into each individual RANCID group configuration file? Or how about bulk loading them from CSV file, spreadsheet or otherwise using a Bash script and a little Python magic?
How-to install VMware Tools in Ubuntu
May 4, 2010Post Out-Dated
For up-to-date information visit https://help.ubuntu.com/community/VMware/Tools
Update your package lists:
sudo apt-get update
Check to see if Linux kernel headers are installed:
apt-cache search linux-headers-$(uname -r)
If you do not see the “Linux kernel header” package after executing the above command, then perform the next step, otherwise skip it …
If Linux kernel headers are not installed:
sudo apt-get install linux-headers-$(uname -r)
Install VMware Tools
sudo apt-get install open-vm-tools
Configure VMware Tools
sudo /usr/bin/vmware-config-tools.pl
Leave all answers as defaults
Restart Networking with vmxnet
WARNING: During the next five (5) steps you will temporarily lose network connectivity, you can optionally skip these steps and execute them at a more convient time.
sudo /etc/init.d/networking stop
sudo rmmod pcnet32
sudo rmmod vmxnet
sudo modprobe vmxnet
sudo /etc/init.d/networking start
Check to see if VMware-tools is running
ps -ax|grep vmware
You should see the following process running:
/usr/lib/vmware-tools/sbin32/vmware-guestd –background /var/run/vmware-guestd.pid
Check to see if balloon driver is running on host
Click on the link to learn how-to check to see if balloon driver is running
Check to see if VMware tools is out of date
From the vSphere client click on the Summary tab for the VM and in the General block look to see if VMware Tools shows “OK” or “Out of date”.
If it shows Out of date then right-click on the VM and select Guest->Install/Upgrade VMware Tools. It will take a while for the task to complete, when it is done processing the VMware Tools status should show “OK”.
References
How-To Install VMware Tools in Ubuntu
Opsview 3.7.0 released!
April 30, 2010There are many enhancements and bug fixes, but the following have sold me on the new release:
- Graphing fixes, including incorrect y-axis values
- SNMP v3 support in MRTG
- Support for Ubuntu 10.04 LTS server edition