Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Wednesday, September 14, 2011

ubuntu maverick lib64

On Ubuntu maverick: 
there is not /usr/local/lib64 link to /usr/local/lib 

so 

sudo ln -s /usr/local/lin /usr/local/lib64 

ubuntu sudo

it seems that the path environment is not influenced by changes in /etc/profile when using sudo 

old ubuntu (maverick), new R

add the cran apt source repository to /etc/apt/sources.list
see
http://cran.r-project.org/bin/linux/ubuntu/README.html

in which there is a part about security. 



Friday, September 9, 2011

grep --color=always

It would work (with color) when there is a more after grep. 
grep foo --color=always | more 

Saturday, March 12, 2011

grep files from results by find

 find /var/ftp/mp3 -name "*.mp3" -type f -exec chmod 644 {} \;
 This command changes the permissions of all files with a name ending in .mp3 in the directory /var/ftp/mp3. The action is carried out by specifying the option -exec chmod 644 {} \; in the command. For every file whose name ends in .mp3, the command chmod 644 {} is executed replacing {} with the name of the file. The semicolon (backslashed to avoid the shell interpreting it as a command separator) indicates the end of the command. Permission 644, usually shown as rw-r--r--, gives the file owner full permission to read and write the file, while other users have read-only access. In some shells, the {} must be quoted.
 copied from http://en.wikipedia.org/wiki/Find

Tuesday, December 28, 2010

beamer installation place on ubuntu

/usr/share/texmf/tex/latex/beamer

it might be help when we need to know where beamer and other classes
files are located.


and use
texhash
mktexlsr

to remake the indices for texlive

Monday, December 6, 2010

ubuntu videio 2 audio

# mplayer -dumpaudio nodame_theme.flv -dumpfile nodame_theme.mp3

Wednesday, July 21, 2010

kerying in ubuntu

Remove the files under that folder would get rid of the keyrings
and then it would remind you to create a new one.

Monday, January 4, 2010

linux software for me

Terminator

Two for editing mp3 tags:
EasyTag
tagtool


partimage to backup partitions


Monday, December 14, 2009

ubuntu karmic manager services

Use package:
 sysv-rc-conf

Or
update-rc.d -f cron remove

Or

Disabling Services using BUM


bum is a package

so  use
apt-get install bum


Wednesday, December 9, 2009

how to uninstall grub from linux

copied from somewhere. 

Using Linux

You can also use dd command from Linux itself (it removes partition table):
# dd if=/dev/null of=/dev/sdX bs=512 count=1

Just remove MBR, without the partition table (see comment below):
# dd if=/dev/null of=/dev/sdX bs=446 count=1

Replace /dev/hdX with your actual device name such as /dev/hda. Use fdisk -l command to find out device name:
# fdisk -l

Tuesday, November 24, 2009

build R on ubuntu

Both packages 'libxt-dev' and 'libx11-dev' or one of them are needed before building.


# apt-get insall libxt-dev libx11-dev
# configure
# make

Thursday, November 19, 2009

tsc quit full screen on ubuntu

Re: How to exit Terminal Services fullscreen??

exit the full screen mode with Ctrl-Alt-Enter
annd close the window

Wednesday, November 18, 2009

ubuntu restart network (eth0 dhcp)

restart networking

/etc/init.d/networking restart

/etc/network/

# The primary network interface
auto eth0
iface eth0 inet dhcp
~

root@jqt-laptop:/etc/network# ls
if-down.d if-post-down.d if-pre-up.d if-up.d interfaces interfaces.bak-0
root@jqt-laptop:/etc/network#
root@jqt-laptop:/etc/network#

Tuesday, November 10, 2009

latex eps automatically converted to pdf

Copied from http://robjhyndman.com/researchtips/converting-eps-to-pdf/

\documentclass{article}
\usepackage{graphicx,epstopdf}
\begin{document}
\includegraphics[width=\textwidth]{fig1}
\end{document}

Thursday, October 29, 2009

ubuntu packages needed for me

==
necessary
------------------
texlive-fonts-recommended
texlive-latex-recommended
subversion
vim-gnome
terminator


==
optional
---------------------------------
ubuntu-restricted-extras


Wednesday, October 28, 2009

C Man pages in UBUNTU

manpages-posix-dev - for c headers
manpages-dev - for c functions

Monday, December 15, 2008

rdesktop on ubuntu (customize window size)

#man rdesktop

And for example,

#rdesktop -g 1152x1024 host

Monday, October 6, 2008