Get the Linux desktop you always wanted in 10 easy steps!

How to Guides for Linux, Linpus etc..

Moderator: Davidcowling

Get the Linux desktop you always wanted in 10 easy steps!

Postby rjm » Sun Sep 28, 2008 12:55 pm

With this simple procedure, you can remove the standard Acer desktop and icons and replace them with a customizable wallpaper and your choice of desktop icons. All Acer pre-installed functionality is maintained. System settings are maintained after reboot.

Screenshot-sm.png
Screenshot-sm.png (205.49 KiB) Viewed 73069 times


It works, baby, my little Holy Grail of getting a normal and fully functional xfce desktop on the A1 has been obtained at long last! I have double checked everything by repeating it after a system restore.

Open the terminal by pressing Alt-F2 and typing "terminal"...

1. Edit xfce4-session.rc to change the Client0 line to point to xfdesktop rather than xfdesktopnew.


Code: Select all
sudo mousepad /etc/xdg/xfce4-session/xfce4-session.rc


replace xfdesktopnew with xfdesktop

#Client0_Command=xfdesktopnew
Client0_Command=xfdesktop
Client0_PerScreen=False
Client1_Command=xfwm4
Client1_PerScreen=False
Client2_Command=xfce4-panel
Client2_PerScreen=False
Client3_Command=/usr/share/search-bar/start-search_bar.sh
Client3_PerScreen=False
Client4_Command=xfcepost
Client4_PerScreen=False


2. Edit xfdesktop to launch xfdesktop-xfce instead of xfdesktop2.

Code: Select all
sudo mousepad /usr/bin/xfdesktop


replace xfdesktop2 with xfdesktop-xfce

#!/bin/sh
if [ -f /usr/bin/xfce-mcs-manager.new ];then
sudo mv /usr/bin/xfce-mcs-manager.new /usr/bin/xfce-mcs-manager
fi
#/usr/bin/getnum.sh
#/usr/bin/xfdesktop2 & >/dev/null 2>&1
/usr/bin/xfdesktop-xfce & >/dev/null 2>&1
sleep 5
if [ -f /usr/bin/xfce-mcs-manager ];then
sudo mv /usr/bin/xfce-mcs-manager /usr/bin/xfce-mcs-manager.new
fi


3. Disable the Acer search bar.

Code: Select all
sudo mousepad /usr/share/search-bar/start-search_bar.sh


place a # in front of all the lines

#!/bin/sh
#resolution=`xrandr |grep \*|awk '{print $1}'`
#resolution=`xrandr |grep current|awk -F"current" '{print $2}'|awk -F"," '{print $1}'|sed 's/\ //g'`
#
#if [ $resolution = "1280x800" ];then
# acer-search-desktop --x=650 --y=90 --width=490 --height=31
#elif [ $resolution = "1024x600" ];then
# acer-search-desktop --x=510 --y=65 --width=490 --height=31
#else
# acer-search-desktop
#fi


4. Move the xfce4 user configuration directories to backup locations.

Code: Select all
mv ~/.config/xfce4 ~/.config/xfce4.old
mv ~/.config/xfce4-session ~/.config/xfce4-session.old


5. Reboot

New xfce4 user configuration directories are automatically created.

6. Let xfce manage the desktop, and enable your wallpaper

Open the terminal by pressing Alt-F2 and typing "terminal"...

Copy your wallpaper image to the /usr/share/xfce4/backdrops directory, {example for the picture originally in the Pictures directory}

Code: Select all
sudo cp ~/Pictures/{filename.jpg} /usr/share/xfce4/backdrops/{filename.jpg}


then bring up the desktop settings,

Code: Select all
xfce-setting-show


- click Desktop icon, tick "Allow xfce to manage the desktop".
- select background wallpaper (click on the little icon next to the file path)

{...you can stop here, the rest of this section and the remaining sections below just tidy things up...}

- on Behaviour tab, tick "show desktop menu on right click"
- reduce icon size to 48 and font size to 10 (adjust to taste)


7. Edit the bottom taskbar by adding a start menu.

