Re: [ubuntu-uk] Swap area not created on install

2014-10-17 Thread J Fernyhough
On 17 October 2014 15:42, Gordon Burgess-Parker  wrote:
> On 17/10/14 15:36, J Fernyhough wrote:
>>
>> sudo mkswap /dev/mapper/ubuntu--vg-swap_1
>> sudo swapon /dev/mapper/ubuntu--vg-swap_1
>
>
> Looks like that's it.
> Swap is now showing up in System Monitor as available with 1GB of space.
>

Just to make sure it's pointed out, you'll need to add it to your
fstab to get it activated on each boot.

>
> As I'm going to add another GB of RAM shortly, will it expand automatically,
> or if not, can I increase the Swap area?
>

It won't expand automatically, and I'm not sure how LVM will respond
to resizing the first (root) group. I remember having problems
shrinking an ext4 partition to allow the volume group to be shrunk,
though you should be fine if you can take the disk offline (e.g. use a
USB live image). So it's possible, but a faff, and with more RAM you
should need swap less. If you're stuck you could create a swap file
instead and do away with the separate partition (I'll leave that as an
exercise for now ;).

>
> Thanks for all your help!
>

More than welcome. ;) I'm glad there was something on this list I
could help with!

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Swap area not created on install

2014-10-17 Thread Gordon Burgess-Parker

On 17/10/14 15:36, J Fernyhough wrote:

sudo mkswap /dev/mapper/ubuntu--vg-swap_1
sudo swapon /dev/mapper/ubuntu--vg-swap_1


Looks like that's it.
Swap is now showing up in System Monitor as available with 1GB of space.
As I'm going to add another GB of RAM shortly, will it expand 
automatically, or if not, can I increase the Swap area?


Thanks for all your help!

--
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Swap area not created on install

2014-10-17 Thread J Fernyhough
On 17 October 2014 15:31, Gordon Burgess-Parker  wrote:
>
> control sda5_crypt ubuntu--vg-root ubuntu--vg-swap_1
>

Nice - so the device is present, I reckon it just needs to be formatted.

sudo mkswap /dev/mapper/ubuntu--vg-swap_1
sudo swapon /dev/mapper/ubuntu--vg-swap_1

Once it's formatted it should also show up in 'blkid'. After swapon it
should show as active in 'free'.

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Swap area not created on install

2014-10-17 Thread Gordon Burgess-Parker

On 17/10/14 15:28, J Fernyhough wrote:

On 17 October 2014 15:20, Gordon Burgess-Parker  wrote:

Output of blkid:

/dev/sda1: UUID="ba8d370e-f29c-4c18-ae93-650b7fe5f2a2" TYPE="ext2"
/dev/sda5: UUID="f114109b-288a-432e-85bb-ba6be511ad58" TYPE="crypto_LUKS"
/dev/mapper/sda5_crypt: UUID="GVodJX-Am7J-fDKW-PWoG-7XBA-LpvG-U3G5NB"
TYPE="LVM2_member"
/dev/mapper/ubuntu--vg-root: UUID="c0f919a1-e626-44d6-b621-73134eeefda4"
TYPE="ext4"


Oki, so it doesn't look like it's actually created a swap partition.
What's the output of 'ls /dev/mapper/' ?

J



control sda5_crypt ubuntu--vg-root ubuntu--vg-swap_1


-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Swap area not created on install

2014-10-17 Thread J Fernyhough
On 17 October 2014 15:20, Gordon Burgess-Parker  wrote:
>
> Output of blkid:
>
> /dev/sda1: UUID="ba8d370e-f29c-4c18-ae93-650b7fe5f2a2" TYPE="ext2"
> /dev/sda5: UUID="f114109b-288a-432e-85bb-ba6be511ad58" TYPE="crypto_LUKS"
> /dev/mapper/sda5_crypt: UUID="GVodJX-Am7J-fDKW-PWoG-7XBA-LpvG-U3G5NB"
> TYPE="LVM2_member"
> /dev/mapper/ubuntu--vg-root: UUID="c0f919a1-e626-44d6-b621-73134eeefda4"
> TYPE="ext4"
>

