Nov 06
didierubuntu
Short story :
sudo ln -s /usr/lib/i386-linux-gnu/libnotify.so.4.0.0 /usr/lib/libnotify.so.1
Long story :
I had this error after my fresh install of ubuntu 11.10 (32-bits) when launching junglediskworkgroup :
$ junglediskworkgroup
junglediskworkgroup: error while loading shared libraries: libnotify.so.1: cannot open shared object file: No such file or directory
I found on some posts (2006 !) that the problem was a missing symbolic link to the actual libnotify library. The path shown in the post was not the same for me (fedora + 64-bits) :
ln -s /usr/lib64/libnotify.so.4.0.0 /usr/lib64/libnotify.so.1
So :
$ find / -name *libnotify*
gave me :
/usr/lib/i386-linux-gnu/libnotify.so.4.0.0
(and also /usr/lib/i386-linux-gnu/libnotify.so.4)
So I tried :
sudo ln -s /usr/lib/i386-linux-gnu/libnotify.so.4.0.0 /usr/lib/libnotify.so.1
Wich did the trick...
May 23
didierandrdoid, ubuntu
Proxoid : use android as a gsm modem (under ubuntu)
- install proxoid
- enable usb debug mode
- go to http://code.google.com/p/proxoid/
- read install instructions on http://code.google.com/p/proxoid/wiki/installationLinux and follow steps (see below details for sdk and adb tool)
NB 1 : For step 4 (configure browser), with chrome : Preferences > under the hood > proxy, and you can activate the proxy system-wide from here.
NB 2 :
adb tool (in step 3, tunneling)
- download / unpack android sdk in directory of your choice. You’ll see a file “adb_has_moved.txt” with these instructions.
- run {sdk unpack directory}/tools/android
- install ”Android SDK Platform-tools”
- Then you can run {sdk unpack directory}/platform-tools/adb forward tcp:8080 tcp:8080
NB 3 : AFAYK it doesn’t work if wifi is active on the phone
NB 4 : instead of :
sudo /etc/init.d/udev restart
make :
sudo service udev restart
——— after install – checklist/commands to redo if it’s not working ———
check if proxoid is started on your phone
lsusb to check if phone is visible
sudo service udev restart
<sdk directory>/platform-tools/adb forward tcp:8080 tcp:8080
Oct 26
didierubuntu banshee
After a “database disk image is malformed" error, you can try to restore it :
$ cd ~/.config/banshee-1
$ sqlite3 banshee.db ".dump" > dump
$ mv banshee.db banshee.db.backup
$ cat dump | sqlite3 banshee.db
If it doesn’t work, an other solution is to delete your banshee settings (and btw, the sqlite database). Of course, you’ll lost all your ratings and playlists :
>> mv ~/.config/banshee-1 ~/.config/banshee-1.bak
> rm -rf ~/.cache/.banshee-1
May 17
didierProject management, ubuntu subversion, trac
Step 1 : first trac installation story (you can go directly to step 3 if you don’t like install nightmares)
Here is the whole story of my trac install on a virtual ubuntu machine. Not the easy and perfect way, but I think it would be useful to see the errors too
- Install of trac via synaptic
- Followed instruction of this page : https://help.ubuntu.com/community/Trac (/etc/apache2/conf.d/trac.conf + /var/www/projects/index.cgi). I also used http://trac.edgewall.org/wiki/TracModPython. The most useful and accurate is actually http://trac.edgewall.org/wiki/TracUbuntuMultipleProjects
- Install of perl in apache (libapache2-mod-perl2 in synaptic) to enable the index.cgi script
- $ sudo /etc/init.d/apache2 restart => "… waiting Syntax error on line 31 of /etc/apache2/conf.d/trac.conf: Invalid command ‘PythonInterpreter’, perhaps misspelled or defined by a module not included in the server configuration"
- So I installed libapache2-mod-python (synaptic). Yes I know I read to fast the doc, it was mentioned.
- Point browser to http://127.0.0.1/projects/ -> Internal server error (500). In /var/log/apache2/error.log I have " OSError: [Errno 2] No such file or directory: ‘/var/trac’ (dir specified in index.cgi)
- $ sudo trac-admin /usr/share/trac/htdocs initenv (answer questions). I set a distant svn repository : http:/subversion.assembla.com/svn/myproject. This is not supported. I had to change it to my local repository later.
- Notice the config file path : /usr/share/trac/htdocs/conf/trac.ini
- $ tracd –port 8000 /usr/share/trac/htdocs
- http://localhost:8000/htdocs => "TracError: The user <currentUser> requires read _and_ write permissions to the database file /usr/share/trac/htdocs/db/trac.db and the directory it is located in." (probably, I’d rather install trac from user, no root, in my home dir ?)
- $ cd /usr/share/trac/htdocs/; sudo chown -R currentUser.currrentUser db
- Again : $ tracd –port 8000 /usr/share/trac/htdocs
- Bravo ! Trac displayed… (http://localhost:8000/htdocs)
- mmhh… Warning : Warning: Can’t synchronize with the repository (/usr/share/trac/htdocs/http:/subversion.assembla.com/svn/myproject does not appear to be a Subversion repository.). Look in the Trac log for more information.". This is because trac doesn’t support distant svn repository. Ok install subversion locally…
- I was still stuck with a 500 server error if I try to load http://localhost/projects/.
- I had to correct the /etc/apache2/conf.d/trac.conf : Replace "/var/trac" by "/usr/share/trac" in the line "PythonOption TracEnvParentDir /var/trac" (you must have "PythonOption TracEnvParentDir /usr/share/trac" to match the dir I specified with the trac-admin initenv command in step 7). I had to correct also the index.cgi file (replace ‘my $trac_path = "/var/trac";’ by ‘my $trac_path = "/usr/share/trac/htdocs";’
- Then, when I click on my project link (url=http://localhost/projects/htdocs), I have a trac error : "The user www-data requires read _and_ write permissions to the database file /usr/share/trac/htdocs/db/trac.db and the directory it is located in.". It’s the same error I had when I ran the standalone server (tracd), but now it’s apache the process owner. So I made "$ cd /usr/share/trac/htdocs/; sudo chown -R www-data db", and it made the trick.
- I deleted /var/www/projects/index.cgi which is totally useless.
Step 2 : Issues left to fix :
- I still have the error about the missing subversion repository. Solution : install a subversion repository. Well explained here : http://trac.edgewall.org/wiki/TracUbuntuMultipleProjects
- Another issue is that the url of my project is ended by "/htdocs", and it should be http://localhost/projects/myprojectname (the error was made when I ran the command "$ sudo trac-admin /usr/share/trac/htdocs initenv". It should have been : "$ sudo trac-admin /usr/share/trac/<myproject> initenv"
- Authentication (i saw a plugin authManager…)
Step 3 : Long story made short and install ok
NB. I choose to install trac home in /var/trac instead of /usr/share/trac ; and /var/svn as the root dir for all subversion repositories. To correct my first try, I mainly followed http://trac.edgewall.org/wiki/TracUbuntuMultipleProjects wich I found to be the best ressource.
- Install trac (and modules trac-accountmanager, trac-customfieldadmin, trac-email2trac, trac-mastertickets, trac-wysiwyg, trac-xmlrpc…) + perl apache module + python apache module + libapache2-svn (to have dav_svn module)
- Create /etc/apache2/conf.d/trac.conf (see mine below)
- % sudo mkdir /var/trac
- % sudo chown www-data:www-data /var/trac
- % sudo mkdir /var/svn
- % sudo mkdir /var/svn/YourProjectNameHere
- % sudo svnadmin create /var/svn/YourProjectNameHere
- % sudo chown -R www-data /var/svn/YourProjectNameHere
- % sudo /etc/init.d/apache2 sudo restart
- sudo trac-admin /var/trac/YourProjectNameHere initenv
- sudo chown -R www-data:www-data /var/trac/YourProjectNameHere
- http://localhost/projects
- Take a breath !
- % sudo htpasswd -c /var/trac/.htpasswd admin [choose a password - The path is specified in /etc/apache2/conf.d/trac.conf]
- % sudo htpasswd /var/trac/.htpasswd <someotheruser>
- You owe your cup of coffee now !
My /etc/apache2/conf.d/trac.conf
# Trac project directory (for project listing)
AllowOverride None
Options Indexes +ExecCGI MultiViews FollowSymLinks
AddHandler cgi-script .cgi
Order allow,deny
Allow from all
# use the following for one authorization for all projects
AuthType Basic
AuthName "Trac Project authentication"
AuthUserFile /var/trac/.htpasswd
Require valid-user
## Using multiple projects
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
# For multiple projects
PythonOption TracEnvParentDir /var/trac
PythonOption TracUriRoot /projects
Customisation
- sudo trac-admin /var/trac/myProjectName/
- (in trac console) permission add admin TRAC_ADMIN
- permission list admin
- quit
- Then reload trac and you must have a new "admin" tab in the right upper side
- Enable the plugins in Admin > Plugins
May 14
didierLinux, ubuntu
dd if=/dev/sda | bzip2 -c -9 > /mnt/server/image.bz2
May 06
didierLinux, Sony-vaio, ubuntu nvidia, sony, ubuntu
Be very careful if you upgrade the bios with the Sony utility (in windows) and install nvidia drivers (on the ubuntu size) : you would end up with no screen at all (no console either).
But things are going easier for series Z owners, as there is an automated script now. Thanks ernolf !
The good practice is to use the VGN-Zseries-janitor script. It installs all the stuff correctly, and allows to switch between the nvidia and intel cards by using the slider (before the reboot). No hot switch for the moment, but that’s not a real issue. I heard there are some issues with a windows 7 dual boot, because of the bios upgrade needed (read this). But, actually, I’ve already upgraded my own BIOS (I know, I’m adventurous), and there were no problem with the script.
One thing I think the script doesn’t do (I guess, the explanation at the end of the script is not very clear), is to add this kernel instruction :
In /etc/default/grub :
RUB_CMDLINE_LINUX="acpi_osi=\\\"!Windows 2006\\\""
And then run sudo update-grub to create a new /boot/grub/grub.cfg
(In my install, there was already an empty instruction (RUB_CMDLINE_LINUX=”"), so I just filled it with the value (string acpi_osi=\\\”!Windows 2006\\\”)
(You also can do it at boot time by hitting the “e” key.)
An other thing I haven’t done/tested useful is to customize screnn config (xorg.conf or nvidia-settings), as they describe it :
“To make a complicated xorg.conf-file unnecessary (after nvidia installation is ready and everything is running well) one can use nvidia-settings as root (sudo nvidia-settings) or as normal user, make the settings you want and then save them in an rc-file. Now enter the path to this rc-file into /etc/default/switch-x-to”. You must save the file generated by nvidia-settings in /home/<username>/.nvidia-settings-rc, and uncomment the matching line in /etc/default/switch-x-to (change “<username” by your actual username of course) :
NVIDIASETTINGS_RC='/home/<username>/.nvidia-settings-rc'
Make a backup of this file, if it already exists (was the case for me).
May 03
didierapplications, ubuntu
I decided to reinstall my Ubuntu Box after some issues (My disk went full after I switched from legacy backup to Backup Vault in Jungledisk, and (I suppose) in the meantime, an automatic upgrade from ubuntu occured). So I’m listing here the softwares I’m reinstalling (hoping it will we be useless). "From apt-get" means I installed the software using the built-in installer (apt-get command line tool or synaptic), "deb From web" means I got a debian package from web, and "From web" means I couldn’t find an official package (neither ubuntu nor debian) and downloaded the soft.
- Thunderbird (from apt-get). I tried to use Evolution,
but was not convinced. Update : I use now evolution, that I found useful for its integration with others apps. But I mainly use gmail, I use Evolution only to check occasionally a mail account.
- Flash (from apt-get : "flashplugin-nonfree")
- Firefox add-ons. I had no backup of my firefox folder, but it was easy with "add-on collector" + "Massive extender" add-ons.
- JungleDisk workgroup (deb from web)
- Skype (deb from web)
- Google Chrome (deb from web)
- Zend Studio 7.2 (from web)
- Blogilo (from apt-get) (I needed to install manually libqt4-sql-sqlite, unless I had a "driver not loaded" issue)
- Picasa (apt-get after config of repository)
- Filezilla (apt-get)
- Amule
(from apt-get)
- VirtualBox (deb from web). The best is to add the repository : 1) add the line "deb http://download.virtualbox.org/virtualbox/debian lucid non-free" in /etc/apt/sources.list. 2)
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add - 3) sudo apt-get update 4) sudo apt-get install virtualbox-3.1 (source : http://www.virtualbox.org/wiki/Linux_Downloads)
- VMware player (https://www.vmware.com/tryvmware/p/activate.php?p=player&lp=1) to play with some cool jumpBox appliances…
Plus…
- Tomboy notes (with Ubuntu one synchro, it rocks !)
- xmind : (deb from web)
Feb 18
didierLinux, ubuntu
(https://help.ubuntu.com/community/ApacheMySQLPHP#Virtual%20Hosts)
$ sudo tasksel install lamp-server
Older Entries