Code: Select all
xfce4-panel -a

- drag Xfce Menu item from the window to the left hand side of the taskbar
- other icons can be added too, for various shortcuts and links
- the "trash" icon apparently prevents USB devices from automounting, so avoid adding that one!

8. Remove the system desktop icons by making a new file called xfdesktoprc in the .config/xfce4/desktop directory.

Code: Select all
mousepad ~/.config/xfce4/desktop/xfdesktoprc


and add the following text

[file-icons]
show-filesystem=false
show-home=false
show-trash=false


now save the file and reboot

9. Add your favorite icons to the desktop by copying the .desktop file from /usr/share/applications to ~/Desktop

This is most conveniently done by opening File Manager (thunar) - View - View as advanced mode, navigating to /usr/share/applications and dragging the icons you want directly to the desktop. The icons can be repositioned on the desktop with the cursor.


10. Clean up the xfce menu.

Get rid of the useless links to hotmail, google maps, etc by moving or deleting the contents of the edesktop folder.

Code: Select all
sudo mv /usr/share/applications/edesktop ~/Documents/edesktop


the main part of the menu is generated automatically from the .desktop files, but some items can be edited from

Code: Select all
xfce4-menueditor


NOTES

An equivalent route, one less step: leave xfce4-session.rc as is, but edit xfdesktopnew changing the word xfdesktop2 to xfdesktop-xfce. I didn't try that though.

I have to say having a clean desktop and my own choice of desktop icons makes an gigantic difference to how I feel towards my A1. The problem with Acer desktop is twofold, first it's impersonal and dull, even though its practical and attractive enough in its way, second, it is a constant and unwelcome visual clutter around any open window. The latter is like background noise: you don't notice it until you turn it off. Then you realize just how annoying it was.

Feel free to post your screenshots to this thread. Press Alt-F2 and type "gnome-screenshot --interactive" in the command line.
Last edited by rjm on Tue Dec 16, 2008 8:06 am, edited 17 times in total.
rjm
 
Posts: 345
Joined: Thu Jul 24, 2008 1:13 am

Re: How to: get the Linpus XFCE desktop to stay after reboot

Postby jccguays » Sun Sep 28, 2008 8:37 pm

Great, thanks for the methods to do it. It works

When I can I will upload an image

Best regards
jccguays
 
Posts: 36
Joined: Mon Jul 28, 2008 4:23 pm
Location: Spain

Re: How to: get the Linpus XFCE desktop to stay after reboot

Postby rjm » Mon Sep 29, 2008 2:42 am

[contents folded into original post]
Last edited by rjm on Sun Oct 12, 2008 1:45 am, edited 5 times in total.
rjm
 
Posts: 345
Joined: Thu Jul 24, 2008 1:13 am

Re: How to: get the Linpus XFCE desktop to stay after reboot

Postby Mako » Mon Sep 29, 2008 4:52 pm

Hi guys, I've followed this guide and now I have the standard XFCE-Desktop showed at start.
But I also have two issues:
- Removable devices are not automounted when plugged (I don't know if it's panel fault...)
- At each reboot I lose my desktop background
FIXED: just make sure the wallpaper is in the default directory /usr/share/xfce4/backdrops/

Someone has the same problem? Someone could help me, please?

Mako'
Mako
 
Posts: 8
Joined: Mon Sep 29, 2008 2:30 pm

Re: How to: get the Linpus XFCE desktop to stay after reboot

Postby jccguays » Mon Sep 29, 2008 5:02 pm

Mako wrote:Hi guys, I've followed this guide and now I have the standard XFCE-Desktop showed at start.
But I also have two issues:
- Removable devices are not automounted when plugged (I don't know if it's panel fault...)
- At each reboot I lose my desktop background

Someone has the same problem? Someone could help me, please?

Mako'


Hi, I had the same problems, but I found the solution (I think)

1. Removable devices are mounted, buy you need to open advance view in Thunar to see them. In any case, I think that if you open a terminal you can navigate into them.