Oki, so it doesn't look like it's actually created a swap partition.
What's the output of 'ls /dev/mapper/' ?

J

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Swap area not created on install

2014-10-17 Thread Gordon Burgess-Parker

On 17/10/14 14:39, J Fernyhough wrote:


Check free -m:

me@pc ~> free -m
  total   used   free sharedbuffers cached
Mem:  7680   4660   3019221  3   1141
-/+ buffers/cache:   3515   4164
Swap: 9398  0   9398


That says Swap:   00   0


Check also your /etc/fstab (run e.g. cat /etc/fstab). Mine has a line:

# swap was on /dev/sdb6 during installation
UUID=a156e2ed-db18-4064-9d6f-9bd310328c80 noneswapsw
0   0

Yours should show as /dev/ubuntu-vg/swap_1.


The result of cat/etc/fstab  is:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
#   
/dev/mapper/ubuntu--vg-root /   ext4 errors=remount-ro 0   1
# /boot was on /dev/sda1 during installation
UUID=ba8d370e-f29c-4c18-ae93-650b7fe5f2a2 /boot   ext2 
defaults0   2

/dev/mapper/cryptswap1 none swap sw 0 0


  If it's present but not
active, type:

sudo swapon /dev/ubuntu-vg/swap_1

This should get it to show as active. If it's not present, add it in.
Two choices:

1) Find its UUID by running:

sudo blkid

Mine shows:

/dev/sda6: UUID="a156e2ed-db18-4064-9d6f-9bd310328c80" TYPE="swap"


Output of blkid:

/dev/sda1: UUID="ba8d370e-f29c-4c18-ae93-650b7fe5f2a2" TYPE="ext2"

/dev/sda5: UUID="f114109b-288a-432e-85bb-ba6be511ad58" TYPE="crypto_LUKS"

/dev/mapper/sda5_crypt: UUID="GVodJX-Am7J-fDKW-PWoG-7XBA-LpvG-U3G5NB" 
TYPE="LVM2_member"


/dev/mapper/ubuntu--vg-root: UUID="c0f919a1-e626-44d6-b621-73134eeefda4" 
TYPE="ext4"







Then you can use a line similar to my /etc/fstab in your own.

2) Specify it by /dev instead, e.g.:

/dev/ubuntu-vg/swap_1   none   swap  sw   0   0


J



I'm now confused!
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Swap area not created on install

2014-10-17 Thread J Fernyhough
On 17 October 2014 14:26, Gordon Burgess-Parker  wrote:
>
> Can anyone tell me what the 1.1 GB partition is, and as presumably I do need
> a Swap area, how do I create one?
>

That's your swap device.

Check free -m:

me@pc ~> free -m
 total   used   free sharedbuffers cached
Mem:  7680   4660   3019221  3   1141
-/+ buffers/cache:   3515   4164
Swap: 9398  0   9398

Note the "Swap:" line. If you have that swap is active; if you don't, it's not.

Check also your /etc/fstab (run e.g. cat /etc/fstab). Mine has a line:

# swap was on /dev/sdb6 during installation
UUID=a156e2ed-db18-4064-9d6f-9bd310328c80 noneswapsw
   0   0

Yours should show as /dev/ubuntu-vg/swap_1. If it's present but not
active, type:

sudo swapon /dev/ubuntu-vg/swap_1

This should get it to show as active. If it's not present, add it in.
Two choices:

1) Find its UUID by running:

sudo blkid

Mine shows:

/dev/sda6: UUID="a156e2ed-db18-4064-9d6f-9bd310328c80" TYPE="swap"

Then you can use a line similar to my /etc/fstab in your own.

2) Specify it by /dev instead, e.g.:

/dev/ubuntu-vg/swap_1   none   swap  sw   0   0


J

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Sharing files and folders between two 14.04 machines

2014-10-17 Thread Simon Greenwood
On 17 October 2014 14:23, Liam Proven  wrote:

