Linux‎ > ‎

Desktop Tips

Linux to Linux Communication

posted Oct 30, 2014, 7:15 PM by Joe Bieber   [ updated Oct 30, 2014, 7:15 PM ]

I'm setting here chatting with myself and I like it.

I'm connected to a remote linux box via SSH and VNC testing out different messaging and dialog programs. Here's what I'm playing with.

I wanted to send messages to a remote system and be able to read the response. So I started with xmessage. First I had to be able to  interact with the remote computer's display.

$ export DISPLAY=:0

This will make commands I type, display a GUI to the remote computer's display (as long as it's current display is :0)

$ xmessage -center "Hi remote computer. Click Ok to close me."

This will popup a message with a standard ok button. There are several options to add buttons and do other things.

With the display still exported, I tried zenity. Zenity can display different dialogs and get a range of input from the remote user and is prettier than xmessage.

$ zenity --entry --text "Type something."

This will display a dialog asking for input. The text typed into the dialog on the remote computer will be returned to the local computer. There is a ton of interesting things to do with zenity.

For terminal to terminal chat.

On one computer type this into the terminal.

$ nc -l 55555

this will listen for a connection on port 55555

On the other computer type this into the terminal.


This establishes the connection between the computers and now you chat to your hearts content.

I would elaborate more on these and the fun I had talking with myself, but I'm tired and you can just read the man pages anyway.

Access to CUPS web interface

posted Oct 28, 2014, 5:39 AM by Joe Bieber   [ updated Oct 28, 2014, 5:39 AM ]

Create group and add user to group

$ sudo groupadd printadmin

$ sudo usermod -aG printadmin USERNAME

Edit the /etc/cups/cupsd.conf and add this line:
SystemGroup printadmin

Restart CUPS

$ sudo /etc/init.d/cups restart

Modify to your hearts content.

Using nfs instead of sshfs

posted Oct 25, 2014, 8:24 AM by Joe Bieber   [ updated Oct 25, 2014, 8:31 AM ]

So I decided to use nfs instead of sshfs to connect to my network shares and I'm glad I did. I have a FreeNAS file server and have both Windows and Linux boxes accessing it. I was connecting to my shares using sshfs as stated in previous post, but I never got around to having those shares automatically  mount on my Mint box and the process seemed cumbersome, so instead, I decided to setup some nfs shares on my NAS box and tried mounting them. Once I got the shares setup correctly on the NAS box, installing a nfs client was a snap.

$ sudo apt-get install nfs-common

You can check for available remote nfs shares on your server by using this command in the terminal:

$ showmount -e IP address of server 

Once I found the remote nfs share I wanted, I created a local directory to mount it to and added a line to my /etc/fstab like this:

$ IP address of server:/remote share /local mount directory nfs _netdev,auto 0 0

nfs - specifies filesystem type and _netdev prevents the system from attempting to mount the share until the network connection is up.

Done and done. Now when I turn on my system my remote shares auto-magically mount as soon as my network is available. No more clicking to mount, and because I am using nfs and have configured it this way, my authorization to access my shares is determined by my ip instead of username and password.

Depending on your file manager, you should add bookmarks to your newly mounted folder for ease of access.

Did I mention my file transfer speed increased as well.

(previously posted on my linux mint blog)

Map Dropbox folder to nfs share

posted Oct 25, 2014, 8:12 AM by Joe Bieber   [ updated Oct 25, 2014, 8:12 AM ]

I have my Dropbox folder on a network share. I did this because I didn't want to sync all my Dropbox data every time I switch to a different linux distro. It works really well. The only time I had a problem is when I unmounted my dropbox folder from the share and dropbox thought I had deleted everything. Surprise!! I was able to easily restore the data from the dropbox website.

You need a nfs share on your network, like a NAS box.(currently using a FreeNAS VM on a ESXi server)

Make sure you can mount to a nfs share

$ sudo apt-get install nfs-common

Create the Dropbox folder in your home folder

$ mkdir /home/USERNAME/Dropbox

Modify your /etc/fstab by adding the following line

SERVER ADDRESS:/SHARE LOCATION    /home/USERNAME/Dropbox   nfs   _netdev,auto   0   0

example   /home/joe/Dropbox   nfs _netdev,auto   0   0

Then mount

$ sudo mount -a

Install Dropbox and choose merge folder when it asks. Dropbox will sync to make sure you have the latest files and your done.

Getting Shotwell to work correctly on Linux Mint or Ubuntu Gnome

posted Oct 25, 2014, 7:50 AM by Joe Bieber   [ updated Oct 27, 2014, 12:02 PM ]

Using Shotwell was nice on Ubuntu 14.04. I was able to easily post photos to PicasaWeb and Facebook. When I switched to Ubuntu Gnome, the online account system was broken and I could not get Shotwell to publish photos. I also tried Shotwell on Linux Mint 17 and same scenario. Here's how I fixed it.

Completely remove Shotwell

$ sudo apt-get remove --purge shotwell*

Add Yorba's repository

$ sudo add-apt-repository ppa:yorba/ppa
$ sudo apt-get update

Then install Shotwell

$ sudo apt-get install shotwell

If no errors, your done.

1-5 of 5