Feb
20
2008
0

HowTo - use chmod

The Ubuntu website has a good tutorial on chmod.

https://help.ubuntu.com/community/FilePermissions

Written by Tom Tags: , ,
Feb
11
2008
6

HowTo - install FreeNX on Ubuntu 7.10 x64

I found this url in the endless ubuntuforms.org. These steps worked great for me. In order to get this working correctly you must know your external ip and/or dns name and also have ssh installed with the correct port (22) forwarded to the machine in question.

Start by setting up your repos:
Add the following to /etc/apt/sources.list

deb http://www.datakeylive.com/ubuntu gutsy main
deb-src http://www.datakeylive.com/ubuntu gutsy main

This next step failed for myself, but is only the repo apt-key and didn’t cause the install to fail:

wget http://www.datakeylive.com/ubuntu/dists/gutsy/wjeremy.key | sudo apt-key add -

Then run good ol: sudo apt-get update

This next step will install the packages required:

sudo apt-get install expect openssh-server tcl8.4 libxcomp2 libxcompext2 libxcompshad nxlibs nxagent nxproxy nxclient freenx

You can check to make sure it installed correctly by executing:

sudo apt-get -f install

sudo apt-cache show expect openssh-server tcl8.4 libxcomp2 libxcompext2 libxcompshad nxlibs nxagent nxproxy nxclient freenx | grep “Unable”

I needed to add the following to the bottom of /etc/X11/xorg.conf (make sure to back your’s up first!)

Section “Files”

# path to defoma fonts
FontPath “/usr/share/fonts/X11/misc”
FontPath “/usr/share/fonts/X11/100dpi/:unscaled”
FontPath “/usr/share/fonts/X11/75dpi/:unscaled”
FontPath “/usr/share/fonts/X11/Type1″
FontPath “/usr/share/fonts/X11/100dpi”
FontPath “/usr/share/fonts/X11/75dpi”
FontPath “/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType”
EndSection

You’ll need to download the following file ( i used my home directory)

nxcupsd-wrapper

You need to set the permissions on that last file downloaded to make it work right:

chmod a+x nxcupsd-wrapper
sudo chmod 755 /usr/lib/cups/backend/ipp

Now you need to add a user that is able to remote in; replace xxxx with username:

sudo nxserver –adduser xxxx

On your remote machine make sure to install the client and you’re good to go!

Written by Tom Tags: , , ,
Feb
09
2008
0

Ubuntu x64 7.10 gutsy and ATI x300 w/ compiz

Finally I found a few instructions which made this configuration easy and smooth.

http://www.chr05210084.com/content/install-compiz-fusion-ubuntu-gutsy-using-ati-video-card

1. Enable fgrlx driver.
Install linux-restricted-modules and restricted-manager provied in the restricted repositories:
sudo apt-get update
sudo apt-get install linux-restricted-modules-generic restricted-manager

Open the restricted drivers manager in “System -> Administration -> Restricted Drivers Manager” and select “ATI accelerated graphics driver”.
2. Install xserver-xgl package

sudo apt-get install xserver-xgl

3. Install compiz

sudo apt-get install compizconfig-settings-manager compiz compiz-core compiz-fusion-plugins-main compiz-fusion-plugins-extra compiz-gnome compiz-plugins libcompizconfig-backend-gconf libcompizconfig0

4. Reboot
5. Log in. 3D effects should be enabled!

Written by Tom Tags: , , , ,
Sep
12
2007
0

vmworld 2007, lots cpu cores, de-dupe what? and skinny ubuntu

Lots is going on this week at VMworld 2007. I watched a video at the AMD booth of a server being upgraded from dual proc dual core to dual proc quad cores featuring their new “Barcelona” F series cpu. The only change required is a bios upgrade which they actually replaced with a new physical bios chip. They stated in the video that no additional power, cooling or hardware is required for the upgrade. The upgrade made a significant change in system performance. FMI for quad core opterons…

I’m seeing a lot more companies adapting a de-duplication technology to their product. Netapp and Data Domain are a couple of vendors that I spoke to about this. Data Domain was interesting to me because they supply you with an entry level HW appliance with redundant disk storage at RAID 6. The cost is about $17k for their entry level appliance. The appliance comes with 2.5 raw tb of space which is the equivalent to 25tb of actual vm files because of the capabilities of de-duplication. Pretty incredible.