> On 17 October 2014 15:19, Alan Lord  wrote:
> > That's a fair question, but to be honest I don't really use anything else
> > but ssh/sftp - anywhere.
> >
> > If I need to move a *massive* amount of data then I'd probably use nc but
> > those occasions are rare.
> >
> > If the original enquirer wanted to they could also use sshfs [1] and
> make it
> > more permanent too.
>
> I must say, it seems a bit sledgehammer/nut to me.
>
> I mainly use Samba 'cos it Just Works™ and my home server (back in
> London) was running Windows Server 2008 (mainly as a learning
> exercise, but also as it was built out of weird bits of old hardware
> -- e.g. a Dell PATA/100 hardware RAID controller -- that was just
> easier to get working with Windows).
>
>
>
Not long ago, sshfs was being touted as the standard remote mount mechanism
for *buntu although I suppose any FUSE mountable filesystem could. I
personally tend to use it for any ad hoc connection but fall back to NFS
for (semi-)permanent connections across local network. By default you have
SSH or FTP from nautlius or nemo and they're simpler than CIFS. If you use
key based authentication sshfs it's incredibly simple.

s/

-- 
Twitter: @sfgreenwood
"TBA are particularly glib"
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Sharing files and folders between two 14.04 machines

2014-10-17 Thread J Fernyhough
On 17 October 2014 14:08, Liam Proven  wrote:
>
> But why run ssh on your own internal LAN? What's the point of encrypting it?
>

For file transfers I've found it to be slightly more reliable than
samba. I have a Netgear WNR-3500L (running Shibby's TomatoUSB) acting
as a NAS and samba would regularly die (granted this was probably the
firmware); SFTP, although slower by default, works consistently well.

It also acts as a control channel if e.g. I need to update other
machines etc. It's bloody useful.

J

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


[ubuntu-uk] Swap area not created on install

2014-10-17 Thread Gordon Burgess-Parker

(This has been posted to Ubuntu Forums - not a lot of help on this so far!)

Fresh install of 14.04 on a Eee PC1001P.
I used the automatic install and chose to use LVM and encrypt the whole 
of the drive.
I've just noticed that the automatic install did NOT create a Swap 
partition.
I can't re-size the existing partition in GParted being run from a Live 
USB - the option is greyed out.

The specs of the machine are:
Processor CPU Intel Atom N450 / 1.66 GHz dual core
Memory RAM 1 GB ( 1 x 1 GB )
160 GB HDD.
I shall be upgrading the RAM shortly to 2GB.

Here's what Disks shows:
https://drive.google.com/file/d/0B7c...ew?usp=sharing 



And here's what GParted shows:
https://www.wuala.com/Gordonbp/Shared/?key=E9i2UlshbSwe


Can anyone tell me what the 1.1 GB partition is, and as presumably I do 
need a Swap area, how do I create one?


Cheers
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Sharing files and folders between two 14.04 machines

2014-10-17 Thread Liam Proven
On 17 October 2014 15:19, Alan Lord  wrote:
> That's a fair question, but to be honest I don't really use anything else
> but ssh/sftp - anywhere.
>
> If I need to move a *massive* amount of data then I'd probably use nc but
> those occasions are rare.
>
> If the original enquirer wanted to they could also use sshfs [1] and make it
> more permanent too.

I must say, it seems a bit sledgehammer/nut to me.

I mainly use Samba 'cos it Just Works™ and my home server (back in
London) was running Windows Server 2008 (mainly as a learning
exercise, but also as it was built out of weird bits of old hardware
-- e.g. a Dell PATA/100 hardware RAID controller -- that was just
easier to get working with Windows).



-- 
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: lpro...@cix.co.uk • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: lpro...@hotmail.com • Skype/AIM/Yahoo/LinkedIn: liamproven
Cell/Mobiles: +44 7939-087884 (UK) • +420 702 829 053 (ČR)

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Sharing files and folders between two 14.04 machines

