Sunday, 15th Jun 2008 at 17:41 (administration, linux, open source)
Tags: apt, apt-build, aptitude, debian, emerge, gentoo, ubuntu
There is a nice overview about apt-build, the package I’m talking about here. So I will not say much. Only so far as what to do to try it out. On my system gnomes system manager is fairly slow. So I gave it a try:
- install the bundle:
sudo aptitude --reinstall install apt-build
- configure your processor (dpkg-configure asks you about it)
- add deb-src to sources.list if you haven’t already
- run it on gnome-system-manager:
sudo apt-build install gnome-system-manager
And there you have it. You might want to copy the list of packages that apt-build installs via apt-get build-dep so you can mark them as auto installed using aptitude when done:
sudo aptitude markauto list_of_packages_you_copied_before
or, even easier, use apt-builds –remove-builddep option.
It really does make a difference!
If you’re really keen or you happen to have an older system just wasting away try this:
sudo apt-build world
and see what happens
Leave a Comment
Thursday, 12th Jun 2008 at 13:44 (administration, linux, windows)
Tags: application data, linux, move, opera, profiles, settings, ubuntu, user profile
Since Opera is, and has been for ages, my favorite browser I thought how I would be able to get my all my tweaks, settings and feeds-states over to a new installation. And this was not reinstalling Windows for the fiftieth time. It was from Windows to Linux (Ubuntu in my case). With coding and line-break differences and all those .ini files I expected it to be not very smooth (I noticed only later hat, once more, Opera encodes them in UTF-8 despite all that WINDOWS-1252 crap). To top all that the Windows version still is 9.50 Beta 2 but since Opera released 9.50 final today as a faithful Opera user I upgraded promptly. Now enough talking. Here is what I did ('\ 'escapes underscores in folder names for bash!):
- Backup .opera in Linux
- copy
<path_to_windrive>Documents\ and\ Settings/<windows_user_name>/Application\ Data/Opera/Opera/* to .opera/. Mind you there can be a difference depending on whether you chose user profiles on install. I think didn’t. Yours might as well be located under <path_to_windrive>Documents\ and\ Settings/<windows_user_name>/Local\ Settings\ Application\ Data/Opera/Opera/*
- search.ini somehow got messed up so I had to manually go through it. For example URL=http://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go was all well but the same for de.wikipedia.org had some strange UTF-8 character instead of the colon (
:). Unfortunately that wasn’t it. So I thought of 9.50’s new feature “create search” and started from scratch.
- went through settings for Windows paths such as download folder and programs tab plus
opera6.ini (with an editor; most likely you will get even better results by using Opera’s interface at opera:config)
What I noticed so far:
- history search data base from beta 2
- address history
- .win (last open tabs) set-up
- read feeds/messages (all though not subscribed feeds unfortunately; the somehow went to “Unread” message folder)
- search.ini (as mentioned above) was somehow messed up
- saved passwords lasted
- preferences, i.e. settings, persisted (see above)
- automatic page reload settings
1 Comment
Thursday, 15th May 2008 at 14:57 (administration, linux, music)
Tags: Mouse over, MP3 preview, ubuntu
Straight from Ubuntuguide.org:
You can also get Mouse over preview to work by installing:
sudo apt-get install mpg321
sudo apt-get install mpg123-esd
sudo apt-get install vorbis-tools
sudo apt-get install esound
sudo apt-get install ubuntu-restricted-extras
with this system Skype still functions.
Leave a Comment
Thursday, 15th May 2008 at 03:26 (administration, linux)
Tags: fresh install, Hardy Heron, release upgrade, ubuntu
Also, there is a very interesting article at Linux Owns showing three steps to get all your favourite packages (back) fast. I added a fourth step actually saving your package list for later use. Deriving it straight from there (without testing, since unfortunatelly my last machine has been hardyed just a couple of hours ago):
- integrate medibuntu sources.list
sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list
- add server key
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update
- write a text file listing all package names you wish installed separated with spaces — you should be able to instead put every package name in one line with trailing \\ (double back-slash) but as I said: I haven’t tested it, yet! Name it, say,
most_important_debs.
-
sudo aptitude --assume-yes install < most_important_debs
You might want to approve the package list before install. In that case omit –assume-yes
Let me know it someone used it (hopefully with success).
Update 2008/05/15: It does help to read and think before you speak (or write for that matter). I got it completely wring. The linked article is about packages from Medibuntu only. OK then, if it’s like this I just alter 1, 2, 4 and 3 -> 1
- build a list of your (most important, enduser) packages
- update-manager -d, i.e. dist-upgrade your system
- employ aptitude to read in your file (to be exact it’s bash that redirect from the file…)
Of course, this method still does not solve the problem of saving your personal settings but still get all the system settings from the new distro release. But this shouldn’t be that hard for release maintainers since they (potentially) know which package version had what config files delivered or generated. From there it should be easy to determine if a system config file has been changed be the user -> show diff. Or do I overlook something once again?
Update 2008/05/15: Even better looks aptitude-run-state-bundle:
DESCRIPTION
aptitude-create-state-bundle produces a compressed archive storing the files that are required to replicate the current
package archive state. The following files and directories are included in the bundle:
· $HOME/.aptitude
· /var/lib/aptitude
· /var/lib/apt
· /var/cache/apt/*.bin
· /etc/apt
· /var/lib/dpkg/status
The output of this program can be used as an argument to aptitude-run-state-bundle(1).
Update 2008/05/15: A good starting point would be either
dpkg -l | grep ^i | editor
or if you don’t use aptitude this also shows (only currently) installed packages
dpkg -l | grep ^i | editor
One needs to remove non-package-name strings, though. As I haven’t come around to learn sed (line editing) I cannot show how to deploy sed to do it. Anyone?
5 Comments
Thursday, 15th May 2008 at 03:04 (administration, linux)
Tags: aptitude, cheat sheet, FOSS, runlevel, ubuntu, ufw
There is a neat cheat sheet out in PDF format from FOSS covering, among many others, the new Ubuntu Uncomplicated Firewall ufw, special packages, of course apt-family package management, services a.k.a init scripts and daemons, …
It’s released under CC-BY-SA 3.0. By the way, did you know
Type the phrase “REISUB” while
holding down Alt and SysRq (PrintScrn) with
about 1 second between each letter. Your system
will reboot.
Leave a Comment
Wednesday, 14th May 2008 at 15:46 (administration, linux)
Tags: command line, dist-upgrade, ubuntu
You can do Dist-Upgrades not only with the GUI update-manager but also via do-release-update. The tool tells me what awaits me (I have 6000 kB/s):
66 packages are going to be removed. 193 new packages are going to be
installed. 1269 packages are going to be upgraded.
You have to download a total of 1005M. This download will take about
23 minutes with your connection.
Fetching and installing the upgrade can take several hours. Once the
download has finished, the process cannot be cancelled.
So, let’s see.
Btw do-release-update by itself notices if you are connected via ssh and asks if you want to proceed. If you do you’ll get a second sshd on Port 9904. Using screen it shouldn’t be a problem for me but very nice of the tool to ask
2 Comments
Wednesday, 14th May 2008 at 13:54 (administration, linux)
Tags: error, login, new user, ssh, ubuntu
After I created a new user testuser
sudo adduser testuser
I couldn log in this new user via
ssh newuser@localhost
SSH told me “Permission denied, please try again.” If I’d only switch users with
su - newuser
login was granted. So I had a look at
sudo vim /etc/ssh/sshd_config
and looked for
AllowUsers
and appended the new user in that line. Now I needed to reload (in case you are logged in via ssh) the server:
sudo /etc/init.d/ssh reload
and access is granted!
Ressources
- None
2 Comments
Wednesday, 14th May 2008 at 02:41 (administration, linux)
Tags: limit bandwidth, llinux, network, traffic shaping, ubuntu
Allthough I haven’t found some shiny GUI somewhat like Netlimiter there is Wonder shaper (and shaper and trickle and squid for http and …) where a single command line sets your over-all bandwidth for network interface X. And, isn’t that all you really need?:
sudo wondershaper ethX downlink(kbit/s) uplink(kbit/s)
This is, from the perspective of the host doing the shaping. For example to set download to 10000kb (750*8 = 6000 DSL but don’t limit intranet connections on 1Mb Ethernet) but limit upload to, say, 35kB (~280kb) — e.g. if you have a server running on the same connection you do your daily internetting, you do:
sudo wondershaper eth0 10000 280
Ressources
4 Comments
Tuesday, 18th Mar 2008 at 18:28 (administration, linux, ubuntu)
Tags: Feisty Fawn, flash, Gutsy Gibbon, Hardy Heron, opera, plugin, ubuntu
Note 08/01/08: There have been issues after the original plugin has been updated. See Ubuntu Forum, Bug description (workaround or fixed deb for firefox only which is version 9.0.115!) or comments below for more. Components have been removed that also opera needs! Yet another example why closed source is bad… Hence you might want to give gnash a go, i.e. open source flash. The new Flash version is meant to work with opera version > 9.50 Beta, though (see bottom note). Anyway, here it goes for Flash version
9.0.48.0:
Note 2008/04/19: Before you get all frustrated about Flash and Opera you might enjoy operas’ ads.
Here we go
To install Adobe Flash Player after you installed Opera in Ubuntu, I found the best way is to, once again, use the debian way:
sudo aptitude install flashplugin-nonfree
After the install routine is done you need to add the path to plugins options in opera. Alternatively you could link there. To find where the new binaries are located do:
dpkg -S flashplugin-nonfree
app-install-data: /usr/share/app-install/desktop/flashplugin-nonfree.desktop
flashplugin-nonfree: /usr/lib/flashplugin-nonfree
flashplugin-nonfree: /var/cache/flashplugin-nonfree
flashplugin-nonfree: /usr/share/lintian/overrides/flashplugin-nonfree
flashplugin-nonfree: /usr/share/doc/flashplugin-nonfree
flashplugin-nonfree: /usr/share/doc/flashplugin-nonfree/changelog.gz
flashplugin-nonfree: /usr/share/doc/flashplugin-nonfree/copyright
Update 2008/04/16: The correct “list flag” for dpkg would be -L instead of -S:
dpkg -L flashplugin-nonfree | grep -i 'lib'
/usr/lib
/usr/lib/xulrunner
/usr/lib/xulrunner/plugins
/usr/lib/mozilla
/usr/lib/mozilla/plugins
/usr/lib/iceape
/usr/lib/iceape/plugins
/usr/lib/iceweasel
/usr/lib/iceweasel/plugins
/usr/lib/firefox
/usr/lib/firefox/plugins
/usr/lib/midbrowser
/usr/lib/midbrowser/plugins
/usr/lib/xulrunner-addons
/usr/lib/xulrunner-addons/plugins
/usr/lib/flashplugin-nonfree
/var/lib
/var/lib/flashplugin-nonfree
/Update
Alternatively you could link the lib’s binary to Opera’s plugin directory:
sudo ln /usr/lib/flashplugin-nonfree/libflashplayer.so /usr/lib/opera/plugins/
Some say you may need to restart opera in order for plugins to actually work. Fortunally, for me it work right away. In opera’s address field type opera:plugins to see what opera knows about flash.Update: See this blog on bleeding edge info on plugin’s development status if interested.
Ressources:
Update: This works for 7.04, a.k.a. Feisty Fawn, and 7.10, a.k.a. Gutsy Gibbon.
Update 2008/04/16: On a side note: There is the option reinstall for aptitude if one wants to make sure the newest files are all in the right places.
Update 2008/04/19:I stumbled upon the close to be release of Opera 9.5 which is currently in beta state (and has even more great features once again before Firefox has them
). Supposingly the Debian package should get flash working. I tried the i386 version for Gutsy and it did work for me.
Update 2008/06/28: Here are some command line parameters you can start Opera with. Especially useful would be -debugplugin. To use it you have to open a terminal to see the additional information:
opera -debugplugin [Enter/Return Key]
33 Comments
Monday, 7th Jan 2008 at 19:21 (administration, linux, ubuntu)
Tags: login, openssh, remote access, remote desktop, ssh, ubuntu, vnc, windows
This will show what needs to be set-up and installed to use a secure line from a Linux box (eg. Ubuntu) to a Windows box via SSH-tunneled VNC but without the load of Cygwin installed on Windows. I used the nicely small package SSHWindows.
SSH server for Windows (on Windows machine)
- Download SSHWindows and run the installer. An alternative could be WinSSHD from bitvise. It’s 30 days trail and closed, though. You’ll be prompted with the warning to edit the passwd file. Read
quickinstall.txt or readme.txt for more details located in the install folder for %PROGRAMFILES%\OpenSSH\docs (hit WIN-KEY+R and copy&paste the path there for quick access).
- From a prompt cd to
%PROGRAMFILES%\OpenSSH\bin. (WIN+R and type cmd, hit ENTER, c: ENTER, cd %PROGRAMFILES%\OpenSSH\bin)
- Run the following (replace
<username> with the Windows username that should log in from Ubuntu):
mkgroup -l >> ..\etc\group
mkpasswd -l -u <username> >> ..\etc\passwd
- Start opensshd as Windows service:
net start opensshd
- Open incoming port in Windows firewall:
netsh firewall add portopening TCP 22 "OpenSSHd"
The “OpenSSHd” bit can be chosen individually; it’s only a string to identify this entry.
- Test login locally with eg. PuTTY and than test it from the Linux box (
ssh winuser@winip). You might need to do some firewall (Windows and/or iptable) config. If your Linux box has to go through some kind of router/firewall machine you’ll most likely have to add port forwarding on that firewall to pass port 22 (SSH port) to the windows machine’s IP.
Install TightVNC (on Windows machine):
- Don’t forgett to click the options to setup VNCServer as Windows service and start it after installation.
- Open TCP port 5900 temporarily for testing like for opensshd:
netsh firewall add portopening TCP 5900 "VNCincoming"
- Test it from Ubuntu with
vncviewer <windows-machine-ip>
- If it works close the port in Windows firewall. You won’t need that hole any longer:
netsh firewall delete portopening TCP 5900
- Configure tunneling VNC through SSH (on Linux box):
ssh -L <local port>:<remote computer>:<remote port> <user>@<remote ip> and vncviewer 127.0.0.1
- Test vnc connection again using -via option:
vncviewer -via user@host localhost:0
- Use compression in ssh?
- GNOME applet/shell skript?
References:
Comments Off
« Older entries