Actions

Difference between revisions of "Upgrading Ubuntu Server Orac"

From zen2

(Samba)
(16.04 Upgrade)
Line 91: Line 91:
 
The follow symlinks etc no longer works, so must map folders in fstab:
 
The follow symlinks etc no longer works, so must map folders in fstab:
 
<pre>
 
<pre>
 +
sudo gedit /etc/samba/smb.conf
 +
</pre>
 +
<pre>
 +
[homes]
 +
  comment = Home Directories
 +
  browseable = no
 
</pre>
 
</pre>
  
 
==Tuning==
 
==Tuning==
 
*Adjust [[Ubuntu_Linux_Virtual_Memory_Swappiness | swap file settings]]
 
*Adjust [[Ubuntu_Linux_Virtual_Memory_Swappiness | swap file settings]]

Revision as of 08:33, 12 March 2017

Screen / Monitor Resolution

-First problem after installing nvidia driver was 640x480 resolution. Eventually fixed this with

sudo displayconfig-gtk

and changing the screen to LCD 1024x768. Prior to this I installed envyng-gtk to get the latest nvidia driver, but I probably didn't need to.

VMware Server

Installed VMware server with serial

VMware Server 2 for Linux 	A0425-FF72N-U3436-4CPCX

RAID / RAID5

First tried using evms as used previously to create/maintain the RAID. This broke everything, and I had to remove/uninstall theis from the root prompt on the recovery console.

Successfully recreated the RAID installing and using mdadm

sudo mdadm --assemble --scan

This will attempt to locate any existing RAIDs Then added

/dev/md0	/home/n2o/data ext3 defaults	0	2
/dev/sdc1 /home/n2o/data/tera           ext3    defaults        0       2

to /etc/fstab (adding in the 1TB hard drive while I am at it)

In 10.04 I created a new RAID5 array. In order to get it to mount after a reboot (and adding it to fstab) I had to do the following

sudo mdadm --examine --scan --config=mdadm.conf >> mdadm.conf

Ubuntu 16.04 after rebuild

Just did

sudo apt-get install mdadm
sudo mdadm --assemble --scan

Then added

/dev/md0 /media/raid ext4 defaults	0	2
/dev/sdc1 /media/nonraid           ext4    defaults        0       2

to /etc/fstab

Samba

Hardy is a bit different to previous versions for sharing folders.

sudo apt-get install samba smbfs

Don't really need smbfs, but what the heck).

Create the users for the system, add them to user group user (not necessary, but could make things easier in the future). Use the following user IDs for each user to pick up the previous permissions

  • 1001 chris
  • 1002 mina
  • 1003 bener
  • 1004 mark
  • 1005 almina

Add these users to samba

sudo smbpasswd -a chris

for each user.

In 10.04 I also had to add the following in /etc/samba/smb.conf

follow symlinks = yes
wide links = yes
unix extensions = no

16.04 Upgrade

sudo apt-get install samba

Create users in normal Ubuntu control panel.

Add these users to samba

sudo smbpasswd -a chris

for each user.

Must log on to each user to construct default folders in ~ directory. Create folders in ~ to map raid/nonraid folders to, eg ~media, ~/personal etc

The follow symlinks etc no longer works, so must map folders in fstab:

sudo gedit /etc/samba/smb.conf
[homes]
   comment = Home Directories
   browseable = no

Tuning