2014-10-17 Thread Liam Proven
On 17 October 2014 15:12, John Oliver  wrote:
> You might not want other LAN users to (in theory) intercept the data as
> it moves across the LAN (whether wired or wireless).


On someone's own home network? Really? Seriously?

I mean, /maybe/ on a large enterprise network, if you were /very/
paranoid, but...


-- 
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: lpro...@cix.co.uk • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: lpro...@hotmail.com • Skype/AIM/Yahoo/LinkedIn: liamproven
Cell/Mobiles: +44 7939-087884 (UK) • +420 702 829 053 (ČR)

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Sharing files and folders between two 14.04 machines

2014-10-17 Thread Alan Lord

On 17/10/14 14:08, Liam Proven wrote:


I did not know that Nautilus could do that.

But why run ssh on your own internal LAN? What's the point of encrypting it?


That's a fair question, but to be honest I don't really use anything 
else but ssh/sftp - anywhere.


If I need to move a *massive* amount of data then I'd probably use nc 
but those occasions are rare.


If the original enquirer wanted to they could also use sshfs [1] and 
make it more permanent too.


Al

[1] http://en.wikipedia.org/wiki/SSHFS


--
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Sharing files and folders between two 14.04 machines

2014-10-17 Thread John Oliver
On 17/10/14 14:08, Liam Proven wrote:
> On 17 October 2014 10:52, Alan Lord  wrote:
>> Err it is really quite trivial (assumes you already have openssh-server
>> installed on the destination host as you said you have).
>>
>> In the file browser (nautilus) click "Connect to server".
>>
>> In the Server Address box type:
>>
>> sftp://othermachinename.local [optionally add /any/path/you/want/to/specify]
>>
>> If you are connecting as a different user to the other machine enter
>>
>> sftp://otherusername@othermachinename.local
>>
>> click connect.
>>
>> As it is all on your home network, I'd choose the "save password for ever"
>> option and once it has connected, click the tool cog thingy and choose
>> "Bookmark this location"
> I did not know that Nautilus could do that.
>
> But why run ssh on your own internal LAN? What's the point of encrypting it?
>
>
You might not want other LAN users to (in theory) intercept the data as
it moves across the LAN (whether wired or wireless).

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Sharing files and folders between two 14.04 machines

2014-10-17 Thread Liam Proven
On 17 October 2014 10:52, Alan Lord  wrote:
> Err it is really quite trivial (assumes you already have openssh-server
> installed on the destination host as you said you have).
>
> In the file browser (nautilus) click "Connect to server".
>
> In the Server Address box type:
>
> sftp://othermachinename.local [optionally add /any/path/you/want/to/specify]
>
> If you are connecting as a different user to the other machine enter
>
> sftp://otherusername@othermachinename.local
>
> click connect.
>
> As it is all on your home network, I'd choose the "save password for ever"
> option and once it has connected, click the tool cog thingy and choose
> "Bookmark this location"

I did not know that Nautilus could do that.

But why run ssh on your own internal LAN? What's the point of encrypting it?


-- 
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: lpro...@cix.co.uk • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: lpro...@hotmail.com • Skype/AIM/Yahoo/LinkedIn: liamproven
Cell/Mobiles: +44 7939-087884 (UK) • +420 702 829 053 (ČR)

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] gfortran help

2014-10-17 Thread Tony Arnold
Owen,

Have you tried running the a.out file? That is the executable produced
from compiling and linking done by the gfortran command.

Bash and Python are interpreted languages, so they run immediately
without the need to compile and link.

Regards,
Tony.

On 17/10/14 11:49, Owen Branley wrote:
> Hi All,
> 
> I'm trying to say 'hello world' in gfortran speak but all I get is an
> a.out file that does not help. Various diagnostic commands display
> jargon that does not help either.
> 
> Bash and Python etc are ok but gfortran will not run/execute!!
> Please help if you can!
> 
> 

-- 
Tony Arnold,Tel: +44 (0) 161 275 6093
Head of IT Security,Fax: +44 (0) 705 344 3082
University of Manchester,   Mob: +44 (0) 773 330 0039
Manchester M13 9PL. Email: tony.arn...@manchester.ac.uk

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] gfortran help

2014-10-17 Thread Philip Stubbs
On 17 October 2014 11:49, Owen Branley  wrote:

> Hi All,
>
> I'm trying to say 'hello world' in gfortran speak but all I get is an
> a.out file that does not help. Various diagnostic commands display jargon
> that does not help either.
>
> Bash and Python etc are ok but gfortran will not run/execute!!
> Please help if you can!
>

Does this help:
http://en.wikibooks.org/wiki/Fortran/Hello_world#Unix


-- 
Philip Stubbs
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


[ubuntu-uk] gfortran help

2014-10-17 Thread Owen Branley
Hi All,

I'm trying to say 'hello world' in gfortran speak but all I get is an a.out
file that does not help. Various diagnostic commands display jargon that
does not help either.

Bash and Python etc are ok but gfortran will not run/execute!!
Please help if you can!
-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Sharing files and folders between two 14.04 machines

2014-10-17 Thread Alan Lord

On 17/10/14 09:33, Liam Proven wrote:

On 16 October 2014 19:53, Gordon Burgess-Parker  wrote:

Two 14.04 machines on the same LAN.
I am having THE MOST ridiculous time trying to share files and folders
across the LAN between these two machines.
I've installed Samba on each machine - won't connect.
I've tried installing ssh server and client on each machine, when I choose
"connect to server" it won't browse, and if I put the IP address of the
other machine in, the "connect" button is greyed out.

How DIFFICULT can it be to share files and folders between two Ubuntu 14.04
machines on the same LAN?
Gr!



This is the simplest guide a quick Google found:

http://www.howtogeek.com/116309/use-ubuntus-public-folder-to-easily-share-files-between-computers/

Ssh won't help. It's for a secure remote terminal -- letting you type
commands on 1 PC from another -- not for file sharing. (It can do it,
but it's not the primary purpose so it's not trivial.)


Err it is really quite trivial (assumes you already have openssh-server 
installed on the destination host as you said you have).


In the file browser (nautilus) click "Connect to server".

In the Server Address box type:

sftp://othermachinename.local [optionally add /any/path/you/want/to/specify]

If you are connecting as a different user to the other machine enter

sftp://otherusername@othermachinename.local

click connect.

As it is all on your home network, I'd choose the "save password for 
ever" option and once it has connected, click the tool cog thingy and 
choose "Bookmark this location"


Al



--
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/


Re: [ubuntu-uk] Sharing files and folders between two 14.04 machines

2014-10-17 Thread Liam Proven
On 16 October 2014 19:53, Gordon Burgess-Parker  wrote:
> Two 14.04 machines on the same LAN.
> I am having THE MOST ridiculous time trying to share files and folders
> across the LAN between these two machines.
> I've installed Samba on each machine - won't connect.
> I've tried installing ssh server and client on each machine, when I choose
> "connect to server" it won't browse, and if I put the IP address of the
> other machine in, the "connect" button is greyed out.
>
> How DIFFICULT can it be to share files and folders between two Ubuntu 14.04
> machines on the same LAN?
> Gr!


This is the simplest guide a quick Google found:

http://www.howtogeek.com/116309/use-ubuntus-public-folder-to-easily-share-files-between-computers/

Ssh won't help. It's for a secure remote terminal -- letting you type
commands on 1 PC from another -- not for file sharing. (It can do it,
but it's not the primary purpose so it's not trivial.)


-- 
Liam Proven • Profile: http://lproven.livejournal.com/profile
Email: lpro...@cix.co.uk • GMail/G+/Twitter/Flickr/Facebook: lproven
MSN: lpro...@hotmail.com • Skype/AIM/Yahoo/LinkedIn: liamproven
Cell/Mobiles: +44 7939-087884 (UK) • +420 702 829 053 (ČR)

-- 
ubuntu-uk@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-uk
https://wiki.ubuntu.com/UKTeam/