Ubuntu is visiting VMworld again. They’ve released a version of ubuntu that’s slimmed down for usage with virtual appliances and virtual machines. The product is called Jeos (pronounced juice).

Tonight is the VMworld 2007 Party

May
30
2007
0

HowTo - setup time in linux command line

I stole this from somewhere on the internet…

Setting Linux Time
Programs for working with time and date are:

* clock - This is a soft link to hwclock.
* date(1) - Print or set the system date and time.
* hwclock(8) - Sets the hardware clock based on values entered on the command line.
* setclock(8) - Sets the BIOS hardware clock based on the time and setup of the system clock.
* timeconfig(8) - A program used to configure the system configuration file “/etc/sysconfig/clock” which includes the type of clock and timezone.

An Example:

While logged in as root do the following:

1. Type “date”.
2. You should see some variation of”

“Wed Nov 24, 9:29:17 EST 1999″
3. To change the time type(as an example):

date -s 10:10
4. The system response will be:

“Wed Nov 24, 10:10:02 EST 1999″
5. Then if you want to set the hardware(BIOS) clock so the system will keep the time when it reboots type:

clock -w

or

setclock

The program setclock will set your hardware clock based on your system configuration parameters including whether or not your clock is set to universal time.

The “clock -w” command assumes your hardware clock is set to local time. If it is set for universal time you will want to type “clock -wu” rather than the “clock -w” in the line above. If you use the wrong option the time will be set incorrectly and you will need to do it again.

On a Redhat system, you can use the program “linuxconf” as root and page down to the next to the last line in the menu which is “date & time”. Select it and see if the box named “universal format(GMT)”, next to “Store date in CMOS”, is checked. If is is not, you may save your time by typing “clock -w”. If it is checked use “clock -wu”.

Note: There is a man page for date that you can use to learn more. Type “man date”. You do not want to make any more changes to time and especially to the date than necessary, especially while the system is running, since this can trigger the “cron” daemon to perform various time related system tasks.

An alternate method to set time is.
hwclock set date “2/24/2000″ If you are using local time
hwclock set date “2/24/2000″ -utc If you are using universal time

In the rc.sysinit startup script, this program is used with the options -adjust and -hctosys to adjust the hardware clock for drift, and set the system time to the hardware clock at the time of reboot.

On Redhat systems, there is a configuration program called “timeconfig” which can be used to configure the system configuration file /etc/sysconfig/clock and /etc/localtime. This program will use a graphical interface to let the user set the timezone and whether UTC time is used.

Written by Tom Tags: , , , , ,
May
16
2007
1

Linux Bash CLI commands

alias Create an alias
apropos Search Help manual pages (man -k)
awk Find and Replace text, database sort/validate/index
break Exit from a loop
builtin Run a shell builtin
bzip2 Compress or decompress named file(s)

cal Display a calendar
case Conditionally perform a command
cat Display the contents of a file
cd Change Directory
cfdisk Partition table manipulator for Linux
chgrp Change group ownership
chmod Change access permissions
chown Change file owner and group
chroot Run a command with a different root directory
cksum Print CRC checksum and byte counts
clear Clear terminal screen
cmp Compare two files
comm Compare two sorted files line by line
command Run a command - ignoring shell functions
continue Resume the next iteration of a loop
cp Copy one or more files to another location
cron Daemon to execute scheduled commands
crontab Schedule a command to run at a later time
csplit Split a file into context-determined pieces
cut Divide a file into several parts