2. To have the desktop background you need to copy the png file you want in the backdrops directory. Now I don't remember exactly where it's (I normally work with Windows), but if you try to change the default background, you'll see it.

I expect this can help you.

Best regards.
jccguays
 
Posts: 36
Joined: Mon Jul 28, 2008 4:23 pm
Location: Spain

Re: How to: get the Linpus XFCE desktop to stay after reboot

Postby Mako » Mon Sep 29, 2008 5:15 pm

Thanks jccguays.
I also noticed that killing all Thunar process (killall Thunar in Terminal), and restart it (in standard mode) you will see all the removable devices.
But that's not a very good solutions for me, I hope someone resolve this issue.
Mako
 
Posts: 8
Joined: Mon Sep 29, 2008 2:30 pm

Re: How to: get the Linpus XFCE desktop to stay after reboot

Postby Fuerst » Mon Sep 29, 2008 8:22 pm

Hi friends,
I have tried to follow the instructions and copy/paste commands. but it didn't work. after first command a second window opened up, warning me of danger involved in superuser activity. all other commands ha dno reaction

any idea?
thxs and cheers
Christian
Fuerst
 
Posts: 102
Joined: Mon Sep 01, 2008 5:42 pm

Re: How to: get the Linpus XFCE desktop to stay after reboot

Postby Cesium » Mon Sep 29, 2008 8:58 pm

Fuerst

your picture files have to be copied into the backdrops folder.

alt f2
terminal
su
(enter your password)
cd Pictures
mv (your picture file and its extension) /usr/share/xfce4/backdrops/

*note* there is a space between your file name and /usr/share etc....
then go into your desktop manager and select the "backdrops" folder and it's local copy of your picture. It should stay on reboot now.

RJM-
thanks for figuring this out. I have no idea how you even started to do this. XFCE is definitely better than the original linpus desktop.
Cesium
 
Posts: 26
Joined: Mon Aug 18, 2008 12:46 am

Re: How to: get the Linpus XFCE desktop to stay after reboot

Postby jccguays » Mon Sep 29, 2008 11:51 pm

I've done and, by now, I'm happy. Anyway I have a little doubt.

I have prepared the system to press the right bottom in the touchpad and I have the menu, but if I use a USB Mouse it don't. Hay anyone the same "silly" problem? I would like to know why, I don't mind, but......

And a little thing, can anyone tell me how I can take a image of my desktop to paste here? :oops:

Regards
jccguays
 
Posts: 36
Joined: Mon Jul 28, 2008 4:23 pm
Location: Spain

Re: How to: get the Linpus XFCE desktop to stay after reboot

Postby rjm » Tue Sep 30, 2008 12:33 am

To take a desktop screenshot, execute the following command

Code: Select all
gnome-screenshot


or

Code: Select all
gnome-screenshot --interactive


*****

I do not experience any problem with removable devices. The behaviour of my A1 is unchanged after the mod, namely if I hot-plug a USB memory stick the device is mounted automatically and Thunar is called automatically to view the contents of the device.

Type "xfce-setting-show" to bring up the xfce settings manager, click on file manager, select the advanced tab, enable volume management should be ticked. Click on "configure" to bring up the removable drives and media menu, all 5 options under the Storage - removable storage should be ticked.

*****

The only thing I did note was that the "show-removable=true" tag in xfdesktoprc does not appear to do anything, I don't get a new desktop icon when I plug in a device.

*****

Wallpaper can be jpeg or perhaps other file formats, but must have the right file permissions. The easiest way to sort it out is to do a "sudo cp" copy of the image file to either /usr/share/backgrounds or /usr/share/xfce4/backdrops/, essentially what Cesium suggests above. By the way, there are some nice wallpapers preloaded in the /usr/share/backgrounds/nature directory.

*****

A USB mouse is configured separately from the trackpad settings, so having different behaviour is expected. Have a look at the mouse properties under the xfce setttings manager.
rjm
 
Posts: 345
Joined: Thu Jul 24, 2008 1:13 am

Next

Return to How to Guides - Linux

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests