Analyze Disk Usage on Xubuntu

No Comments »

To analyze my disk usage on my Windows computer I use TreeSize Free. But TreeSize doesn’t work on my Xubuntu system. To help me analyze disk usage on my Xubuntu system I use a graphic tool called Baobab. Baobab runs in any Gnome envirnoment, but will also work Xubuntu’s Xfce environment and is bundled in the gnome-utils package.

Baobab

Install the gnome-utils package

$ apt-get install gnome-utils

Then add Baobab to the desktop Panel.

  • Right click on the Panel
  • Add New Item
  • Select launcher
  • For the icon enter /usr/share/icons/hicolor/24x24/apps/baobab.png
  • For Command enter /usr/bin/baobab

Baobab Launcher

Monitoring CPU and Hard Drive Temperature on Xubuntu

, No Comments »

I run my Xubuntu computer 24/7 a day, therefore it’s a good idea to be able to monitor the CPU and hard drive temperature. Not looking for something complicated, I decided to install an applet on the Xfce4 panel. The first hardware sensors applet I found was the xfce4-sensors-plugin package, however I didn’t find the graphics very appealing, therefore I decided to use the sensors-applet which displays hardware sensors readings in the Gnonme panel.

To get the sensors-applet working on the xfce4 panel, I had to install xfce4-xfapplet-plugin which allows Gnome applets to be plugged into the Xfce4 panel. If you have hddtemp (a utility to monitor the temperature of your hard drive) you can also display the readings in sensors-applet as well.

$ apt-get install xfce4-xfapplet-plugin

$ apt-get install hddtemp

$ apt-get install sensors-applet

Sensors Applet Preferences

Networking Browsing with Xubuntu

No Comments »

Unlike like Ubuntu’s default file manager Nautilus for the GNOME desktop, the default file manager Thunar from Xubuntu doesn’t support samba/network browsing.

Nautilus Share

An easy workaround is to install the Nautilus Share package. When installing the Nautilus Share package other related Nautilus packages which will also included such as the Nautilus file manager which may be used to replace the Thunar file manager.

To install Nautilus Share:

$ sudo apt-get install nautilus-share

SMB for FUSE

A more complex workaround is to use SMB for FUSE packages and will allow you to keep using Thunar.

  1. The first requirement is to have Samba installed, an easy to tigger the install is by going to the following in the Xfce desktop: Applications -> System -> Shared Folders
  2. Install fusesmb:
    $ sudo apt-get install fusesmb
  3. Ensure that fuse module will be loaded at boot time
    $ sudo nano /etc/modules
    and look for fuse in the list
  4. Reboot the server to load the fuse module
  5. Allow users to use fuse:
    • Go to Application -> System -> Users and Groups
    • Click on the “Properties” button of the username
    • Under the “User Privileges” tab check the “Allow use of fuse fileystems like LTSP Thin Client blockdevices” checkbox
  6. Create a directory with the following settings to mount the network browse to:
    $ mkdir /media/network
    $ chmod 777 /media/network
    $ chgrp fuse /media/network
  7. Add your user account to the fuse group
    $ nano /etc/group
    or go to Application -> System -> Users and Groups, and click on the “Manage Groups” button
  8. Reboot the server again
  9. Go to to menu Application -> Settings -> Autostarted Applications, and add a new entry with the following command: /usr/bin/fusesmb /media/network
  10. Open Thunar and add parent folder of the mount point e.g. network to the shortcut pane of Thunar
  11. Logout and log back to enable to fusesmb autostart to take effect.

Troubleshooting

Can’t see a new shared computer or folder in Thunar.

  • In the terminal type the following to refresh fusesmb
    $ fusesmb.cache

Remote Desktop on Xubuntu

, No Comments »

Unlike remote desktop in Ubuntu, Xubuntu doesn’t come with a default VNC server. To allow for remote desktop I installed x11vnc which allows remote access to an existing X server session. The advantage is that it allows you to view the phyical display remotely and also log-in to a new session using a remote VNC client.

Installing a VNC Server

Install the x11vnc package

$ sudo apt-get install x11vnc

Install the xinetd package

$ sudo apt-get install xinetd

Add the x11vnc service to xinetd

$ sudo nano /etc/xinetd.d/x11vnc

Add the following content in the file:

service x11vnc
{
port = 5900
type = UNLISTED
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/x11vnc
server_args = -inetd -o /var/log/x11vnc.log -display :0 -auth /var/lib/gdm/:0.Xauth -many -bg
disable = no
}

Restart the xinetd
$ sudo /etc/init.d/xinetd stop
$ sudo /etc/init.d/xinetd start

Creating a Password for the VNC Server

Install the vnc-common package
$ sudo apt-get install vnc-common

Create a password file
$ sudo vncpasswd /root/.vncpasswd

Add the -rfbauth /root/.vncpasswd option to server_args in the /etc/xinetd.d/x11vnc file. For example:

server_args = -inetd -o /var/log/x11vnc.log -display :0 -auth /var/lib/gdm/:0.Xauth -many -bg -rfbauth /root/.vncpasswd

Restart the xinetd

$ sudo /etc/init.d/xinetd stop
$ sudo /etc/init.d/xinetd start

Connecting with a VNC Client

To connect to your remote desktop any VNC viewer can be installed. For example RealVNC or TightVNC (requires VNC password to be implemented) provides a free edition client.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in