date Display or change the date & time
dc Desk Calculator
dd Data Dump - Convert and copy a file
declare Declare variables and give them attributes
df Display free disk space
diff Display the differences between two files
diff3 Show differences among three files
dig DNS lookup
dir Briefly list directory contents
dircolors Colour setup for `ls’
dirname Convert a full pathname to just a path
dirs Display list of remembered directories
du Estimate file space usage

echo Display message on screen
egrep Search file(s) for lines that match an extended expression
eject Eject removable media
enable Enable and disable builtin shell commands
env Environment variables
ethtool Ethernet card settings
eval Evaluate several commands/arguments
exec Execute a command
exit Exit the shell
expand Convert tabs to spaces
export Set an environment variable
expr Evaluate expressions

false Do nothing, unsuccessfully
fdformat Low-level format a floppy disk
fdisk Partition table manipulator for Linux
fgrep Search file(s) for lines that match a fixed string
file Determine file type
find Search for files that meet a desired criteria
fmt Reformat paragraph text
fold Wrap text to fit a specified width.
for Expand words, and execute commands
format Format disks or tapes
free Display memory usage
fsck File system consistency check and repair
ftp File Transfer Protocol
function Define Function Macros

gawk Find and Replace text within file(s)
getopts Parse positional parameters
grep Search file(s) for lines that match a given pattern
groups Print group names a user is in
gzip Compress or decompress named file(s)

hash Remember the full pathname of a name argument
head Output the first part of file(s)
history Command History
hostname Print or set system name

id Print user and group id’s
if Conditionally perform a command
ifconfig Configure a network interface
import Capture an X server screen and save the image to file
install Copy files and set attributes

join Join lines on a common field

kill Stop a process from running

less Display output one screen at a time
let Perform arithmetic on shell variables
ln Make links between files
local Create variables
locate Find files
logname Print current login name
logout Exit a login shell
look Display lines beginning with a given string
lpc Line printer control program
lpr Off line print
lprint Print a file
lprintd Abort a print job
lprintq List the print queue
lprm Remove jobs from the print queue
ls List information about file(s)
lsof List open files

make Recompile a group of programs
man Help manual
mkdir Create new folder(s)
mkfifo Make FIFOs (named pipes)
mkisofs Create an hybrid ISO9660/JOLIET/HFS filesystem
mknod Make block or character special files
more Display output one screen at a time
mount Mount a file system
mtools Manipulate MS-DOS files
mv Move or rename files or directories

netstat Networking information
nice Set the priority of a command or job
nl Number lines and write files
nohup Run a command immune to hangups
nslookup Query Internet name servers interactively

passwd Modify a user password
paste Merge lines of files
pathchk Check file name portability
ping Test a network connection
popd Restore the previous value of the current directory
pr Prepare files for printing
printcap Printer capability database
printenv Print environment variables
printf Format and print data
ps Process status
pushd Save and then change the current directory
pwd Print Working Directory

quota Display disk usage and limits
quotacheck Scan a file system for disk usage
quotactl Set disk quotas

ram ram disk device
rcp Copy files between two machines.
read read a line from standard input
readonly Mark variables/functions as readonly
remsync Synchronize remote files via email
return Exit a shell function
rm Remove files
rmdir Remove folder(s)
rsync Remote file copy (Synchronize file trees)

screen Terminal window manager
scp Secure copy (remote file copy)
sdiff Merge two files interactively
sed Stream Editor
select Accept keyboard input
seq Print numeric sequences
set Manipulate shell variables and functions
sftp Secure File Transfer Program
shift Shift positional parameters
shopt Shell Options
shutdown Shutdown or restart linux
sleep Delay for a specified time
sort Sort text files
source Run commands from a file `.’
split Split a file into fixed-size pieces
ssh Secure Shell client (remote login program)
strace Trace system calls and signals
su Substitute user identity
sum Print a checksum for a file
symlink Make a new name for a file
sync Synchronize data on disk with memory

tail Output the last part of files
tar Tape ARchiver
tee Redirect output to multiple files
test Evaluate a conditional expression
time Measure Program running time
times User and system times
touch Change file timestamps
top List processes running on the system
traceroute Trace Route to Host
trap Run a command when a signal is set(bourne)
tr Translate, squeeze, and/or delete characters
true Do nothing, successfully
tsort Topological sort
tty Print filename of terminal on stdin
type Describe a command

ulimit Limit user resources
umask Users file creation mask
umount Unmount a device
unalias Remove an alias
uname Print system information
unexpand Convert spaces to tabs
uniq Uniquify files
units Convert units from one scale to another
unset Remove variable or function names
unshar Unpack shell archive scripts
until Execute commands (until error)
useradd Create new user account
usermod Modify user account
users List users currently logged in
uuencode Encode a binary file
uudecode Decode a file created by uuencode

v Verbosely list directory contents (`ls -l -b’)
vdir Verbosely list directory contents (`ls -l -b’)
vi Text Editor

watch Execute/display a program periodically
wc Print byte, word, and line counts
whereis Report all known instances of a command
which Locate a program file in the user’s path.
while Execute commands
who Print all usernames currently logged in
whoami Print the current user id and name (`id -un’)
Wget Retrieve web pages or files via HTTP, HTTPS or FTP

xargs Execute utility, passing constructed argument list(s)
yes Print a string until interrupted

.period Run commands from a file

      1. Comment / Remark
Written by Tom Tags: , , ,

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes