Linux : Remote desktop && Hamachi

Written by Christophe Lucas - - 1 comment
For those of you which need to access by means of "Remote Desktop" you can use :

  • Nomachine NX

  • Teamviewer

  • VNC


And you can use both LogmeIn Hamachi and VNC. Hamachi is a software which can make network betweeen devices. Against logmein product which lot of you know, here it is at ~~Level2~~ (OSI).

 


How you create your VPN ?




For Linux users, you must install vnc4server and hamachi (supplied by LogmeIn) package (dpkg is your friend). Then you launch your vnc server :
root@plop# vncserver 
New 'plop:1 (clucas)' desktop is plop:1

Starting applications specified in /home/clucas/.vnc/xstartup
Log file is /home/clucas/.vnc/plop:1.log

Now the VNC server is reacheable by means of 5901 (5900 + 1) port.

Then you can create your VPN network by using hamachi :
root@neptune:~# hamachi -h
LogMeIn Hamachi, a zero-config virtual private networking utility, ver 2.1.0.76

usage: hamachi [command]

command specifies an action. Can be one of the following -

# set-nick
login
logon
logout
logoff
# list
peer
network
# create []
set-pass []
set-access [lock|unlock] [manual|auto]
delete
evict
# approve
reject
# join []
do-join []
leave
# go-online
go-offline
# attach
attach-net
cancel
# gw-config
[dhcp|static [net ]
[domain ]
[dns []]]
[del ...]
[add ...]
# set-ip-mode ipv4 | ipv6 | both
# check-update
vpn-alias |0
If no command is specified, hamachi displays its status including version,
pid, client id, online status, nickname and the LogMeIn account
root@neptune~# hamachi attach clucas@altern.org
root@neptune~# hamachi join network password
root@neptune~# hamachi go-online network

You have now access to your Linux server/desktop from anywhere by means of hamachi's device :



 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

For mac users (such as me : not a really experimented user), you have a built-in VNC client in MAC from 10.5 MAC OS X.
Go in your finder window > Go > Connect to server >
Now you can access to your device by means of :
vnc://x.y.z.w:5901 (where 5900 + X display : here :1)
Classified in : Linux - Tags : none

Float and divide into bash

Written by Christophe Lucas - - no comments


It is a funny and simply tip under bash.

How to deals with float and division under bash. 'bc' is your friend such as :


clucas@jupiter:~$ i=$( echo "scale=3; 1/3" | bc)
clucas@jupiter:~$ echo $i
.333
clucas@jupiter:~$

It must found on the net (where I found), but searchable for me on this stuff for future.



NdR :


clucas@pluton:~$ i=$((1/3))
clucas@pluton:~$ echo $i
0
clucas@pluton:~$

Classified in : Linux - Tags : none

Ajouter l'encodate ISO-8859-1

Written by Christophe Lucas - - no comments
Tip trouvé sur planet ubuntu-fr :


# cat /usr/share/i18n/SUPPORTED |
grep fr_FR >> /var/lib/locales/supported.d/fr
# locale-gen
Generating locales...
en_AU.UTF-8... done
en_BW.UTF-8... done
en_CA.UTF-8... done
en_DK.UTF-8... done
en_GB.UTF-8... done
en_HK.UTF-8... done
en_IE.UTF-8... done
en_IN.UTF-8... done
en_NZ.UTF-8... done
en_PH.UTF-8... done
en_SG.UTF-8... done
en_US.UTF-8... done
en_ZA.UTF-8... done
en_ZW.UTF-8... done
fr_BE.UTF-8... up-to-date
fr_CA.UTF-8... up-to-date
fr_CH.UTF-8... up-to-date
fr_FR.ISO-8859-15@euro... done
fr_FR.ISO-8859-1... done
fr_FR.UTF-8... up-to-date
fr_LU.UTF-8... up-to-date
Generation complete.

Bien utile après une mise à jour de son système...
Classified in : Linux - Tags : none
Rss feed of the category