Published February 19, 2009
Tags: font, howto, ttf, ubuntu
Going to font:/// in Nautilus is obsolte.
You can drag your .ttf-file into .fonts in your home-directory to install that font only for this username:
copy myfont.ttf ~/.fonts
or you can drag it to /usr/share/fonts/truetype to install it for all users:
sudo cp myfont.ttf /usr/share/fonts/truetype
Note: If you have Openoffice opened, it may crash after you installed your font the second way.
You may need to run fc-cache to rebuild the font cache:
Published February 18, 2009
Tags: howto, pdf, print, ubuntu
I don’t know why, but cups-pdf does not work for me any more. There is now an easier way than to set up and print with cups-pdf.
You do not need to configure anything 🙂 Just do as you would had installed a Printer (File -> Print) and select Print to file an as output format: pdf. Press Print and you are done 🙂
If you want to use ColorZilla on Ubuntu Feisty it may not work out of the box. So here is a little tutorial to get it running. (I am using Firefox 220.127.116.11 on Ubuntu Feisty) -> Should be upgraded to 18.104.22.168 now 🙂
Now the Eyedropper-Tool should work. I waited a long time for such a tool =)
EDIT: Seems that other extensions are too affected such as greasemonkey or firebug. An alternative would be to install firefox the normal way and do not use the ubuntu-firefox version but I heard there are some problems with sound and flash… You can download the current one here: libxpcom* for Firefox ColorZilla (VS von 22.214.171.124), VS 126.96.36.199.
Published October 5, 2007
avi , convert , howto , media , ogg , ubuntu
Tags: convert, howto, ogg, ubuntu, video
If I screencast something, than most of the time I do it with recordMyDesktop which produces .ogg-Videos. If you need to convert it so you can show it to your friend or upload it to a video hosting page like youtube or so you have to convert it into another format. I chose avi as format.
Simply fire up this command to convert your file:
mencoder out.ogg -o out.avi -oac mp3lame -ovc lavc
- out.ogg is the .ogg-file you want to convert
- out.avi is the .avi-file you want to create
- mp3lame is the used audio-codec (here mp3)
- lavc is the used video-codec (here libavcodec)
For more information you can look at the MPlayer manual page.
If you want to send an E-Mail quickly per Mozilla Thunderbird in Nautilus like the Send To Feature you have to write a little script. (I found a .deb for replacing Evolution with Thunderbird, but it did not work. Instead it killed the whole feature. At the end you will get a menu like the one in the screenshot on the right.
- Because I do not need Evolution in Nautilus I removed the nautilus-sento app. To do this execute the following:
sudo apt-get remove nautilus-sendto.
- Create a file in ~/.gnome2/nautilus-scripts named sendto.
- Make it executable with chmod a+x sendto
- Paste the following one-liner into the file and save it
thunderbird -compose attachment="file://$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS"
Note: If you have Thunderbird 1.5 (or minor?) you must replace “thunderbird” with “mozilla-thunderbird”.
- Restart Nautilus with
Now you can right click on a file and select Scripts -> sendto to send a file as an attachment in Thunderbird.
For more scripts you can goto Nautilus File Manager Scripts.
Last time I had the following situation: I wanted to remote connect to my workstation from another workstation like in the following image:
My current workstation is the left one (I will call it “workstation“) and I want to connect to the computer on the right (“server“). The workstation is running Windows XP, the server is running on Ubuntu Feisty.
- Setup Server(SSH+VNC): You have to install SSH and activate the VNC-Server, to be able to securely connect to your server.
- Install SSH: Just install the SSH server by entering the following in bash:
sudo apt-get install ssh
- Enable VNC: VNC is already installed on yor Ubuntu system, so you only have to enable it. Navigate to System -> Preferences -> Remote Desktop. Now you should activate “Allow other users to view my desktop“, “Allow other users to control my desktop“, and for security purpose “Require the user to enter this password” and provide a secure password. Then click the Close-button. Now your VNC-server should be ready to use.
- Setup Rooter (SSH Forwarding). If your server is directly connected to the internet (modem) you can skip this step. On my SMC-router this feature is called virtual server. You have to forward the SSH-port (22) to the IP address of your server. (here: 192.168.123.2)
- Download and Install Putty: If you search Google for putty, the first result will be a download page, where you should download eighter the windows installer (putty-0.60-installer.exe) or the single putty program (putty.exe) . (I placed the single file into %windir%system32 for fast access per Start -> Run.)
- Start Putty and set it up:
- Start putty.exe (e.g. if you put it in system32 per
Start -> Run putty.exe
- Enter the hostname, you want to connect to on the first startpage “Session“. Here this is the router. You have to enter the external IP (in concreto: 188.8.131.52). If your “server” is directly connected to the internet you have to enter the external IP of your server. (This is the case if you have only a single PC and this PC is directly connected to the modem of your provider.
- Setup a tunnel by going to “Connection -> SSH -> Tunnels“. Here you enter as source port 5900 (the default VNC-Port which is used by Ubuntu if you installed it like me). As Destination you enter the internal server-ip with the VNC-Port (in concreto: 192.168.123.2:5900) and Click Add. Make sur, that you use the internal IP of your server not e.g. an IP-Adress of your router. (I made this mistake and wondered why nothing happend 😉 )
- Save your session and connect, so you can recall it later quickly by going back to “Session”. Type a meaningful name for your session below the “Saved Session” label and click “Save“. Now you can restore your session always by selecting it and click “Load“. Now you can click “Open” to connect to your server.
- Connect to your workstation: Now you will get a window where your username and password will be asked. Enter you login credentials to connect to your server and establish a SSH-tunnel.
- Connect to your server using VNC:
- Download and install VNC. There are lots of free VNC apps for windows out there e.g. UltraVNC or TightVNC. Note that you only need the viewer.
- Start the vncviewer and connect to localhost (127.0.0.1) and enter your password which you provided in step 1.2.
- Now you should be connected to your home server 🙂
Published June 4, 2007
acroread , evince , pdf
Tags: howto, pdf, ubuntu
You know the picture on the left? You have a pdf-document with comments? You hover over it with evince and what happens? Nothing! I searched for information about how I can read the comment in the pdf with the default viewer evince.
I found nothing so I thought maybe acroread can do this. This is the Adobe Acrobat Reader for Linux. This worked 🙂
- Get acroread per
sudo apt-get install acroread.
- Open your pdf:
- Hover over the comment.
It’s a pity that evince does not support comments. For me the goal
“to replace the multiple document viewers that exist on the GNOME Desktop with a single simple application“
is not yet achieved. (Printing multiple pages on one A4 sheet does not work too).